Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Clean up GUI for properties
- Loading branch information
1 parent
ffaa40e
commit d5664ed
Showing
54 changed files
with
556 additions
and
444 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,58 @@ | ||
class QgsPropertyOverrideButton : QToolButton | ||
{ | ||
%TypeHeaderCode | ||
#include <qgspropertyoverridebutton.h> | ||
%End | ||
public: | ||
|
||
QgsPropertyOverrideButton( QWidget* parent /TransferThis/ = nullptr, | ||
const QgsVectorLayer* layer = nullptr ); | ||
|
||
void init( int propertyKey, | ||
const QgsProperty& property, | ||
const QgsPropertiesDefinition& definitions, | ||
const QgsVectorLayer* layer = nullptr ); | ||
|
||
void init( int propertyKey, | ||
const QgsAbstractPropertyCollection& collection, | ||
const QgsPropertiesDefinition& definitions, | ||
const QgsVectorLayer* layer = nullptr ); | ||
|
||
QgsProperty toProperty() const; | ||
|
||
void setToProperty( const QgsProperty& property ); | ||
|
||
int propertyKey() const; | ||
|
||
bool isActive() const; | ||
|
||
QgsPropertyDefinition::DataType validDataType() const; | ||
|
||
QString fullDescription() const; | ||
|
||
QString usageInfo() const; | ||
|
||
void setUsageInfo( const QString& info ); | ||
|
||
void setVectorLayer( const QgsVectorLayer* layer ); | ||
|
||
const QgsVectorLayer* vectorLayer() const; | ||
|
||
void registerCheckedWidget( QWidget* widget ); | ||
|
||
void registerExpressionContextGenerator( QgsExpressionContextGenerator* generator ); | ||
|
||
public slots: | ||
|
||
void setActive( bool active ); | ||
|
||
signals: | ||
|
||
void changed(); | ||
|
||
void activated( bool isActive ); | ||
|
||
protected: | ||
void mouseReleaseEvent( QMouseEvent *event ); | ||
}; | ||
|
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
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.