1
/***************************************************************************
2
qgsdlgvectorlayerproperties.h
3
Unified property dialog for vector layers
6
copyright : (C) 2004 by Gary E.Sherman
7
email : sherman at mrcc.com
8
***************************************************************************/
10
/***************************************************************************
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
17
***************************************************************************/
18
/* $Id: qgsdlgvectorlayerproperties.h,v 1.12 2004/11/21 02:11:44 timlinux Exp $ */
19
#ifndef QGSDLGVECTORLAYERPROPERTIES
20
#define QGSDLGVECTORLAYERPROPERTIES
22
#include "qgsdlgvectorlayerpropertiesbase.h"
24
#include "qgsdlgvectorlayerpropertiesbase.uic.h"
26
#include "qgsrenderer.h"
28
#include "qlineedit.h"
32
class QgsAttributeActionDialog;
34
class QgsDlgVectorLayerProperties : public QgsDlgVectorLayerPropertiesBase{
37
QgsDlgVectorLayerProperties(QgsVectorLayer *lyr =0,QWidget *parent=0, const char *name=0, bool modal=true);
38
~QgsDlgVectorLayerProperties();
39
/**Sets the legend type to "single symbol", "graduated symbol" or "continuous color"*/
40
void setLegendType(QString type);
41
/**Returns the display name entered in the dialog*/
42
QString displayName();
43
/**Sets the attribute that is used in the Identify Results dialog box*/
44
void setDisplayField(QString name);
45
/**Sets the rendererDirty flag*/
46
void setRendererDirty(bool enabled=true);
47
/**Returns a pointer to the bufferDialog*/
48
QDialog* getBufferDialog();
49
/**Sets the buffer dialog*/
50
void setBufferDialog(QDialog* dialog);
51
/**Returns a pointer to the buffer pixmap*/
52
QPixmap* getBufferPixmap();
53
/**Returns a pointer to the buffer renderer*/
54
QgsRenderer* getBufferRenderer();
58
void alterLayerDialog(const QString& string);
59
/** Reset to original (vector layer) values */
63
//methods reimplemented from qt designer base class
67
void pbnCancel_clicked();
69
void pbnApply_clicked();
70
void btnHelp_clicked();
71
void pbnQueryBuilder_clicked();
75
QgsVectorLayer *layer;
76
/**Flag indicating that the render type has changed compared to the vector layer (true)*/
78
/**Renderer dialog which is shown. If apply is pressed, it assigned to the vector layer*/
79
QDialog* bufferDialog;
80
/**Buffer renderer, which is assigned to the vector layer when apply is pressed*/
81
QgsRenderer* bufferRenderer;
82
/**Label dialog. If apply is pressed, options are applied to vector's QgsLabel */
83
QgsLabelDialog* labelDialog;
84
/**Actions dialog. If apply is pressed, the actions are stored for later use */
85
QgsAttributeActionDialog* actionDialog;
86
/**Buffer pixmap which takes the picture of renderers before they are assigned to the vector layer*/
90
inline void QgsDlgVectorLayerProperties::setBufferDialog(QDialog* dialog)
95
inline QPixmap* QgsDlgVectorLayerProperties::getBufferPixmap()
100
inline QString QgsDlgVectorLayerProperties::displayName()
102
return txtDisplayName->text();