![]() |
MAK Data Logger API Documentation for DIS
|
The main window for the logger application. More...
Inheritance diagram for MAKLogger::DtLgrMainWindow:
Collaboration diagram for MAKLogger::DtLgrMainWindow:Public Slots | |
| virtual void | show () |
Public Member Functions | |
| DtLgrMainWindow (DtLgrGuiModel *model) | |
| CTOR. More... | |
| virtual | ~DtLgrMainWindow () |
| DTOR. More... | |
| virtual void | saveGuiConfiguration (bool forceSave=false) |
| Save the GUI configuration. More... | |
| virtual void | loadGuiConfiguration () |
| Loads the GUI configuration (window sizes, docking options) More... | |
| virtual bool | getConfigurationDirectory (DtFilename &configPath, bool makeDirEnabled) |
| Get the configuration directory. More... | |
| virtual void | updateTitleBar (const DtString &loggerName) |
| Update the title bar. More... | |
| bool | yesNoQuestion (const QString &question) |
| Ask the user a question. More... | |
| int | yesNoCancelQuestion (const QString &question) |
| Ask the user a yes,no question that can be canceled. More... | |
| void | errorMessage (const QString &message) |
| Display an error message which blocks user interaction until acknowledged. More... | |
| void | showProgress (const QString &name, bool canBeCanceled) |
| Show progress indicator. More... | |
| void | updateProgress (const QString &msg, int progress) |
| Update progress indicator. More... | |
| void | finishProgress () |
| Finish the progress indicator. More... | |
| const DtLgrGuiModel * | guiModel () const |
| Get the GUI model. More... | |
| MAKCommonWidgets::DtDynamicMenuBar & | dynamicMenuBar () |
| Get the dynamic menu bar for this window. More... | |
| void | addMenu (QString previousMenuName, DtLgrMenu *menu) |
| virtual void | setVisible (bool on) |
| Override visibility. More... | |
| void | setWidgetIconStyleManager (DtWidgetIconStyleManager *manager) |
| Set the widget icon style manager. More... | |
| DtWidgetIconStyleManager * | widgetIconStyleManager () |
| Get the widget icon style manager. More... | |
| virtual std::vector< std::pair < QColor, QColor > > | iconColorMappingsByMode (QIcon::Mode modeToGetMappingsFor) const |
| Get the color mappings to use for the provided QIcon::Mode. More... | |
| virtual void | invalidateIconColorMappings () |
| Invalidate the color mappings to use for application icons This is invoked by the parent application when new stylesheet(s) are being used. More... | |
Static Public Attributes | |
| static QString | theTitleBarText |
| static QString | theShortTitleBarText |
| static QString | theGuiConfigFileName |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *ce) |
| void | printMessage (const DtString &message) |
| void | closeMainWindow (const bool &closeFlag) |
| bool | savedState () |
| virtual void | dragEnterEvent (QDragEnterEvent *event) override |
| override for the QWidget dragEnterEvent function, used to determine if the dropped item is a lgr file. More... | |
| virtual void | dropEvent (QDropEvent *event) override |
| override for the QWidget dropEvent function, used to load the dropped lgr file. More... | |
Protected Attributes | |
| DtLgrGuiModel * | myGuiModel |
| MAKCommonWidgets::DtDynamicMenuBar * | myMenuBar |
| QProgressDialog * | myProgressDialog |
| bool | myAlreadySaved |
| bool | myRegisteredFileDropFlag |
| QColor | myActualIconPrimaryColor |
| QColor | myNormalIconPrimaryColor |
| QColor | myDisabledIconPrimaryColor |
| QColor | mySelectedIconPrimaryColor |
| QColor | myActiveIconPrimaryColor |
| DtWidgetIconStyleManager * | myWidgetIconStyleManager |
Properties | |
| QColor | ActualIconPrimaryColor |
| QColor | NormalIconPrimaryColor |
| QColor | DisabledIconPrimaryColor |
| QColor | SelectedIconPrimaryColor |
| QColor | ActiveIconPrimaryColor |
The main window for the logger application.
| MAKLogger::DtLgrMainWindow::DtLgrMainWindow | ( | DtLgrGuiModel * | model | ) |
CTOR.
|
virtual |
DTOR.
| void MAKLogger::DtLgrMainWindow::addMenu | ( | QString | previousMenuName, |
| DtLgrMenu * | menu | ||
| ) |
|
protected |
|
protected |
|
overrideprotectedvirtual |
override for the QWidget dragEnterEvent function, used to determine if the dropped item is a lgr file.
|
overrideprotectedvirtual |
override for the QWidget dropEvent function, used to load the dropped lgr file.
| MAKCommonWidgets::DtDynamicMenuBar& MAKLogger::DtLgrMainWindow::dynamicMenuBar | ( | ) |
Get the dynamic menu bar for this window.
| void MAKLogger::DtLgrMainWindow::errorMessage | ( | const QString & | message | ) |
Display an error message which blocks user interaction until acknowledged.
| void MAKLogger::DtLgrMainWindow::finishProgress | ( | ) |
Finish the progress indicator.
|
virtual |
Get the configuration directory.
If enabled, call will make the directory (if it does not exist). Return bool: directory exists or was created successfully?
| const DtLgrGuiModel* MAKLogger::DtLgrMainWindow::guiModel | ( | ) | const |
Get the GUI model.
|
virtual |
Get the color mappings to use for the provided QIcon::Mode.
|
virtual |
Invalidate the color mappings to use for application icons This is invoked by the parent application when new stylesheet(s) are being used.
|
virtual |
Loads the GUI configuration (window sizes, docking options)
|
protected |
|
protected |
|
virtual |
Save the GUI configuration.
We do this when we shutdown. Save performed once unless forced.
|
virtual |
Override visibility.
| void MAKLogger::DtLgrMainWindow::setWidgetIconStyleManager | ( | DtWidgetIconStyleManager * | manager | ) |
Set the widget icon style manager.
|
virtualslot |
| void MAKLogger::DtLgrMainWindow::showProgress | ( | const QString & | name, |
| bool | canBeCanceled | ||
| ) |
Show progress indicator.
| void MAKLogger::DtLgrMainWindow::updateProgress | ( | const QString & | msg, |
| int | progress | ||
| ) |
Update progress indicator.
|
virtual |
Update the title bar.
| DtWidgetIconStyleManager* MAKLogger::DtLgrMainWindow::widgetIconStyleManager | ( | ) |
Get the widget icon style manager.
| int MAKLogger::DtLgrMainWindow::yesNoCancelQuestion | ( | const QString & | question | ) |
Ask the user a yes,no question that can be canceled.
| 0 | Answer was yes. |
| 1 | answer was no. |
| 2 | answer was cancel. |
| bool MAKLogger::DtLgrMainWindow::yesNoQuestion | ( | const QString & | question | ) |
Ask the user a question.
| true | Answer was yes. |
| false | answer was not yes. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
| QColor MAKLogger::DtLgrMainWindow::ActiveIconPrimaryColor |
| QColor MAKLogger::DtLgrMainWindow::ActualIconPrimaryColor |
| QColor MAKLogger::DtLgrMainWindow::DisabledIconPrimaryColor |
| QColor MAKLogger::DtLgrMainWindow::NormalIconPrimaryColor |
| QColor MAKLogger::DtLgrMainWindow::SelectedIconPrimaryColor |