![]() |
MAK Data Logger API Documentation for DIS
|
Inheritance diagram for MAKLogger::DtLoggerPreviewWidget:
Collaboration diagram for MAKLogger::DtLoggerPreviewWidget:Public Types | |
| enum | PreviewValidity { VALIDITY_INVALID, VALIDITY_EMPTY_STRING, VALIDITY_NON_LGR_FILE, VALIDITY_NO_FILE, VALIDITY_DIRECTORY, VALIDITY_VALID } |
Public Slots | |
| virtual void | toggleEditMode () |
| Toggle the preview widget between Preview and Edit mode. More... | |
| virtual PreviewValidity | previewInformation (const QString &) |
| If displaying information, previews the contents of the scenario in the scenario preview widget. More... | |
Public Member Functions | |
| DtLoggerPreviewWidget (QWidget *parent, Qt::WindowFlags f=Qt::SubWindow) | |
| Ctor. More... | |
| virtual | ~DtLoggerPreviewWidget () |
| Dtor. More... | |
| virtual void | setAppProtocol (const QString &protocol, bool display=false) |
| Set the protocol string for the current application run. More... | |
| virtual bool | isEditMode () |
| Set and get whether the current state is Edit Mode. More... | |
| virtual void | setSaveMode (bool save) |
| Set save mode true shows fom widgets, false hides them. More... | |
| virtual void | setShowDescriptionOnly () |
| Set whether to show the description widget by itself. More... | |
| virtual void | setShowPreviewButton (bool show) |
| Set whether to show the Preview/Edit button. More... | |
| virtual void | setEnablePreviewButton (bool enable) |
| Set whether the Preview/Edit button is enabled or not. More... | |
| virtual void | setNeedUpgradeForDescription (bool current, int loadedVersion) |
| Set whether the file format is current. More... | |
| virtual void | setDescription (const QString &description) |
| Set the description text where a description already exists but is not saved. More... | |
| virtual QString | description () |
| Get the description string associated with the currently inspected logger file. More... | |
| virtual bool | descriptionChanged () |
| Get whether the description string has been changed in the Edit panel. More... | |
| virtual PreviewValidity | validSelection () |
| Whether the currently inspected file is valid for opening. More... | |
| virtual void | clearContent () |
| Clear content from all display widgets. More... | |
| virtual void | enableMediaPlayWidget (const DtLgrMediaPlayPipelineInfo &pipelineInfo) |
| Enable media play widget. More... | |
| virtual void | enableMediaRecordWidget (const DtString &pipelineConfiguration, int port) |
| Enable media record widget. More... | |
| virtual void | getMediaPlayInfo (DtLgrMediaPlayPipelineInfo &pipelineInfo) const |
| Get the media play info. More... | |
| virtual const DtString & | recordStreamPipeline () const |
| Return the record from stream pipeline (can be empty) More... | |
| virtual void | setRecordStream (bool value) |
| set if we record by default. More... | |
Public Attributes | |
| Ui_DtLgrTapePreviewWidgetUi | myUiImpl |
Protected Slots | |
| virtual void | onOK () |
| virtual void | onCancel () |
| virtual void | onDescriptionChanged () |
Protected Member Functions | |
| virtual QString | timeAndDateString (double time) |
| Convert the given time value into a Date/Time string. More... | |
| virtual QString | durationString (double time) |
| Convert the given time value into a recording duration string in the form [DD:]HH:MM:SS.fff, where DD is days and fff is the fractional part of a second. More... | |
| virtual void | displayFomFileWidgets (bool show) |
| Set whether to display the FOM File text widget. More... | |
| virtual void | displayFomModuleWidgets (bool show) |
| Set whether to display the FOM Module list widget. More... | |
| virtual void | hideFomWidgets () |
| Set to hide all FOM widgets, which includes the FOM File text widget and its label, along with the FOM Module list widget and its label. More... | |
| virtual void | setEditableBackground () |
| Set the background color for the editable QTextEdit widget to off-white. More... | |
| virtual void | setNonEditableBackground () |
| Set the background color for all non-editable widgets (those other than the QTextEdit widget) to light gray. More... | |
| virtual void | setBgColor (QWidget *widget, QColor &color) |
| Overloaded function to set the background color for all non-QWebView widgets. More... | |
| virtual void | setBgColor (QTextBrowser *wview, QColor &color) |
| Overloaded function to set the background color for the QTextBrowser widget. More... | |
| virtual QString | paddedDescription () |
| Pads the description text if it has been changed and the new text is of lesser length than the initial text. More... | |
| virtual void | trimRight (QString &description) |
| Trim all whitespace found at the end of the given text. More... | |
Protected Attributes | |
| QTextBrowser * | myDescriptionView |
| QTextEdit * | myDescriptionEdit |
| DtLgrMediaRecordFileWidget * | myMediaRecordFileWidget |
| DtLgrMediaPlayFileWidget * | myMediaPlayFileWidget |
| DtLgrGuiMetaDataInterface * | myMetaDataReader |
| QString | myFilename |
| QString | myProtocol |
| bool | mySaveMode |
| bool | myDescriptionChanged |
| PreviewValidity | myValidSelection |
| int | myInitialDescriptionLength |
| MAKLogger::DtLoggerPreviewWidget::DtLoggerPreviewWidget | ( | QWidget * | parent, |
| Qt::WindowFlags | f = Qt::SubWindow |
||
| ) |
Ctor.
|
virtual |
Dtor.
|
virtual |
Clear content from all display widgets.
|
virtual |
Get the description string associated with the currently inspected logger file.
|
virtual |
Get whether the description string has been changed in the Edit panel.
|
protectedvirtual |
Set whether to display the FOM File text widget.
|
protectedvirtual |
Set whether to display the FOM Module list widget.
|
protectedvirtual |
Convert the given time value into a recording duration string in the form [DD:]HH:MM:SS.fff, where DD is days and fff is the fractional part of a second.
|
virtual |
Enable media play widget.
|
virtual |
Enable media record widget.
|
virtual |
Get the media play info.
|
protectedvirtual |
Set to hide all FOM widgets, which includes the FOM File text widget and its label, along with the FOM Module list widget and its label.
|
virtual |
Set and get whether the current state is Edit Mode.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtual |
Pads the description text if it has been changed and the new text is of lesser length than the initial text.
|
virtualslot |
If displaying information, previews the contents of the scenario in the scenario preview widget.
|
virtual |
Return the record from stream pipeline (can be empty)
|
virtual |
Set the protocol string for the current application run.
Used to set file validity to enable the Open button by checking against the new file's protocol string. If the optional bool is passed as true, the protocol string is displayed as well. This is used when there is only a temporary file created during a Record process without a Save.
|
protectedvirtual |
Overloaded function to set the background color for all non-QWebView widgets.
|
protectedvirtual |
Overloaded function to set the background color for the QTextBrowser widget.
|
virtual |
Set the description text where a description already exists but is not saved.
|
protectedvirtual |
Set the background color for the editable QTextEdit widget to off-white.
|
virtual |
Set whether the Preview/Edit button is enabled or not.
|
virtual |
Set whether the file format is current.
On false, if the loaded file version requires an upgrade for writing a description, this will disable the Preview/Edit button and add a tooltip stating that it is necessary to upgrade the logger file in order to add a description.
|
protectedvirtual |
Set the background color for all non-editable widgets (those other than the QTextEdit widget) to light gray.
|
virtual |
set if we record by default.
|
virtual |
Set save mode true shows fom widgets, false hides them.
|
virtual |
Set whether to show the description widget by itself.
Used for displaying Save, Save As, and Record As dialogs.
|
virtual |
Set whether to show the Preview/Edit button.
Used for displaying all dialogs except the Open File dialog.
|
protectedvirtual |
Convert the given time value into a Date/Time string.
|
virtualslot |
Toggle the preview widget between Preview and Edit mode.
Preview mode shows an Edit button and the QWebView widget, while Edit mode shows a Preview button and the QTextEdit widget.
|
protectedvirtual |
Trim all whitespace found at the end of the given text.
|
virtual |
Whether the currently inspected file is valid for opening.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| Ui_DtLgrTapePreviewWidgetUi MAKLogger::DtLoggerPreviewWidget::myUiImpl |
|
protected |