Skip to content

Commit 8c3855c

Browse files
committed
Folder Structure
1 parent f3f12f8 commit 8c3855c

15 files changed

Lines changed: 53 additions & 45 deletions

File tree

codeeditor.cpp renamed to CodeEditor/codeeditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
****************************************************************************/
4040

4141
#include <QtWidgets>
42-
#include "codeeditor.h"
42+
#include "CodeEditor/codeeditor.h"
4343

4444
CodeEditor::CodeEditor(QWidget* parent)
4545
: QPlainTextEdit(parent)
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WIT
2222
USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
*/
2424

25-
#include "PythonSyntaxHighlighter.h"
25+
#include "CodeEditor/PythonSyntaxHighlighter.h"
2626

2727
PythonSyntaxHighlighter::PythonSyntaxHighlighter(QTextDocument* parent)
2828
: QSyntaxHighlighter(parent)

snippets.cpp renamed to Features/snippets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "snippets.h"
1+
#include "Features/snippets.h"
22
#include <iostream>
33

44
Snippets::Snippets(QObject* parent)
File renamed without changes.

PyRun.pro

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,29 @@ QT += core gui
99
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
1010

1111

12-
1312
TARGET = PyRun
1413
TEMPLATE = app
1514

1615
SOURCES += main.cpp\
17-
mainview.cpp \
18-
pythonsyntaxhighlighter.cpp \
19-
codeeditor.cpp \
20-
snippets.cpp
16+
UI/mainview.cpp \
17+
CodeEditor/pythonsyntaxhighlighter.cpp \
18+
CodeEditor/codeeditor.cpp \
19+
Features/snippets.cpp
2120

22-
HEADERS += mainview.h \
23-
pythonsyntaxhighlighter.h \
24-
codeeditor.h \
25-
snippets.h \
26-
emb.h
21+
HEADERS += UI/mainview.h \
22+
CodeEditor/pythonsyntaxhighlighter.h \
23+
CodeEditor/codeeditor.h \
24+
Features/snippets.h \
25+
PythonAccess/emb.h
2726

28-
FORMS += mainview.ui
27+
FORMS += UI/mainview.ui
2928

3029
QMAKE_CXXFLAGS += -std=c++11
3130

32-
3331
RESOURCES += \
3432
PyRunResources.qrc
3533

36-
RC_FILE = PyRun.rc
37-
34+
RC_FILE = WindowsResources/PyRun.rc
3835

3936

4037
win32: LIBS += -L$$PWD/../Python34/libs/ -lpython34

emb.h renamed to PythonAccess/emb.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@
77
// Blog article: http://mateusz.loskot.net/?p=2819
88
// --------------------------------------------------------------------------
99

10+
#ifndef EMB_H
11+
#define EMB_H
12+
13+
#pragma GCC diagnostic ignored "-Wunused-parameter"
14+
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
15+
1016
#include <functional>
1117
#include <iostream>
1218
#include <string>
1319
#include <cmath>
1420
#include "Python.h"
15-
#include "mainview.h"
21+
#include "UI/mainview.h"
22+
1623
namespace emb {
1724

1825
MainView* mainView;
@@ -239,3 +246,7 @@ PyObject* PyInit_Lseba(void)
239246
return PyModule_Create(&LsebaModule);
240247
}
241248
}
249+
250+
#pragma GCC diagnostic warning "-Wunused-parameter"
251+
#pragma GCC diagnostic warning "-Wmissing-field-initializers"
252+
#endif

mainview.cpp renamed to UI/mainview.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "emb.h"
2-
#include "mainview.h"
1+
#include "PythonAccess/emb.h"
2+
#include "UI/mainview.h"
33
#include "ui_mainview.h"
44

55
MainView::MainView(QWidget* parent)

mainview.h renamed to UI/mainview.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#include <QInputDialog>
1414

1515
// internal
16-
#include "pythonsyntaxhighlighter.h"
17-
#include "codeeditor.h"
18-
#include "snippets.h"
16+
#include "CodeEditor/pythonsyntaxhighlighter.h"
17+
#include "CodeEditor/codeeditor.h"
18+
#include "Features/snippets.h"
1919

2020
namespace Ui {
2121
class MainView;

0 commit comments

Comments
 (0)