MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Slots | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
MAKLogger::DtLoggerPreviewWidget Class Reference
+ 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 DtStringrecordStreamPipeline () 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
 
DtLgrMediaRecordFileWidgetmyMediaRecordFileWidget
 
DtLgrMediaPlayFileWidgetmyMediaPlayFileWidget
 
DtLgrGuiMetaDataInterfacemyMetaDataReader
 
QString myFilename
 
QString myProtocol
 
bool mySaveMode
 
bool myDescriptionChanged
 
PreviewValidity myValidSelection
 
int myInitialDescriptionLength
 

Member Enumeration Documentation

Enumerator
VALIDITY_INVALID 
VALIDITY_EMPTY_STRING 
VALIDITY_NON_LGR_FILE 
VALIDITY_NO_FILE 
VALIDITY_DIRECTORY 
VALIDITY_VALID 

Constructor & Destructor Documentation

MAKLogger::DtLoggerPreviewWidget::DtLoggerPreviewWidget ( QWidget parent,
Qt::WindowFlags  f = Qt::SubWindow 
)

Ctor.

virtual MAKLogger::DtLoggerPreviewWidget::~DtLoggerPreviewWidget ( )
virtual

Dtor.

Member Function Documentation

virtual void MAKLogger::DtLoggerPreviewWidget::clearContent ( )
virtual

Clear content from all display widgets.

virtual QString MAKLogger::DtLoggerPreviewWidget::description ( )
virtual

Get the description string associated with the currently inspected logger file.

virtual bool MAKLogger::DtLoggerPreviewWidget::descriptionChanged ( )
virtual

Get whether the description string has been changed in the Edit panel.

virtual void MAKLogger::DtLoggerPreviewWidget::displayFomFileWidgets ( bool  show)
protectedvirtual

Set whether to display the FOM File text widget.

virtual void MAKLogger::DtLoggerPreviewWidget::displayFomModuleWidgets ( bool  show)
protectedvirtual

Set whether to display the FOM Module list widget.

virtual QString MAKLogger::DtLoggerPreviewWidget::durationString ( double  time)
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 void MAKLogger::DtLoggerPreviewWidget::enableMediaPlayWidget ( const DtLgrMediaPlayPipelineInfo pipelineInfo)
virtual

Enable media play widget.

virtual void MAKLogger::DtLoggerPreviewWidget::enableMediaRecordWidget ( const DtString pipelineConfiguration,
int  port 
)
virtual

Enable media record widget.

virtual void MAKLogger::DtLoggerPreviewWidget::getMediaPlayInfo ( DtLgrMediaPlayPipelineInfo pipelineInfo) const
virtual

Get the media play info.

virtual void MAKLogger::DtLoggerPreviewWidget::hideFomWidgets ( )
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 bool MAKLogger::DtLoggerPreviewWidget::isEditMode ( )
virtual

Set and get whether the current state is Edit Mode.

virtual void MAKLogger::DtLoggerPreviewWidget::onCancel ( )
protectedvirtualslot
virtual void MAKLogger::DtLoggerPreviewWidget::onDescriptionChanged ( )
protectedvirtualslot
virtual void MAKLogger::DtLoggerPreviewWidget::onOK ( )
protectedvirtualslot
virtual QString MAKLogger::DtLoggerPreviewWidget::paddedDescription ( )
protectedvirtual

Pads the description text if it has been changed and the new text is of lesser length than the initial text.

virtual PreviewValidity MAKLogger::DtLoggerPreviewWidget::previewInformation ( const QString &  )
virtualslot

If displaying information, previews the contents of the scenario in the scenario preview widget.

virtual const DtString& MAKLogger::DtLoggerPreviewWidget::recordStreamPipeline ( ) const
virtual

Return the record from stream pipeline (can be empty)

virtual void MAKLogger::DtLoggerPreviewWidget::setAppProtocol ( const QString &  protocol,
bool  display = false 
)
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.

virtual void MAKLogger::DtLoggerPreviewWidget::setBgColor ( QWidget widget,
QColor &  color 
)
protectedvirtual

Overloaded function to set the background color for all non-QWebView widgets.

virtual void MAKLogger::DtLoggerPreviewWidget::setBgColor ( QTextBrowser *  wview,
QColor &  color 
)
protectedvirtual

Overloaded function to set the background color for the QTextBrowser widget.

virtual void MAKLogger::DtLoggerPreviewWidget::setDescription ( const QString &  description)
virtual

Set the description text where a description already exists but is not saved.

virtual void MAKLogger::DtLoggerPreviewWidget::setEditableBackground ( )
protectedvirtual

Set the background color for the editable QTextEdit widget to off-white.

virtual void MAKLogger::DtLoggerPreviewWidget::setEnablePreviewButton ( bool  enable)
virtual

Set whether the Preview/Edit button is enabled or not.

virtual void MAKLogger::DtLoggerPreviewWidget::setNeedUpgradeForDescription ( bool  current,
int  loadedVersion 
)
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.

virtual void MAKLogger::DtLoggerPreviewWidget::setNonEditableBackground ( )
protectedvirtual

Set the background color for all non-editable widgets (those other than the QTextEdit widget) to light gray.

virtual void MAKLogger::DtLoggerPreviewWidget::setRecordStream ( bool  value)
virtual

set if we record by default.

virtual void MAKLogger::DtLoggerPreviewWidget::setSaveMode ( bool  save)
virtual

Set save mode true shows fom widgets, false hides them.

virtual void MAKLogger::DtLoggerPreviewWidget::setShowDescriptionOnly ( )
virtual

Set whether to show the description widget by itself.

Used for displaying Save, Save As, and Record As dialogs.

virtual void MAKLogger::DtLoggerPreviewWidget::setShowPreviewButton ( bool  show)
virtual

Set whether to show the Preview/Edit button.

Used for displaying all dialogs except the Open File dialog.

virtual QString MAKLogger::DtLoggerPreviewWidget::timeAndDateString ( double  time)
protectedvirtual

Convert the given time value into a Date/Time string.

virtual void MAKLogger::DtLoggerPreviewWidget::toggleEditMode ( )
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.

virtual void MAKLogger::DtLoggerPreviewWidget::trimRight ( QString &  description)
protectedvirtual

Trim all whitespace found at the end of the given text.

virtual PreviewValidity MAKLogger::DtLoggerPreviewWidget::validSelection ( )
virtual

Whether the currently inspected file is valid for opening.

Member Data Documentation

bool MAKLogger::DtLoggerPreviewWidget::myDescriptionChanged
protected
QTextEdit* MAKLogger::DtLoggerPreviewWidget::myDescriptionEdit
protected
QTextBrowser* MAKLogger::DtLoggerPreviewWidget::myDescriptionView
protected
QString MAKLogger::DtLoggerPreviewWidget::myFilename
protected
int MAKLogger::DtLoggerPreviewWidget::myInitialDescriptionLength
protected
DtLgrMediaPlayFileWidget* MAKLogger::DtLoggerPreviewWidget::myMediaPlayFileWidget
protected
DtLgrMediaRecordFileWidget* MAKLogger::DtLoggerPreviewWidget::myMediaRecordFileWidget
protected
DtLgrGuiMetaDataInterface* MAKLogger::DtLoggerPreviewWidget::myMetaDataReader
protected
QString MAKLogger::DtLoggerPreviewWidget::myProtocol
protected
bool MAKLogger::DtLoggerPreviewWidget::mySaveMode
protected
Ui_DtLgrTapePreviewWidgetUi MAKLogger::DtLoggerPreviewWidget::myUiImpl
PreviewValidity MAKLogger::DtLoggerPreviewWidget::myValidSelection
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Sep 2 15:35:22 EDT 2021 from SVN revision 233992
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)