kwave  18.07.70
MenuList.h
Go to the documentation of this file.
1 /***************************************************************************
2  MenuList.h - placeholder for a list of menu entries
3  -------------------
4  begin : Wed Dec 03 2014
5  copyright : (C) 2014 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef MENU_LIST_H
19 #define MENU_LIST_H
20 
21 #include "config.h"
22 
23 #include <QAction>
24 #include <QIcon>
25 #include <QMenu>
26 #include <QString>
27 
28 #include "libgui/MenuNode.h"
29 
30 namespace Kwave
31 {
37  class MenuList: public Kwave::MenuNode
38  {
39  Q_OBJECT
40 
41  public:
49  MenuList(Kwave::MenuNode *parent,
50  const QString &command,
51  const QString &uid);
52 
54  virtual ~MenuList() Q_DECL_OVERRIDE;
55 
59  virtual bool isBranch() const Q_DECL_OVERRIDE { return false; }
60 
64  virtual void clear() Q_DECL_OVERRIDE;
65 
76  virtual Kwave::MenuNode *insertLeaf(const QString &name,
77  const QString &command,
78  const QKeySequence &shortcut,
79  const QString &uid) Q_DECL_OVERRIDE;
80 
81  };
82 }
83 
84 #endif /* MENU_LIST_H */
85 
86 //***************************************************************************
87 //***************************************************************************
88 
Definition: App.h:33
virtual ~MenuList() Q_DECL_OVERRIDE
Definition: MenuList.cpp:34
const QKeySequence & shortcut() const
Definition: MenuNode.h:95
virtual void clear() Q_DECL_OVERRIDE
Definition: MenuList.cpp:39
const QString & name() const
Definition: MenuNode.h:74
const QString & command() const
Definition: MenuNode.h:77
MenuList(Kwave::MenuNode *parent, const QString &command, const QString &uid)
Definition: MenuList.cpp:25
const QString & uid() const
Definition: MenuNode.h:85
virtual bool isBranch() const Q_DECL_OVERRIDE
Definition: MenuList.h:59
virtual Kwave::MenuNode * insertLeaf(const QString &name, const QString &command, const QKeySequence &shortcut, const QString &uid) Q_DECL_OVERRIDE
Definition: MenuList.cpp:52