Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
gui
qgsfieldvalidator.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsfieldvalidator.h - description
3
-------------------
4
begin : March 2011
5
copyright : (C) 2011 by SunilRajKiran-kCube
6
email : sunilraj.kiran@kcubeconsulting.com
7
8
adapted version of QValidator for QgsField
9
***************************************************************************/
10
11
/***************************************************************************
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* *
18
***************************************************************************/
19
/* $Id$ */
20
21
#ifndef QGSFIELDVALIDATOR_H
22
#define QGSFIELDVALIDATOR_H
23
24
#include <QValidator>
25
#include <QVariant>
26
#include <QSettings>
27
#include "
qgsfield.h
"
28
29
30
class
GUI_EXPORT
QgsFieldValidator
:
public
QValidator
31
{
32
Q_OBJECT
33
34
public
:
35
QgsFieldValidator
( QObject *parent,
const
QgsField
&field );
36
~
QgsFieldValidator
();
37
38
virtual
State validate( QString &,
int
& )
const
;
39
virtual
void
fixup( QString & )
const
;
40
41
private
:
42
// Disables copy constructing
43
Q_DISABLE_COPY(
QgsFieldValidator
)
44
45
QValidator *mValidator;
46
QgsField
mField;
47
QString mNullValue;
48
};
49
50
#endif // QGSFIELDVALIDATOR_H
Generated on Wed Jun 13 2012 13:54:12 for Quantum GIS API Documentation by
1.8.1