diff options
author | Ken Moore <moorekou@gmail.com> | 2016-04-14 12:49:55 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-04-14 12:49:55 -0400 |
commit | 1a1e43c175bcba94d84dbb1368329fe45827bb16 (patch) | |
tree | 64adb89cdb69c5900a783e77ad5e6d057d4e2f78 /desktop-utilities/lumina-textedit/main.cpp | |
parent | Fix up some selection/cursor handling so the user cannot change the current c... (diff) | |
download | lumina-1a1e43c175bcba94d84dbb1368329fe45827bb16.tar.gz lumina-1a1e43c175bcba94d84dbb1368329fe45827bb16.tar.bz2 lumina-1a1e43c175bcba94d84dbb1368329fe45827bb16.zip |
Add a start for a Qt text editor (mainly for playing around - but it could turn into something useful down the road).
Diffstat (limited to 'desktop-utilities/lumina-textedit/main.cpp')
-rw-r--r-- | desktop-utilities/lumina-textedit/main.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/desktop-utilities/lumina-textedit/main.cpp b/desktop-utilities/lumina-textedit/main.cpp new file mode 100644 index 00000000..899382c7 --- /dev/null +++ b/desktop-utilities/lumina-textedit/main.cpp @@ -0,0 +1,32 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2015, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#include <QApplication> +#include <QDebug> + +#include <LuminaThemes.h> +#include <LuminaUtils.h> + +#include "PlainTextEditor.h" +#include "syntaxSupport.h" + +int main(int argc, char *argv[]) { + LTHEME::LoadCustomEnvSettings(); + QApplication a(argc, argv); + LUtils::LoadTranslation(&a, "lumina-textedit"); + //Now go ahead and setup the app + LuminaThemeEngine theme(&a); + + //Now start the window + PlainTextEditor W; + Custom_Syntax *syntax = new Custom_Syntax(W.document()); + syntax->loadRules("C++"); + W.showLineNumbers(true); + //QObject::connect(&theme, SIGNAL(updateIcons()), &W, SLOT(updateIcons()) ); + + W.show(); + return a.exec(); +} |