kexidbsubform.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
3 Copyright (C) 2004-2005 Jaroslaw Staniek <js@iidea.pl>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KexiDBSubForm_H
22#define KexiDBSubForm_H
23
24#include <tqscrollview.h>
25#include <formeditor/form.h>
26
28class KEXIFORMUTILS_EXPORT KexiDBSubForm : public TQScrollView
29{
30 TQ_OBJECT
31
32 TQ_PROPERTY(TQString formName READ formName WRITE setFormName DESIGNABLE true)
33
34 public:
35 KexiDBSubForm(KFormDesigner::Form *parentForm, TQWidget *parent, const char *name);
37
39 TQString formName() const { return m_formName; }
40
42 void setFormName(const TQString &name);
43
44 //void paintEvent(TQPaintEvent *ev);
45
46 private:
47 KFormDesigner::Form *m_parentForm;
48 KFormDesigner::Form *m_form;
49 TQWidget *m_widget;
50 TQString m_formName;
51};
52
53#endif
A simple class representing a form.
Definition form.h:136
A form embedded as a widget inside other form.
TQString formName() const