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 <tdeactionclasses.h> 00025 class KAEvent; 00026 00027 00028 class TemplateMenuAction : public TDEActionMenu 00029 { 00030 Q_OBJECT 00031 00032 public: 00033 TemplateMenuAction(const TQString& label, const TQString& icon, TQObject* receiver, 00034 const char* slot, TDEActionCollection* parent, const char* name = 0); 00035 00036 signals: 00037 void selected(const KAEvent&); 00038 00039 private slots: 00040 void slotInitMenu(); 00041 void slotSelected(int id); 00042 00043 private: 00044 TQStringList mOriginalTexts; // menu item texts without added ampersands 00045 }; 00046 00047 #endif // TEMPLATEMENUACTION_H