36 #include <QtCore/QMap>
53 class IConfigurablePlugin;
57 class ConnectionManager;
61 class UniqueIDManager;
63 class ViewManagerInterface;
64 class UAVGadgetManager;
65 class UAVGadgetInstanceManager;
66 class GlobalMessaging;
72 class GeneralSettings;
73 class ShortcutSettings;
74 class WorkspaceSettings;
86 bool init(QString *errorMessage);
87 void extensionsInitialized();
90 IContext *contextObject(QWidget *widget);
91 void addContextObject(
IContext *contex);
92 void removeContextObject(
IContext *contex);
94 void readSettings(QSettings *qs =
nullptr,
bool workspaceDiffOnly =
false);
95 void saveSettings(QSettings *qs =
nullptr);
98 void deleteSettings();
99 void openFiles(
const QStringList &fileNames);
108 Core::ThreadManager *threadManager()
const;
111 QSettings *settings(QSettings::Scope scope)
const;
112 IContext *currentContextObject()
const;
113 QStatusBar *statusBar()
const;
114 void addAdditionalContext(
int context);
115 void removeAdditionalContext(
int context);
116 bool hasContext(
int context)
const;
118 void updateContext();
120 void setSuppressNavigationWidget(
bool suppress);
123 void windowActivated();
124 void splashMessages(QString);
131 void setFullScreen(
bool on);
133 bool showOptionsDialog(
const QString &category = QString(),
const QString &page = QString(),
134 QWidget *parent =
nullptr);
137 virtual void changeEvent(QEvent *
e);
138 virtual void closeEvent(QCloseEvent *event);
139 virtual void dragEnterEvent(QDragEnterEvent *event);
140 virtual void dropEvent(QDropEvent *event);
144 void aboutToShowRecentFiles();
145 void openRecentFile();
146 void setFocusToEditor();
151 void updateFocusWidget(QWidget *old, QWidget *now);
152 void destroyVersionDialog();
153 void destroyAuthorsDialog();
155 void showUavGadgetMenus(
bool show,
bool hasSplitter);
156 void applyTabBarSettings(QTabWidget::TabPosition pos,
bool movable);
160 void updateContextObject(
IContext *context);
161 void registerDefaultContainers();
162 void registerDefaultActions();
163 void createWorkspaces(QSettings *qs,
bool diffOnly =
false);
164 void readStyleSheet(QFile *
file, QString name, QString *style);
165 void loadStyleSheet();
171 QSettings *m_settings;
172 QSettings *m_globalSettings;
173 QFrame *m_contentFrame;
177 MessageManager *m_messageManager;
179 ThreadManager *m_threadManager;
192 QMap<QWidget *, IContext *> m_contextWidgets;
199 QShortcut *m_focusToEditor;
200 QAction *m_newAction;
201 QAction *m_openAction;
202 QAction *m_openWithAction;
203 QAction *m_saveAllAction;
204 QAction *m_exitAction;
205 QAction *m_optionsAction;
207 QAction *m_showToolbarsAction;
208 QAction *m_splitAction;
209 QAction *m_splitSideBySideAction;
210 QAction *m_removeCurrentSplitAction;
211 QAction *m_removeAllSplitsAction;
212 QAction *m_gotoOtherSplitAction;
214 QString m_config_description;
215 QString m_config_details;
217 QAction *m_minimizeAction;
218 QAction *m_zoomAction;
220 QAction *m_toggleFullScreenAction;
226 #endif // MAINWINDOW_H
The action manager is responsible for registration of menus and menu items and keyboard shortcuts...
A base implementation of the mode interface IMode.