Ananas Library 0.9.5
wdocument.h
1/****************************************************************************
2** $Id: wdocument.h,v 1.16 2006/08/23 07:21:48 app Exp $
3**
4** Header file of the document plugin 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 Ananas Plugins 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 WDOCUMENT_H
31#define WDOCUMENT_H
32#include <qwidgetplugin.h>
33#include <qwidget.h>
34#include "awidget.h"
35
36class aDatabase;
37
38
39
47class QT_WIDGET_PLUGIN_EXPORT wDocument : public aWidget
48{
49 Q_OBJECT
50public:
51 wDocument( QWidget *parent = 0, WFlags fl = 0 );
52 virtual ~wDocument();
53 bool checkStructure();
54 virtual void initObject( aDatabase *adb );
55 virtual QDialog* createEditor( QWidget *parent );
56 virtual QString displayString();
57 virtual bool isContainer();
58 virtual aObject *createDBObject( aCfgItem obj, aDatabase *adb );
59
60 virtual ERR_Code New();
61 virtual ERR_Code Select( Q_ULLONG id );
62
63public slots:
64 int select( Q_ULLONG id );
65 Q_ULLONG Insert();
66 virtual int Update();
67 virtual int TurnOn();
68 virtual int TurnOff();
69 int MarkDelete();
70// void on_abuttonclick();
71
72//signals:
73// void valueChanged( const QString &, const QVariant & );
74
75private slots:
76 virtual void valueChanged( const QVariant & );
77
78private:
79 void NewValues();
80};
81
82
83#endif // WDOCUMENT_H
Definition adatabase.h:78
Definition aobject.h:64
virtual ERR_Code Select(Q_ULLONG id)
Definition awidget.cpp:665
virtual QDialog * createEditor(QWidget *parent)
Definition awidget.cpp:347
virtual ERR_Code New()
Definition awidget.cpp:642
virtual bool checkStructure()
Definition awidget.cpp:302
virtual aObject * createDBObject(aCfgItem obj, aDatabase *)
Definition awidget.cpp:135
aWidget(QWidget *parent=0, const char *name=0, WFlags fl=0)
Definition awidget.cpp:58
virtual ERR_Code Update()
Definition awidget.cpp:689
virtual void initObject(aDatabase *adb)
Definition awidget.cpp:187
Q_ULLONG Insert()
Definition wdocument.cpp:208
int MarkDelete()
Definition wdocument.cpp:245
virtual int TurnOn()
Definition wdocument.cpp:313
virtual bool isContainer()
Definition wdocument.cpp:273
int select(Q_ULLONG id)
Definition wdocument.cpp:167
wDocument(QWidget *parent=0, WFlags fl=0)
Definition wdocument.cpp:52
virtual QString displayString()
Definition wdocument.cpp:259
virtual int TurnOff()
Definition wdocument.cpp:327