-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4231 from nyalldawson/options
[FEATURE] Interface for plugins to embed pages in the options dialog
- Loading branch information
Showing
15 changed files
with
289 additions
and
130 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
Oops, something went wrong.