ui: basic CodeView with syntax highlighting
Added CodeView interface and QtCodeView implementation for showing syntax highlighted code snippets. This change avoids using the GuiElement hierarchy by using directly using QtClasses and creating QtCodeView in the QtElementFactory.
This commit is contained in:
+3
-8
@@ -1,20 +1,15 @@
|
||||
#include <memory>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QTextEdit>
|
||||
#include <qlayout.h>
|
||||
#include <qgroupbox.h>
|
||||
|
||||
#include "Application.h"
|
||||
#include "includes.h"
|
||||
#include "qt/element/QtArea.h"
|
||||
#include "qt/element/QtCanvas.h"
|
||||
#include "qt/QtElementFactory.h"
|
||||
#include "qt/QtWindow.h"
|
||||
|
||||
int main(int argv, char **args)
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication qtApp(argv, args);
|
||||
QApplication qtApp(argc, argv);
|
||||
std::shared_ptr<GuiElementFactory> elementFactory = std::make_shared<QtElementFactory>();
|
||||
|
||||
std::shared_ptr<QtWindow> window = std::make_shared<QtWindow>();
|
||||
@@ -23,4 +18,4 @@ int main(int argv, char **args)
|
||||
app->loadProject();
|
||||
|
||||
return qtApp.exec();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user