kexi

libactionwidget.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Lucijan Busch <lucijan@gmx.at>
3 Copyright (C) 2004 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 LIBACTIONWIDGET_H
22#define LIBACTIONWIDGET_H
23
24
25#include <tdeactionclasses.h>
26
27namespace KFormDesigner
28{
29
30class WidgetInfo;
31
35class KFORMEDITOR_EXPORT LibActionWidget : public TDEToggleAction
36{
37 TQ_OBJECT
38
39 public:
42 LibActionWidget(WidgetInfo *, TDEActionCollection *collection);
43 virtual ~LibActionWidget();
44
45 signals:
49 void prepareInsert(const TQCString &className);
50
51 protected slots:
53 virtual void slotActivated();
54
55 private:
56 TQCString m_className;
57};
58
59}
60
61#endif
virtual void slotActivated()
reimplemented from TDEToggleAction
LibActionWidget(WidgetInfo *, TDEActionCollection *collection)
LibActionWidget object is initialized to be mutually exclusive with all other LibActionWidget objects...
void prepareInsert(const TQCString &className)
emits a signal containing the class name
This class holds properties of widget classes provided by a factory.