#include <zoomer.h>
Public Types | |
typedef PapyrusPointer< Zoomer > | pointer |
Public Member Functions | |
virtual | ~Zoomer () |
void | zoom_in () |
void | zoom_out () |
double | zoom_step () |
void | set_zoom_step (double zs) |
unsigned | zoom_in_buttons () |
unsigned | zoom_out_buttons () |
void | set_zoom_in_buttons (unsigned b) |
void | set_zoom_out_buttons (unsigned b) |
void | set_zoom_buttons (unsigned in, unsigned out) |
void | set_zoom_buttons (unsigned set) |
void | add_zoom_buttons (unsigned in, unsigned out) |
void | add_zoom_buttons (unsigned set) |
void | perform_button_action (Event::ButtonID b) |
Static Public Member Functions | |
static Zoomer::pointer | create (double zoom_step=0.25) |
static Zoomer::pointer | create (const Glib::ustring &id, DrawableSet::pointer drawables, double zoom_step=1.0) |
static Zoomer::pointer | create (const Glib::ustring &id, double zoom_step=1.0) |
static Zoomer::pointer | create (DrawableSet::pointer drawables, double zoom_step=1.0) |
Protected Member Functions | |
Zoomer (const Glib::ustring &id, DrawableSet::pointer drawables, double zoom_step=1.0) | |
virtual bool | on_button_press (const Event::ButtonPress &event) |
virtual bool | on_scroll (const Event::Scroll &event) |
Protected Attributes | |
double | m_zoom_step |
unsigned | m_zoom_in_buttons |
unsigned | m_zoom_out_buttons |
typedef PapyrusPointer<Zoomer> Papyrus::Zoomer::pointer |
Reimplemented from Papyrus::AffineController.
Papyrus::Zoomer::Zoomer | ( | const Glib::ustring & | id, | |
DrawableSet::pointer | drawables, | |||
double | zoom_step = 1.0 | |||
) | [protected] |
Referenced by create().
Papyrus::Zoomer::~Zoomer | ( | ) | [virtual] |
void Papyrus::Zoomer::add_zoom_buttons | ( | unsigned | set | ) |
References add_zoom_buttons(), Papyrus::Event::BUTTON_1, Papyrus::Event::BUTTON_11, Papyrus::Event::BUTTON_12, Papyrus::Event::BUTTON_3, Papyrus::Event::BUTTON_4, Papyrus::Event::BUTTON_5, Papyrus::Event::BUTTON_6, Papyrus::Event::BUTTON_7, Papyrus::Event::BUTTON_8, Papyrus::Event::BUTTON_9, Papyrus::Event::BUTTONS_11_12, Papyrus::Event::BUTTONS_11_12_INV, Papyrus::Event::BUTTONS_1_3, Papyrus::Event::BUTTONS_1_3_INV, Papyrus::Event::BUTTONS_4_5, Papyrus::Event::BUTTONS_4_5_INV, Papyrus::Event::BUTTONS_6_7, Papyrus::Event::BUTTONS_6_7_INV, Papyrus::Event::BUTTONS_8_9, and Papyrus::Event::BUTTONS_8_9_INV.
void Papyrus::Zoomer::add_zoom_buttons | ( | unsigned | in, | |
unsigned | out | |||
) |
References m_zoom_in_buttons, and m_zoom_out_buttons.
Referenced by add_zoom_buttons(), and set_zoom_buttons().
Zoomer::pointer Papyrus::Zoomer::create | ( | DrawableSet::pointer | drawables, | |
double | zoom_step = 1.0 | |||
) | [static] |
References PAPYRUS_CREATE, and Zoomer().
Zoomer::pointer Papyrus::Zoomer::create | ( | const Glib::ustring & | id, | |
double | zoom_step = 1.0 | |||
) | [static] |
References PAPYRUS_CREATE, and Zoomer().
Zoomer::pointer Papyrus::Zoomer::create | ( | const Glib::ustring & | id, | |
DrawableSet::pointer | drawables, | |||
double | zoom_step = 1.0 | |||
) | [static] |
References PAPYRUS_CREATE, and Zoomer().
Zoomer::pointer Papyrus::Zoomer::create | ( | double | zoom_step = 0.25 |
) | [static] |
References PAPYRUS_CREATE, and Zoomer().
bool Papyrus::Zoomer::on_button_press | ( | const Event::ButtonPress & | event | ) | [protected, virtual] |
Reimplemented from Papyrus::Controller.
References Papyrus::Event::Button::button, Papyrus::Event::BUTTON_1, Papyrus::Event::BUTTON_10, Papyrus::Event::BUTTON_11, Papyrus::Event::BUTTON_12, Papyrus::Event::BUTTON_2, Papyrus::Event::BUTTON_3, Papyrus::Event::BUTTON_4, Papyrus::Event::BUTTON_5, Papyrus::Event::BUTTON_6, Papyrus::Event::BUTTON_7, Papyrus::Event::BUTTON_8, Papyrus::Event::BUTTON_9, and perform_button_action().
bool Papyrus::Zoomer::on_scroll | ( | const Event::Scroll & | event | ) | [protected, virtual] |
Reimplemented from Papyrus::Controller.
References Papyrus::Event::BUTTON_4, Papyrus::Event::BUTTON_5, Papyrus::Event::BUTTON_6, Papyrus::Event::BUTTON_7, Papyrus::Event::Scroll::direction, perform_button_action(), Papyrus::Event::SCROLL_DOWN, Papyrus::Event::SCROLL_LEFT, Papyrus::Event::SCROLL_RIGHT, and Papyrus::Event::SCROLL_UP.
void Papyrus::Zoomer::perform_button_action | ( | Event::ButtonID | b | ) |
References Papyrus::Event::BUTTON_1, Papyrus::Event::BUTTON_10, Papyrus::Event::BUTTON_11, Papyrus::Event::BUTTON_12, Papyrus::Event::BUTTON_2, Papyrus::Event::BUTTON_3, Papyrus::Event::BUTTON_4, Papyrus::Event::BUTTON_5, Papyrus::Event::BUTTON_6, Papyrus::Event::BUTTON_7, Papyrus::Event::BUTTON_8, Papyrus::Event::BUTTON_9, m_zoom_in_buttons, m_zoom_out_buttons, zoom_in(), and zoom_out().
Referenced by on_button_press(), and on_scroll().
void Papyrus::Zoomer::set_zoom_buttons | ( | unsigned | set | ) |
References add_zoom_buttons(), Papyrus::Event::BUTTON_NONE, m_zoom_in_buttons, and m_zoom_out_buttons.
void Papyrus::Zoomer::set_zoom_buttons | ( | unsigned | in, | |
unsigned | out | |||
) |
References m_zoom_in_buttons, and m_zoom_out_buttons.
void Papyrus::Zoomer::set_zoom_in_buttons | ( | unsigned | b | ) |
References m_zoom_in_buttons.
void Papyrus::Zoomer::set_zoom_out_buttons | ( | unsigned | b | ) |
References m_zoom_out_buttons.
void Papyrus::Zoomer::set_zoom_step | ( | double | zs | ) |
References m_zoom_step.
void Papyrus::Zoomer::zoom_in | ( | ) |
References m_zoom_step, and Papyrus::AffineController::scale().
Referenced by perform_button_action().
unsigned Papyrus::Zoomer::zoom_in_buttons | ( | ) |
References m_zoom_in_buttons.
void Papyrus::Zoomer::zoom_out | ( | ) |
References m_zoom_step, and Papyrus::AffineController::scale().
Referenced by perform_button_action().
unsigned Papyrus::Zoomer::zoom_out_buttons | ( | ) |
References m_zoom_out_buttons.
double Papyrus::Zoomer::zoom_step | ( | ) |
References m_zoom_step.
unsigned Papyrus::Zoomer::m_zoom_in_buttons [protected] |
Referenced by add_zoom_buttons(), perform_button_action(), set_zoom_buttons(), set_zoom_in_buttons(), and zoom_in_buttons().
unsigned Papyrus::Zoomer::m_zoom_out_buttons [protected] |
Referenced by add_zoom_buttons(), perform_button_action(), set_zoom_buttons(), set_zoom_out_buttons(), and zoom_out_buttons().
double Papyrus::Zoomer::m_zoom_step [protected] |
Referenced by set_zoom_step(), zoom_in(), zoom_out(), and zoom_step().