MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
MAKLogger::DtLoggerTapeDialog Class Reference

The Logger Tape File Dialog. More...

+ Inheritance diagram for MAKLogger::DtLoggerTapeDialog:
+ Collaboration diagram for MAKLogger::DtLoggerTapeDialog:

Public Slots

virtual void showLoggerTapeInfo ()
 Slot to toggle showing the dialog preview widget panel, depending on whether the dialog's "Show more logger information" button has been clicked. More...
 

Public Member Functions

 DtLoggerTapeDialog (QWidget *parent, QString directory, QString caption, AcceptMode mode, Qt::WindowFlags f=Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowTitleHint|Qt::WindowSystemMenuHint)
 CTOR. More...
 
virtual ~DtLoggerTapeDialog ()
 DTOR. More...
 
virtual void setFileWithPath (const QString fileWithPath)
 Set the currently opened file. More...
 
virtual void setShowDescriptionOnly ()
 Set whether this file dialog will only show the description meta data widget. More...
 
virtual void setShowPreviewButton (bool show)
 Set whether the Preview/Edit button should be shown in the meta data widget panel. 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 setShowEditPanel ()
 Set to toggle into edit mode if not already there. More...
 
virtual void setAppProtocol (const QString &protocol, bool display=false)
 Set the protocol string for the current application run. More...
 
virtual void setDescriptionText (const QString &description)
 Set the description text where a description already exists but is not saved. More...
 
virtual QString descriptionText ()
 Get the current description text from the dialog preview widget panel. More...
 
virtual bool descriptionChanged ()
 Get whether the description was changed in the dialog preview widget panel. More...
 
virtual void setMediaPlayConfiguration (const DtLgrMediaPlayPipelineInfo &pipelineInfo)
 Set the media play in window and to stream pipeline configurations. More...
 
virtual void getMediaPlayInfo (DtLgrMediaPlayPipelineInfo &pipelineInfo) const
 Get the media play pipeline info. More...
 
virtual void setMediaRecordConfiguration (const DtString &configuration, int port)
 Set the media record from stream configuration. More...
 
virtual bool getRecordStreamPipeline (DtString &streamPipeline) const
 Get the play to / record from stream pipelines Return true if there were any pipelines to collect. More...
 
virtual void setRecordStream (bool value)
 set if we record by default. More...
 

Protected Slots

virtual void fileSelectionChanged (const QString &file)
 Slot to take the new file selection from the dialog's file list widget and display the file's meta data in the preview widget panel. More...
 
virtual void fileNameTextChanged (const QString &text)
 Slot to check for typed filename. More...
 
virtual void onFolderSelectionChanged (int index)
 If the selection in the folder combox box is changed, need to clear the preview display. More...
 
virtual void onNavigateButtonClicked ()
 If the back, forward or to parent button is clicked, need to clear the preview display. More...
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *event)
 Make sure the Open button is not enabled when an invalid file selection has been made. More...
 
virtual void accept ()
 Only accept key press or double-click action on a file selection if the Open button is currently enabled. More...
 
virtual void addDisplayControlButtons ()
 Add buttons that control display of configuration panels. More...
 

Protected Attributes

DtLoggerPreviewWidgetmyLoggerTapePreviewWidget
 
QToolButton * myInfoButton
 
QPushButton * myOpenButton
 
QListView * myListView
 
QListWidget * myListWidget
 
QSize myDialogSize
 
int myPreviewPanelWidth
 

Detailed Description

The Logger Tape File Dialog.

Constructor & Destructor Documentation

MAKLogger::DtLoggerTapeDialog::DtLoggerTapeDialog ( QWidget parent,
QString  directory,
QString  caption,
AcceptMode  mode,
Qt::WindowFlags  f = Qt::Dialog|Qt::CustomizeWindowHint|Qt::WindowTitleHint|Qt::WindowSystemMenuHint 
)

CTOR.

virtual MAKLogger::DtLoggerTapeDialog::~DtLoggerTapeDialog ( )
virtual

DTOR.

Member Function Documentation

virtual void MAKLogger::DtLoggerTapeDialog::accept ( )
protectedvirtual

Only accept key press or double-click action on a file selection if the Open button is currently enabled.

virtual void MAKLogger::DtLoggerTapeDialog::addDisplayControlButtons ( )
protectedvirtual

Add buttons that control display of configuration panels.

virtual bool MAKLogger::DtLoggerTapeDialog::descriptionChanged ( )
virtual

Get whether the description was changed in the dialog preview widget panel.

