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 
36 class aDatabase;
37 
38 
39 
47 class QT_WIDGET_PLUGIN_EXPORT wDocument : public aWidget
48 {
49  Q_OBJECT
50 public:
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 
63 public 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 
75 private slots:
76  virtual void valueChanged( const QVariant & );
77 
78 private:
79  void NewValues();
80 };
81 
82 
83 #endif // WDOCUMENT_H
virtual QDialog * createEditor(QWidget *parent)
Definition: awidget.cpp:347
Визуальный объект - контейнер для работы с документами. Наследует aWidget.
Definition: wdocument.h:47
virtual ERR_Code Update()
Definition: awidget.cpp:689
virtual void initObject(aDatabase *adb)
Definition: awidget.cpp:187
virtual aObject * createDBObject(aCfgItem obj, aDatabase *)
Definition: awidget.cpp:135
virtual ERR_Code Select(Q_ULLONG id)
Definition: awidget.cpp:665
virtual bool checkStructure()
Definition: awidget.cpp:302
Класс для работы с СУБД. Ananas Data Abstraction Layer. Наследует QObject.
Definition: adatabase.h:77
Базовый класс для визуальных объектов. Наследует QWidget.
Definition: awidget.h:52
virtual ERR_Code New()
Definition: awidget.cpp:642
Базовый класс для невизуальных классов (моделей в терминологии MVC) Ананаса, которым необходим доступ...
Definition: aobject.h:63