2012-09-24 02:28:15 +02:00
|
|
|
class QgsSymbolsListWidget : QWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgssymbolslistwidget.h>
|
|
|
|
%End
|
|
|
|
public:
|
2016-08-06 11:01:42 +02:00
|
|
|
QgsSymbolsListWidget( QgsSymbol* symbol, QgsStyle* style, QMenu* menu, QWidget* parent /TransferThis/ = 0, const QgsVectorLayer * layer = 0 );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-09-12 16:11:05 +10:00
|
|
|
/** Sets the context in which the symbol widget is shown, eg the associated map canvas and expression contexts.
|
|
|
|
* @param context symbol widget context
|
|
|
|
* @see context()
|
2016-09-12 13:51:14 +10:00
|
|
|
* @note added in QGIS 3.0
|
|
|
|
*/
|
2016-09-12 16:11:05 +10:00
|
|
|
void setContext( const QgsSymbolWidgetContext& context );
|
2015-09-16 21:55:32 +10:00
|
|
|
|
2016-09-12 16:11:05 +10:00
|
|
|
/** Returns the context in which the symbol widget is shown, eg the associated map canvas and expression contexts.
|
|
|
|
* @see setContext()
|
|
|
|
* @note added in QGIS 3.0
|
2015-09-17 20:34:51 +10:00
|
|
|
*/
|
2016-09-12 16:11:05 +10:00
|
|
|
QgsSymbolWidgetContext context() const;
|
2015-09-17 20:34:51 +10:00
|
|
|
|
2015-09-03 22:46:37 +10:00
|
|
|
/** Returns the vector layer associated with the widget.
|
|
|
|
* @note added in QGIS 2.12
|
|
|
|
*/
|
|
|
|
const QgsVectorLayer* layer() const;
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
public slots:
|
2016-01-04 22:51:18 +11:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void setSymbolFromStyle( const QModelIndex & index );
|
2013-01-08 14:22:27 -07:00
|
|
|
void setSymbolColor( const QColor& color );
|
2012-09-24 02:28:15 +02:00
|
|
|
void setMarkerAngle( double angle );
|
|
|
|
void setMarkerSize( double size );
|
|
|
|
void setLineWidth( double width );
|
2014-05-07 08:37:12 +10:00
|
|
|
void addSymbolToStyle();
|
2016-01-07 11:21:32 +07:00
|
|
|
void saveSymbol();
|
2016-08-05 08:09:43 +02:00
|
|
|
void symbolAddedToStyle( const QString& name, QgsSymbol* symbol );
|
2014-10-20 22:50:15 +02:00
|
|
|
void on_mSymbolUnitWidget_changed();
|
2012-09-24 02:28:15 +02:00
|
|
|
void on_mTransparencySlider_valueChanged( int value );
|
|
|
|
|
|
|
|
void on_groupsCombo_currentIndexChanged( int index );
|
|
|
|
void on_groupsCombo_editTextChanged( const QString &text );
|
|
|
|
|
|
|
|
void openStyleManager();
|
2016-01-04 22:51:18 +11:00
|
|
|
void clipFeaturesToggled( bool checked );
|
|
|
|
|
|
|
|
void updateDataDefinedMarkerSize();
|
|
|
|
void updateDataDefinedMarkerAngle();
|
|
|
|
void updateDataDefinedLineWidth();
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void changed();
|
|
|
|
};
|