libyui
Loading...
Searching...
No Matches
YMenuButton.h
1
/*
2
Copyright (C) 2000-2012 Novell, Inc
3
This library is free software; you can redistribute it and/or modify
4
it under the terms of the GNU Lesser General Public License as
5
published by the Free Software Foundation; either version 2.1 of the
6
License, or (at your option) version 3.0 of the License. This library
7
is distributed in the hope that it will be useful, but WITHOUT ANY
8
WARRANTY; without even the implied warranty of MERCHANTABILITY or
9
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10
License for more details. You should have received a copy of the GNU
11
Lesser General Public License along with this library; if not, write
12
to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13
Floor, Boston, MA 02110-1301 USA
14
*/
15
16
17
/*-/
18
19
File: YMenuButton.h
20
21
Author: Stefan Hundhammer <shundhammer@suse.de>
22
23
/-*/
24
25
#ifndef YMenuButton_h
26
#define YMenuButton_h
27
28
#include "YMenuWidget.h"
29
#include "YMenuItem.h"
30
31
class
YMenuButtonPrivate
;
32
33
47
class
YMenuButton
:
public
YMenuWidget
48
{
49
protected
:
56
YMenuButton
(
YWidget
*
parent
,
const
std::string &
label
);
57
58
public
:
59
63
virtual
~YMenuButton
();
64
68
YMenuItem
*
addItem
(
const
std::string &
label
,
69
const
std::string & iconName =
""
);
70
78
using
YMenuWidget::addItem
;
79
83
YMenuItem
*
addMenu
(
const
std::string &
label
,
84
const
std::string & iconName =
""
);
85
89
YMenuItem
*
addSeparator
();
90
95
virtual
const
char
*
widgetClass
()
const
{
return
"YMenuButton"
; }
96
107
virtual
bool
setProperty
(
const
std::string &
propertyName
,
108
const
YPropertyValue
&
val
);
109
116
virtual
YPropertyValue
getProperty
(
const
std::string &
propertyName
);
117
124
virtual
const
YPropertySet
&
propertySet
();
125
126
127
private
:
128
129
ImplPtr<YMenuButtonPrivate>
priv;
130
};
131
132
133
#endif
// YMenuButton_h
TreeItem
Definition
TreeItem.h:41
YMenuButton
Definition
YMenuButton.h:48
YMenuButton::widgetClass
virtual const char * widgetClass() const
Definition
YMenuButton.h:95
YMenuButton::addItem
YMenuItem * addItem(const std::string &label, const std::string &iconName="")
Definition
YMenuButton.cc:62
YMenuButton::propertySet
virtual const YPropertySet & propertySet()
Definition
YMenuButton.cc:94
YMenuButton::getProperty
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition
YMenuButton.cc:133
YMenuButton::setProperty
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition
YMenuButton.cc:116
YMenuButton::addMenu
YMenuItem * addMenu(const std::string &label, const std::string &iconName="")
Definition
YMenuButton.cc:73
YMenuButton::~YMenuButton
virtual ~YMenuButton()
Definition
YMenuButton.cc:55
YMenuButton::addSeparator
YMenuItem * addSeparator()
Definition
YMenuButton.cc:84
YMenuButton::YMenuButton
YMenuButton(YWidget *parent, const std::string &label)
Definition
YMenuButton.cc:47
YMenuItem
Definition
YMenuItem.h:44
YMenuWidget
Definition
YMenuWidget.h:39
YMenuWidget::addItem
virtual void addItem(YItem *item_disown)
Definition
YMenuWidget.cc:77
YPropertySet
Definition
YProperty.h:198
YPropertyValue
Definition
YProperty.h:105
YSelectionWidget::label
std::string label() const
Definition
YSelectionWidget.cc:99
YWidget
Definition
YWidget.h:55
YWidget::parent
YWidget * parent() const
Definition
YWidget.cc:277
YMenuButtonPrivate
Definition
YMenuButton.cc:37
src
YMenuButton.h
Generated by
1.10.0