kalarm

templatemenuaction.h
1/*
2 * templatemenuaction.h - menu action to select a template
3 * Program: kalarm
4 * Copyright (C) 2005 by David Jarvie <software@astrojar.org.uk>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef TEMPLATEMENUACTION_H
22#define TEMPLATEMENUACTION_H
23
24#include <tdeactionclasses.h>
25class KAEvent;
26
27
28class TemplateMenuAction : public TDEActionMenu
29{
30 TQ_OBJECT
31
32 public:
33 TemplateMenuAction(const TQString& label, const TQString& icon, TQObject* receiver,
34 const char* slot, TDEActionCollection* parent, const char* name = 0);
35
36 signals:
37 void selected(const KAEvent&);
38
39 private slots:
40 void slotInitMenu();
41 void slotSelected(int id);
42
43 private:
44 TQStringList mOriginalTexts; // menu item texts without added ampersands
45};
46
47#endif // TEMPLATEMENUACTION_H
KAEvent corresponds to a KCal::Event instance.
Definition: alarmevent.h:232