synthclone  0.3.0
menuitem.h
Go to the documentation of this file.
1 /*
2  * libsynthclone - a plugin API for `synthclone`
3  * Copyright (C) 2011 Devin Anderson
4  *
5  * This library is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published by the
7  * Free Software Foundation; either version 2.1 of the License, or (at your
8  * option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13  * for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation,
17  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef __SYNTHCLONE_MENUITEM_H__
21 #define __SYNTHCLONE_MENUITEM_H__
22 
23 #include <QtCore/QObject>
24 
25 namespace synthclone {
26 
32  class MenuItem: public QObject {
33 
34  Q_OBJECT
35 
36  public:
37 
45  bool
46  isVisible() const;
47 
48  public slots:
49 
57  void
58  setVisible(bool visible);
59 
60  signals:
61 
69  void
70  visibilityChanged(bool visible);
71 
72  protected:
73 
85  explicit
86  MenuItem(QObject *parent=0);
87 
92  virtual
93  ~MenuItem();
94 
95  private:
96 
97  bool visible;
98 
99  };
100 
101 }
102 
103 #endif
MenuItem(QObject *parent=0)
Constructs a new MenuItem object.
Base class that contains common functionality used by MenuAction and MenuSeparator objects...
Definition: menuitem.h:32
Definition: component.h:26
bool isVisible() const
Gets a boolean indicating whether or not the item is visible.
void visibilityChanged(bool visible)
Emitted when the visibility of this item is changed.
void setVisible(bool visible)
Sets the visibility of this item.
virtual ~MenuItem()
Destroys a MenuItem.