16#ifndef INKSCAPE_UI_WIDGET_INKSCAPE_PREFERENCES_H
17#define INKSCAPE_UI_WIDGET_INKSCAPE_PREFERENCES_H
22#include <sigc++/signal.h>
23#include <glibmm/refptr.h>
24#include <gtkmm/checkbutton.h>
25#include <gtkmm/comboboxtext.h>
26#include <gtkmm/drawingarea.h>
27#include <gtkmm/grid.h>
28#include <gtkmm/scrolledwindow.h>
29#include <gtkmm/textview.h>
45 void init(Glib::ustring
const &label, Glib::ustring
const &
prefs_path,
48 PrefCheckButton(BaseObjectType *cobject,
const Glib::RefPtr<Gtk::Builder> &refGlade, Glib::ustring pref,
bool def)
49 :
Gtk::CheckButton(cobject)
64 void init(Glib::ustring
const &label, Glib::ustring
const &
prefs_path,
66 void init(Glib::ustring
const &label, Glib::ustring
const &
prefs_path,
67 Glib::ustring
const &string_value,
bool default_value,
PrefRadioButton* group_member);
94 double lower,
double upper,
double step_increment,
double page_increment,
95 double default_value,
bool is_int,
bool is_percent);
112 double lower,
double upper,
double step_increment,
113 double default_value,
114 UnitType unit_type, Glib::ustring
const &default_unit);
135 void draw_marks(Cairo::RefPtr<Cairo::Context>
const &cr,
double dist,
int major_interval);
149 void init(
int ruler_width,
int ruler_height,
double lower,
double upper,
150 double step_increment,
double page_increment,
double default_value);
171 double lower,
double upper,
double step_increment,
double page_increment,
double default_value,
int digits);
193 std::span<Glib::ustring const> labels,
194 std::span<int const> values,
198 std::span<Glib::ustring const> labels,
199 std::span<Glib::ustring const> values,
200 Glib::ustring
const &default_value);
243 bool mask, Glib::ustring
const &default_string);
276 void init(Glib::ustring
const &entry_string, Glib::ustring
const &tooltip);
290 void init(Glib::ustring
const &abel, Glib::ustring
const &
prefs_path,
291 std::uint32_t default_rgba);
312 void add_line(
bool indent, Glib::ustring
const &label, Gtk::Widget& widget, Glib::ustring
const &suffix, Glib::ustring
const &tip,
bool expand =
true, Gtk::Widget *other_widget =
nullptr);
315 void set_tip(Gtk::Widget &widget, Glib::ustring
const &tip);
void add_group_note(Glib::ustring name)
void add_group_header(Glib::ustring name, int columns=1)
void add_line(bool indent, Glib::ustring const &label, Gtk::Widget &widget, Glib::ustring const &suffix, Glib::ustring const &tip, bool expand=true, Gtk::Widget *other_widget=nullptr)
Add a widget to the bottom row of the dialog page.
void set_tip(Gtk::Widget &widget, Glib::ustring const &tip)
void onRelatedEntryChangedCallback()
void onRelatedButtonClickedCallback()
bool on_mnemonic_activate(bool group_cycling) override
Gtk::Entry * relatedEntry
Glib::ustring _prefs_path
void init(Glib::ustring const &prefs_path, bool mask, Glib::ustring const &default_string)
Gtk::Button * relatedButton
Glib::ustring _default_string
PrefEntryFileButtonHBox()
void onRelatedButtonClickedCallback()
void onRelatedEntryChangedCallback()
bool on_mnemonic_activate(bool group_cycling) override
Gtk::Entry * relatedEntry
Glib::ustring _prefs_path
void init(Glib::ustring const &prefs_path, bool mask)
Gtk::Button * relatedButton
void on_changed() override
void init(Glib::ustring const &prefs_path, bool mask)
void on_changed() override
Glib::ustring _prefs_path
void init(Glib::ustring const &prefs_path, int height)
Glib::ustring _prefs_path
Color picker button and window.
static Glib::ustring const prefs_path
double dist(const Point &a, const Point &b)
Button
helper to stop accidents on int vs gtkmm3's weak=typed enums, & looks nicer!