![]() |
Computer Assited Medical Intervention Tool Kit
version 3.3
|
This Class describes the "historical" imp application. More...
#include <ImpMainWindow.h>
Public Slots | |
file menu slot | |
open a data directory, "called" from the fileOpenDataDirectoryMenu | |
void | openDirectory (QAction *) |
viewers' slot | |
this slot is connected to all the viewers selectionChanged() signal, this will call the refresh method of all viewers but whoIsAsking | |
virtual void | refresh () |
View menu slots | |
| |
void | showToolbar (bool) |
show or hide the toolbar More... | |
void | showMenuBar (bool) |
show or hide the menu bar More... | |
void | resetWindows () |
reset all windows in their initial state More... | |
void | showStatusBar (bool) |
show or hide the status bar More... | |
void | saveHistoryAsSCXML () |
Save the history of action as a SCXML file. More... | |
Edit menu slots | |
void | editSettings () |
![]() | |
virtual void | refresh () |
void | show () |
inherited from QWidget, just to refresh all viewers More... | |
Public Member Functions | |
general | |
construtor | |
ImpMainWindow () | |
void | aboutToShow () |
overriden from MainWindow to automatically load last opened document if needed More... | |
virtual | ~ImpMainWindow () |
destructor More... | |
open a top-level component | |
virtual void | addDockViewer (Qt::DockWidgetArea, camitk::Viewer *) |
add a Viewer to the application as a docking widget and specify where it has to be docked MainWindow takes the hand on the Viewer (it will be deleted when MainWindow is deleted). More... | |
virtual void | setCentralViewer (camitk::Viewer *) |
set the central Viewer of the application. More... | |
virtual void | redirectToConsole (bool) |
use or not the application console (overriden to add an action to show the console window) More... | |
![]() | |
MainWindow (QString title) | |
Constructor, the window title can be changed here, it is inconsistent to use setWindowTitle(). More... | |
virtual | ~MainWindow () |
destructor More... | |
void | setWindowSubtitle (QString) |
The subtitle is situated at the end of the title, on the title bar, is helps for example showing which file is currently selected. More... | |
QProgressBar * | getProgressBar () |
similar as statusBar() from QMainWindow but for the progress bar More... | |
void | showStatusBar (bool) |
show the status bar (by default it is hidden) More... | |
void | showConsole (bool) |
get the console window More... | |
virtual bool | addViewer (Viewer *) |
add a viewer (called by addDockViewer and setCentralViewer), returns true if not already added. More... | |
virtual void | showViewer (Viewer *, bool) |
set the visibility for the given viewer (if it is in a dock) More... | |
void | refreshViewers () |
Method uses to refresh all the viewer of the Main Window. More... | |
Protected Member Functions | |
void | initActions () |
initializes all QActions of the application More... | |
virtual void | initSettings () |
init ImpMainWindow specific settings (e.g. autoLoadLastOpened) More... | |
void | updateViewMenu () |
update the viewer's menu More... | |
Extension and ComponentPlugin attributes | |
void | updateOpenDirectoryMenu () |
void | updateRecentDocumentsMenu () |
update the recent document menu More... | |
![]() | |
virtual void | closeEvent (QCloseEvent *) |
overriden from QMainWindow, just connect to slotFileQuit More... | |
void | dragEnterEvent (QDragEnterEvent *event) |
called when a drag event started on the main window, accept drag only if file is MIME type text/uri-list More... | |
void | dragLeaveEvent (QDragLeaveEvent *event) |
called when the mouse leaves the widgets area during a drag/drop operation More... | |
void | dragMoveEvent (QDragMoveEvent *event) |
called when the mouse moves inside the widgets area during a drag/drop operation More... | |
void | dropEvent (QDropEvent *event) |
just call open with the dragged uri More... | |
Protected Attributes | |
QToolBar * | mainToolbar |
the main toolbar More... | |
![]() | |
QList< Viewer * > | viewers |
QMap< Viewer *, QDockWidget * > | dockWidgetMap |
the map that gives the corresponding QDockWidget for a given Viewer More... | |
Private Slots | |
void | openRecentDocuments () |
open a given recent document More... | |
Private Attributes | |
File menu attributes | |
QMenu * | fileMenu |
file_menu contains all items of the menubar entry "File" More... | |
QMenu * | fileOpenDataDirectoryMenu |
QAction * | fileOpen |
QAction * | fileClose |
QAction * | fileCloseAll |
QAction * | fileSave |
QAction * | fileSaveAs |
QAction * | fileSaveAll |
QAction * | fileQuit |
View menu attributes and action | |
QMenu * | viewMenu |
view_menu contains all items of the menubar entry "View" More... | |
QAction * | viewMenuBar |
QAction * | viewStatusBar |
QAction * | viewResetWindows |
Edit menu attributes | |
QAction * | editApplicationSettings |
QAction * | editClearSelection |
QAction * | saveHistory |
Other menu attributes | |
QMenu * | actionMenu |
the actionMenu. More... | |
QAction * | helpAboutApp |
QAction * | helpShowConsole |
action for the show console More... | |
File management attributes | |
is the last opened document re-opened at startup? | |
bool | autoLoadLastOpened |
QList< QAction * > | recentDocumentActions |
list of all the possible recent documents actions More... | |
QAction * | recentDocumentSeparator |
the separator between the last file menu action and the recent document actions More... | |
initialization/update methods | |
void | updateActionStates () |
void | initMenuBar () |
initMenuBar creates the menu_bar and inserts the menuitems More... | |
void | initToolBar () |
this creates the toolbars. More... | |
This Class describes the "historical" imp application.
It is a classical desktop application, with menubar, toolbar and statusbar.
ImpMainWindow::ImpMainWindow | ( | ) |
|
virtual |
destructor
|
virtual |
overriden from MainWindow to automatically load last opened document if needed
Reimplemented from camitk::MainWindow.
|
virtual |
add a Viewer to the application as a docking widget and specify where it has to be docked MainWindow takes the hand on the Viewer (it will be deleted when MainWindow is deleted).
This method calls addViewer(...).
Reimplemented from camitk::MainWindow.
|
slot |
settings slot
|
protected |
initializes all QActions of the application
|
private |
initMenuBar creates the menu_bar and inserts the menuitems
|
protectedvirtual |
init ImpMainWindow specific settings (e.g. autoLoadLastOpened)
Reimplemented from camitk::MainWindow.
|
private |
this creates the toolbars.
Change the toobar look and add new toolbars in this function.
|
slot |
|
privateslot |
open a given recent document
|
virtual |
use or not the application console (overriden to add an action to show the console window)
Reimplemented from camitk::MainWindow.
|
virtualslot |
|
slot |
reset all windows in their initial state
|
slot |
Save the history of action as a SCXML file.
|
virtual |
set the central Viewer of the application.
MainWindow takes the hand on the Viewer (it will be deleted when MainWindow is deleted) This method calls addViewer(...).
Reimplemented from camitk::MainWindow.
|
slot |
show or hide the menu bar
|
slot |
show or hide the status bar
|
slot |
show or hide the toolbar
|
protected |
set the current QAction enable state depending on the current selection
|
protected |
update the data directory menu depending on registered plugins
|
protected |
update the recent document menu
|
protected |
update the viewer's menu
|
private |
|
private |
|
private |
edit actions
|
private |
|
private |
|
private |
|
private |
file_menu contains all items of the menubar entry "File"
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
actions of the Help menu
|
private |
action for the show console
|
protected |
the main toolbar
|
private |
list of all the possible recent documents actions
|
private |
the separator between the last file menu action and the recent document actions
|
private |
|
private |
view_menu contains all items of the menubar entry "View"
|
private |
|
private |
|
private |