mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-29 00:03:59 -04:00
[FEATURE] Update QgsColorButton to offer live color chooser updates and show transparent checkerboard background
- Add option to Options for live color chooser support (QgsColorDialog) - Add ability to define whether QgsColorButton accepts live updates (default: true) - Move QgsColorButton to single subclass of QPushButton - Show different button types relative to whether button has text - Add transparent checkerboard background for chosen colors with alpha < 255 - Fix triple-modal window issue for Mac (with regards to using native color dialog) - Composer item frame now supports transparency - Composer item background transparency support moved to color dialog - Composer composition grid now supports transparency
This commit is contained in:
parent
661df0e446
commit
c966dbf69b
images
python/gui
src
app
composer
qgscomposerarrowwidget.cppqgscomposerarrowwidget.hqgscomposeritemwidget.cppqgscomposeritemwidget.hqgscomposertablewidget.cppqgscomposertablewidget.hqgscompositionwidget.cpp
qgscontinuouscolordialog.cppqgsdecorationcopyrightdialog.cppqgsdecorationcopyrightdialog.hqgslabelinggui.cppqgslabelpropertydialog.cppqgsoptions.cppqgssinglesymboldialog.cppgui
CMakeLists.txtqgscolorbutton.cppqgscolorbutton.hqgscolordialog.cppqgscolordialog.h
symbology-ng
qgsellipsesymbollayerv2widget.cppqgsellipsesymbollayerv2widget.hqgspointdisplacementrendererwidget.cppqgspointdisplacementrendererwidget.hqgsrulebasedrendererv2widget.cppqgsrulebasedrendererv2widget.hqgsstylev2managerdialog.cppqgssymbollayerv2widget.cppqgssymbollayerv2widget.hqgssymbolslistwidget.cppqgssymbolslistwidget.hqgssymbolv2selectordialog.cppqgsvectorgradientcolorrampv2dialog.cppqgsvectorgradientcolorrampv2dialog.h
plugins/grass
ui
qgsannotationwidgetbase.uiqgscategorizedsymbolrendererv2widget.uiqgscomposerarrowwidgetbase.uiqgscomposeritemwidgetbase.uiqgscomposertablewidgetbase.uiqgscompositionwidgetbase.uiqgscontinuouscolordialogbase.uiqgsdecorationcopyrightdialog.uiqgsdecorationscalebardialog.uiqgsdiagrampropertiesbase.uiqgsgraduatedsymbolrendererv2widget.uiqgslabelingguibase.uiqgslabelpropertydialogbase.uiqgsoptionsbase.uiqgspointdisplacementrendererwidgetbase.uiqgsprojectpropertiesbase.uiqgssinglesymboldialogbase.uiqgstextannotationdialogbase.uiqgsvectorgradientcolorrampv2dialogbase.ui
symbollayer
@ -279,6 +279,7 @@
|
|||||||
<file>themes/default/symbologyUp.png</file>
|
<file>themes/default/symbologyUp.png</file>
|
||||||
<file>themes/default/tracking.png</file>
|
<file>themes/default/tracking.png</file>
|
||||||
<file>themes/default/transformed.png</file>
|
<file>themes/default/transformed.png</file>
|
||||||
|
<file>themes/default/transp-background_8x8.png</file>
|
||||||
<file>themes/default/user.png</file>
|
<file>themes/default/user.png</file>
|
||||||
<file>themes/default/mActionAddHtml.png</file>
|
<file>themes/default/mActionAddHtml.png</file>
|
||||||
<file>themes/gis/mActionAddArrow.png</file>
|
<file>themes/gis/mActionAddArrow.png</file>
|
||||||
|
BIN
images/themes/default/transp-background_8x8.png
Normal file
BIN
images/themes/default/transp-background_8x8.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 135 B |
@ -12,6 +12,7 @@
|
|||||||
%Include qgsattributeeditor.sip
|
%Include qgsattributeeditor.sip
|
||||||
%Include qgscollapsiblegroupbox.sip
|
%Include qgscollapsiblegroupbox.sip
|
||||||
%Include qgscolorbutton.sip
|
%Include qgscolorbutton.sip
|
||||||
|
%Include qgscolordialog.sip
|
||||||
%Include qgscomposerview.sip
|
%Include qgscomposerview.sip
|
||||||
%Include qgscredentialdialog.sip
|
%Include qgscredentialdialog.sip
|
||||||
%Include qgsdetaileditemdata.sip
|
%Include qgsdetaileditemdata.sip
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
|
|
||||||
|
/** \ingroup gui
|
||||||
|
* \class QgsColorButton
|
||||||
|
* A cross platform button subclass for selecting colors. Will open a color chooser dialog when clicked.
|
||||||
|
* Offers live updates to button from color chooser dialog
|
||||||
|
* @note inherited base class moved from QToolButton to QPushButton in QGIS 1.9
|
||||||
|
*/
|
||||||
|
|
||||||
class QgsColorButton : QToolButton
|
class QgsColorButton: QPushButton
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgscolorbutton.h>
|
#include <qgscolorbutton.h>
|
||||||
@ -15,7 +21,7 @@ class QgsColorButton : QToolButton
|
|||||||
* @param cdo Options for the color chooser dialog
|
* @param cdo Options for the color chooser dialog
|
||||||
* @note changed in 1.9
|
* @note changed in 1.9
|
||||||
*/
|
*/
|
||||||
QgsColorButton( QWidget *parent = 0, QString cdt = "Select Color", QColorDialog::ColorDialogOptions cdo = 0 );
|
QgsColorButton( QWidget *parent = 0, QString cdt = "", QColorDialog::ColorDialogOptions cdo = 0 );
|
||||||
~QgsColorButton();
|
~QgsColorButton();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,11 +71,20 @@ class QgsColorButton : QToolButton
|
|||||||
*/
|
*/
|
||||||
QString colorDialogTitle();
|
QString colorDialogTitle();
|
||||||
|
|
||||||
protected:
|
/**
|
||||||
void paintEvent( QPaintEvent *e );
|
* Whether the button accepts live updates from QColorDialog.
|
||||||
|
*
|
||||||
|
* @note added in 1.9
|
||||||
|
*/
|
||||||
|
bool acceptLiveUpdates();
|
||||||
|
|
||||||
public slots:
|
/**
|
||||||
void onButtonClicked();
|
* Sets whether the button accepts live updates from QColorDialog.
|
||||||
|
* Live updates may cause changes that are not undoable on QColorDialog cancel.
|
||||||
|
*
|
||||||
|
* @note added in 1.9
|
||||||
|
*/
|
||||||
|
void setAcceptLiveUpdates( bool accept );
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**
|
/**
|
||||||
@ -80,19 +95,9 @@ class QgsColorButton : QToolButton
|
|||||||
* @note added in 1.9
|
* @note added in 1.9
|
||||||
*/
|
*/
|
||||||
void colorChanged( const QColor &color );
|
void colorChanged( const QColor &color );
|
||||||
};
|
|
||||||
|
protected:
|
||||||
|
void changeEvent( QEvent* e );
|
||||||
class QgsColorButtonV2 : QPushButton
|
void paintEvent( QPaintEvent* e );
|
||||||
{
|
static const QPixmap& transpBkgrd();
|
||||||
%TypeHeaderCode
|
|
||||||
#include <qgscolorbutton.h>
|
|
||||||
%End
|
|
||||||
|
|
||||||
public:
|
|
||||||
QgsColorButtonV2( QWidget* parent = 0 );
|
|
||||||
QgsColorButtonV2( QString text, QWidget* parent = 0 );
|
|
||||||
|
|
||||||
void setColor( const QColor &color );
|
|
||||||
QColor color() const;
|
|
||||||
};
|
};
|
||||||
|
29
python/gui/qgscolordialog.sip
Normal file
29
python/gui/qgscolordialog.sip
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
|
||||||
|
/** \ingroup gui
|
||||||
|
* \class QgsColorDialog
|
||||||
|
* A dialog for selecting a color
|
||||||
|
*/
|
||||||
|
|
||||||
|
class QgsColorDialog : QObject
|
||||||
|
{
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include <qgscolordialog.h>
|
||||||
|
%End
|
||||||
|
public:
|
||||||
|
QgsColorDialog();
|
||||||
|
~QgsColorDialog();
|
||||||
|
|
||||||
|
/** Return a color selection from a QColorDialog, with live updating of interim selections.
|
||||||
|
* @param initialColor The initial color of the selection dialog.
|
||||||
|
* @param updateObject The receiver object of the live updating.
|
||||||
|
* @param updateSlot The receiver object's slot for live updating (e.g. "setColor( const QColor& )" ).
|
||||||
|
* @param parent Parent widget. Usually 0 is best for native system color dialogs.
|
||||||
|
* @param title The title of the QColorDialog.
|
||||||
|
* @param options ColorDialogOptions passed to QColorDialog.
|
||||||
|
* @return Selected color on accepted() or initialColor on rejected().
|
||||||
|
*/
|
||||||
|
static QColor getLiveColor( const QColor& initialColor, QObject* updateObject, const char* updateSlot,
|
||||||
|
QWidget* parent = 0,
|
||||||
|
const QString& title = "",
|
||||||
|
QColorDialog::ColorDialogOptions options = 0 );
|
||||||
|
};
|
@ -96,7 +96,7 @@ class QgsRendererRulePropsDialog : QDialog
|
|||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsRendererRulePropsDialog( QgsRuleBasedRendererV2::Rule* rule, QgsVectorLayer* layer, QgsStyleV2* style );
|
QgsRendererRulePropsDialog( QgsRuleBasedRendererV2::Rule* rule, QgsVectorLayer* layer, QgsStyleV2* style, QWidget* parent = 0 );
|
||||||
~QgsRendererRulePropsDialog();
|
~QgsRendererRulePropsDialog();
|
||||||
|
|
||||||
QgsRuleBasedRendererV2::Rule* rule();
|
QgsRuleBasedRendererV2::Rule* rule();
|
||||||
|
@ -34,7 +34,7 @@ class QgsSimpleLineSymbolLayerV2Widget : QgsSymbolLayerV2Widget
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void penWidthChanged();
|
void penWidthChanged();
|
||||||
void colorChanged();
|
void colorChanged( const QColor& color );
|
||||||
void penStyleChanged();
|
void penStyleChanged();
|
||||||
void offsetChanged();
|
void offsetChanged();
|
||||||
void on_mCustomCheckBox_stateChanged( int state );
|
void on_mCustomCheckBox_stateChanged( int state );
|
||||||
@ -65,8 +65,8 @@ class QgsSimpleMarkerSymbolLayerV2Widget : QgsSymbolLayerV2Widget
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setName();
|
void setName();
|
||||||
void setColorBorder();
|
void setColorBorder( const QColor& color );
|
||||||
void setColorFill();
|
void setColorFill( const QColor& color );
|
||||||
void setSize();
|
void setSize();
|
||||||
void setAngle();
|
void setAngle();
|
||||||
void setOffset();
|
void setOffset();
|
||||||
@ -90,8 +90,8 @@ class QgsSimpleFillSymbolLayerV2Widget : QgsSymbolLayerV2Widget
|
|||||||
virtual QgsSymbolLayerV2* symbolLayer();
|
virtual QgsSymbolLayerV2* symbolLayer();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setColor();
|
void setColor( const QColor& color );
|
||||||
void setBorderColor();
|
void setBorderColor( const QColor& color );
|
||||||
void setBrushStyle();
|
void setBrushStyle();
|
||||||
void borderWidthChanged();
|
void borderWidthChanged();
|
||||||
void borderStyleChanged();
|
void borderStyleChanged();
|
||||||
@ -150,8 +150,8 @@ class QgsSvgMarkerSymbolLayerV2Widget : QgsSymbolLayerV2Widget
|
|||||||
void setOffset();
|
void setOffset();
|
||||||
void on_mFileToolButton_clicked();
|
void on_mFileToolButton_clicked();
|
||||||
void on_mFileLineEdit_textEdited( const QString& text );
|
void on_mFileLineEdit_textEdited( const QString& text );
|
||||||
void on_mChangeColorButton_clicked();
|
void on_mChangeColorButton_colorChanged( const QColor& color );
|
||||||
void on_mChangeBorderColorButton_clicked();
|
void on_mChangeBorderColorButton_colorChanged( const QColor& color );
|
||||||
void on_mBorderWidthSpinBox_valueChanged( double d );
|
void on_mBorderWidthSpinBox_valueChanged( double d );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -180,7 +180,7 @@ class QgsLineDecorationSymbolLayerV2Widget : QgsSymbolLayerV2Widget
|
|||||||
virtual QgsSymbolLayerV2* symbolLayer();
|
virtual QgsSymbolLayerV2* symbolLayer();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void colorChanged();
|
void colorChanged( const QColor& color );
|
||||||
void penWidthChanged();
|
void penWidthChanged();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ class QgsFontMarkerSymbolLayerV2Widget : QgsSymbolLayerV2Widget
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setFontFamily( const QFont& font );
|
void setFontFamily( const QFont& font );
|
||||||
void setColor();
|
void setColor( const QColor& color );
|
||||||
void setSize( double size );
|
void setSize( double size );
|
||||||
void setAngle( double angle );
|
void setAngle( double angle );
|
||||||
void setCharacter( const QChar& chr );
|
void setCharacter( const QChar& chr );
|
||||||
|
@ -8,7 +8,7 @@ class QgsSymbolsListWidget : QWidget
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setSymbolFromStyle( const QModelIndex & index );
|
void setSymbolFromStyle( const QModelIndex & index );
|
||||||
void setSymbolColor();
|
void setSymbolColor( const QColor& color );
|
||||||
void setMarkerAngle( double angle );
|
void setMarkerAngle( double angle );
|
||||||
void setMarkerSize( double size );
|
void setMarkerSize( double size );
|
||||||
void setLineWidth( double width );
|
void setLineWidth( double width );
|
||||||
|
@ -8,8 +8,8 @@ class QgsVectorGradientColorRampV2Dialog : QDialog
|
|||||||
QgsVectorGradientColorRampV2Dialog( QgsVectorGradientColorRampV2* ramp, QWidget* parent = NULL );
|
QgsVectorGradientColorRampV2Dialog( QgsVectorGradientColorRampV2* ramp, QWidget* parent = NULL );
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setColor1();
|
void setColor1( const QColor& color );
|
||||||
void setColor2();
|
void setColor2( const QColor& color );
|
||||||
|
|
||||||
void toggledStops( bool on );
|
void toggledStops( bool on );
|
||||||
void addStop();
|
void addStop();
|
||||||
|
@ -77,25 +77,17 @@ void QgsComposerArrowWidget::on_mArrowHeadWidthSpinBox_valueChanged( double d )
|
|||||||
mArrow->endCommand();
|
mArrow->endCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsComposerArrowWidget::on_mArrowColorButton_clicked()
|
void QgsComposerArrowWidget::on_mArrowColorButton_colorChanged( const QColor& newColor )
|
||||||
{
|
{
|
||||||
if ( !mArrow )
|
if ( !mArrow )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if QT_VERSION >= 0x040500
|
|
||||||
QColor newColor = QColorDialog::getColor( mArrow->arrowColor(), 0, tr( "Arrow color" ), QColorDialog::ShowAlphaChannel );
|
|
||||||
#else
|
|
||||||
QColor newColor = QColorDialog::getColor( mArrow->arrowColor() );
|
|
||||||
#endif
|
|
||||||
if ( newColor.isValid() )
|
|
||||||
{
|
|
||||||
mArrow->beginCommand( tr( "Arrow color changed" ) );
|
mArrow->beginCommand( tr( "Arrow color changed" ) );
|
||||||
mArrow->setArrowColor( newColor );
|
mArrow->setArrowColor( newColor );
|
||||||
mArrow->update();
|
mArrow->update();
|
||||||
mArrow->endCommand();
|
mArrow->endCommand();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsComposerArrowWidget::blockAllSignals( bool block )
|
void QgsComposerArrowWidget::blockAllSignals( bool block )
|
||||||
@ -120,6 +112,9 @@ void QgsComposerArrowWidget::setGuiElementValues()
|
|||||||
}
|
}
|
||||||
|
|
||||||
blockAllSignals( true );
|
blockAllSignals( true );
|
||||||
|
mArrowColorButton->setColor( mArrow->arrowColor() );
|
||||||
|
mArrowColorButton->setColorDialogTitle( tr( "Select arrow color" ) );
|
||||||
|
mArrowColorButton->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
mOutlineWidthSpinBox->setValue( mArrow->outlineWidth() );
|
mOutlineWidthSpinBox->setValue( mArrow->outlineWidth() );
|
||||||
mArrowHeadWidthSpinBox->setValue( mArrow->arrowHeadWidth() );
|
mArrowHeadWidthSpinBox->setValue( mArrow->arrowHeadWidth() );
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ class QgsComposerArrowWidget: public QWidget, private Ui::QgsComposerArrowWidget
|
|||||||
private slots:
|
private slots:
|
||||||
void on_mOutlineWidthSpinBox_valueChanged( double d );
|
void on_mOutlineWidthSpinBox_valueChanged( double d );
|
||||||
void on_mArrowHeadWidthSpinBox_valueChanged( double d );
|
void on_mArrowHeadWidthSpinBox_valueChanged( double d );
|
||||||
void on_mArrowColorButton_clicked();
|
void on_mArrowColorButton_colorChanged( const QColor& newColor );
|
||||||
void on_mDefaultMarkerRadioButton_toggled( bool toggled );
|
void on_mDefaultMarkerRadioButton_toggled( bool toggled );
|
||||||
void on_mNoMarkerRadioButton_toggled( bool toggled );
|
void on_mNoMarkerRadioButton_toggled( bool toggled );
|
||||||
void on_mSvgMarkerRadioButton_toggled( bool toggled );
|
void on_mSvgMarkerRadioButton_toggled( bool toggled );
|
||||||
|
@ -66,13 +66,14 @@ void QgsComposerItemWidget::on_mFrameColorButton_clicked()
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QColor newFrameColor = QColorDialog::getColor( mItem->pen().color(), 0 );
|
void QgsComposerItemWidget::on_mFrameColorButton_colorChanged( const QColor& newFrameColor )
|
||||||
if ( !newFrameColor.isValid() )
|
{
|
||||||
|
if ( !mItem )
|
||||||
{
|
{
|
||||||
return; //dialog canceled
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mItem->beginCommand( tr( "Frame color changed" ) );
|
mItem->beginCommand( tr( "Frame color changed" ) );
|
||||||
QPen thePen;
|
QPen thePen;
|
||||||
thePen.setColor( newFrameColor );
|
thePen.setColor( newFrameColor );
|
||||||
@ -89,15 +90,17 @@ void QgsComposerItemWidget::on_mBackgroundColorButton_clicked()
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QColor newBackgroundColor = QColorDialog::getColor( mItem->brush().color(), 0 );
|
void QgsComposerItemWidget::on_mBackgroundColorButton_colorChanged( const QColor& newBackgroundColor )
|
||||||
if ( !newBackgroundColor.isValid() )
|
{
|
||||||
|
if ( !mItem )
|
||||||
{
|
{
|
||||||
return; //dialog canceled
|
return;
|
||||||
}
|
}
|
||||||
|
// QColor newColor( newBackgroundColor );
|
||||||
mItem->beginCommand( tr( "Background color changed" ) );
|
mItem->beginCommand( tr( "Background color changed" ) );
|
||||||
newBackgroundColor.setAlpha( 255 - ( mTransparencySpinBox->value() * 2.55 ) );
|
// newColor.setAlpha( 255 - ( mTransparencySpinBox->value() * 2.55 ) );
|
||||||
mItem->setBrush( QBrush( QColor( newBackgroundColor ), Qt::SolidPattern ) );
|
mItem->setBrush( QBrush( QColor( newBackgroundColor ), Qt::SolidPattern ) );
|
||||||
//if the item is a composer map, we need to regenerate the map image
|
//if the item is a composer map, we need to regenerate the map image
|
||||||
//because it usually is cached
|
//because it usually is cached
|
||||||
@ -110,39 +113,39 @@ void QgsComposerItemWidget::on_mBackgroundColorButton_clicked()
|
|||||||
mItem->endCommand();
|
mItem->endCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsComposerItemWidget::on_mTransparencySpinBox_valueChanged( int value )
|
//void QgsComposerItemWidget::on_mTransparencySpinBox_valueChanged( int value )
|
||||||
{
|
//{
|
||||||
if ( !mItem )
|
// if ( !mItem )
|
||||||
{
|
// {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
mTransparencySlider->blockSignals( true );
|
// mTransparencySlider->blockSignals( true );
|
||||||
mTransparencySlider->setValue( value );
|
// mTransparencySlider->setValue( value );
|
||||||
mTransparencySlider->blockSignals( false );
|
// mTransparencySlider->blockSignals( false );
|
||||||
changeItemTransparency( value );
|
// changeItemTransparency( value );
|
||||||
}
|
//}
|
||||||
|
|
||||||
void QgsComposerItemWidget::on_mTransparencySlider_valueChanged( int value )
|
//void QgsComposerItemWidget::on_mTransparencySlider_valueChanged( int value )
|
||||||
{
|
//{
|
||||||
if ( !mItem )
|
// if ( !mItem )
|
||||||
{
|
// {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
// do item updates only off of mTransparencySpinBox valueChanged
|
// // do item updates only off of mTransparencySpinBox valueChanged
|
||||||
mTransparencySpinBox->setValue( value );
|
// mTransparencySpinBox->setValue( value );
|
||||||
}
|
//}
|
||||||
|
|
||||||
void QgsComposerItemWidget::changeItemTransparency( int value )
|
//void QgsComposerItemWidget::changeItemTransparency( int value )
|
||||||
{
|
//{
|
||||||
mItem->beginCommand( tr( "Item transparency changed" ) );
|
// mItem->beginCommand( tr( "Item transparency changed" ) );
|
||||||
QBrush itemBrush = mItem->brush();
|
// QBrush itemBrush = mItem->brush();
|
||||||
QColor brushColor = itemBrush.color();
|
// QColor brushColor = itemBrush.color();
|
||||||
brushColor.setAlpha( 255 - ( value * 2.55 ) );
|
// brushColor.setAlpha( 255 - ( value * 2.55 ) );
|
||||||
mItem->setBrush( QBrush( brushColor ) );
|
// mItem->setBrush( QBrush( brushColor ) );
|
||||||
mItem->update();
|
// mItem->update();
|
||||||
mItem->endCommand();
|
// mItem->endCommand();
|
||||||
}
|
//}
|
||||||
|
|
||||||
void QgsComposerItemWidget::changeItemPosition()
|
void QgsComposerItemWidget::changeItemPosition()
|
||||||
{
|
{
|
||||||
@ -344,30 +347,37 @@ void QgsComposerItemWidget::setValuesForGuiElements()
|
|||||||
|
|
||||||
setValuesForGuiPositionElements();
|
setValuesForGuiPositionElements();
|
||||||
|
|
||||||
mTransparencySlider->blockSignals( true );
|
// mTransparencySlider->blockSignals( true );
|
||||||
mOutlineWidthSpinBox->blockSignals( true );
|
mOutlineWidthSpinBox->blockSignals( true );
|
||||||
mFrameGroupBox->blockSignals( true );
|
mFrameGroupBox->blockSignals( true );
|
||||||
mBackgroundGroupBox->blockSignals( true );
|
mBackgroundGroupBox->blockSignals( true );
|
||||||
mItemIdLineEdit->blockSignals( true );
|
mItemIdLineEdit->blockSignals( true );
|
||||||
mItemUuidLineEdit->blockSignals( true );
|
mItemUuidLineEdit->blockSignals( true );
|
||||||
mTransparencySpinBox->blockSignals( true );
|
// mTransparencySpinBox->blockSignals( true );
|
||||||
|
|
||||||
int alphaPercent = ( 255 - mItem->brush().color().alpha() ) / 2.55;
|
mBackgroundColorButton->setColor( mItem->brush().color() );
|
||||||
mTransparencySpinBox->setValue( alphaPercent );
|
mBackgroundColorButton->setColorDialogTitle( tr( "Select background color" ) );
|
||||||
mTransparencySlider->setValue( alphaPercent );
|
mBackgroundColorButton->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
|
// int alphaPercent = ( 255 - mItem->brush().color().alpha() ) / 2.55;
|
||||||
|
// mTransparencySpinBox->setValue( alphaPercent );
|
||||||
|
// mTransparencySlider->setValue( alphaPercent );
|
||||||
|
|
||||||
|
mFrameColorButton->setColor( mItem->pen().color() );
|
||||||
|
mFrameColorButton->setColorDialogTitle( tr( "Select frame color" ) );
|
||||||
|
mFrameColorButton->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
mOutlineWidthSpinBox->setValue( mItem->pen().widthF() );
|
mOutlineWidthSpinBox->setValue( mItem->pen().widthF() );
|
||||||
mItemIdLineEdit->setText( mItem->id() );
|
mItemIdLineEdit->setText( mItem->id() );
|
||||||
mItemUuidLineEdit->setText( mItem->uuid() );
|
mItemUuidLineEdit->setText( mItem->uuid() );
|
||||||
mFrameGroupBox->setChecked( mItem->hasFrame() );
|
mFrameGroupBox->setChecked( mItem->hasFrame() );
|
||||||
mBackgroundGroupBox->setChecked( mItem->hasBackground() );
|
mBackgroundGroupBox->setChecked( mItem->hasBackground() );
|
||||||
|
|
||||||
mTransparencySlider->blockSignals( false );
|
// mTransparencySlider->blockSignals( false );
|
||||||
mOutlineWidthSpinBox->blockSignals( false );
|
mOutlineWidthSpinBox->blockSignals( false );
|
||||||
mFrameGroupBox->blockSignals( false );
|
mFrameGroupBox->blockSignals( false );
|
||||||
mBackgroundGroupBox->blockSignals( false );
|
mBackgroundGroupBox->blockSignals( false );
|
||||||
mItemIdLineEdit->blockSignals( false );
|
mItemIdLineEdit->blockSignals( false );
|
||||||
mItemUuidLineEdit->blockSignals( false );
|
mItemUuidLineEdit->blockSignals( false );
|
||||||
mTransparencySpinBox->blockSignals( false );
|
// mTransparencySpinBox->blockSignals( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,9 +38,17 @@ class QgsComposerItemWidget: public QWidget, private Ui::QgsComposerItemWidgetBa
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void on_mFrameColorButton_clicked();
|
void on_mFrameColorButton_clicked();
|
||||||
|
/** Set the frame color
|
||||||
|
* @note added in 1.9
|
||||||
|
*/
|
||||||
|
void on_mFrameColorButton_colorChanged( const QColor& newFrameColor );
|
||||||
void on_mBackgroundColorButton_clicked();
|
void on_mBackgroundColorButton_clicked();
|
||||||
void on_mTransparencySlider_valueChanged( int value );
|
/** Set the background color
|
||||||
void on_mTransparencySpinBox_valueChanged( int value );
|
* @note added in 1.9
|
||||||
|
*/
|
||||||
|
void on_mBackgroundColorButton_colorChanged( const QColor& newBackgroundColor );
|
||||||
|
// void on_mTransparencySlider_valueChanged( int value );
|
||||||
|
// void on_mTransparencySpinBox_valueChanged( int value );
|
||||||
void on_mOutlineWidthSpinBox_valueChanged( double d );
|
void on_mOutlineWidthSpinBox_valueChanged( double d );
|
||||||
void on_mFrameGroupBox_toggled( bool state );
|
void on_mFrameGroupBox_toggled( bool state );
|
||||||
void on_mBackgroundGroupBox_toggled( bool state );
|
void on_mBackgroundGroupBox_toggled( bool state );
|
||||||
@ -67,7 +75,7 @@ class QgsComposerItemWidget: public QWidget, private Ui::QgsComposerItemWidgetBa
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QgsComposerItemWidget();
|
QgsComposerItemWidget();
|
||||||
void changeItemTransparency( int value );
|
// void changeItemTransparency( int value );
|
||||||
void changeItemPosition();
|
void changeItemPosition();
|
||||||
|
|
||||||
QgsComposerItem* mItem;
|
QgsComposerItem* mItem;
|
||||||
|
@ -265,24 +265,14 @@ void QgsComposerTableWidget::on_mGridStrokeWidthSpinBox_valueChanged( double d )
|
|||||||
mComposerTable->endCommand();
|
mComposerTable->endCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsComposerTableWidget::on_mGridColorButton_clicked()
|
void QgsComposerTableWidget::on_mGridColorButton_colorChanged( const QColor& newColor )
|
||||||
{
|
{
|
||||||
if ( !mComposerTable )
|
if ( !mComposerTable )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if QT_VERSION >= 0x040500
|
|
||||||
QColor newColor = QColorDialog::getColor( mComposerTable->gridColor(), 0, tr( "Select grid color" ) );
|
|
||||||
#else
|
|
||||||
QColor newColor = QColorDialog::getColor( mComposerTable->gridColor(), 0 );
|
|
||||||
#endif
|
|
||||||
if ( !newColor.isValid() )
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
mComposerTable->beginCommand( tr( "Table grid color" ) );
|
mComposerTable->beginCommand( tr( "Table grid color" ) );
|
||||||
mGridColorButton->setColor( newColor );
|
|
||||||
mComposerTable->setGridColor( newColor );
|
mComposerTable->setGridColor( newColor );
|
||||||
mComposerTable->update();
|
mComposerTable->update();
|
||||||
mComposerTable->endCommand();
|
mComposerTable->endCommand();
|
||||||
@ -336,6 +326,8 @@ void QgsComposerTableWidget::updateGuiElements()
|
|||||||
mMarginSpinBox->setValue( mComposerTable->lineTextDistance() );
|
mMarginSpinBox->setValue( mComposerTable->lineTextDistance() );
|
||||||
mGridStrokeWidthSpinBox->setValue( mComposerTable->gridStrokeWidth() );
|
mGridStrokeWidthSpinBox->setValue( mComposerTable->gridStrokeWidth() );
|
||||||
mGridColorButton->setColor( mComposerTable->gridColor() );
|
mGridColorButton->setColor( mComposerTable->gridColor() );
|
||||||
|
mGridColorButton->setColorDialogTitle( tr( "Select grid color" ) );
|
||||||
|
mGridColorButton->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
if ( mComposerTable->showGrid() )
|
if ( mComposerTable->showGrid() )
|
||||||
{
|
{
|
||||||
mShowGridGroupCheckBox->setChecked( true );
|
mShowGridGroupCheckBox->setChecked( true );
|
||||||
|
@ -46,7 +46,7 @@ class QgsComposerTableWidget: public QWidget, private Ui::QgsComposerTableWidget
|
|||||||
void on_mMaximumColumnsSpinBox_valueChanged( int i );
|
void on_mMaximumColumnsSpinBox_valueChanged( int i );
|
||||||
void on_mMarginSpinBox_valueChanged( double d );
|
void on_mMarginSpinBox_valueChanged( double d );
|
||||||
void on_mGridStrokeWidthSpinBox_valueChanged( double d );
|
void on_mGridStrokeWidthSpinBox_valueChanged( double d );
|
||||||
void on_mGridColorButton_clicked();
|
void on_mGridColorButton_colorChanged( const QColor& newColor );
|
||||||
void on_mHeaderFontPushButton_clicked();
|
void on_mHeaderFontPushButton_clicked();
|
||||||
void on_mContentFontPushButton_clicked();
|
void on_mContentFontPushButton_clicked();
|
||||||
void on_mShowGridGroupCheckBox_toggled( bool state );
|
void on_mShowGridGroupCheckBox_toggled( bool state );
|
||||||
|
@ -64,6 +64,8 @@ QgsCompositionWidget::QgsCompositionWidget( QWidget* parent, QgsComposition* c )
|
|||||||
|
|
||||||
//grid pen color
|
//grid pen color
|
||||||
mGridColorButton->setColor( mComposition->gridPen().color() );
|
mGridColorButton->setColor( mComposition->gridPen().color() );
|
||||||
|
mGridColorButton->setColorDialogTitle( tr( "Select grid color" ) );
|
||||||
|
mGridColorButton->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
|
|
||||||
mGridStyleComboBox->insertItem( 0, tr( "Solid" ) );
|
mGridStyleComboBox->insertItem( 0, tr( "Solid" ) );
|
||||||
mGridStyleComboBox->insertItem( 1, tr( "Dots" ) );
|
mGridStyleComboBox->insertItem( 1, tr( "Dots" ) );
|
||||||
|
@ -178,13 +178,11 @@ void QgsContinuousColorDialog::apply()
|
|||||||
void QgsContinuousColorDialog::selectMinimumColor( const QColor& color )
|
void QgsContinuousColorDialog::selectMinimumColor( const QColor& color )
|
||||||
{
|
{
|
||||||
Q_UNUSED( color )
|
Q_UNUSED( color )
|
||||||
activateWindow();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsContinuousColorDialog::selectMaximumColor( const QColor& color )
|
void QgsContinuousColorDialog::selectMaximumColor( const QColor& color )
|
||||||
{
|
{
|
||||||
Q_UNUSED( color )
|
Q_UNUSED( color )
|
||||||
activateWindow();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsContinuousColorDialog::on_cb_polygonOutline_clicked()
|
void QgsContinuousColorDialog::on_cb_polygonOutline_clicked()
|
||||||
|
@ -70,17 +70,12 @@ void QgsDecorationCopyrightDialog::on_buttonBox_rejected()
|
|||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsDecorationCopyrightDialog::on_pbnColorChooser_clicked()
|
void QgsDecorationCopyrightDialog::on_pbnColorChooser_colorChanged( const QColor& c )
|
||||||
{
|
{
|
||||||
QColor c = QColorDialog::getColor();
|
|
||||||
if ( c.isValid() )
|
|
||||||
{
|
|
||||||
pbnColorChooser->setColor( c );
|
|
||||||
QTextCursor cursor = txtCopyrightText->textCursor();
|
QTextCursor cursor = txtCopyrightText->textCursor();
|
||||||
txtCopyrightText->selectAll();
|
txtCopyrightText->selectAll();
|
||||||
txtCopyrightText->setTextColor( c );
|
txtCopyrightText->setTextColor( c );
|
||||||
txtCopyrightText->setTextCursor( cursor );
|
txtCopyrightText->setTextCursor( cursor );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsDecorationCopyrightDialog::on_buttonBox_helpRequested()
|
void QgsDecorationCopyrightDialog::on_buttonBox_helpRequested()
|
||||||
|
@ -31,7 +31,7 @@ class QgsDecorationCopyrightDialog : public QDialog, private Ui::QgsDecorationCo
|
|||||||
void on_buttonBox_accepted();
|
void on_buttonBox_accepted();
|
||||||
void on_buttonBox_rejected();
|
void on_buttonBox_rejected();
|
||||||
void on_buttonBox_helpRequested();
|
void on_buttonBox_helpRequested();
|
||||||
void on_pbnColorChooser_clicked();
|
void on_pbnColorChooser_colorChanged( const QColor& c );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QgsDecorationCopyright& mDeco;
|
QgsDecorationCopyright& mDeco;
|
||||||
|
@ -251,6 +251,12 @@ QgsLabelingGui::QgsLabelingGui( QgsPalLabeling* lbl, QgsVectorLayer* layer, QgsM
|
|||||||
mBufferJoinStyleComboBox->setPenJoinStyle( lyr.bufferJoinStyle );
|
mBufferJoinStyleComboBox->setPenJoinStyle( lyr.bufferJoinStyle );
|
||||||
mBufferTranspFillChbx->setChecked( !lyr.bufferNoFill );
|
mBufferTranspFillChbx->setChecked( !lyr.bufferNoFill );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// default color
|
||||||
|
// TODO: remove after moving to persistent PAL settings?
|
||||||
|
btnBufferColor->setColor( Qt::white );
|
||||||
|
}
|
||||||
|
|
||||||
bool formattedNumbers = lyr.formatNumbers;
|
bool formattedNumbers = lyr.formatNumbers;
|
||||||
bool plusSign = lyr.plusSign;
|
bool plusSign = lyr.plusSign;
|
||||||
@ -360,6 +366,7 @@ void QgsLabelingGui::collapseSample( bool collapse )
|
|||||||
void QgsLabelingGui::apply()
|
void QgsLabelingGui::apply()
|
||||||
{
|
{
|
||||||
writeSettingsToLayer();
|
writeSettingsToLayer();
|
||||||
|
QgisApp::instance()->markDirty();
|
||||||
// trigger refresh
|
// trigger refresh
|
||||||
if ( mMapCanvas )
|
if ( mMapCanvas )
|
||||||
{
|
{
|
||||||
|
@ -110,9 +110,7 @@ void QgsLabelPropertyDialog::init( const QString& layerId, int featureId, const
|
|||||||
mHaliComboBox->setCurrentIndex( mHaliComboBox->findText( "Left" ) );
|
mHaliComboBox->setCurrentIndex( mHaliComboBox->findText( "Left" ) );
|
||||||
mValiComboBox->setCurrentIndex( mValiComboBox->findText( "Bottom" ) );
|
mValiComboBox->setCurrentIndex( mValiComboBox->findText( "Bottom" ) );
|
||||||
mFontColorButton->setColorDialogTitle( tr( "Font color" ) );
|
mFontColorButton->setColorDialogTitle( tr( "Font color" ) );
|
||||||
mFontColorButton->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
|
||||||
mBufferColorButton->setColorDialogTitle( tr( "Buffer color" ) );
|
mBufferColorButton->setColorDialogTitle( tr( "Buffer color" ) );
|
||||||
mBufferColorButton->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
|
||||||
|
|
||||||
disableGuiElements();
|
disableGuiElements();
|
||||||
|
|
||||||
@ -121,14 +119,14 @@ void QgsLabelPropertyDialog::init( const QString& layerId, int featureId, const
|
|||||||
|
|
||||||
for ( ; propIt != mDataDefinedProperties.constEnd(); ++propIt )
|
for ( ; propIt != mDataDefinedProperties.constEnd(); ++propIt )
|
||||||
{
|
{
|
||||||
|
bool ok = false;
|
||||||
switch ( propIt.key() )
|
switch ( propIt.key() )
|
||||||
{
|
{
|
||||||
case QgsPalLayerSettings::Show:
|
case QgsPalLayerSettings::Show:
|
||||||
{ // new scope to assign variables
|
{ // new scope to assign variables
|
||||||
mShowLabelChkbx->setEnabled( true );
|
mShowLabelChkbx->setEnabled( true );
|
||||||
bool showSuccess;
|
int showLabel = mCurLabelFeat.attribute( propIt.value() ).toInt( &ok );
|
||||||
int showLabel = mCurLabelFeat.attribute( propIt.value() ).toInt( &showSuccess );
|
mShowLabelChkbx->setChecked( !ok || showLabel != 0 );
|
||||||
mShowLabelChkbx->setChecked( !showSuccess || showLabel != 0 );
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QgsPalLayerSettings::AlwaysShow:
|
case QgsPalLayerSettings::AlwaysShow:
|
||||||
@ -136,34 +134,76 @@ void QgsLabelPropertyDialog::init( const QString& layerId, int featureId, const
|
|||||||
mAlwaysShowChkbx->setChecked( mCurLabelFeat.attribute( propIt.value() ).toBool() );
|
mAlwaysShowChkbx->setChecked( mCurLabelFeat.attribute( propIt.value() ).toBool() );
|
||||||
break;
|
break;
|
||||||
case QgsPalLayerSettings::MinScale:
|
case QgsPalLayerSettings::MinScale:
|
||||||
|
{
|
||||||
|
int minScale = mCurLabelFeat.attribute( propIt.value() ).toInt( &ok );
|
||||||
|
if ( ok )
|
||||||
|
{
|
||||||
mMinScaleSpinBox->setEnabled( true );
|
mMinScaleSpinBox->setEnabled( true );
|
||||||
mMinScaleSpinBox->setValue( mCurLabelFeat.attribute( propIt.value() ).toInt() );
|
mMinScaleSpinBox->setValue( minScale );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case QgsPalLayerSettings::MaxScale:
|
case QgsPalLayerSettings::MaxScale:
|
||||||
|
{
|
||||||
|
int maxScale = mCurLabelFeat.attribute( propIt.value() ).toInt( &ok );
|
||||||
|
if ( ok )
|
||||||
|
{
|
||||||
mMaxScaleSpinBox->setEnabled( true );
|
mMaxScaleSpinBox->setEnabled( true );
|
||||||
mMaxScaleSpinBox->setValue( mCurLabelFeat.attribute( propIt.value() ).toInt() );
|
mMaxScaleSpinBox->setValue( maxScale );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case QgsPalLayerSettings::Size:
|
case QgsPalLayerSettings::Size:
|
||||||
|
{
|
||||||
|
double fontSize = mCurLabelFeat.attribute( propIt.value() ).toDouble( &ok );
|
||||||
|
if ( ok )
|
||||||
|
{
|
||||||
mFontSizeSpinBox->setEnabled( true );
|
mFontSizeSpinBox->setEnabled( true );
|
||||||
mLabelFont.setPointSizeF( mCurLabelFeat.attribute( propIt.value() ).toDouble() );
|
mLabelFont.setPointSizeF( fontSize );
|
||||||
mFontSizeSpinBox->setValue( mCurLabelFeat.attribute( propIt.value() ).toDouble() );
|
mFontSizeSpinBox->setValue( fontSize );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case QgsPalLayerSettings::BufferSize:
|
case QgsPalLayerSettings::BufferSize:
|
||||||
|
{
|
||||||
|
double bufferSize = mCurLabelFeat.attribute( propIt.value() ).toDouble( &ok );
|
||||||
|
if ( ok )
|
||||||
|
{
|
||||||
mBufferSizeSpinBox->setEnabled( true );
|
mBufferSizeSpinBox->setEnabled( true );
|
||||||
mBufferSizeSpinBox->setValue( mCurLabelFeat.attribute( propIt.value() ).toDouble() );
|
mBufferSizeSpinBox->setValue( bufferSize );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case QgsPalLayerSettings::PositionX:
|
case QgsPalLayerSettings::PositionX:
|
||||||
|
{
|
||||||
|
double posX = mCurLabelFeat.attribute( propIt.value() ).toDouble( &ok );
|
||||||
|
if ( ok )
|
||||||
|
{
|
||||||
mXCoordSpinBox->setEnabled( true );
|
mXCoordSpinBox->setEnabled( true );
|
||||||
mXCoordSpinBox->setValue( mCurLabelFeat.attribute( propIt.value() ).toDouble() );
|
mXCoordSpinBox->setValue( posX );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case QgsPalLayerSettings::PositionY:
|
case QgsPalLayerSettings::PositionY:
|
||||||
|
{
|
||||||
|
double posY = mCurLabelFeat.attribute( propIt.value() ).toDouble( &ok );
|
||||||
|
if ( ok )
|
||||||
|
{
|
||||||
mYCoordSpinBox->setEnabled( true );
|
mYCoordSpinBox->setEnabled( true );
|
||||||
mYCoordSpinBox->setValue( mCurLabelFeat.attribute( propIt.value() ).toDouble() );
|
mYCoordSpinBox->setValue( posY );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case QgsPalLayerSettings::LabelDistance:
|
case QgsPalLayerSettings::LabelDistance:
|
||||||
|
{
|
||||||
|
double labelDist = mCurLabelFeat.attribute( propIt.value() ).toDouble( &ok );
|
||||||
|
if ( ok )
|
||||||
|
{
|
||||||
mLabelDistanceSpinBox->setEnabled( true );
|
mLabelDistanceSpinBox->setEnabled( true );
|
||||||
mLabelDistanceSpinBox->setValue( mCurLabelFeat.attribute( propIt.value() ).toDouble() );
|
mLabelDistanceSpinBox->setValue( labelDist );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case QgsPalLayerSettings::Hali:
|
case QgsPalLayerSettings::Hali:
|
||||||
mHaliComboBox->setEnabled( true );
|
mHaliComboBox->setEnabled( true );
|
||||||
mHaliComboBox->setCurrentIndex( mHaliComboBox->findText( mCurLabelFeat.attribute( propIt.value() ).toString() ) );
|
mHaliComboBox->setCurrentIndex( mHaliComboBox->findText( mCurLabelFeat.attribute( propIt.value() ).toString() ) );
|
||||||
@ -181,9 +221,15 @@ void QgsLabelPropertyDialog::init( const QString& layerId, int featureId, const
|
|||||||
mFontColorButton->setColor( QColor( mCurLabelFeat.attribute( propIt.value() ).toString() ) );
|
mFontColorButton->setColor( QColor( mCurLabelFeat.attribute( propIt.value() ).toString() ) );
|
||||||
break;
|
break;
|
||||||
case QgsPalLayerSettings::Rotation:
|
case QgsPalLayerSettings::Rotation:
|
||||||
|
{
|
||||||
|
double rot = mCurLabelFeat.attribute( propIt.value() ).toDouble( &ok );
|
||||||
|
if ( ok )
|
||||||
|
{
|
||||||
mRotationSpinBox->setEnabled( true );
|
mRotationSpinBox->setEnabled( true );
|
||||||
mRotationSpinBox->setValue( mCurLabelFeat.attribute( propIt.value() ).toDouble() );
|
mRotationSpinBox->setValue( rot );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
//font related properties
|
//font related properties
|
||||||
case QgsPalLayerSettings::Bold:
|
case QgsPalLayerSettings::Bold:
|
||||||
@ -237,6 +283,7 @@ void QgsLabelPropertyDialog::blockElementSignals( bool block )
|
|||||||
mFontSizeSpinBox->blockSignals( block );
|
mFontSizeSpinBox->blockSignals( block );
|
||||||
mBufferSizeSpinBox->blockSignals( block );
|
mBufferSizeSpinBox->blockSignals( block );
|
||||||
mFontPushButton->blockSignals( block );
|
mFontPushButton->blockSignals( block );
|
||||||
|
mFontColorButton->blockSignals( block );
|
||||||
mBufferColorButton->blockSignals( block );
|
mBufferColorButton->blockSignals( block );
|
||||||
mLabelDistanceSpinBox->blockSignals( block );
|
mLabelDistanceSpinBox->blockSignals( block );
|
||||||
mXCoordSpinBox->blockSignals( block );
|
mXCoordSpinBox->blockSignals( block );
|
||||||
|
@ -490,6 +490,9 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
|
|||||||
|
|
||||||
QString name = QApplication::style()->objectName();
|
QString name = QApplication::style()->objectName();
|
||||||
cmbStyle->setCurrentIndex( cmbStyle->findText( name, Qt::MatchFixedString ) );
|
cmbStyle->setCurrentIndex( cmbStyle->findText( name, Qt::MatchFixedString ) );
|
||||||
|
|
||||||
|
mLiveColorDialogsChkBx->setChecked( settings.value( "/qgis/live_color_dialogs", false ).toBool() );
|
||||||
|
|
||||||
//set the state of the checkboxes
|
//set the state of the checkboxes
|
||||||
//Changed to default to true as of QGIS 1.7
|
//Changed to default to true as of QGIS 1.7
|
||||||
chkAntiAliasing->setChecked( settings.value( "/qgis/enable_anti_aliasing", true ).toBool() );
|
chkAntiAliasing->setChecked( settings.value( "/qgis/enable_anti_aliasing", true ).toBool() );
|
||||||
@ -1085,6 +1088,8 @@ void QgsOptions::saveOptions()
|
|||||||
|
|
||||||
settings.setValue( "/qgis/messageTimeout", mMessageTimeoutSpnBx->value() );
|
settings.setValue( "/qgis/messageTimeout", mMessageTimeoutSpnBx->value() );
|
||||||
|
|
||||||
|
settings.setValue( "/qgis/live_color_dialogs", mLiveColorDialogsChkBx->isChecked() );
|
||||||
|
|
||||||
// rasters settings
|
// rasters settings
|
||||||
settings.setValue( "/Raster/defaultRedBand", spnRed->value() );
|
settings.setValue( "/Raster/defaultRedBand", spnRed->value() );
|
||||||
settings.setValue( "/Raster/defaultGreenBand", spnGreen->value() );
|
settings.setValue( "/Raster/defaultGreenBand", spnGreen->value() );
|
||||||
|
@ -252,14 +252,12 @@ void QgsSingleSymbolDialog::selectOutlineColor( const QColor& color )
|
|||||||
{
|
{
|
||||||
Q_UNUSED( color )
|
Q_UNUSED( color )
|
||||||
emit settingsChanged();
|
emit settingsChanged();
|
||||||
activateWindow();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSingleSymbolDialog::selectFillColor( const QColor& color )
|
void QgsSingleSymbolDialog::selectFillColor( const QColor& color )
|
||||||
{
|
{
|
||||||
Q_UNUSED( color )
|
Q_UNUSED( color )
|
||||||
emit settingsChanged();
|
emit settingsChanged();
|
||||||
activateWindow();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//should this method have a different name?
|
//should this method have a different name?
|
||||||
|
@ -50,6 +50,7 @@ qgsattributeeditor.cpp
|
|||||||
qgslegendinterface.cpp
|
qgslegendinterface.cpp
|
||||||
qgscharacterselectdialog.cpp
|
qgscharacterselectdialog.cpp
|
||||||
qgscolorbutton.cpp
|
qgscolorbutton.cpp
|
||||||
|
qgscolordialog.cpp
|
||||||
qgscomposerview.cpp
|
qgscomposerview.cpp
|
||||||
qgscursors.cpp
|
qgscursors.cpp
|
||||||
qgsdetaileditemdelegate.cpp
|
qgsdetaileditemdelegate.cpp
|
||||||
@ -156,6 +157,7 @@ attributetable/qgsattributetabledelegate.h
|
|||||||
|
|
||||||
qgsattributeeditor.h
|
qgsattributeeditor.h
|
||||||
qgscharacterselectdialog.h
|
qgscharacterselectdialog.h
|
||||||
|
qgscolordialog.h
|
||||||
qgscomposerview.h
|
qgscomposerview.h
|
||||||
qgsdetaileditemdelegate.h
|
qgsdetaileditemdelegate.h
|
||||||
qgsdetaileditemwidget.h
|
qgsdetaileditemwidget.h
|
||||||
@ -205,6 +207,7 @@ SET(QGIS_GUI_HDRS
|
|||||||
qgisgui.h
|
qgisgui.h
|
||||||
qgisinterface.h
|
qgisinterface.h
|
||||||
qgscharacterselectdialog.h
|
qgscharacterselectdialog.h
|
||||||
|
qgscolordialog.h
|
||||||
qgscursors.h
|
qgscursors.h
|
||||||
qgsencodingfiledialog.h
|
qgsencodingfiledialog.h
|
||||||
qgsfiledropedit.h
|
qgsfiledropedit.h
|
||||||
|
@ -14,79 +14,251 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "qgscolorbutton.h"
|
#include "qgscolorbutton.h"
|
||||||
|
#include "qgscolordialog.h"
|
||||||
|
#include "qgsapplication.h"
|
||||||
|
#include "qgslogger.h"
|
||||||
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
#include <QSettings>
|
||||||
|
#include <QTemporaryFile>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class QgsColorButton
|
\class QgsColorButton
|
||||||
|
|
||||||
\brief The QgsColorButton class provides a tool button widget displaying
|
\brief A cross platform button subclass for selecting colors. Will open a color chooser dialog when clicked.
|
||||||
a color which can be altered by calling QColorDialog::getColor.
|
Offers live updates to button from color chooser dialog
|
||||||
|
|
||||||
A subclass of QToolButton is needed to draw the button content because
|
A subclass of QPushButton is needed to draw the button content because
|
||||||
some platforms such as Mac OS X and Windows XP enforce a consistent
|
some platforms such as Mac OS X and Windows XP enforce a consistent
|
||||||
GUI look by always using the button color of the current style and
|
GUI look by always using the button color of the current style and
|
||||||
not allowing button backgrounds to be changed on a button by button basis.
|
not allowing button backgrounds to be changed on a button by button basis.
|
||||||
|
Therefore, a wholely stylesheet-based button is used for the no-text variant.
|
||||||
|
|
||||||
This class is a simplified version of QtColorButton, an internal class used
|
This class is a simplified version of QtColorButton, an internal class used
|
||||||
by Qt Designer to do the same thing.
|
by Qt Designer to do the same thing.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
QgsColorButton::QgsColorButton( QWidget *parent, QString cdt, QColorDialog::ColorDialogOptions cdo )
|
QgsColorButton::QgsColorButton( QWidget *parent, QString cdt, QColorDialog::ColorDialogOptions cdo )
|
||||||
: QToolButton( parent )
|
: QPushButton( parent )
|
||||||
, mColorDialogTitle( cdt )
|
, mColorDialogTitle( cdt.isEmpty() ? tr( "Select Color" ) : cdt )
|
||||||
|
, mColor( Qt::black )
|
||||||
, mColorDialogOptions( cdo )
|
, mColorDialogOptions( cdo )
|
||||||
|
, mAcceptLiveUpdates( true )
|
||||||
|
, mTempPNG( NULL )
|
||||||
{
|
{
|
||||||
setToolButtonStyle( Qt::ToolButtonTextOnly ); // decrease default button height
|
|
||||||
connect( this, SIGNAL( clicked() ), this, SLOT( onButtonClicked() ) );
|
connect( this, SIGNAL( clicked() ), this, SLOT( onButtonClicked() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
QgsColorButton::~QgsColorButton()
|
QgsColorButton::~QgsColorButton()
|
||||||
{}
|
{
|
||||||
|
mTempPNG.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
const QPixmap& QgsColorButton::transpBkgrd()
|
||||||
|
{
|
||||||
|
static QPixmap transpBkgrd;
|
||||||
|
|
||||||
|
if ( transpBkgrd.isNull() )
|
||||||
|
transpBkgrd = QgsApplication::getThemePixmap( "/transp-background_8x8.png" );
|
||||||
|
|
||||||
|
return transpBkgrd;
|
||||||
|
}
|
||||||
|
|
||||||
void QgsColorButton::onButtonClicked()
|
void QgsColorButton::onButtonClicked()
|
||||||
{
|
{
|
||||||
|
//QgsDebugMsg( "entered" );
|
||||||
|
QColor newColor;
|
||||||
#if QT_VERSION >= 0x040500
|
#if QT_VERSION >= 0x040500
|
||||||
QColor newColor = QColorDialog::getColor( color(), 0, mColorDialogTitle, mColorDialogOptions );
|
QSettings settings;
|
||||||
|
if ( mAcceptLiveUpdates && settings.value( "/qgis/live_color_dialogs", false ).toBool() )
|
||||||
|
{
|
||||||
|
newColor = QgsColorDialog::getLiveColor(
|
||||||
|
color(), this, "setValidColor( const QColor& )",
|
||||||
|
this->parentWidget(), mColorDialogTitle, mColorDialogOptions );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newColor = QColorDialog::getColor( color(), this->parentWidget(), mColorDialogTitle, mColorDialogOptions );
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
QColor newColor = QColorDialog::getColor( color() );
|
newColor = QColorDialog::getColor( color(), this->parentWidget() );
|
||||||
#endif
|
#endif
|
||||||
|
setValidColor( newColor );
|
||||||
|
|
||||||
|
// reactivate button's window
|
||||||
|
activateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
void QgsColorButton::setValidColor( const QColor& newColor )
|
||||||
|
{
|
||||||
if ( newColor.isValid() )
|
if ( newColor.isValid() )
|
||||||
{
|
{
|
||||||
setColor( newColor );
|
setColor( newColor );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
void QgsColorButton::changeEvent( QEvent* e )
|
||||||
Paints button in response to a paint event.
|
|
||||||
*/
|
|
||||||
void QgsColorButton::paintEvent( QPaintEvent *e )
|
|
||||||
{
|
{
|
||||||
QToolButton::paintEvent( e );
|
if ( e->type() == QEvent::EnabledChange )
|
||||||
if (
|
|
||||||
#ifdef Q_WS_MAC
|
|
||||||
// Mac shows color only a when a window is active
|
|
||||||
isActiveWindow() &&
|
|
||||||
#endif
|
|
||||||
isEnabled() )
|
|
||||||
{
|
{
|
||||||
QPainter p( this );
|
setButtonBackground();
|
||||||
int margin = 2; // Leave some space for highlighting
|
|
||||||
QRect r = rect().adjusted( margin, margin, -margin, -margin );
|
|
||||||
p.fillRect( r, mColor );
|
|
||||||
}
|
}
|
||||||
|
QPushButton::changeEvent( e );
|
||||||
|
}
|
||||||
|
|
||||||
|
void QgsColorButton::paintEvent( QPaintEvent* e )
|
||||||
|
{
|
||||||
|
setButtonBackground();
|
||||||
|
QPushButton::paintEvent( e );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsColorButton::setColor( const QColor &color )
|
void QgsColorButton::setColor( const QColor &color )
|
||||||
{
|
{
|
||||||
|
if ( !color.isValid() )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
QColor oldColor = mColor;
|
QColor oldColor = mColor;
|
||||||
|
|
||||||
mColor = color;
|
mColor = color;
|
||||||
update();
|
|
||||||
|
|
||||||
if ( oldColor != mColor )
|
if ( oldColor != mColor )
|
||||||
{
|
{
|
||||||
|
setButtonBackground();
|
||||||
|
if ( isEnabled() )
|
||||||
|
{
|
||||||
|
// TODO: May be beneficial to have the option to set color without emitting this signal.
|
||||||
|
// Now done by blockSignals( bool ) where button is used
|
||||||
emit( colorChanged( mColor ) );
|
emit( colorChanged( mColor ) );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void QgsColorButton::setButtonBackground()
|
||||||
|
{
|
||||||
|
if ( !text().isEmpty() )
|
||||||
|
{
|
||||||
|
// generate icon pixmap for regular pushbutton
|
||||||
|
setFlat( false );
|
||||||
|
|
||||||
|
QPixmap pixmap;
|
||||||
|
pixmap = QPixmap( iconSize() );
|
||||||
|
pixmap.fill( QColor( 0, 0, 0, 0 ) );
|
||||||
|
|
||||||
|
int iconW = iconSize().width();
|
||||||
|
int iconH = iconSize().height();
|
||||||
|
QRect rect( 0, 0, iconW, iconH );
|
||||||
|
|
||||||
|
// QPainterPath::addRoundRect has flaws, draw chamfered corners instead
|
||||||
|
QPainterPath roundRect;
|
||||||
|
int chamfer = 3;
|
||||||
|
int inset = 1;
|
||||||
|
roundRect.moveTo( chamfer, inset );
|
||||||
|
roundRect.lineTo( iconW - chamfer, inset );
|
||||||
|
roundRect.lineTo( iconW - inset, chamfer );
|
||||||
|
roundRect.lineTo( iconW - inset, iconH - chamfer );
|
||||||
|
roundRect.lineTo( iconW - chamfer, iconH - inset );
|
||||||
|
roundRect.lineTo( chamfer, iconH - inset );
|
||||||
|
roundRect.lineTo( inset, iconH - chamfer );
|
||||||
|
roundRect.lineTo( inset, chamfer );
|
||||||
|
roundRect.closeSubpath();
|
||||||
|
|
||||||
|
QPainter p;
|
||||||
|
p.begin( &pixmap );
|
||||||
|
p.setRenderHint( QPainter::Antialiasing );
|
||||||
|
p.setClipPath( roundRect );
|
||||||
|
p.setPen( Qt::NoPen );
|
||||||
|
if ( mColor.alpha() < 255 )
|
||||||
|
{
|
||||||
|
p.drawTiledPixmap( rect, transpBkgrd() );
|
||||||
|
}
|
||||||
|
p.setBrush( mColor );
|
||||||
|
p.drawRect( rect );
|
||||||
|
p.end();
|
||||||
|
|
||||||
|
// set this pixmap as icon
|
||||||
|
setIcon( QIcon( pixmap ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// generate temp background image file with checkerboard canvas to be used via stylesheet
|
||||||
|
|
||||||
|
// set flat, or inline spacing (widget margins) needs to be manually calcualted and set
|
||||||
|
setFlat( true );
|
||||||
|
|
||||||
|
bool useAlpha = ( mColorDialogOptions & QColorDialog::ShowAlphaChannel );
|
||||||
|
|
||||||
|
QColor tmpColor( mColor );
|
||||||
|
QString border( "110" );
|
||||||
|
if ( !isEnabled() ) // fake disabled look (use just Qt::lightGray instead?)
|
||||||
|
{
|
||||||
|
int tmpValue = ( 255 - tmpColor.value() ) / 3 + tmpColor.value();
|
||||||
|
tmpColor.setHsv( tmpColor.hue(), tmpColor.saturation() / 2, tmpValue, useAlpha ? tmpColor.alpha() : 255 );
|
||||||
|
|
||||||
|
border = "128";
|
||||||
|
}
|
||||||
|
|
||||||
|
// in case margins need to be adjusted
|
||||||
|
QString margin = QString( "%1px %2px %3px %4px" ).arg( 0 ).arg( 0 ).arg( 0 ).arg( 0 );
|
||||||
|
|
||||||
|
//QgsDebugMsg( QString( "%1 margin: %2" ).arg( objectName() ).arg( margin ) );
|
||||||
|
|
||||||
|
QString bkgrd = QString( " background-color: rgba(%1,%2,%3,%4);" )
|
||||||
|
.arg( tmpColor.red() )
|
||||||
|
.arg( tmpColor.green() )
|
||||||
|
.arg( tmpColor.blue() )
|
||||||
|
.arg( useAlpha ? tmpColor.alpha() : 255 );
|
||||||
|
|
||||||
|
if ( useAlpha && tmpColor.alpha() < 255 )
|
||||||
|
{
|
||||||
|
QPixmap pixmap = transpBkgrd();
|
||||||
|
QRect rect( 0, 0, pixmap.width(), pixmap.height() );
|
||||||
|
|
||||||
|
QPainter p;
|
||||||
|
p.begin( &pixmap );
|
||||||
|
p.setRenderHint( QPainter::Antialiasing );
|
||||||
|
p.setPen( Qt::NoPen );
|
||||||
|
p.setBrush( tmpColor );
|
||||||
|
p.drawRect( rect );
|
||||||
|
p.end();
|
||||||
|
|
||||||
|
if ( mTempPNG.open() )
|
||||||
|
{
|
||||||
|
mTempPNG.setAutoRemove( false );
|
||||||
|
pixmap.save( mTempPNG.fileName(), "PNG" );
|
||||||
|
mTempPNG.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
bkgrd = QString( " background-image: url(%1);" ).arg( mTempPNG.fileName() );
|
||||||
|
}
|
||||||
|
|
||||||
|
//QgsDebugMsg( QString( "%1" ).arg( bkgrd ) );
|
||||||
|
|
||||||
|
setStyleSheet( QString( "QgsColorButton{"
|
||||||
|
" %1"
|
||||||
|
" background-position: top left;"
|
||||||
|
" background-origin: content;"
|
||||||
|
" background-clip: content;"
|
||||||
|
" padding: 2px;"
|
||||||
|
" margin: %2;"
|
||||||
|
" border-style: outset;"
|
||||||
|
" border-width: 1px;"
|
||||||
|
" border-color: rgb(%3,%3,%3);"
|
||||||
|
" border-radius: 3px;} "
|
||||||
|
"QgsColorButton:pressed{"
|
||||||
|
" %1"
|
||||||
|
" background-position: top left;"
|
||||||
|
" background-origin: content;"
|
||||||
|
" background-clip: content;"
|
||||||
|
" padding: 1px;"
|
||||||
|
" margin: %2;"
|
||||||
|
" border-style: inset;"
|
||||||
|
" border-width: 2px;"
|
||||||
|
" border-color: rgb(128,128,128);"
|
||||||
|
" border-radius: 4px;} " )
|
||||||
|
.arg( bkgrd )
|
||||||
|
.arg( margin )
|
||||||
|
.arg( border ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QColor QgsColorButton::color() const
|
QColor QgsColorButton::color() const
|
||||||
@ -113,37 +285,3 @@ QString QgsColorButton::colorDialogTitle()
|
|||||||
{
|
{
|
||||||
return mColorDialogTitle;
|
return mColorDialogTitle;
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////
|
|
||||||
|
|
||||||
QgsColorButtonV2::QgsColorButtonV2( QWidget* parent )
|
|
||||||
: QPushButton( parent )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
QgsColorButtonV2::QgsColorButtonV2( QString text, QWidget* parent )
|
|
||||||
: QPushButton( text, parent )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void QgsColorButtonV2::setColor( const QColor &color )
|
|
||||||
{
|
|
||||||
mColor = color;
|
|
||||||
|
|
||||||
QPixmap pixmap( iconSize() );
|
|
||||||
pixmap.fill( QColor( 0, 0, 0, 0 ) );
|
|
||||||
|
|
||||||
QRect rect( 1, 1, iconSize().width() - 2, iconSize().height() - 2 );
|
|
||||||
|
|
||||||
// draw a slightly rounded rectangle
|
|
||||||
QPainter p;
|
|
||||||
p.begin( &pixmap );
|
|
||||||
p.setPen( Qt::NoPen );
|
|
||||||
p.setRenderHint( QPainter::Antialiasing );
|
|
||||||
p.setBrush( color );
|
|
||||||
p.drawRoundedRect( rect, 4, 4 );
|
|
||||||
p.end();
|
|
||||||
|
|
||||||
// set this pixmap as icon
|
|
||||||
setIcon( QIcon( pixmap ) );
|
|
||||||
}
|
|
||||||
|
@ -16,13 +16,18 @@
|
|||||||
#define QGSCOLORBUTTON_H
|
#define QGSCOLORBUTTON_H
|
||||||
|
|
||||||
#include <QColorDialog>
|
#include <QColorDialog>
|
||||||
#include <QToolButton>
|
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QTemporaryFile>
|
||||||
|
|
||||||
|
|
||||||
/** \ingroup gui
|
/** \ingroup gui
|
||||||
|
* \class QgsColorButton
|
||||||
* A cross platform button subclass for selecting colors. Will open a color chooser dialog when clicked.
|
* A cross platform button subclass for selecting colors. Will open a color chooser dialog when clicked.
|
||||||
|
* Offers live updates to button from color chooser dialog
|
||||||
|
* @note inherited base class moved from QToolButton to QPushButton in QGIS 1.9
|
||||||
*/
|
*/
|
||||||
class GUI_EXPORT QgsColorButton: public QToolButton
|
|
||||||
|
class GUI_EXPORT QgsColorButton: public QPushButton
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@ -35,7 +40,7 @@ class GUI_EXPORT QgsColorButton: public QToolButton
|
|||||||
* @param cdo Options for the color chooser dialog
|
* @param cdo Options for the color chooser dialog
|
||||||
* @note changed in 1.9
|
* @note changed in 1.9
|
||||||
*/
|
*/
|
||||||
QgsColorButton( QWidget *parent = 0, QString cdt = tr( "Select Color" ), QColorDialog::ColorDialogOptions cdo = 0 );
|
QgsColorButton( QWidget *parent = 0, QString cdt = "", QColorDialog::ColorDialogOptions cdo = 0 );
|
||||||
~QgsColorButton();
|
~QgsColorButton();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -85,11 +90,20 @@ class GUI_EXPORT QgsColorButton: public QToolButton
|
|||||||
*/
|
*/
|
||||||
QString colorDialogTitle();
|
QString colorDialogTitle();
|
||||||
|
|
||||||
protected:
|
/**
|
||||||
void paintEvent( QPaintEvent *e );
|
* Whether the button accepts live updates from QColorDialog.
|
||||||
|
*
|
||||||
|
* @note added in 1.9
|
||||||
|
*/
|
||||||
|
bool acceptLiveUpdates() { return mAcceptLiveUpdates; }
|
||||||
|
|
||||||
public slots:
|
/**
|
||||||
void onButtonClicked();
|
* Sets whether the button accepts live updates from QColorDialog.
|
||||||
|
* Live updates may cause changes that are not undoable on QColorDialog cancel.
|
||||||
|
*
|
||||||
|
* @note added in 1.9
|
||||||
|
*/
|
||||||
|
void setAcceptLiveUpdates( bool accept ) { mAcceptLiveUpdates = accept; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**
|
/**
|
||||||
@ -101,24 +115,34 @@ class GUI_EXPORT QgsColorButton: public QToolButton
|
|||||||
*/
|
*/
|
||||||
void colorChanged( const QColor &color );
|
void colorChanged( const QColor &color );
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void changeEvent( QEvent* e );
|
||||||
|
void paintEvent( QPaintEvent* e );
|
||||||
|
static const QPixmap& transpBkgrd();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString mColorDialogTitle;
|
QString mColorDialogTitle;
|
||||||
QColor mColor;
|
QColor mColor;
|
||||||
QColorDialog::ColorDialogOptions mColorDialogOptions;
|
QColorDialog::ColorDialogOptions mColorDialogOptions;
|
||||||
};
|
bool mAcceptLiveUpdates;
|
||||||
|
QTemporaryFile mTempPNG;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void onButtonClicked();
|
||||||
|
|
||||||
class GUI_EXPORT QgsColorButtonV2 : public QPushButton
|
/**
|
||||||
{
|
* Sets the background pixmap for the button based upon set color and transparency.
|
||||||
public:
|
*
|
||||||
QgsColorButtonV2( QWidget* parent = 0 );
|
* @note added in 1.9
|
||||||
QgsColorButtonV2( QString text, QWidget* parent = 0 );
|
*/
|
||||||
|
void setButtonBackground();
|
||||||
|
|
||||||
void setColor( const QColor &color );
|
/**
|
||||||
QColor color() const { return mColor; }
|
* Sets color for button, if valid.
|
||||||
|
*
|
||||||
private:
|
* @note added in 1.9
|
||||||
QColor mColor;
|
*/
|
||||||
|
void setValidColor( const QColor& newColor );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
53
src/gui/qgscolordialog.cpp
Normal file
53
src/gui/qgscolordialog.cpp
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
qgscolordialog.cpp - color selection dialog
|
||||||
|
|
||||||
|
---------------------
|
||||||
|
begin : March 19, 2013
|
||||||
|
copyright : (C) 2013 by Larry Shaffer
|
||||||
|
email : larrys at dakcarto dot com
|
||||||
|
***************************************************************************
|
||||||
|
* *
|
||||||
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include "qgscolordialog.h"
|
||||||
|
|
||||||
|
#include <QMetaObject>
|
||||||
|
|
||||||
|
QgsColorDialog::QgsColorDialog()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QgsColorDialog::~QgsColorDialog()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QColor QgsColorDialog::getLiveColor( const QColor& initialColor, QObject* updateObject, const char* updateSlot,
|
||||||
|
QWidget* parent,
|
||||||
|
const QString& title,
|
||||||
|
QColorDialog::ColorDialogOptions options )
|
||||||
|
{
|
||||||
|
QColor returnColor( initialColor );
|
||||||
|
QColorDialog* liveDialog = new QColorDialog( initialColor, parent );
|
||||||
|
liveDialog->setWindowTitle( title.isEmpty() ? tr( "Select Color" ) : title );
|
||||||
|
liveDialog->setOptions( options );
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
// always use native color dialog on Mac
|
||||||
|
liveDialog->setOption( QColorDialog::DontUseNativeDialog, false );
|
||||||
|
#endif
|
||||||
|
connect( liveDialog, SIGNAL( currentColorChanged( const QColor& ) ),
|
||||||
|
updateObject, QString( "1%1" ).arg( QString( QMetaObject::normalizedSignature( updateSlot ) ) ).toAscii() );
|
||||||
|
|
||||||
|
if ( liveDialog->exec() )
|
||||||
|
{
|
||||||
|
returnColor = liveDialog->currentColor();
|
||||||
|
}
|
||||||
|
delete liveDialog;
|
||||||
|
liveDialog = 0;
|
||||||
|
|
||||||
|
return returnColor;
|
||||||
|
}
|
53
src/gui/qgscolordialog.h
Normal file
53
src/gui/qgscolordialog.h
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
qgscolordialog.h - color selection dialog
|
||||||
|
|
||||||
|
---------------------
|
||||||
|
begin : March 19, 2013
|
||||||
|
copyright : (C) 2013 by Larry Shaffer
|
||||||
|
email : larrys at dakcarto dot com
|
||||||
|
***************************************************************************
|
||||||
|
* *
|
||||||
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#ifndef QGSCOLORDIALOG_H
|
||||||
|
#define QGSCOLORDIALOG_H
|
||||||
|
|
||||||
|
#include <QColorDialog>
|
||||||
|
#include "qgisgui.h"
|
||||||
|
|
||||||
|
class QColor;
|
||||||
|
|
||||||
|
/** \ingroup gui
|
||||||
|
* \class QgsColorDialog
|
||||||
|
* A dialog for selecting a color
|
||||||
|
*/
|
||||||
|
|
||||||
|
class GUI_EXPORT QgsColorDialog : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
QgsColorDialog();
|
||||||
|
~QgsColorDialog();
|
||||||
|
|
||||||
|
/** Return a color selection from a QColorDialog, with live updating of interim selections.
|
||||||
|
* @param initialColor The initial color of the selection dialog.
|
||||||
|
* @param updateObject The receiver object of the live updating.
|
||||||
|
* @param updateSlot The receiver object's slot for live updating (e.g. "setColor( const QColor& )" ).
|
||||||
|
* @param parent Parent widget. Usually 0 is best for native system color dialogs.
|
||||||
|
* @param title The title of the QColorDialog.
|
||||||
|
* @param options ColorDialogOptions passed to QColorDialog.
|
||||||
|
* @return Selected color on accepted() or initialColor on rejected().
|
||||||
|
*/
|
||||||
|
static QColor getLiveColor( const QColor& initialColor, QObject* updateObject, const char* updateSlot,
|
||||||
|
QWidget* parent = 0,
|
||||||
|
const QString& title = "",
|
||||||
|
QColorDialog::ColorDialogOptions options = 0 );
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // #ifndef QGSCOLORDIALOG_H
|
@ -60,7 +60,9 @@ void QgsEllipseSymbolLayerV2Widget::setSymbolLayer( QgsSymbolLayerV2* layer )
|
|||||||
mOutlineWidthSpinBox->setValue( mLayer->outlineWidth() );
|
mOutlineWidthSpinBox->setValue( mLayer->outlineWidth() );
|
||||||
|
|
||||||
btnChangeColorBorder->setColor( mLayer->outlineColor() );
|
btnChangeColorBorder->setColor( mLayer->outlineColor() );
|
||||||
|
btnChangeColorBorder->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
btnChangeColorFill->setColor( mLayer->fillColor() );
|
btnChangeColorFill->setColor( mLayer->fillColor() );
|
||||||
|
btnChangeColorFill->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
|
|
||||||
QList<QListWidgetItem *> symbolItemList = mShapeListWidget->findItems( mLayer->symbolName(), Qt::MatchExactly );
|
QList<QListWidgetItem *> symbolItemList = mShapeListWidget->findItems( mLayer->symbolName(), Qt::MatchExactly );
|
||||||
if ( symbolItemList.size() > 0 )
|
if ( symbolItemList.size() > 0 )
|
||||||
@ -190,32 +192,26 @@ void QgsEllipseSymbolLayerV2Widget::on_mOutlineWidthSpinBox_valueChanged( double
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsEllipseSymbolLayerV2Widget::on_btnChangeColorBorder_clicked()
|
void QgsEllipseSymbolLayerV2Widget::on_btnChangeColorBorder_colorChanged( const QColor& newColor )
|
||||||
{
|
{
|
||||||
if ( mLayer )
|
if ( !mLayer )
|
||||||
{
|
|
||||||
QColor newColor = QColorDialog::getColor( mLayer->outlineColor(), this, "", QColorDialog::ShowAlphaChannel );
|
|
||||||
if ( newColor.isValid() )
|
|
||||||
{
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mLayer->setOutlineColor( newColor );
|
mLayer->setOutlineColor( newColor );
|
||||||
btnChangeColorBorder->setColor( newColor );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsEllipseSymbolLayerV2Widget::on_btnChangeColorFill_clicked()
|
void QgsEllipseSymbolLayerV2Widget::on_btnChangeColorFill_colorChanged( const QColor& newColor )
|
||||||
{
|
{
|
||||||
if ( mLayer )
|
if ( !mLayer )
|
||||||
{
|
|
||||||
QColor newColor = QColorDialog::getColor( mLayer->fillColor(), this, "", QColorDialog::ShowAlphaChannel );
|
|
||||||
if ( newColor.isValid() )
|
|
||||||
{
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mLayer->setFillColor( newColor );
|
mLayer->setFillColor( newColor );
|
||||||
btnChangeColorFill->setColor( newColor );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsEllipseSymbolLayerV2Widget::fillDataDefinedComboBoxes()
|
void QgsEllipseSymbolLayerV2Widget::fillDataDefinedComboBoxes()
|
||||||
|
@ -47,8 +47,8 @@ class GUI_EXPORT QgsEllipseSymbolLayerV2Widget: public QgsSymbolLayerV2Widget, p
|
|||||||
void on_mHeightSpinBox_valueChanged( double d );
|
void on_mHeightSpinBox_valueChanged( double d );
|
||||||
void on_mRotationSpinBox_valueChanged( double d );
|
void on_mRotationSpinBox_valueChanged( double d );
|
||||||
void on_mOutlineWidthSpinBox_valueChanged( double d );
|
void on_mOutlineWidthSpinBox_valueChanged( double d );
|
||||||
void on_btnChangeColorBorder_clicked();
|
void on_btnChangeColorBorder_colorChanged( const QColor& newColor );
|
||||||
void on_btnChangeColorFill_clicked();
|
void on_btnChangeColorFill_colorChanged( const QColor& newColor );
|
||||||
|
|
||||||
void on_mDDSymbolWidthComboBox_currentIndexChanged( int idx );
|
void on_mDDSymbolWidthComboBox_currentIndexChanged( int idx );
|
||||||
void on_mDDSymbolHeightComboBox_currentIndexChanged( int idx );
|
void on_mDDSymbolHeightComboBox_currentIndexChanged( int idx );
|
||||||
|
@ -222,42 +222,24 @@ void QgsPointDisplacementRendererWidget::on_mCircleWidthSpinBox_valueChanged( do
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsPointDisplacementRendererWidget::on_mCircleColorButton_clicked()
|
void QgsPointDisplacementRendererWidget::on_mCircleColorButton_colorChanged( const QColor& newColor )
|
||||||
{
|
{
|
||||||
if ( !mRenderer )
|
if ( !mRenderer )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if QT_VERSION >= 0x040500
|
|
||||||
QColor newColor = QColorDialog::getColor( mRenderer->circleColor(), 0, tr( "Circle color" ), QColorDialog::ShowAlphaChannel );
|
|
||||||
#else
|
|
||||||
QColor newColor = QColorDialog::getColor( mRenderer->circleColor() );
|
|
||||||
#endif
|
|
||||||
if ( newColor.isValid() )
|
|
||||||
{
|
|
||||||
mRenderer->setCircleColor( newColor );
|
mRenderer->setCircleColor( newColor );
|
||||||
mCircleColorButton->setColor( newColor );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsPointDisplacementRendererWidget::on_mLabelColorButton_clicked()
|
void QgsPointDisplacementRendererWidget::on_mLabelColorButton_colorChanged( const QColor& newColor )
|
||||||
{
|
{
|
||||||
if ( !mRenderer )
|
if ( !mRenderer )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if QT_VERSION >= 0x040500
|
|
||||||
QColor newColor = QColorDialog::getColor( mRenderer->labelColor(), 0, tr( "Label color" ), QColorDialog::ShowAlphaChannel );
|
|
||||||
#else
|
|
||||||
QColor newColor = QColorDialog::getColor( mRenderer->labelColor() );
|
|
||||||
#endif
|
|
||||||
if ( newColor.isValid() )
|
|
||||||
{
|
|
||||||
mRenderer->setLabelColor( newColor );
|
mRenderer->setLabelColor( newColor );
|
||||||
mLabelColorButton->setColor( newColor );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsPointDisplacementRendererWidget::on_mCircleModificationSpinBox_valueChanged( double d )
|
void QgsPointDisplacementRendererWidget::on_mCircleModificationSpinBox_valueChanged( double d )
|
||||||
|
@ -46,9 +46,9 @@ class GUI_EXPORT QgsPointDisplacementRendererWidget: public QgsRendererV2Widget,
|
|||||||
void on_mRendererComboBox_currentIndexChanged( int index );
|
void on_mRendererComboBox_currentIndexChanged( int index );
|
||||||
void on_mLabelFontButton_clicked();
|
void on_mLabelFontButton_clicked();
|
||||||
void on_mCircleWidthSpinBox_valueChanged( double d );
|
void on_mCircleWidthSpinBox_valueChanged( double d );
|
||||||
void on_mCircleColorButton_clicked();
|
void on_mCircleColorButton_colorChanged( const QColor& newColor );
|
||||||
void on_mDistanceSpinBox_valueChanged( double d );
|
void on_mDistanceSpinBox_valueChanged( double d );
|
||||||
void on_mLabelColorButton_clicked();
|
void on_mLabelColorButton_colorChanged( const QColor& newColor );
|
||||||
void on_mCircleModificationSpinBox_valueChanged( double d );
|
void on_mCircleModificationSpinBox_valueChanged( double d );
|
||||||
void on_mScaleDependentLabelsCheckBox_stateChanged( int state );
|
void on_mScaleDependentLabelsCheckBox_stateChanged( int state );
|
||||||
void on_mMaxScaleDenominatorEdit_textChanged( const QString & text );
|
void on_mMaxScaleDenominatorEdit_textChanged( const QString & text );
|
||||||
|
@ -115,7 +115,7 @@ void QgsRuleBasedRendererV2Widget::addRule()
|
|||||||
QgsSymbolV2* s = QgsSymbolV2::defaultSymbol( mLayer->geometryType() );
|
QgsSymbolV2* s = QgsSymbolV2::defaultSymbol( mLayer->geometryType() );
|
||||||
QgsRuleBasedRendererV2::Rule* newrule = new QgsRuleBasedRendererV2::Rule( s );
|
QgsRuleBasedRendererV2::Rule* newrule = new QgsRuleBasedRendererV2::Rule( s );
|
||||||
|
|
||||||
QgsRendererRulePropsDialog dlg( newrule, mLayer, mStyle );
|
QgsRendererRulePropsDialog dlg( newrule, mLayer, mStyle, this );
|
||||||
if ( dlg.exec() )
|
if ( dlg.exec() )
|
||||||
{
|
{
|
||||||
QgsRuleBasedRendererV2::Rule* current = currentRule();
|
QgsRuleBasedRendererV2::Rule* current = currentRule();
|
||||||
@ -159,7 +159,7 @@ void QgsRuleBasedRendererV2Widget::editRule( const QModelIndex& index )
|
|||||||
return;
|
return;
|
||||||
QgsRuleBasedRendererV2::Rule* rule = mModel->ruleForIndex( index );
|
QgsRuleBasedRendererV2::Rule* rule = mModel->ruleForIndex( index );
|
||||||
|
|
||||||
QgsRendererRulePropsDialog dlg( rule, mLayer, mStyle );
|
QgsRendererRulePropsDialog dlg( rule, mLayer, mStyle, this );
|
||||||
if ( dlg.exec() )
|
if ( dlg.exec() )
|
||||||
{
|
{
|
||||||
// model should know about the change and emit dataChanged signal for the view
|
// model should know about the change and emit dataChanged signal for the view
|
||||||
@ -478,10 +478,13 @@ void QgsRuleBasedRendererV2Widget::countFeatures()
|
|||||||
|
|
||||||
///////////
|
///////////
|
||||||
|
|
||||||
QgsRendererRulePropsDialog::QgsRendererRulePropsDialog( QgsRuleBasedRendererV2::Rule* rule, QgsVectorLayer* layer, QgsStyleV2* style )
|
QgsRendererRulePropsDialog::QgsRendererRulePropsDialog( QgsRuleBasedRendererV2::Rule* rule, QgsVectorLayer* layer, QgsStyleV2* style, QWidget* parent )
|
||||||
: mRule( rule ), mLayer( layer ), mSymbolSelector( NULL ), mSymbol( NULL )
|
: QDialog( parent ), mRule( rule ), mLayer( layer ), mSymbolSelector( NULL ), mSymbol( NULL )
|
||||||
{
|
{
|
||||||
setupUi( this );
|
setupUi( this );
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
setWindowModality( Qt::WindowModal );
|
||||||
|
#endif
|
||||||
|
|
||||||
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
|
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
|
||||||
connect( buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );
|
connect( buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );
|
||||||
|
@ -156,7 +156,7 @@ class GUI_EXPORT QgsRendererRulePropsDialog : public QDialog, private Ui::QgsRen
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QgsRendererRulePropsDialog( QgsRuleBasedRendererV2::Rule* rule, QgsVectorLayer* layer, QgsStyleV2* style );
|
QgsRendererRulePropsDialog( QgsRuleBasedRendererV2::Rule* rule, QgsVectorLayer* layer, QgsStyleV2* style, QWidget* parent = 0 );
|
||||||
~QgsRendererRulePropsDialog();
|
~QgsRendererRulePropsDialog();
|
||||||
|
|
||||||
QgsRuleBasedRendererV2::Rule* rule() { return mRule; }
|
QgsRuleBasedRendererV2::Rule* rule() { return mRule; }
|
||||||
|
@ -45,6 +45,9 @@ QgsStyleV2ManagerDialog::QgsStyleV2ManagerDialog( QgsStyleV2* style, QWidget* pa
|
|||||||
: QDialog( parent ), mStyle( style ), mModified( false )
|
: QDialog( parent ), mStyle( style ), mModified( false )
|
||||||
{
|
{
|
||||||
setupUi( this );
|
setupUi( this );
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
setWindowModality( Qt::WindowModal );
|
||||||
|
#endif
|
||||||
|
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
restoreGeometry( settings.value( "/Windows/StyleV2Manager/geometry" ).toByteArray() );
|
restoreGeometry( settings.value( "/Windows/StyleV2Manager/geometry" ).toByteArray() );
|
||||||
|
@ -52,7 +52,7 @@ QgsSimpleLineSymbolLayerV2Widget::QgsSimpleLineSymbolLayerV2Widget( const QgsVec
|
|||||||
setupUi( this );
|
setupUi( this );
|
||||||
|
|
||||||
connect( spinWidth, SIGNAL( valueChanged( double ) ), this, SLOT( penWidthChanged() ) );
|
connect( spinWidth, SIGNAL( valueChanged( double ) ), this, SLOT( penWidthChanged() ) );
|
||||||
connect( btnChangeColor, SIGNAL( clicked() ), this, SLOT( colorChanged() ) );
|
connect( btnChangeColor, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( colorChanged( const QColor& ) ) );
|
||||||
connect( cboPenStyle, SIGNAL( currentIndexChanged( int ) ), this, SLOT( penStyleChanged() ) );
|
connect( cboPenStyle, SIGNAL( currentIndexChanged( int ) ), this, SLOT( penStyleChanged() ) );
|
||||||
connect( spinOffset, SIGNAL( valueChanged( double ) ), this, SLOT( offsetChanged() ) );
|
connect( spinOffset, SIGNAL( valueChanged( double ) ), this, SLOT( offsetChanged() ) );
|
||||||
connect( cboCapStyle, SIGNAL( currentIndexChanged( int ) ), this, SLOT( penStyleChanged() ) );
|
connect( cboCapStyle, SIGNAL( currentIndexChanged( int ) ), this, SLOT( penStyleChanged() ) );
|
||||||
@ -83,6 +83,7 @@ void QgsSimpleLineSymbolLayerV2Widget::setSymbolLayer( QgsSymbolLayerV2* layer )
|
|||||||
// set values
|
// set values
|
||||||
spinWidth->setValue( mLayer->width() );
|
spinWidth->setValue( mLayer->width() );
|
||||||
btnChangeColor->setColor( mLayer->color() );
|
btnChangeColor->setColor( mLayer->color() );
|
||||||
|
btnChangeColor->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
spinOffset->setValue( mLayer->offset() );
|
spinOffset->setValue( mLayer->offset() );
|
||||||
cboPenStyle->blockSignals( true );
|
cboPenStyle->blockSignals( true );
|
||||||
cboJoinStyle->blockSignals( true );
|
cboJoinStyle->blockSignals( true );
|
||||||
@ -117,20 +118,9 @@ void QgsSimpleLineSymbolLayerV2Widget::penWidthChanged()
|
|||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSimpleLineSymbolLayerV2Widget::colorChanged()
|
void QgsSimpleLineSymbolLayerV2Widget::colorChanged( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this, "", QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this, "", QColorDialog::ShowAlphaChannel );
|
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
|
||||||
return;
|
|
||||||
mLayer->setColor( color );
|
mLayer->setColor( color );
|
||||||
btnChangeColor->setColor( mLayer->color() );
|
|
||||||
updatePatternIcon();
|
updatePatternIcon();
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
@ -241,8 +231,8 @@ QgsSimpleMarkerSymbolLayerV2Widget::QgsSimpleMarkerSymbolLayerV2Widget( const Qg
|
|||||||
}
|
}
|
||||||
|
|
||||||
connect( lstNames, SIGNAL( currentRowChanged( int ) ), this, SLOT( setName() ) );
|
connect( lstNames, SIGNAL( currentRowChanged( int ) ), this, SLOT( setName() ) );
|
||||||
connect( btnChangeColorBorder, SIGNAL( clicked() ), this, SLOT( setColorBorder() ) );
|
connect( btnChangeColorBorder, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( setColorBorder( const QColor& ) ) );
|
||||||
connect( btnChangeColorFill, SIGNAL( clicked() ), this, SLOT( setColorFill() ) );
|
connect( btnChangeColorFill, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( setColorFill( const QColor& ) ) );
|
||||||
connect( spinSize, SIGNAL( valueChanged( double ) ), this, SLOT( setSize() ) );
|
connect( spinSize, SIGNAL( valueChanged( double ) ), this, SLOT( setSize() ) );
|
||||||
connect( spinAngle, SIGNAL( valueChanged( double ) ), this, SLOT( setAngle() ) );
|
connect( spinAngle, SIGNAL( valueChanged( double ) ), this, SLOT( setAngle() ) );
|
||||||
connect( spinOffsetX, SIGNAL( valueChanged( double ) ), this, SLOT( setOffset() ) );
|
connect( spinOffsetX, SIGNAL( valueChanged( double ) ), this, SLOT( setOffset() ) );
|
||||||
@ -268,7 +258,9 @@ void QgsSimpleMarkerSymbolLayerV2Widget::setSymbolLayer( QgsSymbolLayerV2* layer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
btnChangeColorBorder->setColor( mLayer->borderColor() );
|
btnChangeColorBorder->setColor( mLayer->borderColor() );
|
||||||
|
btnChangeColorBorder->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
btnChangeColorFill->setColor( mLayer->color() );
|
btnChangeColorFill->setColor( mLayer->color() );
|
||||||
|
btnChangeColorFill->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
spinSize->setValue( mLayer->size() );
|
spinSize->setValue( mLayer->size() );
|
||||||
spinAngle->setValue( mLayer->angle() );
|
spinAngle->setValue( mLayer->angle() );
|
||||||
|
|
||||||
@ -299,37 +291,15 @@ void QgsSimpleMarkerSymbolLayerV2Widget::setName()
|
|||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSimpleMarkerSymbolLayerV2Widget::setColorBorder()
|
void QgsSimpleMarkerSymbolLayerV2Widget::setColorBorder( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
mLayer->setBorderColor( color );
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor borderColor = QColorDialog::getColor( mLayer->borderColor(), this, "", QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
|
|
||||||
#else
|
|
||||||
QColor borderColor = QColorDialog::getColor( mLayer->borderColor(), this, "", QColorDialog::ShowAlphaChannel );
|
|
||||||
#endif
|
|
||||||
if ( !borderColor.isValid() )
|
|
||||||
return;
|
|
||||||
mLayer->setBorderColor( borderColor );
|
|
||||||
btnChangeColorBorder->setColor( mLayer->borderColor() );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSimpleMarkerSymbolLayerV2Widget::setColorFill()
|
void QgsSimpleMarkerSymbolLayerV2Widget::setColorFill( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this, "", QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this, "", QColorDialog::ShowAlphaChannel );
|
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
|
||||||
return;
|
|
||||||
mLayer->setColor( color );
|
mLayer->setColor( color );
|
||||||
btnChangeColorFill->setColor( mLayer->color() );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -379,9 +349,9 @@ QgsSimpleFillSymbolLayerV2Widget::QgsSimpleFillSymbolLayerV2Widget( const QgsVec
|
|||||||
|
|
||||||
setupUi( this );
|
setupUi( this );
|
||||||
|
|
||||||
connect( btnChangeColor, SIGNAL( clicked() ), this, SLOT( setColor() ) );
|
connect( btnChangeColor, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( setColor( const QColor& ) ) );
|
||||||
connect( cboFillStyle, SIGNAL( currentIndexChanged( int ) ), this, SLOT( setBrushStyle() ) );
|
connect( cboFillStyle, SIGNAL( currentIndexChanged( int ) ), this, SLOT( setBrushStyle() ) );
|
||||||
connect( btnChangeBorderColor, SIGNAL( clicked() ), this, SLOT( setBorderColor() ) );
|
connect( btnChangeBorderColor, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( setBorderColor( const QColor& ) ) );
|
||||||
connect( spinBorderWidth, SIGNAL( valueChanged( double ) ), this, SLOT( borderWidthChanged() ) );
|
connect( spinBorderWidth, SIGNAL( valueChanged( double ) ), this, SLOT( borderWidthChanged() ) );
|
||||||
connect( cboBorderStyle, SIGNAL( currentIndexChanged( int ) ), this, SLOT( borderStyleChanged() ) );
|
connect( cboBorderStyle, SIGNAL( currentIndexChanged( int ) ), this, SLOT( borderStyleChanged() ) );
|
||||||
connect( spinOffsetX, SIGNAL( valueChanged( double ) ), this, SLOT( offsetChanged() ) );
|
connect( spinOffsetX, SIGNAL( valueChanged( double ) ), this, SLOT( offsetChanged() ) );
|
||||||
@ -398,8 +368,10 @@ void QgsSimpleFillSymbolLayerV2Widget::setSymbolLayer( QgsSymbolLayerV2* layer )
|
|||||||
|
|
||||||
// set values
|
// set values
|
||||||
btnChangeColor->setColor( mLayer->color() );
|
btnChangeColor->setColor( mLayer->color() );
|
||||||
|
btnChangeColor->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
cboFillStyle->setBrushStyle( mLayer->brushStyle() );
|
cboFillStyle->setBrushStyle( mLayer->brushStyle() );
|
||||||
btnChangeBorderColor->setColor( mLayer->borderColor() );
|
btnChangeBorderColor->setColor( mLayer->borderColor() );
|
||||||
|
btnChangeBorderColor->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
cboBorderStyle->setPenStyle( mLayer->borderStyle() );
|
cboBorderStyle->setPenStyle( mLayer->borderStyle() );
|
||||||
spinBorderWidth->setValue( mLayer->borderWidth() );
|
spinBorderWidth->setValue( mLayer->borderWidth() );
|
||||||
spinOffsetX->blockSignals( true );
|
spinOffsetX->blockSignals( true );
|
||||||
@ -422,37 +394,15 @@ QgsSymbolLayerV2* QgsSimpleFillSymbolLayerV2Widget::symbolLayer()
|
|||||||
return mLayer;
|
return mLayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSimpleFillSymbolLayerV2Widget::setColor()
|
void QgsSimpleFillSymbolLayerV2Widget::setColor( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this, "", QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this, "", QColorDialog::ShowAlphaChannel );
|
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
|
||||||
return;
|
|
||||||
mLayer->setColor( color );
|
mLayer->setColor( color );
|
||||||
btnChangeColor->setColor( mLayer->color() );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSimpleFillSymbolLayerV2Widget::setBorderColor()
|
void QgsSimpleFillSymbolLayerV2Widget::setBorderColor( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->borderColor(), this, "", QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->borderColor(), this, "", QColorDialog::ShowAlphaChannel );
|
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
|
||||||
return;
|
|
||||||
mLayer->setBorderColor( color );
|
mLayer->setBorderColor( color );
|
||||||
btnChangeBorderColor->setColor( mLayer->borderColor() );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -936,34 +886,26 @@ void QgsSvgMarkerSymbolLayerV2Widget::on_mFileLineEdit_editingFinished()
|
|||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSvgMarkerSymbolLayerV2Widget::on_mChangeColorButton_clicked()
|
void QgsSvgMarkerSymbolLayerV2Widget::on_mChangeColorButton_colorChanged( const QColor& color )
|
||||||
{
|
{
|
||||||
if ( !mLayer )
|
if ( !mLayer )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QColor c = QColorDialog::getColor( mLayer->fillColor() );
|
|
||||||
if ( c.isValid() )
|
mLayer->setFillColor( color );
|
||||||
{
|
|
||||||
mLayer->setFillColor( c );
|
|
||||||
mChangeColorButton->setColor( c );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSvgMarkerSymbolLayerV2Widget::on_mChangeBorderColorButton_clicked()
|
void QgsSvgMarkerSymbolLayerV2Widget::on_mChangeBorderColorButton_colorChanged( const QColor& color )
|
||||||
{
|
{
|
||||||
if ( !mLayer )
|
if ( !mLayer )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QColor c = QColorDialog::getColor( mLayer->outlineColor() );
|
|
||||||
if ( c.isValid() )
|
mLayer->setOutlineColor( color );
|
||||||
{
|
|
||||||
mLayer->setOutlineColor( c );
|
|
||||||
mChangeBorderColorButton->setColor( c );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSvgMarkerSymbolLayerV2Widget::on_mBorderWidthSpinBox_valueChanged( double d )
|
void QgsSvgMarkerSymbolLayerV2Widget::on_mBorderWidthSpinBox_valueChanged( double d )
|
||||||
@ -1011,7 +953,7 @@ QgsLineDecorationSymbolLayerV2Widget::QgsLineDecorationSymbolLayerV2Widget( cons
|
|||||||
|
|
||||||
setupUi( this );
|
setupUi( this );
|
||||||
|
|
||||||
connect( btnChangeColor, SIGNAL( clicked() ), this, SLOT( colorChanged() ) );
|
connect( btnChangeColor, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( colorChanged( const QColor& ) ) );
|
||||||
connect( spinWidth, SIGNAL( valueChanged( double ) ), this, SLOT( penWidthChanged() ) );
|
connect( spinWidth, SIGNAL( valueChanged( double ) ), this, SLOT( penWidthChanged() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1037,20 +979,9 @@ QgsSymbolLayerV2* QgsLineDecorationSymbolLayerV2Widget::symbolLayer()
|
|||||||
return mLayer;
|
return mLayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsLineDecorationSymbolLayerV2Widget::colorChanged()
|
void QgsLineDecorationSymbolLayerV2Widget::colorChanged( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this, "", QColorDialog::DontUseNativeDialog );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this );
|
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
|
||||||
return;
|
|
||||||
mLayer->setColor( color );
|
mLayer->setColor( color );
|
||||||
btnChangeColor->setColor( mLayer->color() );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1241,34 +1172,26 @@ void QgsSVGFillSymbolLayerWidget::updateParamGui()
|
|||||||
mBorderWidthSpinBox->setEnabled( hasOutlineWidthParam );
|
mBorderWidthSpinBox->setEnabled( hasOutlineWidthParam );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSVGFillSymbolLayerWidget::on_mChangeColorButton_clicked()
|
void QgsSVGFillSymbolLayerWidget::on_mChangeColorButton_colorChanged( const QColor& color )
|
||||||
{
|
{
|
||||||
if ( !mLayer )
|
if ( !mLayer )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QColor c = QColorDialog::getColor( mLayer->svgFillColor() );
|
|
||||||
if ( c.isValid() )
|
mLayer->setSvgFillColor( color );
|
||||||
{
|
|
||||||
mLayer->setSvgFillColor( c );
|
|
||||||
mChangeColorButton->setColor( c );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSVGFillSymbolLayerWidget::on_mChangeBorderColorButton_clicked()
|
void QgsSVGFillSymbolLayerWidget::on_mChangeBorderColorButton_colorChanged( const QColor& color )
|
||||||
{
|
{
|
||||||
if ( !mLayer )
|
if ( !mLayer )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QColor c = QColorDialog::getColor( mLayer->svgOutlineColor() );
|
|
||||||
if ( c.isValid() )
|
mLayer->setSvgOutlineColor( color );
|
||||||
{
|
|
||||||
mLayer->setSvgOutlineColor( c );
|
|
||||||
mChangeBorderColorButton->setColor( c );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSVGFillSymbolLayerWidget::on_mBorderWidthSpinBox_valueChanged( double d )
|
void QgsSVGFillSymbolLayerWidget::on_mBorderWidthSpinBox_valueChanged( double d )
|
||||||
@ -1377,18 +1300,15 @@ void QgsLinePatternFillSymbolLayerWidget::on_mOffsetSpinBox_valueChanged( double
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsLinePatternFillSymbolLayerWidget::on_mColorPushButton_clicked()
|
void QgsLinePatternFillSymbolLayerWidget::on_mColorPushButton_colorChanged( const QColor& color )
|
||||||
{
|
{
|
||||||
if ( mLayer )
|
if ( !mLayer )
|
||||||
{
|
{
|
||||||
QColor c = QColorDialog::getColor( mLayer->color() );
|
return;
|
||||||
if ( c.isValid() )
|
}
|
||||||
{
|
|
||||||
mLayer->setColor( c );
|
mLayer->setColor( color );
|
||||||
mColorPushButton->setColor( c );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsLinePatternFillSymbolLayerWidget::on_mDistanceUnitComboBox_currentIndexChanged( int index )
|
void QgsLinePatternFillSymbolLayerWidget::on_mDistanceUnitComboBox_currentIndexChanged( int index )
|
||||||
@ -1545,7 +1465,7 @@ QgsFontMarkerSymbolLayerV2Widget::QgsFontMarkerSymbolLayerV2Widget( const QgsVec
|
|||||||
|
|
||||||
connect( cboFont, SIGNAL( currentFontChanged( const QFont & ) ), this, SLOT( setFontFamily( const QFont& ) ) );
|
connect( cboFont, SIGNAL( currentFontChanged( const QFont & ) ), this, SLOT( setFontFamily( const QFont& ) ) );
|
||||||
connect( spinSize, SIGNAL( valueChanged( double ) ), this, SLOT( setSize( double ) ) );
|
connect( spinSize, SIGNAL( valueChanged( double ) ), this, SLOT( setSize( double ) ) );
|
||||||
connect( btnColor, SIGNAL( clicked() ), this, SLOT( setColor() ) );
|
connect( btnColor, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( setColor( const QColor& ) ) );
|
||||||
connect( spinAngle, SIGNAL( valueChanged( double ) ), this, SLOT( setAngle( double ) ) );
|
connect( spinAngle, SIGNAL( valueChanged( double ) ), this, SLOT( setAngle( double ) ) );
|
||||||
connect( spinOffsetX, SIGNAL( valueChanged( double ) ), this, SLOT( setOffset() ) );
|
connect( spinOffsetX, SIGNAL( valueChanged( double ) ), this, SLOT( setOffset() ) );
|
||||||
connect( spinOffsetY, SIGNAL( valueChanged( double ) ), this, SLOT( setOffset() ) );
|
connect( spinOffsetY, SIGNAL( valueChanged( double ) ), this, SLOT( setOffset() ) );
|
||||||
@ -1596,20 +1516,9 @@ void QgsFontMarkerSymbolLayerV2Widget::setFontFamily( const QFont& font )
|
|||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsFontMarkerSymbolLayerV2Widget::setColor()
|
void QgsFontMarkerSymbolLayerV2Widget::setColor( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this, "", QColorDialog::DontUseNativeDialog );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( mLayer->color(), this );
|
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
|
||||||
return;
|
|
||||||
mLayer->setColor( color );
|
mLayer->setColor( color );
|
||||||
btnColor->setColor( mLayer->color() );
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ class GUI_EXPORT QgsSimpleLineSymbolLayerV2Widget : public QgsSymbolLayerV2Widge
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void penWidthChanged();
|
void penWidthChanged();
|
||||||
void colorChanged();
|
void colorChanged( const QColor& color );
|
||||||
void penStyleChanged();
|
void penStyleChanged();
|
||||||
void offsetChanged();
|
void offsetChanged();
|
||||||
void on_mCustomCheckBox_stateChanged( int state );
|
void on_mCustomCheckBox_stateChanged( int state );
|
||||||
@ -100,8 +100,8 @@ class GUI_EXPORT QgsSimpleMarkerSymbolLayerV2Widget : public QgsSymbolLayerV2Wid
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setName();
|
void setName();
|
||||||
void setColorBorder();
|
void setColorBorder( const QColor& color );
|
||||||
void setColorFill();
|
void setColorFill( const QColor& color );
|
||||||
void setSize();
|
void setSize();
|
||||||
void setAngle();
|
void setAngle();
|
||||||
void setOffset();
|
void setOffset();
|
||||||
@ -132,8 +132,8 @@ class GUI_EXPORT QgsSimpleFillSymbolLayerV2Widget : public QgsSymbolLayerV2Widge
|
|||||||
virtual QgsSymbolLayerV2* symbolLayer();
|
virtual QgsSymbolLayerV2* symbolLayer();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setColor();
|
void setColor( const QColor& color );
|
||||||
void setBorderColor();
|
void setBorderColor( const QColor& color );
|
||||||
void setBrushStyle();
|
void setBrushStyle();
|
||||||
void borderWidthChanged();
|
void borderWidthChanged();
|
||||||
void borderStyleChanged();
|
void borderStyleChanged();
|
||||||
@ -208,8 +208,8 @@ class GUI_EXPORT QgsSvgMarkerSymbolLayerV2Widget : public QgsSymbolLayerV2Widget
|
|||||||
void on_mFileToolButton_clicked();
|
void on_mFileToolButton_clicked();
|
||||||
void on_mFileLineEdit_textEdited( const QString& text );
|
void on_mFileLineEdit_textEdited( const QString& text );
|
||||||
void on_mFileLineEdit_editingFinished();
|
void on_mFileLineEdit_editingFinished();
|
||||||
void on_mChangeColorButton_clicked();
|
void on_mChangeColorButton_colorChanged( const QColor& color );
|
||||||
void on_mChangeBorderColorButton_clicked();
|
void on_mChangeBorderColorButton_colorChanged( const QColor& color );
|
||||||
void on_mBorderWidthSpinBox_valueChanged( double d );
|
void on_mBorderWidthSpinBox_valueChanged( double d );
|
||||||
void on_mSizeUnitComboBox_currentIndexChanged( int index );
|
void on_mSizeUnitComboBox_currentIndexChanged( int index );
|
||||||
void on_mBorderWidthUnitComboBox_currentIndexChanged( int index );
|
void on_mBorderWidthUnitComboBox_currentIndexChanged( int index );
|
||||||
@ -245,7 +245,7 @@ class GUI_EXPORT QgsLineDecorationSymbolLayerV2Widget : public QgsSymbolLayerV2W
|
|||||||
virtual QgsSymbolLayerV2* symbolLayer();
|
virtual QgsSymbolLayerV2* symbolLayer();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void colorChanged();
|
void colorChanged( const QColor& color );
|
||||||
void penWidthChanged();
|
void penWidthChanged();
|
||||||
void on_mWidthUnitComboBox_currentIndexChanged( int index );
|
void on_mWidthUnitComboBox_currentIndexChanged( int index );
|
||||||
|
|
||||||
@ -285,8 +285,8 @@ class GUI_EXPORT QgsSVGFillSymbolLayerWidget : public QgsSymbolLayerV2Widget, pr
|
|||||||
void setFile( const QModelIndex& item );
|
void setFile( const QModelIndex& item );
|
||||||
void populateIcons( const QModelIndex& item );
|
void populateIcons( const QModelIndex& item );
|
||||||
void on_mRotationSpinBox_valueChanged( double d );
|
void on_mRotationSpinBox_valueChanged( double d );
|
||||||
void on_mChangeColorButton_clicked();
|
void on_mChangeColorButton_colorChanged( const QColor& color );
|
||||||
void on_mChangeBorderColorButton_clicked();
|
void on_mChangeBorderColorButton_colorChanged( const QColor& color );
|
||||||
void on_mBorderWidthSpinBox_valueChanged( double d );
|
void on_mBorderWidthSpinBox_valueChanged( double d );
|
||||||
void on_mTextureWidthUnitComboBox_currentIndexChanged( int index );
|
void on_mTextureWidthUnitComboBox_currentIndexChanged( int index );
|
||||||
void on_mSvgOutlineWidthUnitComboBox_currentIndexChanged( int index );
|
void on_mSvgOutlineWidthUnitComboBox_currentIndexChanged( int index );
|
||||||
@ -318,7 +318,7 @@ class GUI_EXPORT QgsLinePatternFillSymbolLayerWidget : public QgsSymbolLayerV2Wi
|
|||||||
void on_mDistanceSpinBox_valueChanged( double d );
|
void on_mDistanceSpinBox_valueChanged( double d );
|
||||||
void on_mLineWidthSpinBox_valueChanged( double d );
|
void on_mLineWidthSpinBox_valueChanged( double d );
|
||||||
void on_mOffsetSpinBox_valueChanged( double d );
|
void on_mOffsetSpinBox_valueChanged( double d );
|
||||||
void on_mColorPushButton_clicked();
|
void on_mColorPushButton_colorChanged( const QColor& color );
|
||||||
void on_mDistanceUnitComboBox_currentIndexChanged( int index );
|
void on_mDistanceUnitComboBox_currentIndexChanged( int index );
|
||||||
void on_mLineWidthUnitComboBox_currentIndexChanged( int index );
|
void on_mLineWidthUnitComboBox_currentIndexChanged( int index );
|
||||||
void on_mOffsetUnitComboBox_currentIndexChanged( int index );
|
void on_mOffsetUnitComboBox_currentIndexChanged( int index );
|
||||||
@ -377,7 +377,7 @@ class GUI_EXPORT QgsFontMarkerSymbolLayerV2Widget : public QgsSymbolLayerV2Widge
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setFontFamily( const QFont& font );
|
void setFontFamily( const QFont& font );
|
||||||
void setColor();
|
void setColor( const QColor& color );
|
||||||
void setSize( double size );
|
void setSize( double size );
|
||||||
void setAngle( double angle );
|
void setAngle( double angle );
|
||||||
void setCharacter( const QChar& chr );
|
void setCharacter( const QChar& chr );
|
||||||
|
@ -99,12 +99,14 @@ QgsSymbolsListWidget::QgsSymbolsListWidget( QgsSymbolV2* symbol, QgsStyleV2* sty
|
|||||||
// select correct page in stacked widget
|
// select correct page in stacked widget
|
||||||
// there's a correspondence between symbol type number and page numbering => exploit it!
|
// there's a correspondence between symbol type number and page numbering => exploit it!
|
||||||
stackedWidget->setCurrentIndex( symbol->type() );
|
stackedWidget->setCurrentIndex( symbol->type() );
|
||||||
connect( btnColor, SIGNAL( clicked() ), this, SLOT( setSymbolColor() ) );
|
connect( btnColor, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( setSymbolColor( const QColor& ) ) );
|
||||||
connect( spinAngle, SIGNAL( valueChanged( double ) ), this, SLOT( setMarkerAngle( double ) ) );
|
connect( spinAngle, SIGNAL( valueChanged( double ) ), this, SLOT( setMarkerAngle( double ) ) );
|
||||||
connect( spinSize, SIGNAL( valueChanged( double ) ), this, SLOT( setMarkerSize( double ) ) );
|
connect( spinSize, SIGNAL( valueChanged( double ) ), this, SLOT( setMarkerSize( double ) ) );
|
||||||
connect( spinWidth, SIGNAL( valueChanged( double ) ), this, SLOT( setLineWidth( double ) ) );
|
connect( spinWidth, SIGNAL( valueChanged( double ) ), this, SLOT( setLineWidth( double ) ) );
|
||||||
|
|
||||||
|
// Live color updates are not undoable to child symbol layers
|
||||||
|
btnColor->setAcceptLiveUpdates( false );
|
||||||
|
btnColor->setColorDialogOptions( QColorDialog::ShowAlphaChannel );
|
||||||
// Set symbol color in btnColor
|
// Set symbol color in btnColor
|
||||||
updateSymbolColor();
|
updateSymbolColor();
|
||||||
}
|
}
|
||||||
@ -182,21 +184,9 @@ void QgsSymbolsListWidget::openStyleManager()
|
|||||||
populateSymbolView();
|
populateSymbolView();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSymbolsListWidget::setSymbolColor()
|
void QgsSymbolsListWidget::setSymbolColor( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor color = QColorDialog::getColor( mSymbol->color(), this, "", QColorDialog::DontUseNativeDialog );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( mSymbol->color(), this );
|
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
|
||||||
return;
|
|
||||||
|
|
||||||
mSymbol->setColor( color );
|
mSymbol->setColor( color );
|
||||||
updateSymbolColor();
|
|
||||||
emit changed();
|
emit changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -287,7 +277,9 @@ void QgsSymbolsListWidget::displayTransparency( double alpha )
|
|||||||
|
|
||||||
void QgsSymbolsListWidget::updateSymbolColor()
|
void QgsSymbolsListWidget::updateSymbolColor()
|
||||||
{
|
{
|
||||||
|
btnColor->blockSignals( true );
|
||||||
btnColor->setColor( mSymbol->color() );
|
btnColor->setColor( mSymbol->color() );
|
||||||
|
btnColor->blockSignals( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsSymbolsListWidget::updateSymbolInfo()
|
void QgsSymbolsListWidget::updateSymbolInfo()
|
||||||
|
@ -34,7 +34,7 @@ class GUI_EXPORT QgsSymbolsListWidget : public QWidget, private Ui::SymbolsListW
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setSymbolFromStyle( const QModelIndex & index );
|
void setSymbolFromStyle( const QModelIndex & index );
|
||||||
void setSymbolColor();
|
void setSymbolColor( const QColor& color );
|
||||||
void setMarkerAngle( double angle );
|
void setMarkerAngle( double angle );
|
||||||
void setMarkerSize( double size );
|
void setMarkerSize( double size );
|
||||||
void setLineWidth( double width );
|
void setLineWidth( double width );
|
||||||
|
@ -142,6 +142,9 @@ class SymbolLayerItem : public QStandardItem
|
|||||||
QgsSymbolV2SelectorDialog::QgsSymbolV2SelectorDialog( QgsSymbolV2* symbol, QgsStyleV2* style, const QgsVectorLayer* vl, QWidget* parent, bool embedded )
|
QgsSymbolV2SelectorDialog::QgsSymbolV2SelectorDialog( QgsSymbolV2* symbol, QgsStyleV2* style, const QgsVectorLayer* vl, QWidget* parent, bool embedded )
|
||||||
: QDialog( parent ), mAdvancedMenu( NULL ), mVectorLayer( vl )
|
: QDialog( parent ), mAdvancedMenu( NULL ), mVectorLayer( vl )
|
||||||
{
|
{
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
setWindowModality( Qt::WindowModal );
|
||||||
|
#endif
|
||||||
mStyle = style;
|
mStyle = style;
|
||||||
mSymbol = symbol;
|
mSymbol = symbol;
|
||||||
mPresentWidget = NULL;
|
mPresentWidget = NULL;
|
||||||
|
@ -17,21 +17,26 @@
|
|||||||
|
|
||||||
#include "qgsvectorcolorrampv2.h"
|
#include "qgsvectorcolorrampv2.h"
|
||||||
#include "qgsdialog.h"
|
#include "qgsdialog.h"
|
||||||
|
#include "qgscolordialog.h"
|
||||||
#include "qgscptcityarchive.h"
|
#include "qgscptcityarchive.h"
|
||||||
|
|
||||||
#include <QColorDialog>
|
#include <QColorDialog>
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
#include <QSettings>
|
||||||
#include <QTableWidget>
|
#include <QTableWidget>
|
||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
|
|
||||||
QgsVectorGradientColorRampV2Dialog::QgsVectorGradientColorRampV2Dialog( QgsVectorGradientColorRampV2* ramp, QWidget* parent )
|
QgsVectorGradientColorRampV2Dialog::QgsVectorGradientColorRampV2Dialog( QgsVectorGradientColorRampV2* ramp, QWidget* parent )
|
||||||
: QDialog( parent ), mRamp( ramp )
|
: QDialog( parent ), mRamp( ramp ), mCurrentItem( 0 )
|
||||||
{
|
{
|
||||||
setupUi( this );
|
setupUi( this );
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
setWindowModality( Qt::WindowModal );
|
||||||
|
#endif
|
||||||
|
|
||||||
connect( btnColor1, SIGNAL( clicked() ), this, SLOT( setColor1() ) );
|
connect( btnColor1, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( setColor1( const QColor& ) ) );
|
||||||
connect( btnColor2, SIGNAL( clicked() ), this, SLOT( setColor2() ) );
|
connect( btnColor2, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( setColor2( const QColor& ) ) );
|
||||||
|
|
||||||
// handle stops
|
// handle stops
|
||||||
updateStops();
|
updateStops();
|
||||||
@ -207,34 +212,14 @@ void QgsVectorGradientColorRampV2Dialog::updatePreview()
|
|||||||
btnColor2->setColor( mRamp->color2() );
|
btnColor2->setColor( mRamp->color2() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsVectorGradientColorRampV2Dialog::setColor1()
|
void QgsVectorGradientColorRampV2Dialog::setColor1( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor color = QColorDialog::getColor( mRamp->color1(), this, "", QColorDialog::DontUseNativeDialog );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( mRamp->color1(), this );
|
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
|
||||||
return;
|
|
||||||
mRamp->setColor1( color );
|
mRamp->setColor1( color );
|
||||||
updatePreview();
|
updatePreview();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsVectorGradientColorRampV2Dialog::setColor2()
|
void QgsVectorGradientColorRampV2Dialog::setColor2( const QColor& color )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
|
||||||
QColor color = QColorDialog::getColor( mRamp->color2(), this, "", QColorDialog::DontUseNativeDialog );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( mRamp->color2(), this );
|
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
|
||||||
return;
|
|
||||||
mRamp->setColor2( color );
|
mRamp->setColor2( color );
|
||||||
updatePreview();
|
updatePreview();
|
||||||
}
|
}
|
||||||
@ -252,7 +237,7 @@ void QgsVectorGradientColorRampV2Dialog::setStopColor( QTreeWidgetItem* item, QC
|
|||||||
p.setPen( Qt::NoPen );
|
p.setPen( Qt::NoPen );
|
||||||
p.setRenderHint( QPainter::Antialiasing );
|
p.setRenderHint( QPainter::Antialiasing );
|
||||||
p.setBrush( color );
|
p.setBrush( color );
|
||||||
p.drawRoundedRect( rect, 4, 4 );
|
p.drawRoundedRect( rect, 2, 2 );
|
||||||
p.end();
|
p.end();
|
||||||
|
|
||||||
item->setIcon( 0, QIcon( pixmap ) );
|
item->setIcon( 0, QIcon( pixmap ) );
|
||||||
@ -260,18 +245,32 @@ void QgsVectorGradientColorRampV2Dialog::setStopColor( QTreeWidgetItem* item, QC
|
|||||||
item->setText( 0, color.name() );
|
item->setText( 0, color.name() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QgsVectorGradientColorRampV2Dialog::setItemStopColor( const QColor& newColor )
|
||||||
|
{
|
||||||
|
if ( mCurrentItem )
|
||||||
|
{
|
||||||
|
setStopColor( mCurrentItem, newColor );
|
||||||
|
updatePreview();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void QgsVectorGradientColorRampV2Dialog::stopDoubleClicked( QTreeWidgetItem* item, int column )
|
void QgsVectorGradientColorRampV2Dialog::stopDoubleClicked( QTreeWidgetItem* item, int column )
|
||||||
{
|
{
|
||||||
if ( column == 0 )
|
if ( column == 0 )
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
QColor color;
|
||||||
// Native Mac dialog works only for Qt Carbon
|
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
QSettings settings;
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug fixed
|
if ( settings.value( "/qgis/live_color_dialogs", false ).toBool() )
|
||||||
QColor color = QColorDialog::getColor( item->data( 0, StopColorRole ).value<QColor>(), this, "", QColorDialog::DontUseNativeDialog );
|
{
|
||||||
#else
|
mCurrentItem = item;
|
||||||
QColor color = QColorDialog::getColor( item->data( 0, StopColorRole ).value<QColor>(), this );
|
color = QgsColorDialog::getLiveColor( item->data( 0, StopColorRole ).value<QColor>(), this, "setItemStopColor( const QColor& )", this );
|
||||||
#endif
|
mCurrentItem = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
color = QColorDialog::getColor( item->data( 0, StopColorRole ).value<QColor>(), this );
|
||||||
|
}
|
||||||
if ( !color.isValid() )
|
if ( !color.isValid() )
|
||||||
return;
|
return;
|
||||||
setStopColor( item, color );
|
setStopColor( item, color );
|
||||||
@ -310,19 +309,19 @@ void QgsVectorGradientColorRampV2Dialog::stopDoubleClicked( QTreeWidgetItem* ite
|
|||||||
|
|
||||||
void QgsVectorGradientColorRampV2Dialog::addStop()
|
void QgsVectorGradientColorRampV2Dialog::addStop()
|
||||||
{
|
{
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
// Native Mac dialog works only for Qt Carbon
|
||||||
// Native Mac dialog works only for Qt Carbon
|
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
||||||
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
|
// Qt 4.7 Mac Cocoa bug: calling QInputDialog::getInt after QColorDialog::getColor will freeze app
|
||||||
// also Qt 4.7 Mac Cocoa bug: calling QInputDialog::getInt after QColorDialog::getColor will freeze app
|
// workaround: call QColorDialog::getColor below instead of here,
|
||||||
// workaround: call QColorDialog::getColor below instead of here,
|
// but not needed at this time because of the other Qt bug
|
||||||
// but not needed at this time because of the other Qt bug
|
// FIXME need to also check max QT_VERSION when Qt bug(s) fixed
|
||||||
// FIXME need to also check max QT_VERSION when Qt bug(s) fixed
|
#ifndef Q_WS_MAC
|
||||||
QColor color = QColorDialog::getColor( QColor(), this, "", QColorDialog::DontUseNativeDialog );
|
|
||||||
#else
|
|
||||||
QColor color = QColorDialog::getColor( QColor(), this );
|
QColor color = QColorDialog::getColor( QColor(), this );
|
||||||
#endif
|
|
||||||
if ( !color.isValid() )
|
if ( !color.isValid() )
|
||||||
return;
|
return;
|
||||||
|
activateWindow();
|
||||||
|
#endif
|
||||||
|
|
||||||
bool ok;
|
bool ok;
|
||||||
double val = 50.0;
|
double val = 50.0;
|
||||||
@ -341,11 +340,20 @@ void QgsVectorGradientColorRampV2Dialog::addStop()
|
|||||||
#endif
|
#endif
|
||||||
if ( !ok )
|
if ( !ok )
|
||||||
return;
|
return;
|
||||||
|
activateWindow();
|
||||||
|
|
||||||
double key = val / 100.0;
|
double key = val / 100.0;
|
||||||
QStringList lst;
|
QStringList lst;
|
||||||
lst << "." << QString(( val < 10 ) ? '0' + QString::number( val ) : QString::number( val ) );
|
lst << "." << QString(( val < 10 ) ? '0' + QString::number( val ) : QString::number( val ) );
|
||||||
|
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
QColor color = QColorDialog::getColor( QColor(), this );
|
||||||
|
|
||||||
|
if ( !color.isValid() )
|
||||||
|
return;
|
||||||
|
activateWindow();
|
||||||
|
#endif
|
||||||
|
|
||||||
QTreeWidgetItem* item = new QTreeWidgetItem( lst );
|
QTreeWidgetItem* item = new QTreeWidgetItem( lst );
|
||||||
|
|
||||||
setStopColor( item, color );
|
setStopColor( item, color );
|
||||||
|
@ -30,14 +30,15 @@ class GUI_EXPORT QgsVectorGradientColorRampV2Dialog : public QDialog, private Ui
|
|||||||
QgsVectorGradientColorRampV2Dialog( QgsVectorGradientColorRampV2* ramp, QWidget* parent = NULL );
|
QgsVectorGradientColorRampV2Dialog( QgsVectorGradientColorRampV2* ramp, QWidget* parent = NULL );
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setColor1();
|
void setColor1( const QColor& color );
|
||||||
void setColor2();
|
void setColor2( const QColor& color );
|
||||||
|
|
||||||
void toggledStops( bool on );
|
void toggledStops( bool on );
|
||||||
void addStop();
|
void addStop();
|
||||||
void removeStop();
|
void removeStop();
|
||||||
|
|
||||||
void stopDoubleClicked( QTreeWidgetItem* item, int column );
|
void stopDoubleClicked( QTreeWidgetItem* item, int column );
|
||||||
|
void setItemStopColor( const QColor& newColor );
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void on_cboType_currentIndexChanged( int index );
|
void on_cboType_currentIndexChanged( int index );
|
||||||
@ -53,6 +54,8 @@ class GUI_EXPORT QgsVectorGradientColorRampV2Dialog : public QDialog, private Ui
|
|||||||
|
|
||||||
static const int StopColorRole = Qt::UserRole + 1;
|
static const int StopColorRole = Qt::UserRole + 1;
|
||||||
static const int StopOffsetRole = Qt::UserRole + 2;
|
static const int StopOffsetRole = Qt::UserRole + 2;
|
||||||
|
|
||||||
|
QTreeWidgetItem* mCurrentItem;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -273,23 +273,17 @@ QgsGrassRegion::QgsGrassRegion( QgsGrassPlugin *plugin, QgisInterface *iface,
|
|||||||
// Symbology
|
// Symbology
|
||||||
QPen pen = mPlugin->regionPen();
|
QPen pen = mPlugin->regionPen();
|
||||||
mColorButton->setColor( pen.color() );
|
mColorButton->setColor( pen.color() );
|
||||||
connect( mColorButton, SIGNAL( clicked() ), this, SLOT( changeColor() ) );
|
connect( mColorButton, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( changeColor( const QColor& ) ) );
|
||||||
|
|
||||||
mWidthSpinBox->setValue( pen.width() );
|
mWidthSpinBox->setValue( pen.width() );
|
||||||
connect( mWidthSpinBox, SIGNAL( valueChanged( int ) ), this, SLOT( changeWidth() ) );
|
connect( mWidthSpinBox, SIGNAL( valueChanged( int ) ), this, SLOT( changeWidth() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsGrassRegion::changeColor( void )
|
void QgsGrassRegion::changeColor( const QColor& color )
|
||||||
{
|
{
|
||||||
QPen pen = mPlugin->regionPen();
|
QPen pen = mPlugin->regionPen();
|
||||||
QColor color = QColorDialog::getColor( pen.color(), this );
|
|
||||||
if ( color.isValid() )
|
|
||||||
{
|
|
||||||
mColorButton->setColor( color );
|
|
||||||
|
|
||||||
pen.setColor( color );
|
pen.setColor( color );
|
||||||
mPlugin->setRegionPen( pen );
|
mPlugin->setRegionPen( pen );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsGrassRegion::changeWidth( void )
|
void QgsGrassRegion::changeWidth( void )
|
||||||
|
@ -81,7 +81,7 @@ class QgsGrassRegion: public QDialog, private Ui::QgsGrassRegionBase
|
|||||||
|
|
||||||
void radioChanged( void ) ;
|
void radioChanged( void ) ;
|
||||||
|
|
||||||
void changeColor( void ) ;
|
void changeColor( const QColor& color ) ;
|
||||||
void changeWidth( void ) ;
|
void changeWidth( void ) ;
|
||||||
|
|
||||||
void restorePosition( void );
|
void restorePosition( void );
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>445</width>
|
<width>445</width>
|
||||||
<height>388</height>
|
<height>397</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -172,19 +172,6 @@ or change the following values</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QgsColorButton" name="mColorButton" native="true">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>35</width>
|
|
||||||
<height>25</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text" stdset="0">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="2">
|
<item row="0" column="2">
|
||||||
<widget class="QLabel" name="textLabel6">
|
<widget class="QLabel" name="textLabel6">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -211,6 +198,25 @@ or change the following values</string>
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QgsColorButtonV2" name="mColorButton">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>64</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -228,8 +234,8 @@ or change the following values</string>
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButtonV2</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>180</width>
|
<width>221</width>
|
||||||
<height>151</height>
|
<height>172</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -23,6 +23,20 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QgsColorButton" name="mFrameColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="mBackgroundColorLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Background color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="mMapMarkerLabel">
|
<widget class="QLabel" name="mMapMarkerLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -33,6 +47,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QgsColorButton" name="mBackgroundColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QPushButton" name="mMapMarkerButton">
|
<widget class="QPushButton" name="mMapMarkerButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -53,50 +74,11 @@
|
|||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QDoubleSpinBox" name="mFrameWidthSpinBox"/>
|
<widget class="QDoubleSpinBox" name="mFrameWidthSpinBox"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLabel" name="mBackgroundColorLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Background color</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>mBackgroundColorButton</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QgsColorButton" name="mBackgroundColorButton">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="mFrameColorLabel">
|
<widget class="QLabel" name="mFrameColorLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Frame color</string>
|
<string>Frame color</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
|
||||||
<cstring>mFrameColorButton</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QgsColorButton" name="mFrameColorButton">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -106,7 +88,7 @@
|
|||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" colspan="2">
|
<item row="0" column="0" colspan="2">
|
||||||
<widget class="QPushButton" name="mArrowColorButton">
|
<widget class="QgsColorButton" name="mArrowColorButton">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Maximum">
|
<sizepolicy hsizetype="Minimum" vsizetype="Maximum">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@ -112,7 +112,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Arrow color...</string>
|
<string>Color...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -214,6 +214,11 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>QgsColorButton</class>
|
||||||
|
<extends>QPushButton</extends>
|
||||||
|
<header>qgscolorbutton.h</header>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsCollapsibleGroupBoxBasic</class>
|
<class>QgsCollapsibleGroupBoxBasic</class>
|
||||||
<extends>QGroupBox</extends>
|
<extends>QGroupBox</extends>
|
||||||
|
@ -231,20 +231,14 @@
|
|||||||
<property name="collapsed" stdset="0">
|
<property name="collapsed" stdset="0">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QFormLayout" name="formLayout_4">
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="mFrameColorButton">
|
|
||||||
<property name="text">
|
|
||||||
<string>Frame color...</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QFormLayout" name="formLayout_3">
|
|
||||||
<property name="fieldGrowthPolicy">
|
<property name="fieldGrowthPolicy">
|
||||||
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
<property name="labelAlignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="mOutlineWidthLabel">
|
<widget class="QLabel" name="mOutlineWidthLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Thickness</string>
|
<string>Thickness</string>
|
||||||
@ -257,10 +251,15 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QDoubleSpinBox" name="mOutlineWidthSpinBox"/>
|
<widget class="QDoubleSpinBox" name="mOutlineWidthSpinBox"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
<item row="0" column="0" colspan="2">
|
||||||
|
<widget class="QgsColorButton" name="mFrameColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Color...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@ -270,9 +269,6 @@
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Background</string>
|
<string>Background</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="flat">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -285,51 +281,14 @@
|
|||||||
<property name="collapsed" stdset="0">
|
<property name="collapsed" stdset="0">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="mBackgroundColorButton">
|
<widget class="QgsColorButton" name="mBackgroundColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Background color...</string>
|
<string>Color...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="mOpacityLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Transparency</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>mTransparencySlider</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSlider" name="mTransparencySlider">
|
|
||||||
<property name="maximum">
|
|
||||||
<number>100</number>
|
|
||||||
</property>
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSpinBox" name="mTransparencySpinBox">
|
|
||||||
<property name="suffix">
|
|
||||||
<string>%</string>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>100</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -397,6 +356,11 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>QgsColorButton</class>
|
||||||
|
<extends>QPushButton</extends>
|
||||||
|
<header>qgscolorbutton.h</header>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsCollapsibleGroupBoxBasic</class>
|
<class>QgsCollapsibleGroupBoxBasic</class>
|
||||||
<extends>QGroupBox</extends>
|
<extends>QGroupBox</extends>
|
||||||
|
@ -187,35 +187,10 @@
|
|||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QDoubleSpinBox" name="mGridStrokeWidthSpinBox"/>
|
<widget class="QDoubleSpinBox" name="mGridStrokeWidthSpinBox"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="mGridColorLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Color</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>mGridColorButton</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QgsColorButton" name="mGridColorButton">
|
<widget class="QgsColorButton" name="mGridColorButton">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string>Color...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -265,17 +240,17 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>QgsColorButton</class>
|
||||||
|
<extends>QPushButton</extends>
|
||||||
|
<header>qgscolorbutton.h</header>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsCollapsibleGroupBoxBasic</class>
|
<class>QgsCollapsibleGroupBoxBasic</class>
|
||||||
<extends>QGroupBox</extends>
|
<extends>QGroupBox</extends>
|
||||||
<header location="global">qgscollapsiblegroupbox.h</header>
|
<header location="global">qgscollapsiblegroupbox.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
|
||||||
<class>QgsColorButton</class>
|
|
||||||
<extends>QToolButton</extends>
|
|
||||||
<header>qgscolorbutton.h</header>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
@ -297,6 +297,16 @@
|
|||||||
<property name="labelAlignment">
|
<property name="labelAlignment">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
</property>
|
</property>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_8">
|
||||||
|
<property name="text">
|
||||||
|
<string>Spacing</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QDoubleSpinBox" name="mGridResolutionSpinBox">
|
<widget class="QDoubleSpinBox" name="mGridResolutionSpinBox">
|
||||||
<property name="prefix">
|
<property name="prefix">
|
||||||
@ -368,44 +378,6 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="mGridColorLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Grid color</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>mGridColorButton</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QgsColorButton" name="mGridColorButton">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="mGridStyleLabel">
|
<widget class="QLabel" name="mGridStyleLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Grid style</string>
|
<string>Grid style</string>
|
||||||
@ -418,7 +390,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QComboBox" name="mGridStyleComboBox"/>
|
<widget class="QComboBox" name="mGridStyleComboBox"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="5" column="0">
|
||||||
@ -441,13 +413,10 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="4" column="1">
|
||||||
<widget class="QLabel" name="label_8">
|
<widget class="QgsColorButton" name="mGridColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Spacing</string>
|
<string>Color...</string>
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -516,17 +485,17 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>QgsColorButton</class>
|
||||||
|
<extends>QPushButton</extends>
|
||||||
|
<header>qgscolorbutton.h</header>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsCollapsibleGroupBoxBasic</class>
|
<class>QgsCollapsibleGroupBoxBasic</class>
|
||||||
<extends>QGroupBox</extends>
|
<extends>QGroupBox</extends>
|
||||||
<header location="global">qgscollapsiblegroupbox.h</header>
|
<header location="global">qgscollapsiblegroupbox.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
|
||||||
<class>QgsColorButton</class>
|
|
||||||
<extends>QToolButton</extends>
|
|
||||||
<header>qgscolorbutton.h</header>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>scrollArea</tabstop>
|
<tabstop>scrollArea</tabstop>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>256</width>
|
<width>263</width>
|
||||||
<height>175</height>
|
<height>175</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -64,19 +64,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Minimum value</string>
|
<string>Minimum value</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
|
||||||
<cstring>btnMinValue</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QgsColorButton" name="btnMinValue">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
@ -90,19 +77,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Maximum value</string>
|
<string>Maximum value</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
|
||||||
<cstring>btnMaxValue</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QgsColorButton" name="btnMaxValue">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
@ -144,20 +118,32 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QgsColorButton" name="btnMinValue">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QgsColorButton" name="btnMaxValue">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>classificationComboBox</tabstop>
|
<tabstop>classificationComboBox</tabstop>
|
||||||
<tabstop>btnMinValue</tabstop>
|
|
||||||
<tabstop>btnMaxValue</tabstop>
|
|
||||||
<tabstop>outlinewidthspinbox</tabstop>
|
<tabstop>outlinewidthspinbox</tabstop>
|
||||||
<tabstop>cb_polygonOutline</tabstop>
|
<tabstop>cb_polygonOutline</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
|
@ -45,8 +45,8 @@
|
|||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Ubuntu'; font-size:10pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Lucida Grande'; font-size:13pt; font-weight:400; font-style:normal;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana';">© QGIS 2009</span></p></body></html></string>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Verdana'; font-size:10pt;">© QGIS 2009</span></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -111,26 +111,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<item row="5" column="0">
|
<item row="5" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Color</string>
|
<string>Color</string>
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>pbnColorChooser</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1">
|
|
||||||
<widget class="QgsColorButton" name="pbnColorChooser">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -144,13 +125,20 @@ p, li { white-space: pre-wrap; }
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="QgsColorButton" name="pbnColorChooser">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
@ -159,7 +147,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
<tabstop>txtCopyrightText</tabstop>
|
<tabstop>txtCopyrightText</tabstop>
|
||||||
<tabstop>cboPlacement</tabstop>
|
<tabstop>cboPlacement</tabstop>
|
||||||
<tabstop>cboOrientation</tabstop>
|
<tabstop>cboOrientation</tabstop>
|
||||||
<tabstop>pbnColorChooser</tabstop>
|
|
||||||
<tabstop>buttonBox</tabstop>
|
<tabstop>buttonBox</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
@ -125,28 +125,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Color of bar</string>
|
<string>Color of bar</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
|
||||||
<cstring>pbnChangeColor</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QgsColorButton" name="pbnChangeColor">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Click to select the color</string>
|
|
||||||
</property>
|
|
||||||
<property name="whatsThis">
|
|
||||||
<string>Click to select the color</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
@ -217,20 +195,26 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QgsColorButton" name="pbnChangeColor">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>cboPlacement</tabstop>
|
<tabstop>cboPlacement</tabstop>
|
||||||
<tabstop>cboStyle</tabstop>
|
<tabstop>cboStyle</tabstop>
|
||||||
<tabstop>pbnChangeColor</tabstop>
|
|
||||||
<tabstop>spnSize</tabstop>
|
<tabstop>spnSize</tabstop>
|
||||||
<tabstop>chkEnable</tabstop>
|
<tabstop>chkEnable</tabstop>
|
||||||
<tabstop>chkSnapping</tabstop>
|
<tabstop>chkSnapping</tabstop>
|
||||||
|
@ -39,8 +39,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>756</width>
|
<width>752</width>
|
||||||
<height>627</height>
|
<height>613</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="scrollAreaLayout">
|
<layout class="QVBoxLayout" name="scrollAreaLayout">
|
||||||
@ -124,8 +124,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>723</width>
|
<width>713</width>
|
||||||
<height>356</height>
|
<height>364</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="label">
|
<attribute name="label">
|
||||||
@ -204,25 +204,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="2">
|
|
||||||
<widget class="QgsColorButton" name="mBackgroundColorButton">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>25</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="2">
|
<item row="1" column="2">
|
||||||
<widget class="QDoubleSpinBox" name="mBarWidthSpinBox">
|
<widget class="QDoubleSpinBox" name="mBarWidthSpinBox">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
@ -233,25 +214,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="2">
|
|
||||||
<widget class="QgsColorButton" name="mDiagramPenColorButton">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>25</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="2">
|
<item row="5" column="2">
|
||||||
<widget class="QDoubleSpinBox" name="mPenWidthSpinBox">
|
<widget class="QDoubleSpinBox" name="mPenWidthSpinBox">
|
||||||
<property name="decimals">
|
<property name="decimals">
|
||||||
@ -262,6 +224,20 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="2">
|
||||||
|
<widget class="QgsColorButton" name="mBackgroundColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="2">
|
||||||
|
<widget class="QgsColorButton" name="mDiagramPenColorButton">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
@ -334,8 +310,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>640</width>
|
<width>715</width>
|
||||||
<height>289</height>
|
<height>318</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="label">
|
<attribute name="label">
|
||||||
@ -523,8 +499,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>216</width>
|
<width>713</width>
|
||||||
<height>284</height>
|
<height>271</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="label">
|
<attribute name="label">
|
||||||
@ -685,8 +661,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>137</width>
|
<width>728</width>
|
||||||
<height>191</height>
|
<height>166</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="label">
|
<attribute name="label">
|
||||||
@ -979,7 +955,7 @@
|
|||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -134,12 +134,6 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
@ -288,24 +282,6 @@
|
|||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="mPreviewTextEdit">
|
<widget class="QLineEdit" name="mPreviewTextEdit">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Sample text</string>
|
<string>Sample text</string>
|
||||||
</property>
|
</property>
|
||||||
@ -408,24 +384,27 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QgsColorButton" name="mPreviewBackgroundBtn">
|
<widget class="QgsColorButton" name="mPreviewBackgroundBtn">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>48</width>
|
<width>64</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16777215</width>
|
<width>64</width>
|
||||||
<height>22</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Sample background color</string>
|
<string>Sample background color</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string>...</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -442,12 +421,6 @@
|
|||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::NoFrame</enum>
|
<enum>QFrame::NoFrame</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Plain</enum>
|
|
||||||
</property>
|
|
||||||
<property name="lineWidth">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="widgetResizable">
|
<property name="widgetResizable">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -456,31 +429,16 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>686</width>
|
<width>689</width>
|
||||||
<height>834</height>
|
<height>826</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_17">
|
<layout class="QGridLayout" name="gridLayout_17">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="verticalSpacing">
|
|
||||||
<number>20</number>
|
|
||||||
</property>
|
|
||||||
<item row="9" column="0">
|
<item row="9" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="chkFormattedNumbers">
|
<widget class="QgsCollapsibleGroupBox" name="chkFormattedNumbers">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Formatted numbers</string>
|
<string>Formatted numbers</string>
|
||||||
</property>
|
</property>
|
||||||
@ -702,18 +660,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="mFontStyleGroupBox">
|
<widget class="QgsCollapsibleGroupBox" name="mFontStyleGroupBox">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Text style</string>
|
<string>Text style</string>
|
||||||
</property>
|
</property>
|
||||||
@ -909,19 +855,22 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QgsColorButton" name="btnTextColor">
|
<widget class="QgsColorButton" name="btnTextColor">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>64</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="maximumSize">
|
||||||
<string>...</string>
|
<size>
|
||||||
|
<width>64</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -990,7 +939,7 @@
|
|||||||
<widget class="QToolButton" name="btnChangeFont">
|
<widget class="QToolButton" name="btnChangeFont">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>36</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@ -1195,18 +1144,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="4" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="chkBuffer">
|
<widget class="QgsCollapsibleGroupBox" name="chkBuffer">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Buffer</string>
|
<string>Buffer</string>
|
||||||
</property>
|
</property>
|
||||||
@ -1330,19 +1267,22 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QgsColorButton" name="btnBufferColor">
|
<widget class="QgsColorButton" name="btnBufferColor">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>64</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="maximumSize">
|
||||||
<string>...</string>
|
<size>
|
||||||
|
<width>64</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -1602,24 +1542,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="5" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="chkScaleBasedVisibility">
|
<widget class="QgsCollapsibleGroupBox" name="chkScaleBasedVisibility">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Scale-based visibility</string>
|
<string>Scale-based visibility</string>
|
||||||
</property>
|
</property>
|
||||||
@ -1999,12 +1921,6 @@
|
|||||||
</property>
|
</property>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="mPriorityGroupBox">
|
<widget class="QgsCollapsibleGroupBox" name="mPriorityGroupBox">
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Priority</string>
|
<string>Priority</string>
|
||||||
</property>
|
</property>
|
||||||
@ -2056,18 +1972,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="mPlacementGroupBox">
|
<widget class="QgsCollapsibleGroupBox" name="mPlacementGroupBox">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Placement</string>
|
<string>Placement</string>
|
||||||
</property>
|
</property>
|
||||||
@ -2819,12 +2723,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="mOptionsGroupBox">
|
<widget class="QgsCollapsibleGroupBox" name="mOptionsGroupBox">
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Options</string>
|
<string>Options</string>
|
||||||
</property>
|
</property>
|
||||||
@ -3335,12 +3233,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="mFontAttributePropertiesGroupBox">
|
<widget class="QgsCollapsibleGroupBox" name="mFontAttributePropertiesGroupBox">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Font properties</string>
|
<string>Font properties</string>
|
||||||
</property>
|
</property>
|
||||||
@ -3579,7 +3471,7 @@
|
|||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
@ -34,19 +34,6 @@
|
|||||||
<string>Font</string>
|
<string>Font</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QgsColorButton" name="mFontColorButton">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="2">
|
<item row="0" column="2">
|
||||||
<widget class="QPushButton" name="mFontPushButton">
|
<widget class="QPushButton" name="mFontPushButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -81,6 +68,19 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QgsColorButton" name="mFontColorButton">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -197,11 +197,11 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QgsColorButton" name="mBufferColorButton">
|
<widget class="QgsColorButton" name="mBufferColorButton">
|
||||||
<property name="sizePolicy">
|
<property name="maximumSize">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<size>
|
||||||
<horstretch>0</horstretch>
|
<width>100</width>
|
||||||
<verstretch>0</verstretch>
|
<height>16777215</height>
|
||||||
</sizepolicy>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
@ -370,7 +370,7 @@
|
|||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
@ -267,7 +267,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>654</width>
|
<width>654</width>
|
||||||
<height>612</height>
|
<height>642</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_28">
|
<layout class="QVBoxLayout" name="verticalLayout_28">
|
||||||
@ -594,6 +594,17 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_31">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="mLiveColorDialogsChkBx">
|
||||||
|
<property name="text">
|
||||||
|
<string>Use live-updating color chooser dialogs</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -901,7 +912,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>654</width>
|
<width>611</width>
|
||||||
<height>808</height>
|
<height>808</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -997,7 +1008,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="4">
|
<item row="2" column="0" colspan="4">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="mCurrentVariablesGrpBx"><property name="collapsed" stdset="0"><bool>false</bool></property><property name="saveCollapsedState" stdset="0"><bool>true</bool></property>
|
<widget class="QgsCollapsibleGroupBox" name="mCurrentVariablesGrpBx">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
@ -1007,6 +1018,12 @@
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Current environment variables (read-only - bold indicates modified at startup)</string>
|
<string>Current environment variables (read-only - bold indicates modified at startup)</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="collapsed" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="saveCollapsedState" stdset="0">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTableWidget" name="mCurrentVariablesTable">
|
<widget class="QTableWidget" name="mCurrentVariablesTable">
|
||||||
@ -1231,8 +1248,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>669</width>
|
<width>559</width>
|
||||||
<height>490</height>
|
<height>417</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_27">
|
<layout class="QVBoxLayout" name="verticalLayout_27">
|
||||||
@ -1549,8 +1566,8 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>-291</y>
|
<y>0</y>
|
||||||
<width>654</width>
|
<width>615</width>
|
||||||
<height>781</height>
|
<height>781</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -2081,8 +2098,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>669</width>
|
<width>474</width>
|
||||||
<height>490</height>
|
<height>390</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_25">
|
<layout class="QVBoxLayout" name="verticalLayout_25">
|
||||||
@ -2091,7 +2108,58 @@
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Default map appearance (overridden by project properties)</string>
|
<string>Default map appearance (overridden by project properties)</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="_2">
|
<layout class="QGridLayout" name="gridLayout_7">
|
||||||
|
<item row="0" column="4">
|
||||||
|
<widget class="QgsColorButton" name="pbnCanvasColor">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="6">
|
||||||
|
<spacer name="horizontalSpacer_28">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="3">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Background color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="textLabel1_9">
|
<widget class="QLabel" name="textLabel1_9">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -2105,58 +2173,31 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="0" column="1">
|
||||||
<widget class="QgsColorButton" name="pbnCanvasColor">
|
<widget class="QgsColorButton" name="pbnSelectionColor">
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="2">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string>Background color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QgsColorButton" name="pbnSelectionColor">
|
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>100</width>
|
<width>100</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="4">
|
|
||||||
<spacer name="horizontalSpacer_28">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -2392,8 +2433,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>654</width>
|
<width>556</width>
|
||||||
<height>718</height>
|
<height>712</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_30">
|
<layout class="QVBoxLayout" name="verticalLayout_30">
|
||||||
@ -2476,19 +2517,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QgsColorButton" name="pbnMeasureColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0">
|
<item row="5" column="0">
|
||||||
<widget class="QLabel" name="textLabel1_11">
|
<widget class="QLabel" name="textLabel1_11">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -2575,6 +2603,31 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QgsColorButton" name="pbnMeasureColor">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -2772,8 +2825,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>654</width>
|
<width>517</width>
|
||||||
<height>643</height>
|
<height>642</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_31">
|
<layout class="QVBoxLayout" name="verticalLayout_31">
|
||||||
@ -2881,19 +2934,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
|
||||||
<widget class="QgsColorButton" name="mLineColorToolButton">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="4">
|
<item row="0" column="4">
|
||||||
<spacer name="horizontalSpacer_33">
|
<spacer name="horizontalSpacer_33">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -2907,6 +2947,31 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="3">
|
||||||
|
<widget class="QgsColorButton" name="mLineColorToolButton">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -3261,8 +3326,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>669</width>
|
<width>537</width>
|
||||||
<height>490</height>
|
<height>361</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||||
@ -3401,8 +3466,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>669</width>
|
<width>614</width>
|
||||||
<height>490</height>
|
<height>393</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_15">
|
<layout class="QGridLayout" name="gridLayout_15">
|
||||||
@ -3582,8 +3647,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>669</width>
|
<width>300</width>
|
||||||
<height>490</height>
|
<height>248</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_32">
|
<layout class="QVBoxLayout" name="verticalLayout_32">
|
||||||
@ -3682,7 +3747,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>654</width>
|
<width>521</width>
|
||||||
<height>650</height>
|
<height>650</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -3790,7 +3855,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QgsCollapsibleGroupBox" name="grpProxy"><property name="collapsed" stdset="0"><bool>false</bool></property><property name="saveCollapsedState" stdset="0"><bool>true</bool></property>
|
<widget class="QgsCollapsibleGroupBox" name="grpProxy">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Use proxy for web access</string>
|
<string>Use proxy for web access</string>
|
||||||
</property>
|
</property>
|
||||||
@ -3800,6 +3865,12 @@
|
|||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="collapsed" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="saveCollapsedState" stdset="0">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_1">
|
<layout class="QGridLayout" name="gridLayout_1">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="lblProxyHost">
|
<widget class="QLabel" name="lblProxyHost">
|
||||||
@ -3995,17 +4066,17 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>QgsColorButton</class>
|
||||||
|
<extends>QPushButton</extends>
|
||||||
|
<header>qgscolorbutton.h</header>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsCollapsibleGroupBox</class>
|
<class>QgsCollapsibleGroupBox</class>
|
||||||
<extends>QGroupBox</extends>
|
<extends>QGroupBox</extends>
|
||||||
<header>qgscollapsiblegroupbox.h</header>
|
<header>qgscollapsiblegroupbox.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
|
||||||
<class>QgsColorButton</class>
|
|
||||||
<extends>QToolButton</extends>
|
|
||||||
<header>qgscolorbutton.h</header>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../../images/images.qrc"/>
|
<include location="../../images/images.qrc"/>
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>327</width>
|
<width>383</width>
|
||||||
<height>505</height>
|
<height>532</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -84,12 +84,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QgsColorButton" name="mCircleColorButton">
|
<widget class="QgsColorButton" name="mCircleColorButton">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
@ -194,12 +188,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QgsColorButton" name="mLabelColorButton">
|
<widget class="QgsColorButton" name="mLabelColorButton">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
@ -236,7 +224,7 @@
|
|||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
@ -50,8 +50,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>600</width>
|
<width>558</width>
|
||||||
<height>497</height>
|
<height>668</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_13">
|
<layout class="QGridLayout" name="gridLayout_13">
|
||||||
@ -107,19 +107,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3">
|
|
||||||
<widget class="QgsColorButton" name="pbnSelectionColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="2">
|
<item row="2" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -143,19 +130,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="3">
|
|
||||||
<widget class="QgsColorButton" name="pbnCanvasColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="3">
|
<item row="3" column="3">
|
||||||
<widget class="QComboBox" name="cbxAbsolutePath">
|
<widget class="QComboBox" name="cbxAbsolutePath">
|
||||||
<item>
|
<item>
|
||||||
@ -193,6 +167,32 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="3">
|
||||||
|
<widget class="QgsColorButton" name="pbnSelectionColor">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="3">
|
||||||
|
<widget class="QgsColorButton" name="pbnCanvasColor">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -836,14 +836,14 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>-891</y>
|
||||||
<width>600</width>
|
<width>617</width>
|
||||||
<height>1085</height>
|
<height>1260</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_15">
|
<layout class="QGridLayout" name="gridLayout_15">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="grpOWSServiceCapabilities"><property name="collapsed" stdset="0"><bool>false</bool></property><property name="saveCollapsedState" stdset="0"><bool>true</bool></property>
|
<widget class="QgsCollapsibleGroupBox" name="grpOWSServiceCapabilities">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Service Capabilitities</string>
|
<string>Service Capabilitities</string>
|
||||||
</property>
|
</property>
|
||||||
@ -853,6 +853,12 @@
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="collapsed" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="saveCollapsedState" stdset="0">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_6">
|
<layout class="QGridLayout" name="gridLayout_6">
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="label_7">
|
<widget class="QLabel" name="label_7">
|
||||||
@ -979,7 +985,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_14">
|
<layout class="QGridLayout" name="gridLayout_14">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="grpWMSExt"><property name="collapsed" stdset="0"><bool>false</bool></property><property name="saveCollapsedState" stdset="0"><bool>true</bool></property>
|
<widget class="QgsCollapsibleGroupBox" name="grpWMSExt">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Advertised Extent</string>
|
<string>Advertised Extent</string>
|
||||||
</property>
|
</property>
|
||||||
@ -989,6 +995,12 @@
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="collapsed" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="saveCollapsedState" stdset="0">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_11">
|
<widget class="QLabel" name="label_11">
|
||||||
@ -1082,7 +1094,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1" colspan="2">
|
<item row="0" column="1" colspan="2">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="grpWMSList"><property name="collapsed" stdset="0"><bool>false</bool></property><property name="saveCollapsedState" stdset="0"><bool>true</bool></property>
|
<widget class="QgsCollapsibleGroupBox" name="grpWMSList">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Coordinate Systems Restrictions</string>
|
<string>Coordinate Systems Restrictions</string>
|
||||||
</property>
|
</property>
|
||||||
@ -1092,6 +1104,12 @@
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="collapsed" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="saveCollapsedState" stdset="0">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
<item row="0" column="0" colspan="3">
|
<item row="0" column="0" colspan="3">
|
||||||
<widget class="QListWidget" name="mWMSList"/>
|
<widget class="QListWidget" name="mWMSList"/>
|
||||||
@ -1121,7 +1139,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="mWMSComposerGroupBox"><property name="collapsed" stdset="0"><bool>false</bool></property><property name="saveCollapsedState" stdset="0"><bool>true</bool></property>
|
<widget class="QgsCollapsibleGroupBox" name="mWMSComposerGroupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Exclude composers</string>
|
<string>Exclude composers</string>
|
||||||
</property>
|
</property>
|
||||||
@ -1131,6 +1149,12 @@
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="collapsed" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="saveCollapsedState" stdset="0">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_10">
|
<layout class="QGridLayout" name="gridLayout_10">
|
||||||
<item row="0" column="0" colspan="3">
|
<item row="0" column="0" colspan="3">
|
||||||
<widget class="QListWidget" name="mComposerListWidget"/>
|
<widget class="QListWidget" name="mComposerListWidget"/>
|
||||||
@ -1174,7 +1198,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
<item row="1" column="2">
|
||||||
<widget class="QgsCollapsibleGroupBox" name="mLayerRestrictionsGroupBox"><property name="collapsed" stdset="0"><bool>false</bool></property><property name="saveCollapsedState" stdset="0"><bool>true</bool></property>
|
<widget class="QgsCollapsibleGroupBox" name="mLayerRestrictionsGroupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Exclude layers</string>
|
<string>Exclude layers</string>
|
||||||
</property>
|
</property>
|
||||||
@ -1184,6 +1208,12 @@
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="collapsed" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="saveCollapsedState" stdset="0">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0" colspan="3">
|
<item row="0" column="0" colspan="3">
|
||||||
<widget class="QListWidget" name="mLayerRestrictionsListWidget"/>
|
<widget class="QListWidget" name="mLayerRestrictionsListWidget"/>
|
||||||
@ -1388,21 +1418,21 @@
|
|||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
|
||||||
<class>QgsProjectionSelector</class>
|
|
||||||
<extends>QWidget</extends>
|
|
||||||
<header>qgsprojectionselector.h</header>
|
|
||||||
<container>1</container>
|
|
||||||
</customwidget>
|
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsCollapsibleGroupBox</class>
|
<class>QgsCollapsibleGroupBox</class>
|
||||||
<extends>QGroupBox</extends>
|
<extends>QGroupBox</extends>
|
||||||
<header>qgscollapsiblegroupbox.h</header>
|
<header>qgscollapsiblegroupbox.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>QgsProjectionSelector</class>
|
||||||
|
<extends>QWidget</extends>
|
||||||
|
<header>qgsprojectionselector.h</header>
|
||||||
|
<container>1</container>
|
||||||
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>titleEdit</tabstop>
|
<tabstop>titleEdit</tabstop>
|
||||||
@ -1437,7 +1467,6 @@
|
|||||||
</tabstops>
|
</tabstops>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../../images/images.qrc"/>
|
<include location="../../images/images.qrc"/>
|
||||||
<include location="../../images/images.qrc"/>
|
|
||||||
</resources>
|
</resources>
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
|
@ -6,16 +6,10 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>337</width>
|
<width>372</width>
|
||||||
<height>620</height>
|
<height>620</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Single Symbol</string>
|
<string>Single Symbol</string>
|
||||||
</property>
|
</property>
|
||||||
@ -32,9 +26,9 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>-37</y>
|
||||||
<width>335</width>
|
<width>358</width>
|
||||||
<height>618</height>
|
<height>640</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
@ -200,19 +194,22 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>80</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>80</width>
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="autoDefault">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -275,19 +272,22 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>80</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>80</width>
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="autoDefault">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -412,7 +412,7 @@
|
|||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
@ -37,6 +37,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="mBoldPushButton">
|
<widget class="QPushButton" name="mBoldPushButton">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>50</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>B</string>
|
<string>B</string>
|
||||||
</property>
|
</property>
|
||||||
@ -47,6 +53,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="mItalicsPushButton">
|
<widget class="QPushButton" name="mItalicsPushButton">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>50</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>I</string>
|
<string>I</string>
|
||||||
</property>
|
</property>
|
||||||
@ -57,15 +69,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QgsColorButton" name="mFontColorButton">
|
<widget class="QgsColorButton" name="mFontColorButton">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="autoDefault">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -97,7 +106,7 @@
|
|||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButton</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QToolButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
<height>364</height>
|
<height>379</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -26,10 +26,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="1" column="0">
|
||||||
<widget class="QgsColorButtonV2" name="btnColor1">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Color 2</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>btnColor2</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -49,30 +52,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>Color 2</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy">
|
|
||||||
<cstring>btnColor2</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QgsColorButtonV2" name="btnColor2">
|
|
||||||
<property name="text">
|
|
||||||
<string>Change</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLabel" name="label_3">
|
|
||||||
<property name="text">
|
|
||||||
<string>Type</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QComboBox" name="cboType">
|
<widget class="QComboBox" name="cboType">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -89,6 +68,27 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QgsColorButton" name="btnColor2">
|
||||||
|
<property name="text">
|
||||||
|
<string>Change...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>Type</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QgsColorButton" name="btnColor1">
|
||||||
|
<property name="text">
|
||||||
|
<string>Change...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -109,21 +109,7 @@
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_1">
|
<layout class="QGridLayout" name="gridLayout_1">
|
||||||
<item row="0" column="1">
|
<item row="0" column="0" rowspan="3">
|
||||||
<widget class="QPushButton" name="btnAddStop">
|
|
||||||
<property name="text">
|
|
||||||
<string>Add stop</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QPushButton" name="btnRemoveStop">
|
|
||||||
<property name="text">
|
|
||||||
<string>Remove stop</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" rowspan="2">
|
|
||||||
<widget class="QTreeWidget" name="treeStops">
|
<widget class="QTreeWidget" name="treeStops">
|
||||||
<property name="rootIsDecorated">
|
<property name="rootIsDecorated">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
@ -143,6 +129,20 @@
|
|||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QPushButton" name="btnAddStop">
|
||||||
|
<property name="text">
|
||||||
|
<string>Add stop</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QPushButton" name="btnRemoveStop">
|
||||||
|
<property name="text">
|
||||||
|
<string>Remove stop</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -193,7 +193,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
@ -204,7 +204,6 @@
|
|||||||
<tabstop>groupStops</tabstop>
|
<tabstop>groupStops</tabstop>
|
||||||
<tabstop>treeStops</tabstop>
|
<tabstop>treeStops</tabstop>
|
||||||
<tabstop>btnAddStop</tabstop>
|
<tabstop>btnAddStop</tabstop>
|
||||||
<tabstop>btnRemoveStop</tabstop>
|
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
|
@ -35,16 +35,16 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="btnChangeColorFill">
|
<widget class="QgsColorButton" name="btnChangeColorFill">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="btnChangeColorBorder">
|
<widget class="QgsColorButton" name="btnChangeColorBorder">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -317,7 +317,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
@ -131,9 +131,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="btnColor">
|
<widget class="QgsColorButton" name="btnColor">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -194,7 +194,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="btnChangeColor">
|
<widget class="QgsColorButton" name="btnChangeColor">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -102,7 +102,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
@ -41,9 +41,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="1">
|
<item row="7" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="mColorPushButton">
|
<widget class="QgsColorButton" name="mColorPushButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -176,7 +176,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="btnChangeColor">
|
<widget class="QgsColorButton" name="btnChangeColor">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -41,9 +41,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="btnChangeBorderColor">
|
<widget class="QgsColorButton" name="btnChangeBorderColor">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -182,7 +182,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
@ -6,23 +6,16 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>331</width>
|
<width>395</width>
|
||||||
<height>235</height>
|
<height>276</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>Color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1" colspan="2">
|
<item row="0" column="1" colspan="2">
|
||||||
<widget class="QgsColorButtonV2" name="btnChangeColor">
|
<widget class="QgsColorButton" name="btnChangeColor">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@ -30,7 +23,14 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string>Color</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -41,6 +41,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="label_5">
|
||||||
|
<property name="text">
|
||||||
|
<string>Join style</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QDoubleSpinBox" name="spinWidth">
|
<widget class="QDoubleSpinBox" name="spinWidth">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -106,56 +113,9 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="2">
|
|
||||||
<widget class="QComboBox" name="mOffsetUnitComboBox">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Millimeter</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Map unit</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="label_3">
|
|
||||||
<property name="text">
|
|
||||||
<string>Pen style</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1" colspan="2">
|
|
||||||
<widget class="QgsPenStyleComboBox" name="cboPenStyle"/>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="label_5">
|
|
||||||
<property name="text">
|
|
||||||
<string>Join style</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1" colspan="2">
|
<item row="4" column="1" colspan="2">
|
||||||
<widget class="QgsPenJoinStyleComboBox" name="cboJoinStyle"/>
|
<widget class="QgsPenJoinStyleComboBox" name="cboJoinStyle"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
|
||||||
<widget class="QLabel" name="label_6">
|
|
||||||
<property name="text">
|
|
||||||
<string>Cap style</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1" colspan="2">
|
|
||||||
<widget class="QgsPenCapStyleComboBox" name="cboCapStyle"/>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0" colspan="3">
|
<item row="6" column="0" colspan="3">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<property name="sizeConstraint">
|
<property name="sizeConstraint">
|
||||||
@ -177,6 +137,36 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="1" colspan="2">
|
||||||
|
<widget class="QgsPenStyleComboBox" name="cboPenStyle"/>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>Pen style</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="2">
|
||||||
|
<widget class="QComboBox" name="mOffsetUnitComboBox">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Millimeter</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Map unit</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="7" column="0">
|
<item row="7" column="0">
|
||||||
<widget class="QLabel" name="mDashPatternUnitLabel">
|
<widget class="QLabel" name="mDashPatternUnitLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -198,11 +188,34 @@
|
|||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="5" column="1" colspan="2">
|
||||||
|
<widget class="QgsPenCapStyleComboBox" name="cboCapStyle"/>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="label_6">
|
||||||
|
<property name="text">
|
||||||
|
<string>Cap style</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="1">
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
@ -40,9 +40,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="btnChangeColorBorder">
|
<widget class="QgsColorButton" name="btnChangeColorBorder">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -126,9 +126,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="btnChangeColorFill">
|
<widget class="QgsColorButton" name="btnChangeColorFill">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -225,7 +225,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
@ -51,9 +51,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="mChangeColorButton">
|
<widget class="QgsColorButton" name="mChangeColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -65,9 +65,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="4" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="mChangeBorderColorButton">
|
<widget class="QgsColorButton" name="mChangeBorderColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -191,7 +191,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
@ -54,9 +54,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="4" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="mChangeBorderColorButton">
|
<widget class="QgsColorButton" name="mChangeBorderColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -82,9 +82,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="mChangeColorButton">
|
<widget class="QgsColorButton" name="mChangeColorButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -290,7 +290,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
@ -85,9 +85,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QgsColorButtonV2" name="btnColor">
|
<widget class="QgsColorButton" name="btnColor">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Change</string>
|
<string>Change...</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -353,7 +353,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>QgsColorButtonV2</class>
|
<class>QgsColorButton</class>
|
||||||
<extends>QPushButton</extends>
|
<extends>QPushButton</extends>
|
||||||
<header>qgscolorbutton.h</header>
|
<header>qgscolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user