aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities/lumina-textedit/main.cpp
blob: 899382c775f2ad90109ce677d449cae6da948bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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();
}
bgstack15