2
* \brief Inkscape Preferences dialog
7
* Copyright (C) 2004, 2006 Authors
9
* Released under GNU GPL. Read the file 'COPYING' for more information.
12
#ifndef INKSCAPE_UI_WIDGET_INKSCAPE_PREFERENCES_H
13
#define INKSCAPE_UI_WIDGET_INKSCAPE_PREFERENCES_H
17
#include <gtkmm/table.h>
18
#include <gtkmm/comboboxtext.h>
19
#include <gtkmm/spinbutton.h>
20
#include <gtkmm/tooltips.h>
21
#include <gtkmm/treeview.h>
22
#include <gtkmm/radiobutton.h>
23
#include <gtkmm/frame.h>
24
#include <sigc++/sigc++.h>
25
//#include <glibmm/i18n.h>
31
class PrefCheckButton : public Gtk::CheckButton
34
void init(const Glib::ustring& label, const std::string& prefs_path, const std::string& attr,
37
std::string _prefs_path;
43
class PrefRadioButton : public Gtk::RadioButton
46
void init(const Glib::ustring& label, const std::string& prefs_path, const std::string& attr,
47
int int_value, bool default_value, PrefRadioButton* group_member);
48
void init(const Glib::ustring& label, const std::string& prefs_path, const std::string& attr,
49
const std::string& string_value, bool default_value, PrefRadioButton* group_member);
50
sigc::signal<void, bool> changed_signal;
52
std::string _prefs_path;
54
std::string _string_value;
65
class PrefSpinButton : public Gtk::SpinButton
68
void init(const std::string& prefs_path, const std::string& attr,
69
double lower, double upper, double step_increment, double page_increment,
70
double default_value, bool is_int, bool is_percent);
72
std::string _prefs_path;
76
void on_value_changed();
79
class PrefCombo : public Gtk::ComboBoxText
82
void init(const std::string& prefs_path, const std::string& attr,
83
Glib::ustring labels[], int values[], int num_items, int default_value);
85
std::string _prefs_path;
87
std::vector<int> _values;
91
class DialogPage : public Gtk::Table
95
void add_line(bool indent, const Glib::ustring label, Gtk::Widget& widget, const Glib::ustring suffix, const Glib::ustring& tip, bool expand = true);
96
void add_group_header(Glib::ustring name);
98
Gtk::Tooltips _tooltips;
102
} // namespace Widget
104
} // namespace Inkscape
106
#endif //INKSCAPE_UI_WIDGET_INKSCAPE_PREFERENCES_H
111
c-file-style:"stroustrup"
112
c-file-offsets:((innamespace . 0)(inline-open . 0))
117
// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :