2017-06-08 15:30:38 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/gui/symbology/qgsrendererpropertiesdialog.h *
|
2017-06-08 15:30:38 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-06 11:01:42 +02:00
|
|
|
class QgsRendererPropertiesDialog : QDialog
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
2017-06-08 15:30:38 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-08 15:30:38 +02:00
|
|
|
#include "qgsrendererpropertiesdialog.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
2016-06-09 11:10:34 +10:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsRendererPropertiesDialog( QgsVectorLayer *layer, QgsStyle *style, bool embedded = false, QWidget *parent /TransferThis/ = 0 );
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsRendererPropertiesDialog.
|
|
|
|
\param layer associated layer
|
|
|
|
\param style style collection
|
|
|
|
\param embedded set to true to indicate that the dialog will be embedded in another widget, rather
|
|
|
|
than shown as a dialog by itself
|
|
|
|
\param parent parent widget
|
|
|
|
%End
|
2016-08-06 11:01:42 +02:00
|
|
|
~QgsRendererPropertiesDialog();
|
2015-09-16 21:55:32 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setMapCanvas( QgsMapCanvas *canvas );
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the map canvas associated with the dialog. This allows the widget to retrieve the current
|
|
|
|
map scale and other properties from the canvas.
|
|
|
|
\param canvas map canvas
|
|
|
|
.. versionadded:: 2.12
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-06-13 18:07:39 +10:00
|
|
|
void setDockMode( bool dockMode );
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Set the widget in dock mode which tells the widget to emit panel
|
|
|
|
widgets and not open dialogs
|
|
|
|
\param dockMode True to enable dock mode.
|
|
|
|
%End
|
2016-06-13 18:07:39 +10:00
|
|
|
|
2016-01-20 08:21:32 +01:00
|
|
|
signals:
|
2017-06-08 15:30:38 +02:00
|
|
|
|
2016-01-20 08:21:32 +01:00
|
|
|
void layerVariablesChanged();
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when expression context variables on the associated
|
|
|
|
vector layers have been changed. Will request the parent dialog
|
|
|
|
to re-synchronize with the variables.
|
|
|
|
%End
|
2016-01-20 08:21:32 +01:00
|
|
|
|
2016-05-10 10:32:30 +10:00
|
|
|
void widgetChanged();
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when something on the widget has changed.
|
|
|
|
All widgets will fire this event to notify of an internal change.
|
|
|
|
%End
|
2016-05-10 10:32:30 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void showPanel( QgsPanelWidget *panel );
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Emit when you require a panel to be show in the interface.
|
|
|
|
\param panel The panel widget to show.
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
If you are connected to this signal you should also connect
|
|
|
|
given panels showPanel signal as they can be nested.
|
|
|
|
%End
|
2016-06-19 20:50:12 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
public slots:
|
|
|
|
void rendererChanged();
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
called when user changes renderer type
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
void apply();
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Apply the changes from the dialog to the layer.
|
|
|
|
%End
|
2016-05-10 10:32:30 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void onOK();
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Apply and accept the changes for the dialog.
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void openPanel( QgsPanelWidget *panel );
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Open a panel or dialog depending on dock mode setting
|
|
|
|
If dock mode is true this method will emit the showPanel signal
|
|
|
|
for connected slots to handle the open event.
|
|
|
|
|
|
|
|
If dock mode is false this method will open a dialog
|
|
|
|
and block the user.
|
|
|
|
|
|
|
|
\param panel The panel widget to open.
|
|
|
|
%End
|
|
|
|
|
2016-06-19 20:50:12 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
protected:
|
2017-06-08 15:30:38 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void connectValueChanged( const QList<QWidget *> &widgets, const char *slot );
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
|
|
|
Connect the given slot to the value changed event for the set of widgets
|
|
|
|
Each widget is checked for type and the common type of signal is connected
|
|
|
|
to the slot.
|
|
|
|
|
|
|
|
\param widgets The list of widgets to check.
|
|
|
|
\param slot The slot to connect to the signals.
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void keyPressEvent( QKeyEvent *event );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-10 10:32:30 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
};
|
2017-06-08 15:30:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/gui/symbology/qgsrendererpropertiesdialog.h *
|
2017-06-08 15:30:38 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|