
A drop-down combobox that can be loaded with a range of line widths that can grow linearly or exponentially. More...
#include <linewidthcombobox.h>
Classes | |
| class | ModelColumns |
Public Member Functions | |
| LineWidthComboBox (int active=0, double start=1.0, double stop=6.0, INCREMENT increment=INCREMENT_LINEAR, double factor=1.0) | |
| ~LineWidthComboBox () | |
| double | width () |
| double | start () |
| double | stop () |
| void | start_stop (double &start, double &stop) |
| void | set_start (double start) |
| void | set_stop (double stop) |
| void | set_start_stop (double start, double stop) |
| double | factor () |
| void | set_factor (double factor) |
| INCREMENT | increment_type () |
| void | set_increment_type (INCREMENT increment) |
Protected Member Functions | |
| void | load_pixbufs () |
Protected Attributes | |
| Glib::RefPtr< ::Gtk::ListStore > | m_store |
| std::vector< Glib::RefPtr < Gdk::Pixbuf > > | m_pixbufs |
| ModelColumns | m_columns |
| double | m_start |
| double | m_stop |
| double | m_factor |
| INCREMENT | m_increment |
A drop-down combobox that can be loaded with a range of line widths that can grow linearly or exponentially.
LineWidthComboBox collapsed
LineWidthComboBox expanded
| Papyrus::Gtk::LineWidthComboBox::LineWidthComboBox | ( | int | active = 0, |
|
| double | start = 1.0, |
|||
| double | stop = 6.0, |
|||
| INCREMENT | increment = INCREMENT_LINEAR, |
|||
| double | factor = 1.0 | |||
| ) |
References load_pixbufs(), m_columns, m_start, m_stop, m_store, and Papyrus::Gtk::LineWidthComboBox::ModelColumns::picture.
| Papyrus::Gtk::LineWidthComboBox::~LineWidthComboBox | ( | ) |
| double Papyrus::Gtk::LineWidthComboBox::factor | ( | ) |
References m_factor.
| INCREMENT Papyrus::Gtk::LineWidthComboBox::increment_type | ( | ) |
References m_increment.
| void Papyrus::Gtk::LineWidthComboBox::load_pixbufs | ( | ) | [protected] |
References Papyrus::Stroke::create(), Papyrus::Polyline::create(), Papyrus::Canvas::create(), Papyrus::Gtk::create_pixbuf(), Papyrus::Gtk::INCREMENT_LINEAR, m_columns, m_factor, m_increment, m_pixbufs, m_start, m_stop, m_store, and Papyrus::Gtk::LineWidthComboBox::ModelColumns::picture.
Referenced by LineWidthComboBox(), set_factor(), set_increment_type(), set_start(), set_start_stop(), and set_stop().
| void Papyrus::Gtk::LineWidthComboBox::set_factor | ( | double | factor | ) |
References load_pixbufs(), and m_factor.
| void Papyrus::Gtk::LineWidthComboBox::set_increment_type | ( | INCREMENT | increment | ) |
References load_pixbufs(), and m_increment.
| void Papyrus::Gtk::LineWidthComboBox::set_start | ( | double | start | ) |
References load_pixbufs(), m_start, and m_stop.
| void Papyrus::Gtk::LineWidthComboBox::set_start_stop | ( | double | start, | |
| double | stop | |||
| ) |
References load_pixbufs(), m_start, and m_stop.
| void Papyrus::Gtk::LineWidthComboBox::set_stop | ( | double | stop | ) |
References load_pixbufs(), m_start, and m_stop.
| double Papyrus::Gtk::LineWidthComboBox::start | ( | ) |
References m_start.
| void Papyrus::Gtk::LineWidthComboBox::start_stop | ( | double & | start, | |
| double & | stop | |||
| ) |
| double Papyrus::Gtk::LineWidthComboBox::stop | ( | ) |
References m_stop.
| double Papyrus::Gtk::LineWidthComboBox::width | ( | ) |
References Papyrus::Gtk::INCREMENT_LINEAR, m_factor, m_increment, and m_stop.
Referenced by LineWidthComboBox(), and load_pixbufs().
double Papyrus::Gtk::LineWidthComboBox::m_factor [protected] |
Referenced by factor(), load_pixbufs(), set_factor(), and width().
Referenced by increment_type(), load_pixbufs(), set_increment_type(), and width().
std::vector<Glib::RefPtr<Gdk::Pixbuf> > Papyrus::Gtk::LineWidthComboBox::m_pixbufs [protected] |
Referenced by load_pixbufs().
double Papyrus::Gtk::LineWidthComboBox::m_start [protected] |
Referenced by LineWidthComboBox(), load_pixbufs(), set_start(), set_start_stop(), set_stop(), start(), and start_stop().
double Papyrus::Gtk::LineWidthComboBox::m_stop [protected] |
Referenced by LineWidthComboBox(), load_pixbufs(), set_start(), set_start_stop(), set_stop(), start_stop(), stop(), and width().
Glib::RefPtr< ::Gtk::ListStore> Papyrus::Gtk::LineWidthComboBox::m_store [protected] |
Referenced by LineWidthComboBox(), and load_pixbufs().
1.6.1