36#include <QApplication>
40#include <QProgressBar>
42#include <QStackedLayout>
205 void dropEvent(QDropEvent* event)
override;
222 virtual bool addViewer(
Viewer*);
231 QProgressBar* myProgressBar;
234 QDockWidget* consoleWindow;
237 QTextEdit* consoleWindowTextEdit;
247 QStackedLayout* centralLayout;
#define CAMITK_API
Definition CamiTKAPI.h:66
Definition PersistenceManager.h:30
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition sdk/libraries/core/component/Component.h:304
Provides a console windows, within the CamiTK application.
Definition ConsoleStream.h:74
Simple Syntax highlighter for CamiTK Log syntax.
Definition LogSyntaxHighlighter.h:39
QList< Viewer * > viewers
Definition MainWindow.h:188
void dragLeaveEvent(QDragLeaveEvent *event) override
called when the mouse leaves the widgets area during a drag/drop operation
Definition MainWindow.cpp:469
void showStatusBar(bool)
show the status bar (by default it is hidden)
Definition MainWindow.cpp:327
void closeEvent(QCloseEvent *) override
overriden from QMainWindow, just connect to slotFileQuit
Definition MainWindow.cpp:429
virtual Viewer * getCentralViewer() const
Definition MainWindow.cpp:299
void dragEnterEvent(QDragEnterEvent *event) override
called when a drag event started on the main window, accept drag only if file is MIME type text/uri-l...
Definition MainWindow.cpp:446
virtual void showDockViewer(Viewer *, bool)
set the visibility for the given docked viewer
Definition MainWindow.cpp:234
void setWindowSubtitle(QString)
The subtitle is situated at the end of the title, on the title bar, is helps for example showing whic...
Definition MainWindow.cpp:215
QMap< Viewer *, QDockWidget * > dockWidgetMap
the map that gives the corresponding QDockWidget for a given Viewer
Definition MainWindow.h:191
QProgressBar * getProgressBar()
similar as statusBar() from QMainWindow but for the progress bar
Definition MainWindow.cpp:332
void refreshViewers()
Method uses to refresh all the viewer of the Main Window.
Definition MainWindow.cpp:242
virtual void setCentralViewer(Viewer *)
set the central Viewer of the application.
Definition MainWindow.cpp:273
virtual void redirectToConsole(bool)
use or not the application console (redirect or not standard out/err streams)
Definition MainWindow.cpp:337
void dragMoveEvent(QDragMoveEvent *event) override
called when the mouse moves inside the widgets area during a drag/drop operation
Definition MainWindow.cpp:461
virtual void aboutToShow()
this method is automatically called by Application before the first time show() is called.
Definition MainWindow.cpp:387
Viewer * centralViewer
The actual central Viewer.
Definition MainWindow.h:211
bool getConsoleVisibility()
get the visibility state of the console (
Definition MainWindow.cpp:364
virtual void refresh()
Definition MainWindow.cpp:304
void saveSettings()
Save MainWindow's settings into Application::settings.
Definition MainWindow.cpp:420
virtual void initSettings()
Definition MainWindow.cpp:392
void showConsole(bool)
get the console window
Definition MainWindow.cpp:358
QString getName() const
Get the main window title.
Definition MainWindow.cpp:210
void show()
inherited from QWidget, just to refresh all viewers
Definition MainWindow.cpp:374
void dropEvent(QDropEvent *event) override
just call open with the dragged uri
Definition MainWindow.cpp:474
virtual void addDockViewer(Qt::DockWidgetArea, Viewer *)
add a Viewer to the application as a docking widget and specify where it has to be docked Note that M...
Definition MainWindow.cpp:249
MainWindow(QString title)
Constructor, the window title can be changed here, it is inconsistent to use setWindowTitle().
Definition MainWindow.cpp:53
Viewer is an abstract class that is the base class for all viewers.
Definition Viewer.h:182