2013-06-22 19:37:41 +02:00
|
|
|
class QgsOptionsDialogBase : QDialog
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsoptionsdialogbase.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
/** Constructor
|
|
|
|
* @param settingsKey QSettings subgroup key for saving/restore ui states, e.g. "ProjectProperties".
|
|
|
|
* @param parent parent object (owner)
|
|
|
|
* @param fl widget flags
|
|
|
|
*/
|
|
|
|
QgsOptionsDialogBase( QString settingsKey, QWidget* parent = 0, Qt::WFlags fl = 0 );
|
|
|
|
~QgsOptionsDialogBase();
|
|
|
|
|
|
|
|
/** Set up the base ui connections for vertical tabs.
|
|
|
|
* @param restoreUi Whether to restore the base ui at this time.
|
2014-01-26 18:35:21 +01:00
|
|
|
* @param title the window title
|
2013-06-22 19:37:41 +02:00
|
|
|
*/
|
2014-01-26 18:35:21 +01:00
|
|
|
void initOptionsBase( bool restoreUi = true, QString title = QString() );
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
/** Restore the base ui.
|
|
|
|
* Sometimes useful to do at end of subclass's constructor.
|
2014-01-26 18:35:21 +01:00
|
|
|
* @param title the window title (it does not need to be defined if previously given to initOptionsBase();
|
2013-06-22 19:37:41 +02:00
|
|
|
*/
|
2014-01-26 18:35:21 +01:00
|
|
|
void restoreOptionsBaseUi( QString title = QString() );
|
|
|
|
|
|
|
|
/** determine if the options list is in icon only mode
|
|
|
|
*/
|
|
|
|
bool iconOnly();
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void updateOptionsListVerticalTabs();
|
|
|
|
void optionsStackedWidget_CurrentChanged( int indx );
|
|
|
|
void optionsStackedWidget_WidgetRemoved( int indx );
|
|
|
|
void warnAboutMissingObjects();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void showEvent( QShowEvent* e );
|
|
|
|
void paintEvent( QPaintEvent* e );
|
2014-01-27 09:22:24 +01:00
|
|
|
|
|
|
|
virtual void updateWindowTitle();
|
2013-06-22 19:37:41 +02:00
|
|
|
};
|