Ananas Library 0.9.5
wcatalogeditor.h
1/****************************************************************************
2** $Id: wcatalogeditor.h,v 1.12 2006/08/23 07:17:44 app Exp $
3**
4** Header file of the field plugin of Ananas
5** Designer and Engine applications
6**
7** Created : 20031201
8**
9** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved.
10** Copyright (C) 2003-2004 Grigory Panov, Yoshkar-Ola.
11**
12** This file is part of the Ananas Plugins of the Ananas
13** automation accounting system.
14**
15** This file may be distributed and/or modified under the terms of the
16** GNU General Public License version 2 as published by the Free Software
17** Foundation and appearing in the file LICENSE.GPL included in the
18** packaging of this file.
19**
20** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
21** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22**
23** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru
24** See http://www.leaderit.ru/gpl/ for GPL licensing information.
25**
26** Contact org@leaderit.ru if any conditions of this licensing are
27** not clear to you.
28**
29**********************************************************************/
30
31#ifndef WCATALOGEDITOR_H
32#define WCATALOGEDITOR_H
33
34#include "ananasglobal.h"
35
36#include <qwidget.h>
37#include <qwidgetplugin.h>
38#include <qlabel.h>
39#include <qworkspace.h>
40//#include <qobjectlist.h>
41//#include <qlayout.h>
42//#include <qsocket.h>
43//#include <qeventloop.h>
44//#include <qdatetimeedit.h>
45#include "wfield.h"
46#include "adatabase.h"
47#include "ananas.h"
48
58class QT_WIDGET_PLUGIN_EXPORT wCatalogEditor : public QWidget
59{
60 Q_OBJECT
61 Q_PROPERTY( QString value READ value WRITE setValue)
62public:
63 QLabel* label;
64 wCatalogEditor( wField* parent = 0, const char *name = 0, const char* catname=0);
65 wCatalogEditor( QWidget* w, int cat);
67 QString value() const;
68 void setValue(QString newvalue);
69 void initCat(aDatabase *adb);
70 QString displayValue(Q_ULLONG id_element) const;
71private slots:
72 void on_selected( Q_ULLONG );
73 void on_destroyed_form();
74
75protected slots:
76 void openForm(const bool toSelect);
77public slots:
78 void checkUserFields( QStringList &lst);
79 void select();
80 void edit();
81
82signals:
83 void valueChanged(const QString &);
84 void selected( Q_ULLONG );
85 void destroyed_form();
86private:
87 QString vValue;
88 aCfg* md;
89 int catId;
90 QWidget *ws;
91 aDatabase* db;
92};
93#endif
Класс реализует програмный интерфейс доступа к элементам метаданных системы. Наследует QObject.
Определения acfg.h:437
Класс для работы с СУБД. Ananas Data Abstraction Layer. Наследует QObject.
Определения adatabase.h:78
void select()
Определения wcatalogeditor.cpp:124
wCatalogEditor(wField *parent=0, const char *name=0, const char *catname=0)
Определения wcatalogeditor.cpp:58
void edit()
Определения wcatalogeditor.cpp:138
void setValue(QString newvalue)
Определения wcatalogeditor.cpp:396
void initCat(aDatabase *adb)
Определения wcatalogeditor.cpp:104
QString displayValue(Q_ULLONG id_element) const
Определения wcatalogeditor.cpp:366
Плагин – виджет предназначенный для редактирования значений любых типов, определенных в бизнес схеме....
Определения wfield.h:64