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();
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;
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);
249 virtual
bool addViewer(
Viewer*);
258 QProgressBar* myProgressBar;
261 QDockWidget* consoleWindow;
264 QTextEdit* consoleWindowTextEdit;
271 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:196
QMap< Viewer *, QDockWidget * > dockWidgetMap
the map that gives the corresponding QDockWidget for a given Viewer
Definition: MainWindow.h:199
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180
Definition: Action.cpp:35
void refresh()
refresh the display