35 #include <QMainWindow> 36 #include <QApplication> 39 #include <QProgressBar> 83 virtual void aboutToShow();
96 void setWindowSubtitle(QString);
99 QProgressBar * getProgressBar();
102 void showStatusBar(
bool);
105 virtual void redirectToConsole(
bool);
108 void showConsole(
bool);
117 virtual void showViewer(
Viewer *,
bool);
123 virtual void addDockViewer(Qt::DockWidgetArea,
Viewer*);
126 void refreshViewers();
132 virtual void setCentralViewer(
Viewer*);
138 virtual const Viewer & getCentralViewer()
const;
150 virtual bool addViewer(
Viewer*);
157 virtual void refresh();
169 virtual void closeEvent ( QCloseEvent *);
172 QList<Viewer *> viewers;
180 virtual void initSettings();
184 void dragEnterEvent(QDragEnterEvent *event);
187 void dragMoveEvent(QDragMoveEvent* event);
190 void dragLeaveEvent(QDragLeaveEvent* event);
193 void dropEvent(QDropEvent *event);
201 bool removeViewer(
Viewer* viewer);
233 #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:40
QDialog * consoleWindow
console to display all messages
Definition: MainWindow.h:222
#define CAMITK_API
Definition: CamiTKAPI.h:49
QProgressBar * myProgressBar
the progress bar (access through setProgress() method)
Definition: MainWindow.h:219
Provides a console windows, within the CamiTK application.
Definition: ConsoleStream.h:71
Viewer * centralViewer
The actual central Viewer.
Definition: MainWindow.h:207
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:213
QMap< Viewer *, QDockWidget * > dockWidgetMap
the map that gives the corresponding QDockWidget for a given Viewer
Definition: MainWindow.h:177
ConsoleStream cerr
the error stream for the application console
Definition: MainWindow.h:216
QString mainTitle
the main part of the title
Definition: MainWindow.h:228
QTextEdit * consoleWindowTextEdit
the QTextEdit part of the console dialog
Definition: MainWindow.h:225