home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / Kolinestyleaction.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-30  |  2.3 KB  |  59 lines

  1. /* This file is part of the KDE project
  2.    Copyright (C) 2004 Peter Simonsson <psn@linux.se>
  3.  
  4.    This library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public
  6.    License as published by the Free Software Foundation; either
  7.    version 2 of the License, or (at your option) any later version.
  8.  
  9.    This library is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.    Library General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU Library General Public License
  15.    along with this library; see the file COPYING.LIB.  If not, write to
  16.    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  17.  * Boston, MA 02110-1301, USA.
  18. */
  19.  
  20. #ifndef KOLINESTYLEACTION_H
  21. #define KOLINESTYLEACTION_H
  22.  
  23. #include "KoSelectAction.h"
  24. #include <koffice_export.h>
  25. /** A line style selection action */
  26. class KOFFICEUI_EXPORT KoLineStyleAction : public KoSelectAction
  27. {
  28.   Q_OBJECT
  29.   public:
  30.     /** Constructs a KoLineStyleAction with a text and an icon.
  31.      * @param text The text that will be displayed.
  32.      * @param icon The dynamically loaded icon that goes with this action.
  33.      * @param parent This action's parent.
  34.      * @param name An internal name for this action.
  35.      */
  36.     KoLineStyleAction(const QString& text, const QString& icon, QObject* parent = 0, const char* name = 0);
  37.     /** Same as above, but it also connects a slot to the selectionChanged(int) signal.
  38.      * @param text The text that will be displayed.
  39.      * @param icon The dynamically loaded icon that goes with this action.
  40.      * @param receiver The SLOT's parent.
  41.      * @param slot The SLOT to invoke when a selectionChanged(int) signal is emited.
  42.      * @param parent This action's parent.
  43.      * @param name An internal name for this action.
  44.      */
  45.     KoLineStyleAction(const QString& text, const QString& icon, const QObject* receiver,
  46.       const char* slot, QObject* parent, const char* name = 0);
  47.     ~KoLineStyleAction();
  48.     
  49.   protected:
  50.     /** Draws and adds each item of the menu. */
  51.     void createMenu();
  52.   
  53.   private:
  54.     class KoLineStyleActionPrivate;
  55.     KoLineStyleActionPrivate* d;
  56. };
  57.  
  58. #endif
  59.