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();
125 virtual void initSettings();
147 virtual void showDockViewer(
Viewer*,
bool);
157 virtual void addDockViewer(Qt::DockWidgetArea,
Viewer*);
160 void refreshViewers();
172 virtual void setCentralViewer(
Viewer*);
177 virtual Viewer* getCentralViewer()
const;
182 virtual void showViewerToolbar(
Viewer* theViewer,
bool visible);
200 void closeEvent(QCloseEvent*)
override;
213 void dragEnterEvent(QDragEnterEvent* event)
override;
216 void dragMoveEvent(QDragMoveEvent* event)
override;
219 void dragLeaveEvent(QDragLeaveEvent* event)
override;
222 void dropEvent(QDropEvent* event)
override;
238 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);
256 virtual
bool addViewer(
Viewer*);
265 QProgressBar* myProgressBar;
268 QDockWidget* consoleWindow;
271 QTextEdit* consoleWindowTextEdit;
278 QStackedLayout* centralLayout;
#define CAMITK_API_DEPRECATED(X)
Definition: CamiTKAPI.h:94
#define CAMITK_API
Definition: CamiTKAPI.h:49
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
Provides a console windows, within the CamiTK application.
Definition: ConsoleStream.h:71
This class is the base class for your application.
Definition: MainWindow.h:66
QList< Viewer * > viewers
Definition: MainWindow.h:205
QMap< Viewer *, QDockWidget * > dockWidgetMap
the map that gives the corresponding QDockWidget for a given Viewer
Definition: MainWindow.h:208
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:181
Definition: Action.cpp:36
void refresh()
refresh the display