Ananas Library
0.9.5
Титульная страница
Классы
Файлы
Файлы
src
asqlfield.h
1
/****************************************************************************
2
** $Id: asqlfield.h,v 1.3 2004/09/01 16:55:58 leader Exp $
3
**
4
** Header file of the Ananas database field of Ananas
5
** Designer and Engine applications
6
**
7
** Created : 20031201
8
**
9
** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved.
10
**
11
** This file is part of the Library of the Ananas
12
** automation accounting system.
13
**
14
** This file may be distributed and/or modified under the terms of the
15
** GNU General Public License version 2 as published by the Free Software
16
** Foundation and appearing in the file LICENSE.GPL included in the
17
** packaging of this file.
18
**
19
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
**
22
** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru
23
** See http://www.leaderit.ru/gpl/ for GPL licensing information.
24
**
25
** Contact org@leaderit.ru if any conditions of this licensing are
26
** not clear to you.
27
**
28
**********************************************************************/
29
30
#ifndef ASQLFIELD_H
31
#define ASQLFIELD_H
32
#include <qsqlfield.h>
33
#include "acfg.h"
34
35
/*
36
class ANANAS_EXPORT aField : public QObject //SqlField
37
{
38
Q_OBJECT
39
public:
40
// enum fieldType ( Unknown, Numberic, Character, Date, Object );
41
aCfgItem context;
42
long id;
43
aCfg *md;
44
bool fSys;
45
int Width, Dec;
46
QString Name;
47
char aType;
48
QVariant::Type Type;
49
50
51
// aField( aCfg *newmd, aCfgItem newcontext );
52
aField( const QString &fname = QString::null, const QString &ftype = QString::null );
53
~aField();
54
55
// QSqlField *sqlField();
56
public slots:
57
virtual QVariant value();
58
virtual void setValue( const QVariant &value);
59
private:
60
QVariant field;
61
};
62
*/
63
64
class
ANANAS_EXPORT
aSQLField
:
public
QObject
//aField
65
{
66
Q_OBJECT
67
public
:
68
QString tName;
69
QWidget *editorWidget;
70
71
aSQLField
(
aCfg
*newmd, aCfgItem newcontext );
72
aSQLField
(
const
QString &name = QString::null,
const
QString &type = QString::null,
const
QString &tname = QString::null );
73
~
aSQLField
();
74
75
QSqlField *sqlField();
76
virtual
QWidget *editor();
77
78
public
slots:
79
virtual
QVariant value();
80
virtual
void
setValue(
const
QVariant &value);
81
private
:
82
QSqlField *field;
83
};
84
85
#endif
aCfg
Класс реализует програмный интерфейс доступа к элемен...
Definition:
acfg.h:436
aSQLField
Definition:
asqlfield.h:64
Создано системой
1.8.5