2012-09-24 02:28:15 +02:00
|
|
|
class QgsSmartGroupCondition : QWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgssmartgroupeditordialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
QgsSmartGroupCondition( int id, QWidget *parent = NULL );
|
|
|
|
|
|
|
|
//! returns the constraint key
|
|
|
|
QString constraint();
|
|
|
|
|
|
|
|
//! returns the parameter
|
|
|
|
QString parameter();
|
|
|
|
|
|
|
|
//! sets the given constraint
|
|
|
|
void setConstraint( QString constraint );
|
|
|
|
|
|
|
|
//! sets the given param
|
|
|
|
void setParameter( QString param );
|
|
|
|
|
|
|
|
//! sets the remove button hidden state to 'hide'
|
|
|
|
void hideRemoveButton( bool hide );
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void destruct();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void removed( int );
|
|
|
|
};
|
|
|
|
|
|
|
|
class QgsSmartGroupEditorDialog : QDialog
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgssmartgroupeditordialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
QgsSmartGroupEditorDialog( QgsStyleV2* style, QWidget* parent = NULL );
|
|
|
|
~QgsSmartGroupEditorDialog();
|
|
|
|
|
|
|
|
//! returns the value from mNameLineEdit
|
|
|
|
QString smartgroupName();
|
|
|
|
|
|
|
|
//! returns the condition map
|
2014-01-27 09:22:24 +01:00
|
|
|
//! @note not available in python bindings
|
|
|
|
// QgsSmartConditionMap conditionMap();
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
//! returns the AND/OR condition
|
|
|
|
QString conditionOperator();
|
|
|
|
|
|
|
|
//! sets up the GUI for the given conditionmap
|
2014-01-27 09:22:24 +01:00
|
|
|
//! @note not available in python bindings
|
|
|
|
// void setConditionMap( QgsSmartConditionMap );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
//! sets the operator AND/OR
|
|
|
|
void setOperator( QString );
|
|
|
|
|
|
|
|
//! sets the smart group Name
|
|
|
|
void setSmartgroupName( QString );
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
//! function to create a new ConditionBox and update UI
|
|
|
|
void addCondition();
|
|
|
|
|
|
|
|
//! slot to remove the condition with id int
|
|
|
|
void removeCondition( int );
|
|
|
|
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
};
|