QGIS/python/gui/qgsoptionsdialogbase.sip

77 lines
2.2 KiB
Plaintext
Raw Normal View History

class QgsSearchHighlightOptionWidget : QObject
{
%TypeHeaderCode
#include <qgsoptionsdialogbase.h>
%End
public:
explicit QgsSearchHighlightOptionWidget( QWidget* widget = 0 );
~QgsSearchHighlightOptionWidget();
bool isValid();
bool searchHighlight( QString searchText );
void reset();
QWidget* widget();
};
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
2014-05-27 23:22:50 +02:00
* @param settings custom QSettings pointer
*/
QgsOptionsDialogBase( const QString& settingsKey, QWidget* parent /TransferThis/ = 0, const Qt::WindowFlags& fl = 0, QSettings* settings = 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
*/
void initOptionsBase( bool restoreUi = true, const QString& title = QString() );
// set custom QSettings pointer if dialog used outside QGIS (in plugin)
void setSettings( QSettings* settings );
/** 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();
*/
void restoreOptionsBaseUi( const QString& title = QString() );
2014-01-26 18:35:21 +01:00
2015-07-29 11:52:14 +02:00
/** Determine if the options list is in icon only mode
2014-01-26 18:35:21 +01:00
*/
bool iconOnly();
public slots:
/**
* searchText searches for a text in all the pages of the stacked widget and highlight the results
* @param text the text to search
*/
void searchText( QString text );
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();
void registerTextSearchWidgets();
};