Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Widget::ColorNotebook Class Reference

#include <color-notebook.h>

Inheritance diagram for Inkscape::UI::Widget::ColorNotebook:

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
 

Detailed Description

Definition at line 34 of file color-notebook.h.

Constructor & Destructor Documentation

◆ ColorNotebook()

Inkscape::UI::Widget::ColorNotebook::ColorNotebook ( std::shared_ptr< Colors::ColorSet color)

◆ ~ColorNotebook()

Inkscape::UI::Widget::ColorNotebook::~ColorNotebook ( )
override

Definition at line 54 of file color-notebook.cpp.

References _doc_replaced_connection, _onetimepick, and setDocument().

Member Function Documentation

◆ _addPageForSpace()

void Inkscape::UI::Widget::ColorNotebook::_addPageForSpace ( std::shared_ptr< Colors::Space::AnySpace space)
protected

◆ _initUI()

◆ _onPickerClicked()

void Inkscape::UI::Widget::ColorNotebook::_onPickerClicked ( GtkWidget *  widget,
ColorNotebook colorbook 
)
staticprotected

Definition at line 212 of file color-notebook.cpp.

References _colors, _onetimepick, and Inkscape::UI::Tools::sp_toggle_dropper().

Referenced by _initUI().

◆ _setCurrentPage()

void Inkscape::UI::Widget::ColorNotebook::_setCurrentPage ( int  i,
bool  sync_combo 
)
protected

◆ getPageIndex() [1/2]

int Inkscape::UI::Widget::ColorNotebook::getPageIndex ( const Glib::ustring &  name)
protected

Definition at line 255 of file color-notebook.cpp.

References _book, getPageIndex(), and name.

Referenced by _initUI(), and getPageIndex().

◆ getPageIndex() [2/2]

int Inkscape::UI::Widget::ColorNotebook::getPageIndex ( Gtk::Widget *  widget)
protected

Definition at line 260 of file color-notebook.cpp.

References _book, and Inkscape::UI::get_children().

◆ set_label()

void Inkscape::UI::Widget::ColorNotebook::set_label ( const Glib::ustring &  label)

◆ setDocument()

void Inkscape::UI::Widget::ColorNotebook::setDocument ( SPDocument document)
protected

Definition at line 62 of file color-notebook.cpp.

References _document.

Referenced by ColorNotebook(), and ~ColorNotebook().

Member Data Documentation

◆ _book

Gtk::Stack* Inkscape::UI::Widget::ColorNotebook::_book = nullptr
protected

◆ _btn_picker

GtkWidget* Inkscape::UI::Widget::ColorNotebook::_btn_picker = nullptr
protected

Definition at line 66 of file color-notebook.h.

Referenced by _initUI().

◆ _buttonbox

Gtk::Box* Inkscape::UI::Widget::ColorNotebook::_buttonbox = nullptr
protected

Definition at line 60 of file color-notebook.h.

Referenced by _initUI().

◆ _colormanaged

GtkWidget* Inkscape::UI::Widget::ColorNotebook::_colormanaged = nullptr
protected

Definition at line 64 of file color-notebook.h.

Referenced by _initUI().

◆ _colors

std::shared_ptr<Colors::ColorSet> Inkscape::UI::Widget::ColorNotebook::_colors
protected

Definition at line 56 of file color-notebook.h.

Referenced by _addPageForSpace(), _initUI(), and _onPickerClicked().

◆ _combo

IconComboBox* Inkscape::UI::Widget::ColorNotebook::_combo = nullptr
protected

Definition at line 69 of file color-notebook.h.

Referenced by _addPageForSpace(), _initUI(), and _setCurrentPage().

◆ _doc_replaced_connection

sigc::connection Inkscape::UI::Widget::ColorNotebook::_doc_replaced_connection
private

Definition at line 76 of file color-notebook.h.

Referenced by ColorNotebook(), and ~ColorNotebook().

◆ _document

SPDocument* Inkscape::UI::Widget::ColorNotebook::_document = nullptr
private

Definition at line 75 of file color-notebook.h.

Referenced by setDocument().

◆ _entryId

unsigned long Inkscape::UI::Widget::ColorNotebook::_entryId = 0
protected

Definition at line 57 of file color-notebook.h.

◆ _label

Gtk::Label* Inkscape::UI::Widget::ColorNotebook::_label = nullptr
protected

Definition at line 61 of file color-notebook.h.

Referenced by _initUI(), and set_label().

◆ _observer

PrefObserver Inkscape::UI::Widget::ColorNotebook::_observer
private

Definition at line 72 of file color-notebook.h.

Referenced by _initUI().

◆ _onetimepick

sigc::connection Inkscape::UI::Widget::ColorNotebook::_onetimepick
protected

Definition at line 68 of file color-notebook.h.

Referenced by _onPickerClicked(), and ~ColorNotebook().

◆ _outofgamut

GtkWidget* Inkscape::UI::Widget::ColorNotebook::_outofgamut = nullptr
protected

Definition at line 63 of file color-notebook.h.

Referenced by _initUI().

◆ _p

GtkWidget* Inkscape::UI::Widget::ColorNotebook::_p = nullptr
protected

Definition at line 67 of file color-notebook.h.

Referenced by _initUI().

◆ _rgbal

GtkWidget* Inkscape::UI::Widget::ColorNotebook::_rgbal = nullptr
protected

Definition at line 62 of file color-notebook.h.

Referenced by _initUI().

◆ _switcher

Gtk::StackSwitcher* Inkscape::UI::Widget::ColorNotebook::_switcher = nullptr
protected

Definition at line 59 of file color-notebook.h.

Referenced by _initUI().

◆ _toomuchink

GtkWidget* Inkscape::UI::Widget::ColorNotebook::_toomuchink = nullptr
protected

Definition at line 65 of file color-notebook.h.

Referenced by _initUI().

◆ _visibility_observers

std::vector<PrefObserver> Inkscape::UI::Widget::ColorNotebook::_visibility_observers
private

Definition at line 73 of file color-notebook.h.

Referenced by _addPageForSpace().


The documentation for this class was generated from the following files: