![]() |
MAK Data Logger API Documentation for DIS
|
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 | |
| DtRemoteFilePreviewWidget * | myLoggerFilePreviewWidget |
| DtLgrRemoteMainWindow * | myMainWindow |
| QCheckBox * | myCheckbox |
| QLineEdit * | myNameEdit |
| QToolButton * | myInfoButton |
| QPushButton * | myOpenButton |
| QListView * | myListView |
| QListWidget * | myListWidget |
| QSize | myDialogSize |
| int | myPreviewPanelWidth |
| bool | myOpenButtonEnabled |
| bool | myBypassFileChecked |
| bool | myCloseDialog |
| bool | myShowFileExists |
The Logger Tape File Dialog.
| MAKLogger::DtRemoteFileDialog::DtRemoteFileDialog | ( | DtLgrRemoteMainWindow * | parent, |
| QString | directory, | ||
| QString | caption, | ||
| DtRemoteDialogType | type, | ||
| Qt::WindowFlags | f = Qt::SubWindow |
||
| ) |
CTOR.
|
virtual |
DTOR.
| bool MAKLogger::DtRemoteFileDialog::checkboxChecked | ( | ) |
Get whether the checkbox was checked (bypass filename for open dialog and construct filename for record as dialog).
|
virtual |
Get whether the description was changed in the dialog preview widget panel.
|
virtual |
Get the current description text from the dialog preview widget panel.
|
virtualslot |
Override exec() to notify the user that the file exists and ask about overwrite.
|
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.
|
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.
|
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.
|
protectedvirtualslot |
If the selection in the folder combox box is changed, need to clear the preview display.
|
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 |
Set whether the Preview/Edit button is enabled or not.
|
virtual |
Set whether this is a save file dialog or not. If not, it will be an open file dialog.
|
virtual |
Set to toggle into edit mode if not already there.
|
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.
|
virtualslot |
Slot to toggle showing the dialog preview widget panel, depending on whether the dialog's "Show more logger information" button has been clicked.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |