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)
5  2009, Joel Holdsworth <joel@airwebreathe.org.uk>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
14 
20 #ifndef STAGE_WIDGET_BUTTON_BAR_H
21 #define STAGE_WIDGET_BUTTON_BAR_H
22 
24 
25 namespace stage {
26 namespace widget {
27 
31  class ButtonBar
32  : public Gtk::Box
33  {
34  public:
35  ButtonBar();
36 
38  void append (Widget&);
39 
44  template<class T>
45  void
46  append (MiniWrapper<T>& button, sigc::slot<void> const& clicked_slot)
47  {
48  button.signal_clicked().connect (clicked_slot);
49  append (button);
50  }
51  };
52 
53 
54 }}// stage::widget
55 #endif /*STAGE_WIDGET_BUTTON_BAR_H*/
A wrapper for ToolButton-like Button widgets.
Definition: mini-button.hpp:36
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:46
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:37
A modified toolbar widget for use in dialogs.
Definition: button-bar.hpp:31
Adapter to wrap button widgets intended to serve as tool buttons.
void append(Widget &)
Append a widget to the button bar.
Definition: button-bar.cpp:35