kivio

mousetoolaction.h

00001 /*
00002  * Kivio - Visual Modelling and Flowcharting
00003  * Copyright (C) 2005 Peter Simonsson
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018  */
00019 #ifndef KIVIOMOUSETOOLACTION_H
00020 #define KIVIOMOUSETOOLACTION_H
00021 
00022 #include <kactionclasses.h>
00023 #include <koffice_export.h>
00024 
00025 namespace Kivio {
00026 
00027 class KIVIO_EXPORT MouseToolAction : public KRadioAction
00028 {
00029   Q_OBJECT
00030   public:
00041     MouseToolAction(const QString& text, const KShortcut& cut = KShortcut(), QObject* parent = 0, const char* name = 0);
00042   
00051     MouseToolAction(const QString& text, const KShortcut& cut,
00052                   const QObject* receiver, const char* slot, QObject* parent, const char* name = 0);
00053   
00061     MouseToolAction(const QString& text, const QIconSet& pix, const KShortcut& cut = KShortcut(),
00062                   QObject* parent = 0, const char* name = 0);
00063   
00071     MouseToolAction(const QString& text, const QString& pix, const KShortcut& cut = KShortcut(),
00072                   QObject* parent = 0, const char* name = 0);
00073   
00083     MouseToolAction(const QString& text, const QIconSet& pix, const KShortcut& cut,
00084                   const QObject* receiver, const char* slot, QObject* parent, const char* name = 0);
00085   
00095     MouseToolAction(const QString& text, const QString& pix, const KShortcut& cut,
00096                   const QObject* receiver, const char* slot,
00097                   QObject* parent, const char* name = 0);
00098   
00103     MouseToolAction(QObject* parent = 0, const char* name = 0);
00104 
00105     ~MouseToolAction();
00106 
00118     virtual int plug(QWidget* widget, int index = -1);
00119   
00120   signals:
00121     void doubleClicked();
00122 };
00123 
00124 }
00125 
00126 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys