kword

KWMailMergeLabelAction.h

00001 /* This file is part of the KDE project
00002   
00003    Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org>
00004 
00005    Large parts are taken from kdebase/konqueror/konq_actions.*  
00006    Copyright (C) 2000 Simon Hausmann <hausmann@kde.org>
00007 
00008    This library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Library General Public
00010    License as published by the Free Software Foundation; either
00011    version 2 of the License, or (at your option) any later version.
00012 
00013    This library is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Library General Public License for more details.
00017 
00018    You should have received a copy of the GNU Library General Public License
00019    along with this library; see the file COPYING.LIB.  If not, write to
00020    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021  * Boston, MA 02110-1301, USA.
00022 */
00023 
00024 #ifndef _MAILMERGE_ACTIONS_
00025 #define _MAILMERGE_ACTIONS_
00026 
00027 #include <kaction.h>
00028 #include <qtoolbutton.h>
00029 
00030 class KWMailMergeLabelAction : public KAction
00031 {
00032   Q_OBJECT
00033 public:
00034   KWMailMergeLabelAction( const QString &text, int accel,
00035                     QObject* receiver, const char* slot, QObject *parent = 0, const char *name = 0 );
00036 
00037   virtual int plug( QWidget *widget, int index = -1 );
00038   virtual void unplug( QWidget *widget );
00039   QToolButton * label() { return m_label; }
00040 private:
00041   QToolButton * m_label;
00042 };
00043 
00044 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys