NDEVR
API Documentation
FileAndFolderSettingsDialog

Allows the user to adjust default folders or whether or not the software uses project folders or project files. More...

Collaboration diagram for FileAndFolderSettingsDialog:
[legend]

Public Member Functions

 FileAndFolderSettingsDialog (QWidget *parent=nullptr)
 Constructs a FileAndFolderSettingsDialog.

Protected Member Functions

bool event (QEvent *event) override
 Handles events for this dialog, including retranslation.
FileChooserDialogfileChooser ()
 Returns the file chooser dialog, creating it if necessary.
void retranslate ()
 Retranslates all UI strings when the language changes.
void setDescriptions ()
 Sets descriptive text for each folder setting in the UI.
void showBrowseDialog (const TranslatedString &title, Button *b)
 Shows a browse dialog for selecting a folder path.
void updateUseProjectFolders ()
 Updates the UI when the project folder usage setting changes.

Protected Attributes

FileChooserDialogm_file_chooser_dialog
 The file chooser dialog for browsing paths.
ApplicationOption< String > * m_path_to_modify
 The application option being modified by the browse dialog.
Ui::FileAndFolderSettingsUI * ui
 The UI form for this dialog.

Detailed Description

Allows the user to adjust default folders or whether or not the software uses project folders or project files.


Definition at line 19 of file FileAndFolderSettingsDialog.h.

Constructor & Destructor Documentation

◆ FileAndFolderSettingsDialog()

FileAndFolderSettingsDialog::FileAndFolderSettingsDialog ( QWidget * parent = nullptr)

Constructs a FileAndFolderSettingsDialog.

Parameters
[in]parentThe parent widget.

Member Function Documentation

◆ event()

bool FileAndFolderSettingsDialog::event ( QEvent * event)
overrideprotected

Handles events for this dialog, including retranslation.

Parameters
[in]eventThe event to process.
Returns
True if the event was handled.

References event().

Referenced by event().

◆ fileChooser()

FileChooserDialog * FileAndFolderSettingsDialog::fileChooser ( )
protected

Returns the file chooser dialog, creating it if necessary.

Returns
A pointer to the FileChooserDialog.

◆ showBrowseDialog()

void FileAndFolderSettingsDialog::showBrowseDialog ( const TranslatedString & title,
Button * b )
protected

Shows a browse dialog for selecting a folder path.

Parameters
[in]titleThe title for the browse dialog.
[in]bThe button whose associated path will be updated.

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