35 #include <QMainWindow>
36 #include <QApplication>
39 #include <QProgressBar>
41 #include <QStackedLayout>
87 virtual void aboutToShow();
95 QString getName()
const;
104 void setWindowSubtitle(QString);
107 QProgressBar* getProgressBar();
110 void showStatusBar(
bool);
113 virtual void redirectToConsole(
bool);
116 void showConsole(
bool);
119 bool getConsoleVisibility();
133 CAMITK_API_DEPRECATED(
"This method is now called showDockViewer(..)") virtual
void showViewer(Viewer*,
bool);
138 virtual
void showDockViewer(Viewer*,
bool);
148 virtual
void addDockViewer(Qt::DockWidgetArea, Viewer*);
151 void refreshViewers();
163 virtual
void setCentralViewer(Viewer*);
168 virtual Viewer* getCentralViewer() const;
173 virtual
void showViewerToolbar(Viewer* theViewer,
bool visible);
191 void closeEvent(QCloseEvent*) override;
194 QList<Viewer*> viewers;
199 QMap<Viewer*, QDockWidget*> dockWidgetMap;
202 virtual
void initSettings();
206 void dragEnterEvent(QDragEnterEvent* event) override;
209 void dragMoveEvent(QDragMoveEvent* event) override;
212 void dragLeaveEvent(QDragLeaveEvent* event) override;
215 void dropEvent(QDropEvent* event) override;
231 CAMITK_API_DEPRECATED("Removing viewers can be harmful. Central viewer is now simply hidden, therefore there is no need to remove it.")
bool removeViewer(Viewer* viewer);
238 Viewer* centralViewer;
249 virtual
bool addViewer(Viewer*);
258 QProgressBar* myProgressBar;
261 QDockWidget* consoleWindow;
264 QTextEdit* consoleWindowTextEdit;
271 QStackedLayout* centralLayout;
277 #endif // MAINWINDOW_H