QgsLabelDialog Class Reference

#include <qgslabeldialog.h>

Collaboration diagram for QgsLabelDialog:

Collaboration graph
[legend]
List of all members.

Detailed Description

QgsLabelDialog is the dialog for label.

Definition at line 27 of file qgslabeldialog.h.

Public Types

enum  Attribute {
  Text = 0, Family, Size, Bold,
  Italic, Underline, Color, XCoordinate,
  YCoordinate, XOffset, YOffset, Angle,
  Alignment, BufferSize, BufferColor, BufferBrush,
  BorderWidth, BorderColor, BorderStyle, AttributeCount
}

Public Slots

void apply (void)
 applies the changes to the label class
void changeFont ()
 Change font - reimplements method from base class.
void changeBufferColor ()
 Change color - reimplements method from base class.
void changeFontColor ()
void init (void)
 Initialise dialog to vector layer values.
void on_cboLabelField_activated (int)

Signals

void labelSourceSet ()

Public Member Functions

 QgsLabelDialog (QgsLabel *label, QWidget *parent=0)
 ~QgsLabelDialog ()
int itemNoForField (QString theFieldName, QStringList theFieldList)

Protected Member Functions

int fieldIndexFromName (QString name)
 return field index based on field's name, -1 if not found

Private Attributes

QgsLabelmLabel
QColor mFontColor
QColor mBufferColor
QFont mFont


Member Enumeration Documentation

enum QgsLabelDialog::Attribute

Enumerator:
Text 
Family 
Size 
Bold 
Italic 
Underline 
Color 
XCoordinate 
YCoordinate 
XOffset 
YOffset 
Angle 
Alignment 
BufferSize 
BufferColor 
BufferBrush 
BorderWidth 
BorderColor 
BorderStyle 
AttributeCount 

Definition at line 37 of file qgslabeldialog.h.


Constructor & Destructor Documentation

QgsLabelDialog::QgsLabelDialog ( QgsLabel label,
QWidget *  parent = 0 
)

Definition at line 31 of file qgslabeldialog.cpp.

References changeBufferColor(), changeFont(), changeFontColor(), init(), and QgsDebugMsg.

QgsLabelDialog::~QgsLabelDialog (  ) 

Definition at line 300 of file qgslabeldialog.cpp.

References QgsDebugMsg.


Member Function Documentation

int QgsLabelDialog::itemNoForField ( QString  theFieldName,
QStringList  theFieldList 
)

Definition at line 288 of file qgslabeldialog.cpp.

Referenced by init().

void QgsLabelDialog::apply ( void   )  [slot]

applies the changes to the label class

Definition at line 305 of file qgslabeldialog.cpp.

References QgsLabel::Alignment, QgsLabel::Angle, QgsLabel::Bold, QgsLabel::BufferSize, QgsLabel::Family, fieldIndexFromName(), QgsLabel::Italic, QgsLabel::layerAttributes(), QgsLabelAttributes::MapUnits, mBufferColor, mFont, mFontColor, mLabel, QgsLabelAttributes::PointUnits, QgsDebugMsg, QgsLabelAttributes::setAlignment(), QgsLabelAttributes::setAngle(), QgsLabelAttributes::setBold(), QgsLabelAttributes::setBufferColor(), QgsLabelAttributes::setBufferEnabled(), QgsLabelAttributes::setBufferSize(), QgsLabelAttributes::setColor(), QgsLabelAttributes::setFamily(), QgsLabelAttributes::setItalic(), QgsLabel::setLabelField(), QgsLabelAttributes::setMultilineEnabled(), QgsLabelAttributes::setOffset(), QgsLabelAttributes::setSize(), QgsLabelAttributes::setText(), QgsLabelAttributes::setUnderline(), QgsLabel::Size, QgsLabel::SizeType, QgsLabel::Text, QgsLabel::Underline, QgsLabel::XCoordinate, QgsLabel::XOffset, QgsLabel::YCoordinate, and QgsLabel::YOffset.

Referenced by QgsVectorLayerProperties::apply().

