kexipushbutton.h
1/* This file is part of the KDE project
2 Copyright (C) 2005 Cedric Pasteur <cedric.pasteur@free.fr>
3 Copyright (C) 2004-2006 Jaroslaw Staniek <js@iidea.pl>
4
5 This program 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 program 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 program; see the file COPYING. 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 KexiPushButton_H
22#define KexiPushButton_H
23
24#include <kpushbutton.h>
25#include "../kexiformeventhandler.h"
26
28class KEXIFORMUTILS_EXPORT KexiPushButton : public KPushButton
29{
30 TQ_OBJECT
31
32 TQ_PROPERTY(TQString onClickAction READ onClickAction WRITE setOnClickAction DESIGNABLE true)
33 TQ_PROPERTY(TQString onClickActionOption READ onClickActionOption WRITE setOnClickActionOption DESIGNABLE true)
34
35 public:
36 KexiPushButton( const TQString & text, TQWidget * parent, const char * name = 0 );
38
39 public slots:
43 TQString onClickAction() const { return m_onClickActionData.string; }
44 void setOnClickAction(const TQString& actionString) { m_onClickActionData.string = actionString; }
45
49 TQString onClickActionOption() const { return m_onClickActionData.option; }
50 void setOnClickActionOption(const TQString& option) { m_onClickActionData.option = option; }
51
52 protected:
53 KexiFormEventAction::ActionData m_onClickActionData;
54};
55
56#endif
A structure used in currentActionName()
Push Button widget for Kexi forms.
TQString onClickActionOption() const
action option allowing to select whether the object should be opened in data view mode or printed,...
TQString onClickAction() const
action string for "on click" event