mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
- update methods of existing classes - add comment to methods missing in the sip bindings - split up collective sip files into single files and use same directory structure in python/ as in src/ - add a lot of missing classes (some might not make sense because of missing python methods in those classes) - remove some non-existing methods from the header files - add scripts/sipdiff - replace some usages of std::vector and std::set with QVector/QSet
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
class QgsCollapsibleGroupBox : QGroupBox
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgscollapsiblegroupbox.h>
|
|
%End
|
|
public:
|
|
QgsCollapsibleGroupBox( QWidget *parent = 0 );
|
|
QgsCollapsibleGroupBox( const QString &title, QWidget *parent = 0 );
|
|
~QgsCollapsibleGroupBox();
|
|
|
|
bool isCollapsed() const;
|
|
void setCollapsed( bool collapse );
|
|
|
|
//! set this to false to not save/restore check and collapse state
|
|
void setSaveState( bool save );
|
|
//! set this to true to save/restore checked state
|
|
/** @note only turn on mSaveCheckedState for groupboxes NOT used
|
|
* in multiple places or used as options for different parent objects */
|
|
void setSaveCheckedState( bool save );
|
|
bool saveCheckedState();
|
|
//! set this to a defined string to share save/restore collapsed state across dialogs
|
|
void setSettingGroup( const QString &group );
|
|
QString settingGroup() const;
|
|
//! set this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded
|
|
void setScrollOnExpand( bool scroll );
|
|
|
|
signals:
|
|
/** Signal emitted when groupbox collapsed/expanded state is changed, and when first shown */
|
|
void collapsedStateChanged( QgsCollapsibleGroupBox* );
|
|
|
|
public slots:
|
|
void checkToggled( bool ckd );
|
|
void toggleCollapsed();
|
|
|
|
protected slots:
|
|
void loadState();
|
|
void saveState();
|
|
|
|
protected:
|
|
void init();
|
|
void showEvent( QShowEvent *event );
|
|
void mouseReleaseEvent( QMouseEvent *event );
|
|
void changeEvent( QEvent *event );
|
|
|
|
void updateStyle();
|
|
QRect titleRect() const;
|
|
QString saveKey() const;
|
|
|
|
};
|