1
/***************************************************************************
2
qgslabeldialog.h - render vector labels
5
copyright : (C) 2004 by Radim Blazek
7
***************************************************************************/
8
/***************************************************************************
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
15
***************************************************************************/
18
#ifndef QGSLABELDIALOG_H
19
#define QGSLABELDIALOG_H
21
#include "ui_qgslabeldialogbase.h"
26
/** QgsLabelDialog is the dialog for label. */
27
class QgsLabelDialog: public QWidget, private Ui::QgsLabelDialogBase
32
QgsLabelDialog( QgsLabel *label, QWidget * parent = 0 );
34
int itemNoForField( QString theFieldName, QStringList theFieldList );
36
/* Attributes in order used in the table */
62
/** applies the changes to the label class */
65
/** Change font - reimplements method from base class*/
68
/** Change color - reimplements method from base class */
69
void changeBufferColor( );
70
void changeFontColor( );
72
/** Initialise dialog to vector layer values */
75
void on_cboLabelField_activated( int ) {emit labelSourceSet(); }
77
void on_spinFontSize_valueChanged( double d ) { mFont.setPointSizeF( d ); lblSample->setFont( mFont ); }
80
/* emitted when an item in label source list is chosen */
81
void labelSourceSet();
85
/** return field index based on field's name, -1 if not found */
86
int fieldIndexFromName( QString name );