ui: implemented gui abstraction and dummy view
- added abstract class tree for gui elements. - implemented concrete gui classes that wrap the qt specific content. - implemented first DummyView which plays nice with the ViewManager. review id = 12
This commit is contained in:
+8
-4
@@ -2,21 +2,25 @@
|
||||
|
||||
#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)
|
||||
{
|
||||
QApplication qtApp(argv, args);
|
||||
std::shared_ptr<GuiElementFactory> elementFactory = std::make_shared<QtElementFactory>();
|
||||
|
||||
std::shared_ptr<Application> app = Application::create(elementFactory);
|
||||
app->loadProject();
|
||||
std::shared_ptr<QtWindow> window = std::make_shared<QtWindow>();
|
||||
|
||||
QTextEdit textEdit;
|
||||
textEdit.show();
|
||||
std::shared_ptr<Application> app = Application::create(elementFactory, window);
|
||||
app->loadProject();
|
||||
|
||||
return qtApp.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user