Ananas Library 0.9.5
wjournal.h
1/****************************************************************************
2** $Id: wjournal.h,v 1.14 2007/12/24 08:33:14 app Exp $
3**
4** Header file of the catlogue 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 WJOURNAL_H
31#define WJOURNAL_H
32#include <qwidgetplugin.h>
33#include <qdatetimeedit.h>
34#include <qaction.h>
35#include "awidget.h"
36
37class QWidget;
57class QT_WIDGET_PLUGIN_EXPORT wJournal : public aWidget
58{
59 Q_OBJECT
60public:
61 wJournal( QWidget *parent = 0, WFlags fl = 0 );
62 virtual ~wJournal();
63 bool checkStructure();
64 virtual void initObject( aDatabase *adb );
65 virtual QToolBar* createToolBar( QMainWindow *parent );
66 virtual QDialog* createEditor( QWidget *parent );
67 virtual QString displayString();
68 virtual bool isContainer() { return true; };
69 virtual aObject* createDBObject( aCfgItem obj, aDatabase *adb );
70// virtual ERR_Code Select( Q_ULLONG id );
71 virtual void toolbarActionEnabled();
72 int wdbTableRows();
73 QAction *newAction,*editAction,*viewAction,*deleteAction, *copyAction;
74
75public slots:
76 int select( Q_ULLONG id );
77 Q_ULLONG insert();
78 int update();
79 int view();
80 int markDelete();
81 int copy();
82
83protected slots:
84 void setFilterByDate();
85
86private:
87 QDialog *dSelectType;
88 QToolBar *toolbar;
89 QDateEdit *date_from, *date_to;
90 Q_ULLONG docUid;
91 int docId;
92};
93
94
95#endif // WJOURNAL_H
Класс для работы с СУБД. Ananas Data Abstraction Layer. Наследует QObject.
Definition adatabase.h:78
Базовый класс для невизуальных классов (моделей в терминологии MVC) Ананаса, которым необходим доступ...
Definition aobject.h:64
Базовый класс для визуальных объектов. Наследует QWidget.
Definition awidget.h:53
virtual QDialog * createEditor(QWidget *parent)
Definition awidget.cpp:347
virtual bool checkStructure()
Definition awidget.cpp:302
virtual aObject * createDBObject(aCfgItem obj, aDatabase *)
Definition awidget.cpp:135
virtual QToolBar * createToolBar(QMainWindow *parent)
Definition awidget.cpp:152
virtual void initObject(aDatabase *adb)
Definition awidget.cpp:187
Визуальный объект - контейнер для работы с Журналами документов. Наследует aWidget.
Definition wjournal.h:58