mousetoolaction.h
1/*
2 * Kivio - Visual Modelling and Flowcharting
3 * Copyright (C) 2005 Peter Simonsson
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * 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
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19#ifndef KIVIOMOUSETOOLACTION_H
20#define KIVIOMOUSETOOLACTION_H
21
22#include <tdeactionclasses.h>
23#include <koffice_export.h>
24
25namespace Kivio {
26
27class KIVIO_EXPORT MouseToolAction : public TDERadioAction
28{
29 TQ_OBJECT
30
31 public:
42 MouseToolAction(const TQString& text, const TDEShortcut& cut = TDEShortcut(), TQObject* parent = 0, const char* name = 0);
43
52 MouseToolAction(const TQString& text, const TDEShortcut& cut,
53 const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0);
54
62 MouseToolAction(const TQString& text, const TQIconSet& pix, const TDEShortcut& cut = TDEShortcut(),
63 TQObject* parent = 0, const char* name = 0);
64
72 MouseToolAction(const TQString& text, const TQString& pix, const TDEShortcut& cut = TDEShortcut(),
73 TQObject* parent = 0, const char* name = 0);
74
84 MouseToolAction(const TQString& text, const TQIconSet& pix, const TDEShortcut& cut,
85 const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0);
86
96 MouseToolAction(const TQString& text, const TQString& pix, const TDEShortcut& cut,
97 const TQObject* receiver, const char* slot,
98 TQObject* parent, const char* name = 0);
99
104 MouseToolAction(TQObject* parent = 0, const char* name = 0);
105
106 ~MouseToolAction();
107
119 virtual int plug(TQWidget* widget, int index = -1);
120
121 signals:
122 void doubleClicked();
123};
124
125}
126
127#endif