virtual QString MAKLogger::DtLoggerTapeDialog::descriptionText ( )
virtual

Get the current description text from the dialog preview widget panel.

virtual bool MAKLogger::DtLoggerTapeDialog::eventFilter ( QObject obj,
QEvent event 
)
protectedvirtual

Make sure the Open button is not enabled when an invalid file selection has been made.

virtual void MAKLogger::DtLoggerTapeDialog::fileNameTextChanged ( const QString &  text)
protectedvirtualslot

Slot to check for typed filename.

If the file exists, the preview widget panel will be invoked to display the file information. If the file is valid, meaning it is a logger tape file, and it was created for the same protocol as the current application run, the Open button will be enabled, otherwise disabled.

virtual void MAKLogger::DtLoggerTapeDialog::fileSelectionChanged ( const QString &  file)
protectedvirtualslot

Slot to take the new file selection from the dialog's file list widget and display the file's meta data in the preview widget panel.

If the file is valid, meaning it is a logger tape file, and it was created for the same protocol as the current application run, the Open button will be enabled, otherwise disabled.

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

Get the media play pipeline info.

virtual bool MAKLogger::DtLoggerTapeDialog::getRecordStreamPipeline ( DtString &  streamPipeline) const
virtual

Get the play to / record from stream pipelines Return true if there were any pipelines to collect.

virtual void MAKLogger::DtLoggerTapeDialog::onFolderSelectionChanged ( int  index)
protectedvirtualslot

If the selection in the folder combox box is changed, need to clear the preview display.

virtual void MAKLogger::DtLoggerTapeDialog::onNavigateButtonClicked ( )
protectedvirtualslot

If the back, forward or to parent button is clicked, need to clear the preview display.

virtual void MAKLogger::DtLoggerTapeDialog::setAppProtocol ( const QString &  protocol,
bool  display = false 
)
virtual

Set the protocol string for the current application run.

Passed on to the dialog's preview widget panel. Set the display param as true in order to cause the protocol string to also be used for initial display. Used when there is no saved file to read from.

virtual void MAKLogger::DtLoggerTapeDialog::setDescriptionText ( const QString &  description)
virtual

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

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

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

virtual void MAKLogger::DtLoggerTapeDialog::setFileWithPath ( const QString  fileWithPath)
virtual

Set the currently opened file.

Used by the Save/SaveAs dialog. This causes the meta data information to appear in the preview widget on opening the dialog.

virtual void MAKLogger::DtLoggerTapeDialog::setMediaPlayConfiguration ( const DtLgrMediaPlayPipelineInfo pipelineInfo)
virtual

Set the media play in window and to stream pipeline configurations.

virtual void MAKLogger::DtLoggerTapeDialog::setMediaRecordConfiguration ( const DtString &  configuration,
int  port 
)
virtual

Set the media record from stream configuration.

virtual void MAKLogger::DtLoggerTapeDialog::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::DtLoggerTapeDialog::setRecordStream ( bool  value)
virtual

set if we record by default.

virtual void MAKLogger::DtLoggerTapeDialog::setShowDescriptionOnly ( )
virtual

Set whether this file dialog will only show the description meta data widget.

Used for all file dialogs except the Open File and Logger Information dialogs.

virtual void MAKLogger::DtLoggerTapeDialog::setShowEditPanel ( )
virtual

Set to toggle into edit mode if not already there.

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

Set whether the Preview/Edit button should be shown in the meta data widget panel.

Shown for all file dialogs except for the Open File dialog.

virtual void MAKLogger::DtLoggerTapeDialog::showLoggerTapeInfo ( )
virtualslot

Slot to toggle showing the dialog preview widget panel, depending on whether the dialog's "Show more logger information" button has been clicked.

Member Data Documentation

QSize MAKLogger::DtLoggerTapeDialog::myDialogSize
protected
QToolButton* MAKLogger::DtLoggerTapeDialog::myInfoButton
protected
QListView* MAKLogger::DtLoggerTapeDialog::myListView
protected
QListWidget* MAKLogger::DtLoggerTapeDialog::myListWidget
protected
DtLoggerPreviewWidget* MAKLogger::DtLoggerTapeDialog::myLoggerTapePreviewWidget
protected
QPushButton* MAKLogger::DtLoggerTapeDialog::myOpenButton
protected
int MAKLogger::DtLoggerTapeDialog::myPreviewPanelWidth
protected

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

Document ID: Generated on Thu Oct 3 15:35:11 EDT 2024 from SVN revision 270037
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)