35 #include <QMainWindow>
36 #include <QApplication>
39 #include <QProgressBar>
80 virtual void aboutToShow();
93 void setWindowSubtitle(QString);
96 QProgressBar * getProgressBar();
99 void showStatusBar(
bool);
102 virtual void redirectToConsole(
bool);
105 void showConsole(
bool);
115 virtual bool addViewer(
Viewer*);
118 virtual void showViewer(
Viewer *,
bool);
124 virtual void addDockViewer(Qt::DockWidgetArea,
Viewer*);
127 void refreshViewers();
133 virtual void setCentralViewer(
Viewer*);
139 virtual void refresh();
151 virtual void closeEvent ( QCloseEvent *);
154 QList<Viewer *> viewers;
162 virtual void initSettings();
166 void dragEnterEvent(QDragEnterEvent *event);
169 void dragMoveEvent(QDragMoveEvent* event);
172 void dragLeaveEvent(QDragLeaveEvent* event);
175 void dropEvent(QDropEvent *event);
201 #endif // MAINWINDOW_H
Viewer is an abstract viewer.
Definition: Viewer.h:50
This Class is the base class for your application.
Definition: MainWindow.h:59
QDialog * consoleWindow
console to display all messages
Definition: MainWindow.h:190
#define CAMITK_API
Definition: CamiTKAPI.h:49
QProgressBar * myProgressBar
the progress bar (access through setProgress() method)
Definition: MainWindow.h:187
Directly inspired by this place.
Definition: ConsoleStream.h:68
ConsoleStream cout
the output stream for the application console
Definition: MainWindow.h:181
QMap< Viewer *, QDockWidget * > dockWidgetMap
the map that gives the corresponding QDockWidget for a given Viewer
Definition: MainWindow.h:159
ConsoleStream cerr
the error stream for the application console
Definition: MainWindow.h:184
QString mainTitle
the main part of the title
Definition: MainWindow.h:196
QTextEdit * consoleWindowTextEdit
the QTextEdit part of the console dialog
Definition: MainWindow.h:193