void QgsLabelDialog::changeFont (  )  [slot]

Change font - reimplements method from base class.

Definition at line 249 of file qgslabeldialog.cpp.

References mFont, and QgsDebugMsg.

Referenced by QgsLabelDialog().

void QgsLabelDialog::changeBufferColor (  )  [slot]

Change color - reimplements method from base class.

Definition at line 277 of file qgslabeldialog.cpp.

References mBufferColor, and QgsDebugMsg.

Referenced by QgsLabelDialog().

void QgsLabelDialog::changeFontColor (  )  [slot]

Definition at line 267 of file qgslabeldialog.cpp.

References mFontColor, and QgsDebugMsg.

Referenced by QgsLabelDialog().

void QgsLabelDialog::init ( void   )  [slot]

Initialise dialog to vector layer values.

Definition at line 54 of file qgslabeldialog.cpp.

References QgsLabelAttributes::alignment(), QgsLabel::Alignment, QgsLabelAttributes::angle(), QgsLabel::Angle, QgsLabelAttributes::bold(), QgsLabel::Bold, QgsLabelAttributes::boldIsSet(), QgsLabelAttributes::bufferColor(), QgsLabelAttributes::bufferEnabled(), QgsLabelAttributes::bufferSize(), QgsLabel::BufferSize, QgsLabelAttributes::bufferSizeIsSet(), QgsLabelAttributes::bufferSizeType(), QgsLabelAttributes::color(), QgsLabelAttributes::family(), QgsLabel::Family, QgsLabel::fields(), QgsLabelAttributes::italic(), QgsLabel::Italic, QgsLabelAttributes::italicIsSet(), itemNoForField(), QgsLabel::labelField(), QgsLabel::layerAttributes(), mBufferColor, mFont, mFontColor, mLabel, QgsLabelAttributes::multilineEnabled(), QgsLabelAttributes::offsetIsSet(), QgsLabelAttributes::offsetType(), QgsLabelAttributes::PointUnits, QgsDebugMsg, QgsLabelAttributes::size(), QgsLabel::Size, QgsLabelAttributes::sizeIsSet(), QgsLabelAttributes::sizeType(), QgsLabel::SizeType, QgsLabelAttributes::text(), QgsLabel::Text, QgsLabelAttributes::underline(), QgsLabel::Underline, QgsLabel::XCoordinate, QgsLabelAttributes::xOffset(), QgsLabel::XOffset, QgsLabel::YCoordinate, QgsLabelAttributes::yOffset(), and QgsLabel::YOffset.

Referenced by QgsLabelDialog(), and QgsVectorLayerProperties::reset().

void QgsLabelDialog::on_cboLabelField_activated ( int   )  [inline, slot]

Definition at line 75 of file qgslabeldialog.h.

References labelSourceSet().

void QgsLabelDialog::labelSourceSet (  )  [signal]

Referenced by on_cboLabelField_activated().

int QgsLabelDialog::fieldIndexFromName ( QString  name  )  [protected]

return field index based on field's name, -1 if not found

Definition at line 387 of file qgslabeldialog.cpp.

References QgsLabel::fields(), and mLabel.

Referenced by apply().


Member Data Documentation

QgsLabel* QgsLabelDialog::mLabel [private]

Definition at line 87 of file qgslabeldialog.h.

Referenced by apply(), fieldIndexFromName(), and init().

QColor QgsLabelDialog::mFontColor [private]

Definition at line 88 of file qgslabeldialog.h.

Referenced by apply(), changeFontColor(), and init().

QColor QgsLabelDialog::mBufferColor [private]

Definition at line 89 of file qgslabeldialog.h.

Referenced by apply(), changeBufferColor(), and init().

QFont QgsLabelDialog::mFont [private]

Definition at line 90 of file qgslabeldialog.h.

Referenced by apply(), changeFont(), and init().


The documentation for this class was generated from the following files:
Generated on Tue Oct 28 16:51:59 2008 for Quantum GIS API Documentation by  doxygen 1.5.1