QGIS API Documentation
2.0.1-Dufour
|
A groupbox that collapses/expands when toggled and can save its collapsed and checked states. More...
#include <qgscollapsiblegroupbox.h>
Public Member Functions | |
QgsCollapsibleGroupBox (QWidget *parent=0, QSettings *settings=0) | |
QgsCollapsibleGroupBox (const QString &title, QWidget *parent=0, QSettings *settings=0) | |
~QgsCollapsibleGroupBox () | |
void | setSettings (QSettings *settings) |
void | setSaveCollapsedState (bool save) |
set this to false to not save/restore collapsed state | |
void | setSaveCheckedState (bool save) |
set this to true to save/restore checked state | |
bool | saveCollapsedState () |
bool | saveCheckedState () |
void | setSettingGroup (const QString &group) |
set this to a defined string to share save/restore states across different parent dialogs | |
QString | settingGroup () const |
Public Member Functions inherited from QgsCollapsibleGroupBoxBasic | |
QgsCollapsibleGroupBoxBasic (QWidget *parent=0) | |
QgsCollapsibleGroupBoxBasic (const QString &title, QWidget *parent=0) | |
~QgsCollapsibleGroupBoxBasic () | |
bool | isCollapsed () const |
void | setCollapsed (bool collapse) |
QString | syncGroup () const |
Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key. | |
void | setSyncGroup (QString grp) |
void | setScrollOnExpand (bool scroll) |
set this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded |
Protected Slots | |
void | loadState () |
void | saveState () |
Protected Member Functions | |
void | init () |
void | showEvent (QShowEvent *event) |
QString | saveKey () const |
Protected Member Functions inherited from QgsCollapsibleGroupBoxBasic | |
void | collapseExpandFixes () |
Visual fixes for when group box is collapsed/expanded. | |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | changeEvent (QEvent *event) |
void | updateStyle () |
QRect | titleRect () const |
void | clearModifiers () |
Protected Attributes | |
QPointer< QSettings > | mSettings |
bool | mDelSettings |
bool | mSaveCollapsedState |
bool | mSaveCheckedState |
QString | mSettingGroup |
Protected Attributes inherited from QgsCollapsibleGroupBoxBasic | |
bool | mCollapsed |
bool | mInitFlat |
bool | mInitFlatChecked |
bool | mScrollOnExpand |
bool | mShown |
QScrollArea * | mParentScrollArea |
QgsGroupBoxCollapseButton * | mCollapseButton |
QWidget * | mSyncParent |
QString | mSyncGroup |
bool | mAltDown |
bool | mShiftDown |
bool | mTitleClicked |
Properties | |
bool | collapsed |
bool | saveCollapsedState |
bool | saveCheckedState |
QString | syncGroup |
Properties inherited from QgsCollapsibleGroupBoxBasic | |
bool | collapsed |
QString | syncGroup |
Additional Inherited Members | |
Public Slots inherited from QgsCollapsibleGroupBoxBasic | |
void | checkToggled (bool ckd) |
void | checkClicked (bool ckd) |
void | toggleCollapsed () |
Signals inherited from QgsCollapsibleGroupBoxBasic | |
void | collapsedStateChanged (bool collapsed) |
Signal emitted when groupbox collapsed/expanded state is changed, and when first shown. | |
Static Protected Attributes inherited from QgsCollapsibleGroupBoxBasic | |
static QIcon | mCollapseIcon |
static QIcon | mExpandIcon |
A groupbox that collapses/expands when toggled and can save its collapsed and checked states.
By default, it auto-saves only its collapsed state to the global settings based on the widget and it's parent names. Holding Alt modifier key when toggling collapsed state will synchronize the toggling across other collapsible group boxes with the same syncGroup QString value Holding Shift modifier key when attempting to toggle collapsed state will expand current group box, then collapse any others with the same syncGroup QString value
Definition at line 145 of file qgscollapsiblegroupbox.h.
QgsCollapsibleGroupBox::QgsCollapsibleGroupBox | ( | QWidget * | parent = 0 , |
QSettings * | settings = 0 |
||
) |
Definition at line 508 of file qgscollapsiblegroupbox.cpp.
References init().
QgsCollapsibleGroupBox::QgsCollapsibleGroupBox | ( | const QString & | title, |
QWidget * | parent = 0 , |
||
QSettings * | settings = 0 |
||
) |
Definition at line 514 of file qgscollapsiblegroupbox.cpp.
References init().
QgsCollapsibleGroupBox::~QgsCollapsibleGroupBox | ( | ) |
Definition at line 521 of file qgscollapsiblegroupbox.cpp.
References mDelSettings, mSettings, and saveState().
|
protected |
Reimplemented from QgsCollapsibleGroupBoxBasic.
Definition at line 539 of file qgscollapsiblegroupbox.cpp.
References mDelSettings, mSaveCheckedState, mSaveCollapsedState, mSettingGroup, and mSettings.
Referenced by QgsCollapsibleGroupBox().
|
protectedslot |
Definition at line 599 of file qgscollapsiblegroupbox.cpp.
References mSaveCheckedState, mSaveCollapsedState, mSettings, saveKey(), and QgsCollapsibleGroupBoxBasic::setCollapsed().
Referenced by showEvent().
|
inline |
Definition at line 169 of file qgscollapsiblegroupbox.h.
|
inline |
Definition at line 168 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 580 of file qgscollapsiblegroupbox.cpp.
References mSettingGroup.
Referenced by loadState(), and saveState().
|
protectedslot |
Definition at line 628 of file qgscollapsiblegroupbox.cpp.
References QgsCollapsibleGroupBoxBasic::isCollapsed(), mSaveCheckedState, mSaveCollapsedState, mSettings, and saveKey().
Referenced by ~QgsCollapsibleGroupBox().
|
inline |
set this to true to save/restore checked state
Definition at line 167 of file qgscollapsiblegroupbox.h.
|
inline |
set this to false to not save/restore collapsed state
Definition at line 163 of file qgscollapsiblegroupbox.h.
|
inline |
set this to a defined string to share save/restore states across different parent dialogs
Definition at line 172 of file qgscollapsiblegroupbox.h.
void QgsCollapsibleGroupBox::setSettings | ( | QSettings * | settings | ) |
Definition at line 530 of file qgscollapsiblegroupbox.cpp.
References mDelSettings, and mSettings.
|
inline |
Definition at line 173 of file qgscollapsiblegroupbox.h.
|
protected |
Reimplemented from QgsCollapsibleGroupBoxBasic.
Definition at line 558 of file qgscollapsiblegroupbox.cpp.
References loadState(), QgsCollapsibleGroupBoxBasic::mInitFlat, QgsCollapsibleGroupBoxBasic::mInitFlatChecked, and QgsCollapsibleGroupBoxBasic::mShown.
|
protected |
Definition at line 187 of file qgscollapsiblegroupbox.h.
Referenced by init(), setSettings(), and ~QgsCollapsibleGroupBox().
|
protected |
Definition at line 190 of file qgscollapsiblegroupbox.h.
Referenced by init(), loadState(), and saveState().
|
protected |
Definition at line 189 of file qgscollapsiblegroupbox.h.
Referenced by init(), loadState(), and saveState().
|
protected |
Definition at line 191 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 186 of file qgscollapsiblegroupbox.h.
Referenced by init(), loadState(), saveState(), setSettings(), and ~QgsCollapsibleGroupBox().
|
readwrite |
Definition at line 149 of file qgscollapsiblegroupbox.h.
|
readwrite |
Definition at line 151 of file qgscollapsiblegroupbox.h.
|
readwrite |
Definition at line 150 of file qgscollapsiblegroupbox.h.
|
readwrite |
Definition at line 152 of file qgscollapsiblegroupbox.h.