10#ifndef PREFERENCES_DIALOG_H
11#define PREFERENCES_DIALOG_H
26class PreferencesDialog;
53 void setPane(
const QString module_name);
81 bool eventFilter(QObject *obj, QEvent *event)
override;
89 void apply(
bool closing);
94 void resizeSplitter();
99 void updatePageMinimumSize();
110 int sideBySideWidth()
const;
116 void applyDefaultSize();
122 void updateNavigationMode();
128 void setCompactNavigation(
bool compact);
133 void updateBreadcrumb();
140 Ui::PreferencesDialog *pd_ui_;
142 QHash<QString, QWidget*> prefs_pane_to_item_;
148 int prefs_tree_width_ = 0;
149 int widest_page_width_ = 0;
150 bool compact_navigation_ =
false;
151 bool geometry_fitted_ =
false;
152 bool geometry_restored_ =
false;
153 QWidget *nav_scrim_ =
nullptr;
155 QTimer *searchLineEditTimer;
156 QString searchLineEditText;
163 void setDrawerOpen(
bool open);
170 void applicationFocusChanged(QWidget *old, QWidget *now);
176 void selectPane(QString pane);
182 void handleCopyMenu(QPoint pos);
187 void copyActionTriggered();
192 void copyRowActionTriggered();
198 void on_advancedSearchLineEdit_textEdited(
const QString &search_re);
204 void on_showChangedValuesCheckBox_toggled(
bool checked);
209 void on_buttonBox_accepted();
214 void on_buttonBox_rejected();
219 void on_buttonBox_helpRequested();
225 void on_buttonBox_clicked(QAbstractButton *button);
233 void updateSearchLineEdit();
Item delegate providing in-place editors for the Advanced Preferences table.
Definition pref_delegate.h:26
Sort/filter proxy model for the Advanced Preferences pane.
Definition pref_models.h:238
GeometryStateDialog(QWidget *parent, Qt::WindowFlags f=Qt::Window)
Constructs a new GeometryStateDialog with the specified parent and window flags.
Definition geometry_state_dialog.h:91
Sort/filter proxy model for the module (left-hand) pane of the Preferences dialog.
Definition pref_models.h:365
~PreferencesDialog()
Destroys the PreferencesDialog.
Definition preferences_dialog.cpp:260
void showEvent(QShowEvent *evt) override
Handles the show event for the dialog.
Definition preferences_dialog.cpp:554
void keyPressEvent(QKeyEvent *event) override
Handles key press events within the dialog.
Definition preferences_dialog.cpp:275
bool eventFilter(QObject *obj, QEvent *event) override
Closes the page drawer on a click on the scrim or on Enter or Escape in the tree, and keeps the drawe...
Definition preferences_dialog.cpp:520
PreferencesDialog(QWidget *parent=0)
Constructs a PreferencesDialog.
Definition preferences_dialog.cpp:139
void setPane(const QString module_name)
Show the preference pane corresponding to the a preference module name.
Definition preferences_dialog.cpp:270
void resizeEvent(QResizeEvent *event) override
Switches the page navigation mode when the dialog is resized.
Definition preferences_dialog.cpp:406
Tree model backing the Preferences dialog.
Definition pref_models.h:28