Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
preferences-dialog.hpp
Go to the documentation of this file.
1/*
2 PREFERENCES-DIALOG.hpp - dialog for application preferences
3
4 Copyright (C)
5 2008, 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
23#ifndef STAGE_DIALOG_PREFERENCES_DIALOG_H
24#define STAGE_DIALOG_PREFERENCES_DIALOG_H
25
26
27#include "stage/gtk-base.hpp"
29
30namespace stage {
31namespace dialog {
32
33
35 : public Gtk::Dialog
36 {
37 Gtk::Notebook notebook_;
38
39 Gtk::VBox interfaceBox_;
40 Gtk::ComboBox interfaceThemeCombo_;
41
42 public:
43 PreferencesDialog (Gtk::Window &parent)
44 : Dialog(_("Preferences"), parent, true)
45 {
46 using namespace Gtk;
47
48 Box *v_box = get_vbox();
49 REQUIRE (v_box != NULL);
50
51 interfaceBox_.pack_start (interfaceThemeCombo_, PACK_SHRINK);
52 interfaceBox_.set_spacing(4);
53 interfaceBox_.set_border_width(5);
54
55 notebook_.append_page (interfaceBox_, _("Interface"));
56
57 v_box->pack_start (notebook_);
58
59 // Configure the dialog
60 v_box->set_spacing (BoxSpacing);
61 set_border_width (BorderPadding);
62 set_resizable (false);
63
64 // Configure the Cancel and OK buttons
65 add_button (Stock::CANCEL, RESPONSE_CANCEL);
66 add_button (Stock::OK, RESPONSE_OK);
67
68 show_all_children();
69 }
70 };
71
72
73}} // namespace stage::dialog
74#endif /*STAGE_DIALOG_PREFERENCES_DIALOG_H*/
Global constants and definitions for dialogs.
A set of basic GTK includes for the UI.
#define _(String)
Definition gtk-base.hpp:68
return NULL
Definition llist.h:586
static const int BorderPadding
The space in pixels to pad the border of Lumiera dialog boxes.
Definition dialog.hpp:29
static const int BoxSpacing
The spacing for VBoxes and HBoxes in Lumiera dialogs.
Definition dialog.hpp:34
Lumiera GTK UI implementation root.
Definition guifacade.cpp:37