mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Add direct link to PAL engine settings to diagram tab
This commit is contained in:
parent
97a542750c
commit
2a48a61dcc
@ -19,7 +19,9 @@
|
|||||||
#include "diagram/qgspiediagram.h"
|
#include "diagram/qgspiediagram.h"
|
||||||
#include "diagram/qgstextdiagram.h"
|
#include "diagram/qgstextdiagram.h"
|
||||||
|
|
||||||
|
#include "qgisapp.h"
|
||||||
#include "qgsdiagramproperties.h"
|
#include "qgsdiagramproperties.h"
|
||||||
|
#include "qgslabelengineconfigdialog.h"
|
||||||
#include "qgsvectorlayerproperties.h"
|
#include "qgsvectorlayerproperties.h"
|
||||||
#include "qgsdiagramrendererv2.h"
|
#include "qgsdiagramrendererv2.h"
|
||||||
#include "qgsvectordataprovider.h"
|
#include "qgsvectordataprovider.h"
|
||||||
@ -441,6 +443,12 @@ void QgsDiagramProperties::on_mDiagramAttributesTreeWidget_itemDoubleClicked( QT
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QgsDiagramProperties::on_mEngineSettingsButton_clicked()
|
||||||
|
{
|
||||||
|
QgsLabelEngineConfigDialog dlg( QgisApp::instance()->palLabeling(), this );
|
||||||
|
dlg.exec();
|
||||||
|
}
|
||||||
|
|
||||||
void QgsDiagramProperties::apply()
|
void QgsDiagramProperties::apply()
|
||||||
{
|
{
|
||||||
if ( !mDisplayDiagramsGroupBox->isChecked() )
|
if ( !mDisplayDiagramsGroupBox->isChecked() )
|
||||||
|
@ -44,6 +44,7 @@ class QgsDiagramProperties : public QWidget, private Ui::QgsDiagramPropertiesBas
|
|||||||
void on_mRemoveCategoryPushButton_clicked();
|
void on_mRemoveCategoryPushButton_clicked();
|
||||||
void on_mDiagramFontButton_clicked();
|
void on_mDiagramFontButton_clicked();
|
||||||
void on_mDiagramAttributesTreeWidget_itemDoubleClicked( QTreeWidgetItem * item, int column );
|
void on_mDiagramAttributesTreeWidget_itemDoubleClicked( QTreeWidgetItem * item, int column );
|
||||||
|
void on_mEngineSettingsButton_clicked();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QFont mDiagramFont;
|
QFont mDiagramFont;
|
||||||
|
@ -117,7 +117,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="mDiagramPropertiesTabWidget">
|
<widget class="QTabWidget" name="mDiagramPropertiesTabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@ -531,7 +531,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="4" column="0">
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="verticalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@ -544,7 +544,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QGroupBox" name="mDataDefinedPositionGroupBox">
|
<widget class="QGroupBox" name="mDataDefinedPositionGroupBox">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||||
@ -611,7 +611,7 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="2" column="1">
|
||||||
<spacer name="horizontalSpacer_4">
|
<spacer name="horizontalSpacer_4">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
@ -637,6 +637,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QPushButton" name="mEngineSettingsButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Engine settings</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="mOptionsTab">
|
<widget class="QWidget" name="mOptionsTab">
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>316</width>
|
<width>435</width>
|
||||||
<height>271</height>
|
<height>307</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -175,14 +175,14 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="chkShowAllLabels">
|
<widget class="QCheckBox" name="chkShowAllLabels">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Show all labels (i.e. including colliding labels)</string>
|
<string>Show all labels and features (i.e. including colliding objects)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="chkShowCandidates">
|
<widget class="QCheckBox" name="chkShowCandidates">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Show label candidates (for debugging)</string>
|
<string>Show candidates (for debugging)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user