Skip to content

Commit d93a79e

Browse files
committed
Merge pull request #10 from bweir/master
More code cleanup
2 parents e619215 + 40a2b0f commit d93a79e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+231
-639
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ PropellerIDE was created using C++ and Qt.
2727

2828
## Building
2929

30-
PropellerIDE
31-
3230
### Dependencies
3331

3432
PropellerIDE can be built against Qt4 or Qt5.

src/prebuilt/win32/p1load.exe

80.3 KB
Binary file not shown.
File renamed without changes.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#include "EzBuilder.h"
1+
#include "Builder.h"
22

3-
EzBuilder::EzBuilder(QObject *parent) : QObject(parent)
3+
Builder::Builder(QObject *parent) : QObject(parent)
44
{
55
}
66

7-
void EzBuilder::setParameters(QString comp, QString incl, QString compPath, QString projFile, QString compstat)
7+
void Builder::setParameters(QString comp, QString incl, QString compPath, QString projFile, QString compstat)
88
{
99
compilerStr = comp;
1010
compilerPath = compPath;
@@ -13,15 +13,15 @@ void EzBuilder::setParameters(QString comp, QString incl, QString compPath, QStr
1313
compileResult = compstat;
1414
}
1515

16-
void EzBuilder::setObjects(QLabel *stat, QLabel *progsize, QProgressBar *progbar, QComboBox *ports)
16+
void Builder::setObjects(QLabel *stat, QLabel *progsize, QProgressBar *progbar, QComboBox *ports)
1717
{
1818
msgLabel = stat;
1919
sizeLabel = progsize;
2020
progress = progbar;
2121
cbPort = ports;
2222
}
2323

24-
QString EzBuilder::filePathName(QString fileName)
24+
QString Builder::filePathName(QString fileName)
2525
{
2626
QString rets;
2727
if(fileName.lastIndexOf("/") > -1)
@@ -31,28 +31,28 @@ QString EzBuilder::filePathName(QString fileName)
3131
return rets;
3232
}
3333

34-
int EzBuilder::runCompiler(QString copts)
34+
int Builder::runCompiler(QString copts)
3535
{
3636
// satisfy warnings only
3737
if(copts.length())
3838
return 0;
3939
return 0;
4040
}
4141

42-
void EzBuilder::compilerError(QProcess::ProcessError error)
42+
void Builder::compilerError(QProcess::ProcessError error)
4343
{
4444
// satisfy warnings only
4545
if(error != QProcess::Crashed) return;
4646
}
4747

48-
void EzBuilder::compilerFinished(int exitCode, QProcess::ExitStatus status)
48+
void Builder::compilerFinished(int exitCode, QProcess::ExitStatus status)
4949
{
5050
// satisfy warnings only
5151
if(exitCode) return;
5252
if(status != QProcess::CrashExit) return;
5353
}
5454

55-
void EzBuilder::procReadyRead()
55+
void Builder::procReadyRead()
5656
{
5757
}
5858

src/propelleride/EzBuilder.h renamed to src/propelleride/Builder.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef EZBUILDER_H
2-
#define EZBUILDER_H
1+
#pragma once
32

43
#include <QObject>
54
#include <QString>
@@ -9,11 +8,11 @@
98
#include <QProcess>
109
#include <QMutex>
1110

12-
class EzBuilder : public QObject
11+
class Builder : public QObject
1312
{
1413
Q_OBJECT
1514
public:
16-
explicit EzBuilder(QObject *parent = 0);
15+
explicit Builder(QObject *parent = 0);
1716

1817
void setParameters(QString comp, QString incl, QString compPath, QString projFile, QString compstat);
1918
void setObjects(QLabel *stat, QLabel *progsize, QProgressBar *progbar, QComboBox *ports);
@@ -53,5 +52,3 @@ public slots:
5352
QMutex procMutex;
5453
bool procDone;
5554
};
56-
57-
#endif // EZBUILDER_H

src/propelleride/console.cpp renamed to src/propelleride/Console.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "console.h"
1+
#include "Console.h"
22
#include "Sleeper.h"
33

44
#include <QApplication>

src/propelleride/console.h renamed to src/propelleride/Console.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef CONSOLE_H
2-
#define CONSOLE_H
1+
#pragma once
32

43
#include <QWidget>
54
#include <QTabWidget>
@@ -158,5 +157,3 @@ public slots:
158157
void update(char ch);
159158

160159
};
161-
162-
#endif // CONSOLE_H

src/propelleride/highlighter.cpp renamed to src/propelleride/Highlighter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
**
4646
****************************************************************************/
4747

48-
#include "highlighter.h"
48+
#include "Highlighter.h"
4949

5050
#include <QSettings>
5151
#include <QVariant>

src/propelleride/highlighter.h renamed to src/propelleride/Highlighter.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
/****************************************************************************
24
The basis of this code is the Qt Highlighter example having the copyright
35
below. This code is substanially different for choosing the rules, and it
@@ -45,9 +47,6 @@
4547
**
4648
****************************************************************************/
4749

48-
#ifndef HIGHLIGHTER_H
49-
#define HIGHLIGHTER_H
50-
5150
#include <QSyntaxHighlighter>
5251

5352
#include <QHash>
@@ -125,5 +124,3 @@ class Highlighter : public QSyntaxHighlighter
125124
QFont::Weight hlBlockComWeight;
126125
Qt::GlobalColor hlBlockComColor;
127126
};
128-
129-
#endif

src/propelleride/PortConnectionMonitor.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef PORTCONNECTIONMONITOR_H
2-
#define PORTCONNECTIONMONITOR_H
1+
#pragma once
32

43
#include <QThread>
54
#include <QObject>
@@ -27,5 +26,3 @@ public slots:
2726
bool running;
2827

2928
};
30-
31-
#endif // PORTCONNECTIONMONITOR_H

0 commit comments

Comments
 (0)