Inkscape
Vector Graphics Editor
|
#include <color-notebook.h>
Public Member Functions | |
ColorNotebook (std::shared_ptr< Colors::ColorSet > color) | |
~ColorNotebook () override | |
void | set_label (const Glib::ustring &label) |
Protected Member Functions | |
void | _initUI () |
void | _addPageForSpace (std::shared_ptr< Colors::Space::AnySpace > space) |
void | setDocument (SPDocument *document) |
int | getPageIndex (const Glib::ustring &name) |
int | getPageIndex (Gtk::Widget *widget) |
void | _setCurrentPage (int i, bool sync_combo) |
Static Protected Member Functions | |
static void | _onPickerClicked (GtkWidget *widget, ColorNotebook *colorbook) |
Protected Attributes | |
std::shared_ptr< Colors::ColorSet > | _colors |
unsigned long | _entryId = 0 |
Gtk::Stack * | _book = nullptr |
Gtk::StackSwitcher * | _switcher = nullptr |
Gtk::Box * | _buttonbox = nullptr |
Gtk::Label * | _label = nullptr |
GtkWidget * | _rgbal = nullptr |
GtkWidget * | _outofgamut = nullptr |
GtkWidget * | _colormanaged = nullptr |
GtkWidget * | _toomuchink = nullptr |
GtkWidget * | _btn_picker = nullptr |
GtkWidget * | _p = nullptr |
sigc::connection | _onetimepick |
IconComboBox * | _combo = nullptr |
Private Attributes | |
PrefObserver | _observer |
std::vector< PrefObserver > | _visibility_observers |
SPDocument * | _document = nullptr |
sigc::connection | _doc_replaced_connection |
Definition at line 34 of file color-notebook.h.
Inkscape::UI::Widget::ColorNotebook::ColorNotebook | ( | std::shared_ptr< Colors::ColorSet > | color | ) |
Definition at line 40 of file color-notebook.cpp.
References _doc_replaced_connection, _initUI(), SPDesktop::connectDocumentReplaced(), desktop, SPDesktop::getDocument(), and setDocument().
|
override |
Definition at line 54 of file color-notebook.cpp.
References _doc_replaced_connection, _onetimepick, and setDocument().
|
protected |
Definition at line 290 of file color-notebook.cpp.
References _book, _colors, _combo, _visibility_observers, Inkscape::UI::Widget::IconComboBox::add_row(), Inkscape::Preferences::get(), and Inkscape::UI::get_children().
Referenced by _initUI().
|
protected |
Definition at line 72 of file color-notebook.cpp.
References _addPageForSpace(), _book, _btn_picker, _buttonbox, _colormanaged, _colors, _combo, _label, _observer, _onPickerClicked(), _outofgamut, _p, _rgbal, _setCurrentPage(), _switcher, _toomuchink, Inkscape::Preferences::createObserver(), Inkscape::Colors::Manager::get(), Inkscape::Preferences::get(), Inkscape::Preferences::Entry::getBool(), getPageIndex(), Inkscape::Preferences::getString(), name, Inkscape::UI::pack_end(), Inkscape::UI::pack_start(), Inkscape::UI::Widget::IconComboBox::signal_changed(), sp_dialog_defocus_on_enter(), sp_get_icon_image(), Inkscape::Colors::Manager::spaces(), XPAD, and YPAD.
Referenced by ColorNotebook().
|
staticprotected |
Definition at line 212 of file color-notebook.cpp.
References _colors, _onetimepick, and Inkscape::UI::Tools::sp_toggle_dropper().
Referenced by _initUI().
|
protected |
Definition at line 272 of file color-notebook.cpp.
References _book, _combo, Inkscape::UI::get_children(), and Inkscape::UI::Widget::IconComboBox::set_active_by_id().
Referenced by _initUI().
|
protected |
Definition at line 255 of file color-notebook.cpp.
References _book, getPageIndex(), and name.
Referenced by _initUI(), and getPageIndex().
|
protected |
Definition at line 260 of file color-notebook.cpp.
References _book, and Inkscape::UI::get_children().
void Inkscape::UI::Widget::ColorNotebook::set_label | ( | const Glib::ustring & | label | ) |
Definition at line 68 of file color-notebook.cpp.
Referenced by Inkscape::UI::Widget::ColorPicker::_construct(), and Inkscape::UI::Dialog::ObjectsPanel::colorTagPopup().
|
protected |
Definition at line 62 of file color-notebook.cpp.
References _document.
Referenced by ColorNotebook(), and ~ColorNotebook().
|
protected |
Definition at line 58 of file color-notebook.h.
Referenced by _addPageForSpace(), _initUI(), _setCurrentPage(), getPageIndex(), and getPageIndex().
|
protected |
Definition at line 66 of file color-notebook.h.
Referenced by _initUI().
|
protected |
Definition at line 60 of file color-notebook.h.
Referenced by _initUI().
|
protected |
Definition at line 64 of file color-notebook.h.
Referenced by _initUI().
|
protected |
Definition at line 56 of file color-notebook.h.
Referenced by _addPageForSpace(), _initUI(), and _onPickerClicked().
|
protected |
Definition at line 69 of file color-notebook.h.
Referenced by _addPageForSpace(), _initUI(), and _setCurrentPage().
|
private |
Definition at line 76 of file color-notebook.h.
Referenced by ColorNotebook(), and ~ColorNotebook().
|
private |
Definition at line 75 of file color-notebook.h.
Referenced by setDocument().
|
protected |
Definition at line 57 of file color-notebook.h.
|
protected |
Definition at line 61 of file color-notebook.h.
Referenced by _initUI(), and set_label().
|
private |
Definition at line 72 of file color-notebook.h.
Referenced by _initUI().
|
protected |
Definition at line 68 of file color-notebook.h.
Referenced by _onPickerClicked(), and ~ColorNotebook().
|
protected |
Definition at line 63 of file color-notebook.h.
Referenced by _initUI().
|
protected |
Definition at line 67 of file color-notebook.h.
Referenced by _initUI().
|
protected |
Definition at line 62 of file color-notebook.h.
Referenced by _initUI().
|
protected |
Definition at line 59 of file color-notebook.h.
Referenced by _initUI().
|
protected |
Definition at line 65 of file color-notebook.h.
Referenced by _initUI().
|
private |
Definition at line 73 of file color-notebook.h.
Referenced by _addPageForSpace().