|
|
@@ -1,4 +1,5 @@
|
|
|
#include <QApplication>
|
|
|
+#include <QDir>
|
|
|
#include "mainwindow.h"
|
|
|
#include "logger.h"
|
|
|
#include "appcontext.h"
|
|
|
@@ -16,6 +17,17 @@ int main(int argc, char *argv[])
|
|
|
Logger::setup();
|
|
|
|
|
|
AppContext &appCtx = AppContext::instance();
|
|
|
+ ProjectManager &projectMgr = appCtx.projectManager();
|
|
|
+ QString fileName = QString("%1/%2").arg(QDir::currentPath(), "conf/monitor.xml");
|
|
|
+ bool result = projectMgr.openProject(fileName);
|
|
|
+ if(result)
|
|
|
+ {
|
|
|
+ LOG_INFO("open monitor config xml success: {}, canvas count: {}", fileName.toUtf8().data(), projectMgr.canvasCount());
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LOG_ERROR("open monitor config xml failed: {}", fileName.toUtf8().data());
|
|
|
+ }
|
|
|
|
|
|
MainWindow w;
|
|
|
w.resize(SCREEN_WIDTH, SCREEN_HEIGHT);
|