The logger GUI's model. More...
Collaboration diagram for MAKLogger::DtLgrGuiModel:Public Types | |
| typedef std::map< QString, bool > | DtComponentVisibilityMap |
| typedef DtLgrExportDialog *(* | ExportDialogCreator )(DtLgrGuiModel *, QWidget *parent) |
Public Member Functions | |
| DtLgrGuiModel (DtLgrFullInterface *fullInterface) | |
| CTOR. | |
| virtual | ~DtLgrGuiModel () |
| DTOR. | |
| virtual void | initialize (DtLgrMainWindow *mainWindow, QObject *eventHandler) |
| Initialize the Model with any defaults. | |
| void | addExportType (QString exportName, int exportType) |
| void | addNewMenu (DtLgrMenu *menu, QString previousMenuName=QString()) |
| Add a new menu. | |
| void | addNewToolbar (QWidget *toolBar, QString toolBarName) |
| Add a new widget to the toolbar. | |
| virtual void | addGuiComponent (DtLgrGuiComponent *component) |
| Add a gui component. | |
| void | changeGuiComponentVisibility (QString componentName, bool visible) |
| Change a gui component's visibility. | |
| void | setGuiComponentInitialVisibility (QString componentName, bool visible) |
| Set the gui component's initial visibility. | |
| void | updateLgrComponent (QString componentName, bool visible) |
| Update a lgr gui component. | |
| void | showLgrComponent (QString componentName) |
| Show the component. | |
| void | hideLgrComponent (QString componentName) |
| Hide the component. | |
| void | getComponentsVisibility (DtComponentVisibilityMap &visibilityMap) const |
| Get list of component names and their visibility. | |
| void | addNewStatusWidget (QWidget *widget) |
| Add a new status widget. | |
| void | connectMenuItemToAction (QString menuName, QString menuItemName, QAction *action) |
| Connect a menu item trigger to an action. | |
| void | addExportDialog (QString exportType, ExportDialogCreator creator) |
| Add an export dialog. | |
| virtual QString | fileNameForDisplay () const |
| Get the file name to display. | |
| void | upgradeFile () |
| Convert the current file. | |
| void | repairFile (const QString &filename) |
| Repair the current file. | |
| void | exportCompleted () |
| Export logger file has completed. | |
| virtual void | revert () |
| Revert to original file. | |
| const DtLgrFullInterface * | fullInterface () const |
| Get an editor interface. | |
| DtLgrFullInterface * | fullInterface () |
| const DtLgrEditorInterface * | editorInterface () const |
| Get an editor interface. | |
| const DtLgrPlaybackInterface * | playbackInterface () const |
| Get a playback interface. | |
| const DtLgrRecordInterface * | recordInterface () const |
| Get a record interface. | |
| const DtLgrSimInterface * | simulationInterface () const |
| Get a simulation interface. | |
| const DtLgrSystemInterface * | systemInterface () const |
| Get a system interface. | |
| const DtLgrTimeInterface * | timeInterface () const |
| Get the current time interface. | |
| void | updateInterfaces () |
| Update the interfaces. | |
| void | deleteAssistant () |
| Clean up the help assistant. | |
| void | toggleConnection () |
| Toggle the connection. | |
| QObject * | eventHandler () |
| Get the event handler object. | |
| DtLgrMainWindow * | mainWindow () |
| Get the main window. | |
| void | crippleGui (bool disableAndMinimize) |
| Change the cripple GUI state. | |
| void | openUrl (const QString &urlText) |
| Open as URL. | |
| void | showHelp (const char *filename=0) |
| Show a help page, by default the main page. | |
| void | showUserGuide () |
| Show the user guide. | |
| void | showReleaseNotes () |
| Show the release notes. | |
| void | showClassDocs () |
| Show the class docs. | |
| void | showAboutBox () |
| Show the about box. | |
| void | launchVersionWebsite () |
| Launch the product's version web site. | |
| void | launchProductWebsite () |
| Launch the product web site. | |
| const DtTimeComponent & | displayTime () const |
| Get the model's time component used to control the GUI's display time. | |
| void | playbackFileEvent (const QString &filename) |
| Handle when a playback file is opened/closed. | |
| void | recordFileEvent (const QString &filename) |
| Handle when a record file is opened/closed. | |
| bool | isZoomEnabled () const |
| Get whether zooming is enabled. | |
| virtual bool | exit () |
| Attempt to exit the logger. | |
| virtual void | startLongOperation () |
| Start the long operation. | |
| virtual void | finishLongOperation () |
| Finish the long operation. | |
| virtual void | updateLongOperation () |
| Update the long operation. | |
| virtual void | cancelLongOperation () |
| Attempt to cancel a long operation. | |
| virtual QString | getLoggerFileFilter () const |
| Get the Logger file filter string. | |
| virtual QString | getDefaultLoggerFileDirectory () const |
| Get the default Logger file directory. | |
| QString | getSaveLoggerFileName (QWidget *parentWindow, QString title) |
| Query user for New Logger File name. | |
| virtual bool | openFile () |
| Attempt to open a file. Queries user to choose a file. | |
| bool | openFile (QString &filename) |
| Attempt to open a file, with a provided file name. | |
| virtual bool | saveFileAs () |
| Attempt to save a file (with a new name). | |
| virtual bool | saveFile () |
| Save a file. | |
| virtual bool | fileSaved () const |
| Is a file saved. | |
| virtual bool | closeFile () |
| Attempt to close a file (recording or playback). | |
| virtual void | exportSection (const DtString &fileFormat) |
| Export a section. | |
| virtual void | exportFile (const DtString &fileFormat) |
| Export the entire file. | |
| virtual void | recordAs () |
| Start a new recordingAs. | |
| void | recordFile (QString filename, bool overwrite) |
| Start a record file with a specific name, and overwrite permission. | |
| void | recordToMultipleFiles (QString filename) |
| Record to multiple files. | |
| void | queryUserOfEmptyFile () |
| Let use know of empty file. | |
| void | saveRecordingData () |
| Save the currently recorded data without stopping recording. | |
| void | setZoom () |
| Set the zoom settings. | |
| void | setZoom (const DtAbsoluteTime &start, const DtAbsoluteTime &end) |
| Set the zoom area by times. | |
| virtual void | setSpeed () |
| Set the speed of playback. | |
| virtual void | setStartStopTimes () |
| Set the start and stop times by Dialog. | |
| void | setStartStopTimes (const DtAbsoluteTime &start, const DtAbsoluteTime &stop) |
| Set the start and stop times. | |
| virtual void | stop () |
| Stop playback and recording. | |
| virtual void | clearSelection () |
| Clear using the current selection. | |
| virtual void | cutSelection () |
| Cut using the current selection. | |
| virtual void | mergeInFile () |
| Merge in a new file. | |
| virtual void | appendFile () |
| Append a file to the end. | |
| virtual void | prefixFile () |
| Prefix a file to the beginning. | |
| virtual void | offsetTime () |
| Offset the time in a file. | |
Protected Types | |
|
typedef std::map< QString, DtLgrGuiComponent * > | GuiComponentMap |
|
typedef std::map< QString, ExportDialogCreator > | ExportDialogMap |
| typedef std::set< QString > | ExportTypes |
Protected Member Functions | |
| void | longOperationChangedCallback (const bool &state) |
| void | longOperationMessageChangedCallback (const DtString &message) |
| void | longOperationProgressChangedCallback (const int &percent) |
| QString | showExportDialog (QString fileFormat, QString filter, QString dialogName) |
| QString | browseOpenLoggerFile (QString title) |
Protected Attributes | |
| DtLgrMainWindow * | myMainWindow |
| QObject * | myEventHandler |
| DtLgrFullInterface * | myFullInterface |
| DtBoundsSlider * | myTimeControl |
| DtBoundsSlider * | myZoomControl |
| QProcess * | myHelpAssistant |
| DtTimeComponent * | myTimeComponent |
| GuiComponentMap | myComponents |
| DtComponentVisibilityMap | myComponentsInitialVisibility |
| ExportDialogMap | myExportDialogMap |
| ExportTypes | myExportTypes |
| QStyle * | myNewDockStyle |
| bool | myExitingFlag |
| DtFilename | myRepairedFilename |
| QString | myDataViewName |
The logger GUI's model.
| MAKLogger::DtLgrGuiModel::DtLgrGuiModel | ( | DtLgrFullInterface * | fullInterface | ) |
CTOR.
| Input | |
| fullInterface | A newly allocated full interface which the model will own. |
| const DtTimeComponent& MAKLogger::DtLgrGuiModel::displayTime | ( | ) | const |
Get the model's time component used to control the GUI's display time.
| virtual bool MAKLogger::DtLgrGuiModel::exit | ( | ) | [virtual] |
Attempt to exit the logger.
| true | if the logger will attempt to exit. false if the exist was canceled. |
| virtual bool MAKLogger::DtLgrGuiModel::fileSaved | ( | ) | const [virtual] |
Is a file saved.
| True | if the file is saved, or no file is loaded. |
| False | if the file is not saved. |
| virtual void MAKLogger::DtLgrGuiModel::initialize | ( | DtLgrMainWindow * | mainWindow, |
| QObject * | eventHandler | ||
| ) | [virtual] |
Initialize the Model with any defaults.
| Input | |
| mainWindow,a | valid pointer to the main window widget. |
| eventHandler,a | valid pointer to the eventHandler. |
| DtInvalidInput | if either input is NULL. |
| virtual void MAKLogger::DtLgrGuiModel::recordAs | ( | ) | [virtual] |
Start a new recordingAs.
This function will query the user with a save file dialog.
| void MAKLogger::DtLgrGuiModel::setZoom | ( | ) |
Set the zoom settings.
Typically querying the user via a dialog.
| const DtLgrTimeInterface* MAKLogger::DtLgrGuiModel::timeInterface | ( | ) | const |
Get the current time interface.
This interface will change depending on whether the logger is playing or recording.