![]() |
MAK Data Logger API Documentation for HLA
|
The logger GUI's model. More...
Inheritance diagram for MAKLogger::DtLgrGuiModel:
Collaboration diagram for MAKLogger::DtLgrGuiModel:Public Types | |
| typedef std::map< QString, bool > | DtComponentVisibilityMap |
| typedef DtLgrExportDialog *(* | ExportDialogCreator )(DtLgrGuiModel *, QWidget *parent) |
Public Member Functions | |
| DT_VIRTUAL_CTR (DtLgrGuiModel,(DtLgrAppGui *appGui)) | |
| CTOR. | |
| virtual | ~DtLgrGuiModel () |
| DTOR. | |
| virtual void | initialize (DtLgrMainWindow *mainWindow, QObject *eventHandler) |
| Initialize the Model with any defaults. | |
| virtual void | addExportType (QString exportName, int exportType) |
| virtual void | addNewMenu (DtLgrMenu *menu, QString previousMenuName=QString()) |
| Add a new menu. | |
| virtual void | addNewToolbar (QWidget *toolBar, QString toolBarName) |
| Add a new widget to the toolbar. | |
| virtual void | addGuiComponent (DtLgrGuiComponent *component, bool addAbove=true) |
| Add a gui component. | |
| virtual void | removeGuiComponent (QString componentName) |
| Remove a gui component. | |
| virtual DtLgrGuiComponent * | guiComponent (QString componentName) |
| Returns the gui component with the given name. | |
| virtual void | changeGuiComponentVisibility (QString componentName, bool visible) |
| Change a gui component's visibility. | |
| virtual void | setGuiComponentInitialVisibility (QString componentName, bool visible) |
| Set the gui component's initial visibility. | |
| virtual void | updateLgrComponent (QString componentName, bool visible) |
| Update a lgr gui component. | |
| virtual void | showLgrComponent (QString componentName) |
| Show the component. | |
| virtual void | hideLgrComponent (QString componentName) |
| Hide the component. | |
| virtual void | getComponentsVisibility (DtComponentVisibilityMap &visibilityMap) const |
| Get list of component names and their visibility. | |
| virtual void | addNewStatusWidget (QWidget *widget) |
| Add a new status widget. | |
| virtual void | connectMenuItemToAction (QString menuName, QString menuItemName, QAction *action) |
| Connect a menu item trigger to an action. | |
| virtual void | addExportDialog (QString exportType, ExportDialogCreator creator) |
| Add an export dialog. | |
| virtual QString | fileNameForDisplay () const |
| Get the file name to display. | |
| virtual void | upgradeFile () |
| Convert the current file. | |
| virtual void | repairFile (const QString &filename, bool queryRepair) |
| Repair the current file. | |
| virtual void | recoverLastPacket (const QString &filename) |
| Begin repair of file by seeking the last packet. | |
| virtual void | exportCompleted () |
| Export logger file has completed. | |
| virtual void | revert () |
| Revert to original file. | |
| virtual void | updateInterfaces () |
| Update the interfaces. | |
| virtual void | deleteAssistant () |
| Clean up the help assistant. | |
| virtual void | toggleConnection () |
| Toggle the connection. | |
| virtual bool | disconnect (QWidget *dialog=0) |
| Disconnect the connection Return: disconnect was carried out? | |
| virtual QObject * | eventHandler () |
| Get the event handler object. | |
| virtual DtLgrMainWindow * | mainWindow () |
| Get the main window. | |
| virtual void | crippleGui (bool disableAndMinimize) |
| Change the cripple GUI state. | |
| virtual void | openUrl (const QString &urlText) |
| Open as URL. | |
| virtual void | showHelp (const char *filename=0) |
| Show a help page, by default the main page. | |
| virtual void | showUserGuide () |
| Show the user guide. | |
| virtual void | showReleaseNotes () |
| Show the release notes. | |
| virtual void | showClassDocs () |
| Show the class docs. | |
| virtual void | showAboutBox () |
| Show the about box. | |
| virtual void | launchVersionWebsite () |
| Launch the product's version web site. | |
| virtual void | launchProductWebsite () |
| Launch the product web site. | |
| virtual const DtTimeComponent & | displayTime () const |
| Get the model's time component used to control the GUI's display time. | |
| virtual void | playbackFileEvent (const QString &filename) |
| Handle when a playback file is opened/closed. | |
| virtual void | recordFileEvent (const QString &filename) |
| Handle when a record file is opened/closed. | |
| virtual bool | isZoomEnabled () const |
| Get whether zooming is enabled. | |
| virtual void | setFollowMode (bool enableFollow) |
| Enable follow mode. | |
| virtual void | setFollowInterval (double interval) |
| Set follow interval. | |
| virtual bool | isFollowMode () const |
| Get the follow mode. | |
| virtual void | jumpTimeChanged (const DtAbsoluteTime &jumpTime) |
| Handle when a time jump is made. | |
| 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. | |
| virtual QString | getSaveLoggerFileName (QWidget *parentWindow, QString title, QString &description, bool &descriptionChanged) |
| Query user for New Logger File name. | |
| virtual bool | openFile () |
| Attempt to open a file. Queries user to choose a file. | |
| virtual bool | openFile (QString &filename) |
| Attempt to open a file, with a provided file name. | |
| virtual bool | needDifferentConnectionSettings (DtString &filename) |
| Check if playback file and connection settings are compatible. | |
| virtual bool | saveFileAs (bool reopenAfterSave=true) |
| Attempt to save a file (with a new name). | |
| virtual void | saveFile (bool reopenAfterSave=true) |
| 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 bool | openLoggerInformation () |
| Open the logger information dialog. | |
| virtual void | recordAs () |
| Start a new recordingAs. | |
| virtual void | recordFile (QString filename, QString description, bool overwrite) |
| Start a record file with a specific name, and overwrite permission. | |
| virtual void | queryToRecordMultipleFiles () |
| Get the Logger file filter string. | |
| virtual void | recordToMultipleFiles (QString filename, QString description) |
| Record to multiple files. | |
| virtual bool | queryStopRecordingEmptyTape () |
| Recording is being stopped with no data. | |
| virtual void | saveRecordingData () |
| Save the currently recorded data without stopping recording. | |
| virtual void | setZoom () |
| Set the zoom settings. | |
| virtual 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. | |
| virtual 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. | |
| virtual const DtLgrFullInterface * | fullInterface () const |
| Get the full interface. | |
| virtual DtLgrFullInterface * | fullInterface () |
| Get the full interface. | |
| virtual const DtLgrAppGui * | appGui () const |
| Get the application GUI. | |
| virtual DtLgrAppGui * | appGui () |
| Get the application GUI. | |
| virtual const DtLgrEditorInterface * | editorInterface () const |
| Get an editor interface. | |
| virtual DtLgrEditorInterface * | editorInterface () |
| Get an editor interface. | |
| virtual const DtLgrPlaybackInterface * | playbackInterface () const |
| Get a playback interface. | |
| virtual DtLgrPlaybackInterface * | playbackInterface () |
| Get a playback interface. | |
| virtual const DtLgrRecordInterface * | recordInterface () const |
| Get a record interface. | |
| virtual DtLgrRecordInterface * | recordInterface () |
| Get a record interface. | |
| virtual const DtLgrSimInterface * | simulationInterface () const |
| Get a simulation interface. | |
| virtual DtLgrSimInterface * | simulationInterface () |
| Get a simulation interface. | |
| virtual const DtLgrSystemInterface * | systemInterface () const |
| Get a system interface. | |
| virtual DtLgrSystemInterface * | systemInterface () |
| Get a system interface. | |
| virtual const DtLgrTimeInterface * | timeInterface () const |
| Get the current time interface. | |
| virtual DtLgrTimeInterface * | timeInterface () |
| Get the current time interface. | |
Protected Types | |
| typedef std::map< QString, DtLgrGuiComponent * > | GuiComponentMap |
| typedef std::map< QString, ExportDialogCreator > | ExportDialogMap |
| typedef std::set< QString > | ExportTypes |
Protected Member Functions | |
| virtual void | longOperationChangedCallback (const bool &state) |
| virtual void | longOperationMessageChangedCallback (const DtString &message) |
| virtual void | longOperationProgressChangedCallback (const int &percent) |
| virtual QString | showExportDialog (QString fileFormat, QString filter, QString dialogName) |
| virtual QString | browseOpenLoggerFile (QString title) |
The logger GUI's model.
| typedef std::map<QString,bool> MAKLogger::DtLgrGuiModel::DtComponentVisibilityMap |
| typedef DtLgrExportDialog*(* MAKLogger::DtLgrGuiModel::ExportDialogCreator)(DtLgrGuiModel *, QWidget *parent) |
|
protected |
|
protected |
|
protected |
|
virtual |
DTOR.
|
virtual |
Add an export dialog.
|
virtual |
|
virtual |
Add a gui component.
Indicate whether the component should be added above or below the existing stack.
|
virtual |
Add a new menu.
|
virtual |
Add a new status widget.
|
virtual |
Add a new widget to the toolbar.
|
virtual |
Append a file to the end.
|
virtual |
Get the application GUI.
|
virtual |
Get the application GUI.
|
protectedvirtual |
|
virtual |
Attempt to cancel a long operation.
|
virtual |
Change a gui component's visibility.
|
virtual |
Clear using the current selection.
|
virtual |
Attempt to close a file (recording or playback).
|
virtual |
Connect a menu item trigger to an action.
|
virtual |
Change the cripple GUI state.
|
virtual |
Cut using the current selection.
|
virtual |
Clean up the help assistant.
|
virtual |
Disconnect the connection Return: disconnect was carried out?
Reimplemented in MAKLogger::DtLgrHlaGuiModel.
|
virtual |
Get the model's time component used to control the GUI's display time.
| MAKLogger::DtLgrGuiModel::DT_VIRTUAL_CTR | ( | DtLgrGuiModel | , |
| (DtLgrAppGui *appGui) | |||
| ) |
CTOR.
| Input | |
| fullInterface | A newly allocated full interface which the model will own. |
|
virtual |
Get an editor interface.
|
virtual |
Get an editor interface.
|
virtual |
Get the event handler object.
|
virtual |
Attempt to exit the logger.
| true | if the logger will attempt to exit. false if the exist was canceled. |
|
virtual |
Export logger file has completed.
|
virtual |
Export the entire file.
|
virtual |
Export a section.
|
virtual |
Get the file name to display.
|
virtual |
Is a file saved.
| True | if the file is saved, or no file is loaded. |
| False | if the file is not saved. |
|
virtual |
Finish the long operation.
|
virtual |
Get the full interface.
|
virtual |
Get the full interface.
|
virtual |
Get list of component names and their visibility.
|
virtual |
Get the default Logger file directory.
|
virtual |
Get the Logger file filter string.
|
virtual |
Query user for New Logger File name.
|
virtual |
Returns the gui component with the given name.
|
virtual |
Hide the component.
|
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 |
Get the follow mode.
|
virtual |
Get whether zooming is enabled.
|
virtual |
Handle when a time jump is made.
|
virtual |
Launch the product web site.
|
virtual |
Launch the product's version web site.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Get the main window.
|
virtual |
Merge in a new file.
|
virtual |
Check if playback file and connection settings are compatible.
|
virtual |
Offset the time in a file.
|
virtual |
Attempt to open a file. Queries user to choose a file.
|
virtual |
Attempt to open a file, with a provided file name.
|
virtual |
Open the logger information dialog.
|
virtual |
Open as URL.
|
virtual |
Handle when a playback file is opened/closed.
|
virtual |
Get a playback interface.
|
virtual |
Get a playback interface.
|
virtual |
Prefix a file to the beginning.
|
virtual |
Recording is being stopped with no data.
Prompt user to double check that recording can stop producing an empty tape. Return - recording was stopped?
|
virtual |
Get the Logger file filter string.
|
virtual |
Start a new recordingAs.
This function will query the user with a save file dialog.
|
virtual |
Start a record file with a specific name, and overwrite permission.
|
virtual |
Handle when a record file is opened/closed.
|
virtual |
Get a record interface.
|
virtual |
Get a record interface.
|
virtual |
Record to multiple files.
|
virtual |
Begin repair of file by seeking the last packet.
|
virtual |
Remove a gui component.
|
virtual |
Repair the current file.
|
virtual |
Revert to original file.
|
virtual |
Save a file.
|
virtual |
Attempt to save a file (with a new name).
|
virtual |
Save the currently recorded data without stopping recording.
|
virtual |
Set follow interval.
|
virtual |
Enable follow mode.
|
virtual |
Set the gui component's initial visibility.
|
virtual |
Set the speed of playback.
|
virtual |
Set the start and stop times by Dialog.
|
virtual |
Set the start and stop times.
|
virtual |
Set the zoom settings.
Typically querying the user via a dialog.
|
virtual |
Set the zoom area by times.
|
virtual |
Show the about box.
|
virtual |
Show the class docs.
|
protectedvirtual |
|
virtual |
Show a help page, by default the main page.
|
virtual |
Show the component.
|
virtual |
Show the release notes.
|
virtual |
Show the user guide.
|
virtual |
Get a simulation interface.
|
virtual |
Get a simulation interface.
|
virtual |
Start the long operation.
|
virtual |
Stop playback and recording.
|
virtual |
Get a system interface.
|
virtual |
Get a system interface.
|
virtual |
Get the current time interface.
This interface will change depending on whether the logger is playing or recording.
|
virtual |
Get the current time interface.
This interface will change depending on whether the logger is playing or recording.
|
virtual |
Toggle the connection.
|
virtual |
Update the interfaces.
|
virtual |
Update a lgr gui component.
|
virtual |
Update the long operation.
|
virtual |
Convert the current file.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |