kexireportfactory.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KEXIREPORTFACTORY_H
21#define KEXIREPORTFACTORY_H
22
23#include <widgetfactory.h>
24
27{
28 TQ_OBJECT
29
30
31 public:
32 KexiReportFactory(TQObject *parent, const char *name, const TQStringList &args);
33 virtual ~KexiReportFactory();
34
35 virtual TQString name();
36 virtual TQWidget *createWidget(const TQCString &classname, TQWidget *parent, const char *name, KFormDesigner::Container *container,
37 int options = DefaultOptions);
38
39 virtual bool createMenuActions(const TQCString &classname, TQWidget *w, TQPopupMenu *menu,
40 KFormDesigner::Container *container);
41 virtual bool startEditing(const TQCString &classname, TQWidget *w, KFormDesigner::Container *container);
42 virtual bool previewWidget(const TQCString &, TQWidget *, KFormDesigner::Container *);
43
44 //virtual void saveSpecialProperty(const TQString &classname, const TQString &name, const TQVariant &value, TQWidget *w,
45 //TQDomElement &parentNode, TQDomDocument &parent) {}
46 //virtual void readSpecialProperty(const TQCString &classname, TQDomElement &node, TQWidget *w, KFormDesigner::ObjectTreeItem *item) {}
47 virtual TQValueList<TQCString> autoSaveProperties(const TQCString &classname);
48
49 public slots:
50 void editText();
51
52 protected:
53 virtual bool isPropertyVisibleInternal(const TQCString &, TQWidget *, const TQCString &, bool isTopLevel);
54// virtual void changeText(const TQString &newText);
55// virtual void resizeEditor(TQWidget *widget, const TQCString &classname);
56
57 private:
58 TQWidget *m_widget;
59 KFormDesigner::Container *m_container;
60};
61
62#endif
63
This class makes a container out of any TQWidget.
Definition container.h:74
The base class for all widget Factories.
Kexi Factory (DB widgets + subform)
virtual bool createMenuActions(const TQCString &classname, TQWidget *w, TQPopupMenu *menu, KFormDesigner::Container *container)
virtual TQWidget * createWidget(const TQCString &classname, TQWidget *parent, const char *name, KFormDesigner::Container *container, int options=DefaultOptions)
Creates a widget (and if needed a KFormDesigner::Container)
virtual bool startEditing(const TQCString &classname, TQWidget *w, KFormDesigner::Container *container)
virtual bool previewWidget(const TQCString &, TQWidget *, KFormDesigner::Container *)
virtual bool isPropertyVisibleInternal(const TQCString &, TQWidget *, const TQCString &, bool isTopLevel)
virtual TQValueList< TQCString > autoSaveProperties(const TQCString &classname)