Lumiera
0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
button-bar.hpp
Go to the documentation of this file.
1
/*
2
BUTTON-BAR.hpp - button bar widget
3
4
Copyright (C)
5
2009, Joel Holdsworth <joel@airwebreathe.org.uk>
6
2012, Michael R. Fisher <mfisher31@gmail.com>
7
8
**Lumiera** is free software; you can redistribute it and/or modify it
9
under the terms of the GNU General Public License as published by the
10
Free Software Foundation; either version 2 of the License, or (at your
11
option) any later version. See the file COPYING for further details.
12
13
*/
14
15
21
#ifndef STAGE_WIDGET_BUTTON_BAR_H
22
#define STAGE_WIDGET_BUTTON_BAR_H
23
24
#include "
stage/widget/mini-button.hpp
"
25
26
namespace
stage
{
27
namespace
widget {
28
32
class
ButtonBar
33
:
public
Gtk::Box
34
{
35
public
:
36
ButtonBar
();
37
39
void
append
(Widget&);
40
45
template
<
class
T>
46
void
47
append
(
MiniWrapper<T>
& button, sigc::slot<void>
const
& clicked_slot)
48
{
49
button.signal_clicked().connect (clicked_slot);
50
append
(button);
51
}
52
};
53
54
55
}}
// stage::widget
56
#endif
/*STAGE_WIDGET_BUTTON_BAR_H*/
stage::widget::ButtonBar
A modified toolbar widget for use in dialogs.
Definition
button-bar.hpp:34
stage::widget::ButtonBar::append
void append(Widget &)
Append a widget to the button bar.
Definition
button-bar.cpp:36
stage::widget::ButtonBar::ButtonBar
ButtonBar()
Definition
button-bar.cpp:28
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:47
stage::widget::MiniWrapper
A wrapper for ToolButton-like Button widgets.
Definition
mini-button.hpp:38
mini-button.hpp
Adapter to wrap button widgets intended to serve as tool buttons.
stage
Lumiera GTK UI implementation root.
Definition
guifacade.cpp:37
stage
widget
button-bar.hpp
Generated on Thu Dec 11 2025 for Lumiera by
1.9.8