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
25
26namespace stage {
27namespace widget {
28
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*/
A modified toolbar widget for use in dialogs.
void append(Widget &)
Append a widget to the button bar.
void append(MiniWrapper< T > &button, sigc::slot< void > const &clicked_slot)
Append a button to the button bar, and connect a click event.
A wrapper for ToolButton-like Button widgets.
Adapter to wrap button widgets intended to serve as tool buttons.
Lumiera GTK UI implementation root.
Definition guifacade.cpp:37