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

#include <registered-widget.h>

Inheritance diagram for Inkscape::UI::Widget::RegisteredCheckButton:
Inkscape::UI::Widget::RegisteredWidget< Gtk::CheckButton >

Public Member Functions

 RegisteredCheckButton (Glib::ustring const &label, Glib::ustring const &tip, Glib::ustring const &key, Registry &wr, bool right=false, Inkscape::XML::Node *repr_in=nullptr, SPDocument *doc_in=nullptr, char const *active_str="true", char const *inactive_str="false")
 
void setActive (bool)
 
void setSubordinateWidgets (std::vector< Gtk::Widget * > btns)
 
- Public Member Functions inherited from Inkscape::UI::Widget::RegisteredWidget< Gtk::CheckButton >
void set_undo_parameters (Glib::ustring _event_description, Glib::ustring _icon_name, std::string undo_id="")
 
void set_xml_target (Inkscape::XML::Node *xml_node, SPDocument *document)
 
bool is_updating () const
 

Public Attributes

bool setProgrammatically
 

Private Member Functions

void on_toggled () final
 

Private Attributes

char const * _active_str = nullptr
 
char const * _inactive_str = nullptr
 
std::vector< Gtk::Widget * > _subordinate_widgets
 

Additional Inherited Members

- Protected Member Functions inherited from Inkscape::UI::Widget::RegisteredWidget< Gtk::CheckButton >
 RegisteredWidget (Args &&...args)
 
void init_parent (Glib::ustring const &key, Registry &wr, Inkscape::XML::Node *const repr_in, SPDocument *const doc_in)
 
void write_to_xml (const char *const svgstr)
 
- Protected Attributes inherited from Inkscape::UI::Widget::RegisteredWidget< Gtk::CheckButton >
Registry_wr
 
Glib::ustring _key
 
Inkscape::XML::Noderepr
 
SPDocumentdoc
 
Glib::ustring event_description
 
Glib::ustring icon_name
 
bool write_undo
 
std::string _undo_id
 

Detailed Description

Definition at line 135 of file registered-widget.h.

Constructor & Destructor Documentation

◆ RegisteredCheckButton()

Inkscape::UI::Widget::RegisteredCheckButton::RegisteredCheckButton ( Glib::ustring const &  label,
Glib::ustring const &  tip,
Glib::ustring const &  key,
Registry wr,
bool  right = false,
Inkscape::XML::Node repr_in = nullptr,
SPDocument doc_in = nullptr,
char const *  active_str = "true",
char const *  inactive_str = "false" 
)

Member Function Documentation

◆ on_toggled()

◆ setActive()

void Inkscape::UI::Widget::RegisteredCheckButton::setActive ( bool  b)

◆ setSubordinateWidgets()

void Inkscape::UI::Widget::RegisteredCheckButton::setSubordinateWidgets ( std::vector< Gtk::Widget * >  btns)
inline

Definition at line 147 of file registered-widget.h.

References _subordinate_widgets.

Member Data Documentation

◆ _active_str

char const* Inkscape::UI::Widget::RegisteredCheckButton::_active_str = nullptr
private

Definition at line 155 of file registered-widget.h.

Referenced by on_toggled().

◆ _inactive_str

char const * Inkscape::UI::Widget::RegisteredCheckButton::_inactive_str = nullptr
private

Definition at line 155 of file registered-widget.h.

Referenced by on_toggled().

◆ _subordinate_widgets

std::vector<Gtk::Widget *> Inkscape::UI::Widget::RegisteredCheckButton::_subordinate_widgets
private

◆ setProgrammatically

bool Inkscape::UI::Widget::RegisteredCheckButton::setProgrammatically

Definition at line 151 of file registered-widget.h.

Referenced by on_toggled(), RegisteredCheckButton(), and setActive().


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