Changeset View
Changeset View
Standalone View
Standalone View
src/zanshin/app/main.cpp
Show All 31 Lines | |||||
32 | #include <KXmlGuiWindow> | 32 | #include <KXmlGuiWindow> | ||
33 | 33 | | |||
34 | #include "widgets/taskapplicationcomponents.h" | 34 | #include "widgets/taskapplicationcomponents.h" | ||
35 | #include "widgets/availablepagesview.h" | 35 | #include "widgets/availablepagesview.h" | ||
36 | #include "widgets/availablesourcesview.h" | 36 | #include "widgets/availablesourcesview.h" | ||
37 | #include "widgets/editorview.h" | 37 | #include "widgets/editorview.h" | ||
38 | #include "widgets/pageview.h" | 38 | #include "widgets/pageview.h" | ||
39 | 39 | | |||
40 | #include "presentation/taskapplicationmodel.h" | 40 | #include "presentation/applicationmodel.h" | ||
41 | 41 | | |||
42 | #include "utils/dependencymanager.h" | 42 | #include "utils/dependencymanager.h" | ||
43 | 43 | | |||
44 | #include "aboutdata.h" | 44 | #include "aboutdata.h" | ||
45 | #include "dependencies.h" | 45 | #include "dependencies.h" | ||
46 | 46 | | |||
47 | #include <iostream> | 47 | #include <iostream> | ||
48 | #include <KAboutData> | 48 | #include <KAboutData> | ||
Show All 12 Lines | 53 | { | |||
61 | parser.addVersionOption(); | 61 | parser.addVersionOption(); | ||
62 | parser.addHelpOption(); | 62 | parser.addHelpOption(); | ||
63 | aboutData.setupCommandLine(&parser); | 63 | aboutData.setupCommandLine(&parser); | ||
64 | parser.process(app); | 64 | parser.process(app); | ||
65 | aboutData.processCommandLine(&parser); | 65 | aboutData.processCommandLine(&parser); | ||
66 | 66 | | |||
67 | auto widget = new QWidget; | 67 | auto widget = new QWidget; | ||
68 | auto components = new Widgets::TaskApplicationComponents(widget); | 68 | auto components = new Widgets::TaskApplicationComponents(widget); | ||
69 | components->setModel(Presentation::TaskApplicationModel::Ptr::create()); | 69 | components->setModel(Presentation::ApplicationModel::Ptr::create()); | ||
70 | 70 | | |||
71 | auto layout = new QVBoxLayout; | 71 | auto layout = new QVBoxLayout; | ||
72 | layout->setContentsMargins(0, 0, 0, 0); | 72 | layout->setContentsMargins(0, 0, 0, 0); | ||
73 | layout->addWidget(components->pageView()); | 73 | layout->addWidget(components->pageView()); | ||
74 | widget->setLayout(layout); | 74 | widget->setLayout(layout); | ||
75 | 75 | | |||
76 | auto sourcesDock = new QDockWidget(i18n("Sources")); | 76 | auto sourcesDock = new QDockWidget(i18n("Sources")); | ||
77 | sourcesDock->setObjectName(QStringLiteral("sourcesDock")); | 77 | sourcesDock->setObjectName(QStringLiteral("sourcesDock")); | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |