NDEVR
API Documentation
DeveloperSettingsDialog

A settings dialog widget that exposes developer-related application options such as paths to build tools, source directories, and licenses. More...

Collaboration diagram for DeveloperSettingsDialog:
[legend]

Public Member Functions

 DeveloperSettingsDialog (QTModelManager *manager, QWidget *parent=nullptr)
 Constructs the developer settings dialog.
void resetToDefaults ()
 Resets all developer settings fields to their default values.
QSize sizeHint () const override
 Returns the preferred size for this dialog.

Protected Member Functions

void browse (ApplicationOption< String > &option, Button *b, StringView extension)
 Opens a file chooser dialog for an ApplicationOption path.
void browse (const TranslatedString &name, Resource< String > &option, Button *b, StringView extension)
 Opens a file chooser dialog for a Resource path.
void init ()
 Initializes the UI elements and connects signals.

Protected Attributes

FileChooserDialogm_chooser_dialog = nullptr
 The file chooser dialog instance.
Resource< String > * m_chooser_option = nullptr
 The currently active chooser option being edited.
QTModelManagerm_manager
 The application model manager.
Ui::DeveloperSettingsDialog * ui = nullptr
 The auto-generated UI form.

Detailed Description

A settings dialog widget that exposes developer-related application options such as paths to build tools, source directories, and licenses.

Definition at line 16 of file DeveloperSettingsDialog.h.

Constructor & Destructor Documentation

◆ DeveloperSettingsDialog()

DeveloperSettingsDialog::DeveloperSettingsDialog ( QTModelManager * manager,
QWidget * parent = nullptr )

Constructs the developer settings dialog.

Parameters
[in]managerThe model manager for application context.
[in]parentOptional parent widget.

Member Function Documentation

◆ browse() [1/2]

void DeveloperSettingsDialog::browse ( ApplicationOption< String > & option,
Button * b,
StringView extension )
protected

Opens a file chooser dialog for an ApplicationOption path.

Parameters
[in]optionThe string option to update.
[in]bThe button that triggered the browse action.
[in]extensionThe file extension filter.

◆ browse() [2/2]

void DeveloperSettingsDialog::browse ( const TranslatedString & name,
Resource< String > & option,
Button * b,
StringView extension )
protected

Opens a file chooser dialog for a Resource path.

Parameters
[in]nameThe display name for the chooser.
[in]optionThe string resource to update.
[in]bThe button that triggered the browse action.
[in]extensionThe file extension filter.

◆ sizeHint()

QSize DeveloperSettingsDialog::sizeHint ( ) const
override

Returns the preferred size for this dialog.

Returns
The recommended size hint.

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