libyui
Loading...
Searching...
No Matches
YMenuBar.h
1
/*
2
Copyright (c) [2020] SUSE LLC
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: YMenuBar.h
20
21
Author: Stefan Hundhammer <shundhammer@suse.de>
22
23
/-*/
24
25
#ifndef YMenuBar_h
26
#define YMenuBar_h
27
28
#include "YMenuWidget.h"
29
#include "YMenuItem.h"
30
31
class
YMenuBarPrivate
;
32
33
50
class
YMenuBar
:
public
YMenuWidget
51
{
52
protected
:
56
YMenuBar
(
YWidget
*
parent
);
57
58
public
:
59
63
virtual
~YMenuBar
();
64
68
YMenuItem
*
addMenu
(
const
std::string &
label
,
69
const
std::string & iconName =
""
);
70
75
virtual
const
char
*
widgetClass
()
const
{
return
"YMenuBar"
; }
76
87
virtual
bool
setProperty
(
const
std::string &
propertyName
,
88
const
YPropertyValue
&
val
);
89
96
virtual
YPropertyValue
getProperty
(
const
std::string &
propertyName
);
97
104
virtual
const
YPropertySet
&
propertySet
();
105
106
107
private
:
108
109
ImplPtr<YMenuBarPrivate>
priv;
110
};
111
112
113
#endif
// YMenuBar_h
TreeItem
Definition
TreeItem.h:41
YMenuBar
Definition
YMenuBar.h:51
YMenuBar::YMenuBar
YMenuBar(YWidget *parent)
Definition
YMenuBar.cc:48
YMenuBar::getProperty
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition
YMenuBar.cc:117
YMenuBar::widgetClass
virtual const char * widgetClass() const
Definition
YMenuBar.h:75
YMenuBar::propertySet
virtual const YPropertySet & propertySet()
Definition
YMenuBar.cc:78
YMenuBar::setProperty
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition
YMenuBar.cc:100
YMenuBar::addMenu
YMenuItem * addMenu(const std::string &label, const std::string &iconName="")
Definition
YMenuBar.cc:67
YMenuBar::~YMenuBar
virtual ~YMenuBar()
Definition
YMenuBar.cc:60
YMenuItem
Definition
YMenuItem.h:44
YMenuWidget
Definition
YMenuWidget.h:39
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
YMenuBarPrivate
Definition
YMenuBar.cc:38
src
YMenuBar.h
Generated by
1.10.0