10#ifndef GEOMETRY_STATE_DIALOG_H
11#define GEOMETRY_STATE_DIALOG_H
81 explicit GeometryStateDialog(QWidget *parent, Qt::WindowFlags f = Qt::Window) : QDialog(parent, f) {}
91 explicit GeometryStateDialog(QWidget *parent, Qt::WindowFlags f = Qt::Window) : QDialog(NULL, f), parent_(parent) {}
114 void loadGeometry(
int width = 0,
int height = 0,
const QString &dialog_name = QString());
125 void saveWindowGeometry();
130 void saveSplitterState(
const QSplitter *splitter =
nullptr);
133 QString dialog_name_;
A dialog that remembers its geometry and splitter state.
Definition geometry_state_dialog.h:20
void loadGeometry(int width=0, int height=0, const QString &dialog_name=QString())
Loads the geometry and splitter state for the dialog.
Definition geometry_state_dialog.cpp:21
void setWindowModality(Qt::WindowModality windowModality)
Sets the window modality for the dialog. On non-macOS platforms, this also sets the parent to ensure ...
Definition geometry_state_dialog.cpp:59
~GeometryStateDialog()
Save the geometry and splitter state and then destroy the GeometryStateDialog.
Definition geometry_state_dialog.cpp:15
void loadSplitterState(QSplitter *splitter=nullptr)
Loads the state of a splitter for the dialog.
Definition geometry_state_dialog.cpp:72
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