35 #include <QMainWindow> 36 #include <QApplication> 39 #include <QProgressBar> 83 virtual void aboutToShow();
91 QString getName()
const;
100 void setWindowSubtitle(QString);
103 QProgressBar* getProgressBar();
106 void showStatusBar(
bool);
109 virtual void redirectToConsole(
bool);
112 void showConsole(
bool);
115 bool getConsoleVisibility();
122 virtual void showViewer(
Viewer*,
bool);
128 virtual void addDockViewer(Qt::DockWidgetArea,
Viewer*);
131 void refreshViewers();
137 virtual void setCentralViewer(
Viewer*);
143 virtual const Viewer& getCentralViewer()
const;
149 virtual void refresh();
161 void closeEvent(QCloseEvent*)
override;
164 QList<Viewer*> viewers;
172 virtual void initSettings();
176 void dragEnterEvent(QDragEnterEvent* event)
override;
179 void dragMoveEvent(QDragMoveEvent* event)
override;
182 void dragLeaveEvent(QDragLeaveEvent* event)
override;
185 void dropEvent(QDropEvent* event)
override;
193 bool removeViewer(
Viewer* viewer);
210 virtual bool addViewer(
Viewer*);
234 #endif // MAINWINDOW_H Viewer is an abstract viewer.
Definition: Viewer.h:55
This Class is the base class for your application.
Definition: MainWindow.h:62
Definition: Action.cpp:36
QDockWidget * consoleWindow
console to display all messages
Definition: MainWindow.h:223
#define CAMITK_API
Definition: CamiTKAPI.h:49
QProgressBar * myProgressBar
the progress bar (access through setProgress() method)
Definition: MainWindow.h:220
Provides a console windows, within the CamiTK application.
Definition: ConsoleStream.h:71
Viewer * centralViewer
The actual central Viewer.
Definition: MainWindow.h:199
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
ConsoleStream cout
the output stream for the application console
Definition: MainWindow.h:214
QMap< Viewer *, QDockWidget * > dockWidgetMap
the map that gives the corresponding QDockWidget for a given Viewer
Definition: MainWindow.h:169
ConsoleStream cerr
the error stream for the application console
Definition: MainWindow.h:217
QString mainTitle
the main part of the title
Definition: MainWindow.h:229
QTextEdit * consoleWindowTextEdit
the QTextEdit part of the console dialog
Definition: MainWindow.h:226