kalarm
templatemenuaction.h
00001 /* 00002 * templatemenuaction.h - menu action to select a template 00003 * Program: kalarm 00004 * Copyright (C) 2005 by David Jarvie <software@astrojar.org.uk> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License along 00017 * with this program; if not, write to the Free Software Foundation, Inc., 00018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef TEMPLATEMENUACTION_H 00022 #define TEMPLATEMENUACTION_H 00023 00024 #include <kactionclasses.h> 00025 class KAEvent; 00026 00027 00028 class TemplateMenuAction : public KActionMenu 00029 { 00030 Q_OBJECT 00031 public: 00032 TemplateMenuAction(const QString& label, const QString& icon, QObject* receiver, 00033 const char* slot, KActionCollection* parent, const char* name = 0); 00034 00035 signals: 00036 void selected(const KAEvent&); 00037 00038 private slots: 00039 void slotInitMenu(); 00040 void slotSelected(int id); 00041 00042 private: 00043 QStringList mOriginalTexts; // menu item texts without added ampersands 00044 }; 00045 00046 #endif // TEMPLATEMENUACTION_H