synthclone  0.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
synthclone::MenuItem Class Reference

Base class that contains common functionality used by MenuAction and MenuSeparator objects. More...

#include <synthclone/menuitem.h>

Inheritance diagram for synthclone::MenuItem:
Collaboration diagram for synthclone::MenuItem:

Public Slots

void setVisible (bool visible)
 Sets the visibility of this item. More...
 

Signals

void visibilityChanged (bool visible)
 Emitted when the visibility of this item is changed. More...
 

Public Member Functions

bool isVisible () const
 Gets a boolean indicating whether or not the item is visible. More...
 

Protected Member Functions

 MenuItem (QObject *parent=0)
 Constructs a new MenuItem object. More...
 
virtual ~MenuItem ()
 Destroys a MenuItem. More...
 

Detailed Description

Base class that contains common functionality used by MenuAction and MenuSeparator objects.

Constructor & Destructor Documentation

synthclone::MenuItem::MenuItem ( QObject *  parent = 0)
explicitprotected

Constructs a new MenuItem object.

This constructor cannot be called directly; instead, the subclass constructors should be used.

Parameters
parentThe parent object of the new menu item.
See Also
MenuAction, MenuSeparator
virtual synthclone::MenuItem::~MenuItem ( )
protectedvirtual

Destroys a MenuItem.

Member Function Documentation

bool synthclone::MenuItem::isVisible ( ) const

Gets a boolean indicating whether or not the item is visible.

Returns
The specified boolean.
void synthclone::MenuItem::setVisible ( bool  visible)
slot

Sets the visibility of this item.

Parameters
visibleWhether or not the menu item should be visible.
void synthclone::MenuItem::visibilityChanged ( bool  visible)
signal

Emitted when the visibility of this item is changed.

Parameters
visibleWhether or not the menu item is visible.

The documentation for this class was generated from the following file: