Engauge Digitizer  2
CreateFacade.cpp
Go to the documentation of this file.
1 /******************************************************************************************************
2  * (C) 2018 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #include "CreateActions.h"
8 #include "CreateCentralWidget.h"
10 #include "CreateDockableWidgets.h"
11 #include "CreateFacade.h"
12 #include "CreateHelpWindow.h"
13 #include "CreateIcons.h"
14 #include "CreateLoadImage.h"
15 #include "CreateMenus.h"
16 #include "CreateNetwork.h"
17 #include "CreateScene.h"
18 #include "CreateSettingsDialogs.h"
19 #include "CreateStateContexts.h"
20 #include "CreateStatusBar.h"
21 #include "CreateToolBars.h"
22 #include "CreateTutorial.h"
23 #include "CreateZoomMaps.h"
24 #include "Logger.h"
25 #include "MainWindow.h"
26 #include "Version.h"
27 
29 {
30 }
31 
33 {
34  LOG4CPP_INFO_S ((*mainCat)) << "CreateFacade::create";
35 
36  CreateActions createActions;
37  CreateCentralWidget createCentralWidget;
38  CreateCommandStackShadow createCommandStackShadow;
39  CreateDockableWidgets createDockableWidgets;
40  CreateHelpWindow createHelpWindow;
41  CreateIcons createIcons;
42  CreateLoadImage createLoadImage;
43  CreateMenus createMenus;
44  CreateNetwork createNetwork;
45  CreateScene createScene;
46  CreateSettingsDialogs createSettingsDialogs;
47  CreateStateContexts createStateContexts;
48  CreateStatusBar createStatusBar;
49  CreateToolBars createToolBars;
50  CreateTutorial createTutorial;
51  CreateZoomMaps createZoomMaps;
52 
53  createIcons.create (mw);
54 #if !defined(OSX_DEBUG) && !defined(OSX_RELEASE)
55  mw.setWindowFlags (Qt::WindowContextHelpButtonHint | mw.windowFlags ()); // Add help to default buttons
56 #endif
57  mw.setWindowTitle (engaugeWindowTitle ());
58 
59  createCentralWidget.create (mw);
60  createActions.create (mw);
61  createStatusBar.create (mw);
62  createMenus.create (mw);
63  createToolBars.create (mw);
64  createDockableWidgets.create (mw);
65  createHelpWindow.create (mw);
66  createTutorial.create (mw);
67  createScene.create (mw);
68  createNetwork.create (mw);
69  createLoadImage.create (mw);
70  createStateContexts.create (mw);
71  createSettingsDialogs.create (mw);
72  createCommandStackShadow.create (mw);
73  createZoomMaps.create (mw);
74 }
log4cpp::Category * mainCat
Definition: Logger.cpp:14
QString engaugeWindowTitle()
Text for title bars of dialogs.
Definition: Version.cpp:14
Class to create actions for MainWindow class.
Definition: CreateActions.h:17
void create(MainWindow &mw)
Create QAction actions.
Class to the central QWidget for MainWindow class.
void create(MainWindow &mw)
Create QGraphicsScene.
Class to create CmdStackShadow for MainWindow class.
void create(MainWindow &mw)
Create shadow command stack.
Class to create QDockWidget items for MainWindow class.
void create(MainWindow &mw)
Create QMenu menu items.
void create(MainWindow &mw)
Create QAction facade.
CreateFacade()
Single constructor.
Class to create help window for MainWindow class.
void create(MainWindow &mw)
Create HelpWindow.
Class to create icons for MainWindow class.
Definition: CreateIcons.h:17
void create(MainWindow &mw)
Create QIcon items.
Definition: CreateIcons.cpp:20
Class to create LoadImageFromUrl for MainWindow class.
void create(MainWindow &mw)
Create LoadImageFromUrl instance.
Class to create menus for MainWindow class.
Definition: CreateMenus.h:17
void create(MainWindow &mw)
Create QMenu menu items.
Definition: CreateMenus.cpp:17
Class to create network for MainWindow class.
Definition: CreateNetwork.h:17
void create(MainWindow &mw)
Create QNetwork.
Class to create QGraphicsScene for MainWindow class.
Definition: CreateScene.h:17
void create(MainWindow &mw)
Create QGraphicsScene.
Definition: CreateScene.cpp:18
Class to create settings dialogs for MainWindow class.
void create(MainWindow &mw)
Create settings QDialog items.
Class to create state contexts, which wrap state machine design patterns, for MainWindow class.
void create(MainWindow &mw)
Create state contexts.
Class to create status bar for MainWindow class.
void create(MainWindow &mw)
Create QStatusBar.
Class to create toolbars for MainWindow class.
void create(MainWindow &mw)
Create QToolbar toolbars.
Class to TutorialDlg for MainWindow class.
void create(MainWindow &mw)
Create tutorial.
Class to create zoom factor maps for MainWindow class.
void create(MainWindow &mw)
Create zoom maps.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:92
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18