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 Types | Public Slots | Public Member Functions | Protected Slots | Protected Attributes
MAKLogger::DtRemoteFileDialog Class Reference

The Logger Tape File Dialog. More...

+ Inheritance diagram for MAKLogger::DtRemoteFileDialog:
+ Collaboration diagram for MAKLogger::DtRemoteFileDialog:

Public Types

enum  DtRemoteDialogType { REMOTE_DIALOG_TYPE_OPEN, REMOTE_DIALOG_TYPE_RECORD }
 Dialog can be created for retrieving the name of a file to be opened (takes file names for existing files only unless the bypass remote control file check box is checked) or for retrieving the name of a file to be created for recording. More...
 

Public Slots

virtual int exec ()
 Override exec() to notify the user that the file exists and ask about overwrite. More...
 
virtual void showLoggerFileInfo ()
 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

 DtRemoteFileDialog (DtLgrRemoteMainWindow *parent, QString directory, QString caption, DtRemoteDialogType type, Qt::WindowFlags f=Qt::SubWindow)
 CTOR. More...
 
virtual ~DtRemoteFileDialog ()
 DTOR. More...
 
virtual void setSaveMode (bool save)
 Set whether this is a save file dialog or not. If not, it will be an open file dialog. 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 setShowEditPanel ()
 Set to toggle into edit mode if not already there. 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...
 
bool checkboxChecked ()
 Get whether the checkbox was checked (bypass filename for open dialog and construct filename for record as dialog). More...
 
void setCheckboxDisabled (bool disable)
 Set whether to disable the bypass remote file checkbox. More...
 
void setCheckboxState (Qt::CheckState state)
 Set whether the check box is checked (for bypass remote control file or construct file name. More...
 
void showFileExists (const QString &filename)
 Show a message that the file exists. 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...
 
virtual void onBypassFileChecked ()
 If the bypass remote control file check box is checked, need to allow a non-existing file with .lgr extension to be passed back, and set a bool to notify the caller that this check box is checked. More...
 

Protected Attributes

DtRemoteFilePreviewWidgetmyLoggerFilePreviewWidget
 
DtLgrRemoteMainWindowmyMainWindow
 
QCheckBox * myCheckbox
 
QLineEdit * myNameEdit
 
QToolButton * myInfoButton
 
QPushButton * myOpenButton
 
QListView * myListView
 
QListWidget * myListWidget
 
QSize myDialogSize
 
int myPreviewPanelWidth
 
bool myOpenButtonEnabled
 
bool myBypassFileChecked
 
bool myCloseDialog
 
bool myShowFileExists
 

Detailed Description

The Logger Tape File Dialog.

Member Enumeration Documentation

Dialog can be created for retrieving the name of a file to be opened (takes file names for existing files only unless the bypass remote control file check box is checked) or for retrieving the name of a file to be created for recording.

Enumerator
REMOTE_DIALOG_TYPE_OPEN 
REMOTE_DIALOG_TYPE_RECORD 

Constructor & Destructor Documentation

MAKLogger::DtRemoteFileDialog::DtRemoteFileDialog ( DtLgrRemoteMainWindow parent,
QString  directory,
QString  caption,
DtRemoteDialogType  type,
Qt::WindowFlags  f = Qt::SubWindow 
)

CTOR.

virtual MAKLogger::DtRemoteFileDialog::~DtRemoteFileDialog ( )
virtual

DTOR.

Member Function Documentation

bool MAKLogger::DtRemoteFileDialog::checkboxChecked ( )

Get whether the checkbox was checked (bypass filename for open dialog and construct filename for record as dialog).

virtual bool MAKLogger::DtRemoteFileDialog::descriptionChanged ( )
virtual

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

virtual QString MAKLogger::DtRemoteFileDialog::descriptionText ( )
virtual

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

virtual int MAKLogger::DtRemoteFileDialog::exec ( )
virtualslot

Override exec() to notify the user that the file exists and ask about overwrite.

virtual void MAKLogger::DtRemoteFileDialog::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::DtRemoteFileDialog::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::DtRemoteFileDialog::onBypassFileChecked ( )
protectedvirtualslot

If the bypass remote control file check box is checked, need to allow a non-existing file with .lgr extension to be passed back, and set a bool to notify the caller that this check box is checked.

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

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

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

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

void MAKLogger::DtRemoteFileDialog::setCheckboxDisabled ( bool  disable)

Set whether to disable the bypass remote file checkbox.

void MAKLogger::DtRemoteFileDialog::setCheckboxState ( Qt::CheckState  state)

Set whether the check box is checked (for bypass remote control file or construct file name.

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

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

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

Set whether this is a save file dialog or not. If not, it will be an open file dialog.

virtual void MAKLogger::DtRemoteFileDialog::setShowEditPanel ( )
virtual

Set to toggle into edit mode if not already there.

virtual void MAKLogger::DtRemoteFileDialog::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.

void MAKLogger::DtRemoteFileDialog::showFileExists ( const QString &  filename)

Show a message that the file exists.

Used for cases where the user has entered the filename without the extension, so that QFileDialog has no way of checking for existence.

virtual void MAKLogger::DtRemoteFileDialog::showLoggerFileInfo ( )
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

bool MAKLogger::DtRemoteFileDialog::myBypassFileChecked
protected
QCheckBox* MAKLogger::DtRemoteFileDialog::myCheckbox
protected
bool MAKLogger::DtRemoteFileDialog::myCloseDialog
protected
QSize MAKLogger::DtRemoteFileDialog::myDialogSize
protected
QToolButton* MAKLogger::DtRemoteFileDialog::myInfoButton
protected
QListView* MAKLogger::DtRemoteFileDialog::myListView
protected
QListWidget* MAKLogger::DtRemoteFileDialog::myListWidget
protected
DtRemoteFilePreviewWidget* MAKLogger::DtRemoteFileDialog::myLoggerFilePreviewWidget
protected
DtLgrRemoteMainWindow* MAKLogger::DtRemoteFileDialog::myMainWindow
protected
QLineEdit* MAKLogger::DtRemoteFileDialog::myNameEdit
protected
QPushButton* MAKLogger::DtRemoteFileDialog::myOpenButton
protected
bool MAKLogger::DtRemoteFileDialog::myOpenButtonEnabled
protected
int MAKLogger::DtRemoteFileDialog::myPreviewPanelWidth
protected
bool MAKLogger::DtRemoteFileDialog::myShowFileExists
protected

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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)