Lumiera
0.pre.03
»edit your freedom«
button-bar.hpp
Go to the documentation of this file.
1
/*
2
BUTTON-BAR.hpp - button bar widget
3
4
Copyright (C) Lumiera.org
5
2009, Joel Holdsworth <joel@airwebreathe.org.uk>
6
7
This program is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of
10
the License, or (at your option) any later version.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21
*/
22
23
29
#ifndef STAGE_WIDGET_BUTTON_BAR_H
30
#define STAGE_WIDGET_BUTTON_BAR_H
31
32
#include "
stage/widget/mini-button.hpp
"
33
34
namespace
stage
{
35
namespace
widget {
36
40
class
ButtonBar
41
:
public
Gtk::Box
42
{
43
public
:
44
ButtonBar
();
45
47
void
append
(Widget&);
48
53
template
<
class
T>
54
void
55
append
(
MiniWrapper<T>
& button, sigc::slot<void>
const
& clicked_slot)
56
{
57
button.signal_clicked().connect (clicked_slot);
58
append
(button);
59
}
60
};
61
62
63
}}
// stage::widget
64
#endif
/*STAGE_WIDGET_BUTTON_BAR_H*/
stage::widget::MiniWrapper
A wrapper for ToolButton-like Button widgets.
Definition:
mini-button.hpp:45
stage::widget::ButtonBar::append
void append(MiniWrapper< T > &button, sigc::slot< void > const &clicked_slot)
Append a button to the button bar, and connect a click event.
Definition:
button-bar.hpp:55
stage
Lumiera GTK UI implementation root.
Definition:
guifacade.cpp:46
stage::widget::ButtonBar
A modified toolbar widget for use in dialogs.
Definition:
button-bar.hpp:40
mini-button.hpp
Adapter to wrap button widgets intended to serve as tool buttons.
stage::widget::ButtonBar::append
void append(Widget &)
Append a widget to the button bar.
Definition:
button-bar.cpp:44
stage
widget
button-bar.hpp
Generated on Sat Apr 20 2024 02:03:38 for Lumiera by
1.8.13