Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Interface for plugins to embed pages in the options dialog
Allows plugins to embed their options into the standard options dialog, instead of implementing their own config dialog and having to have extra menu items just for those...
- Loading branch information
1 parent
cc0007c
commit 2d807f5
Showing
12 changed files
with
238 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
class QgsOptionsPageWidget : QWidget | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsoptionswidgetfactory.h> | ||
%End | ||
|
||
public: | ||
|
||
QgsOptionsPageWidget( QWidget *parent /TransferThis/ = 0 ); | ||
|
||
public slots: | ||
|
||
virtual void apply() = 0; | ||
|
||
}; | ||
|
||
class QgsOptionsWidgetFactory | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsoptionswidgetfactory.h> | ||
%End | ||
|
||
public: | ||
|
||
QgsOptionsWidgetFactory(); | ||
|
||
QgsOptionsWidgetFactory( const QString &title, const QIcon &icon ); | ||
virtual ~QgsOptionsWidgetFactory(); | ||
|
||
virtual QIcon icon() const; | ||
void setIcon( const QIcon &icon ); | ||
virtual QString title() const; | ||
void setTitle( const QString &title ); | ||
|
||
virtual QgsOptionsPageWidget *createWidget( QWidget *parent = 0 ) const = 0 /Factory/; | ||
|
||
|
||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.