Inkscape
Vector Graphics Editor
|
#include <status-bar.h>
Public Member Functions | |
StatusBar () | |
~StatusBar () override=default | |
void | set_desktop (SPDesktop *desktop) |
void | set_message (const Inkscape::MessageType type, const char *message) |
void | set_coordinate (const Geom::Point &p) |
void | update_visibility () |
void | update_zoom () |
void | update_rotate () |
void | rotate_grab_focus () |
void | zoom_grab_focus () |
void | onDefocus () override |
Private Member Functions | |
int | zoom_input (double &new_value) |
bool | zoom_output () |
void | zoom_value_changed () |
void | zoom_menu_handler () |
bool | zoom_popup (PopupMenuOptionalClick) |
bool | rotate_output () |
void | rotate_value_changed () |
void | rotate_menu_handler () |
bool | rotate_popup (PopupMenuOptionalClick) |
Private Attributes | |
SelectedStyle * | selected_style = nullptr |
LayerSelector * | layer_selector = nullptr |
PageSelector * | _page_selector = nullptr |
Gtk::Label * | selection = nullptr |
Gtk::Label * | coordinates = nullptr |
Gtk::Box * | zoom = nullptr |
Gtk::Box * | rotate = nullptr |
UI::Widget::SpinButton * | zoom_value = nullptr |
UI::Widget::SpinButton * | rotate_value = nullptr |
SPDesktopWidget * | desktop_widget = nullptr |
std::unique_ptr< Gtk::Popover > | zoom_popover |
std::unique_ptr< Gtk::Popover > | rotate_popover |
SPDesktop * | desktop = nullptr |
OperationBlocker | _blocker |
Inkscape::PrefObserver | preference_observer |
Additional Inherited Members | |
![]() | |
~DefocusTarget ()=default | |
Definition at line 43 of file status-bar.h.
Inkscape::UI::Widget::StatusBar::StatusBar | ( | ) |
Definition at line 38 of file status-bar.cpp.
References _page_selector, Inkscape::append(), builder, coordinates, Inkscape::UI::create_builder(), Inkscape::Preferences::createObserver(), Inkscape::Preferences::get(), layer_selector, log(), Inkscape::UI::on_popup_menu(), preference_observer, rotate, rotate_output(), rotate_popover, rotate_popup(), rotate_value, rotate_value_changed(), selected_style, selection, Inkscape::UI::Widget::SpinButton::set_dont_evaluate(), Inkscape::UI::Widget::SpinButton::setDefocusTarget(), SP_DESKTOP_ZOOM_MAX, SP_DESKTOP_ZOOM_MIN, update_visibility(), zoom, zoom_input(), zoom_output(), zoom_popover, zoom_popup(), zoom_value, and zoom_value_changed().
|
overridedefault |
|
overridevirtual |
Implements Inkscape::UI::DefocusTarget.
Definition at line 202 of file status-bar.cpp.
References desktop_widget, and SPDesktopWidget::get_canvas().
void Inkscape::UI::Widget::StatusBar::rotate_grab_focus | ( | ) |
Definition at line 191 of file status-bar.cpp.
References rotate_value.
Referenced by SPDesktopWidget::letRotateGrabFocus().
|
private |
|
private |
|
private |
Definition at line 304 of file status-bar.cpp.
References Inkscape::UI::popup_at_center(), rotate, and rotate_popover.
Referenced by StatusBar().
|
private |
Definition at line 289 of file status-bar.cpp.
References _blocker, OperationBlocker::block(), OperationBlocker::pending(), and rotate_value.
Referenced by StatusBar().
void Inkscape::UI::Widget::StatusBar::set_coordinate | ( | const Geom::Point & | p | ) |
Definition at line 183 of file status-bar.cpp.
References coordinates, Geom::Point::x(), and Geom::Point::y().
Referenced by SPDesktopWidget::setCoordinateStatus().
void Inkscape::UI::Widget::StatusBar::set_desktop | ( | SPDesktop * | desktop | ) |
Definition at line 147 of file status-bar.cpp.
References _page_selector, desktop, desktop_widget, SPDesktop::getDesktopWidget(), layer_selector, selected_style, Inkscape::UI::Widget::LayerSelector::setDesktop(), Inkscape::UI::Widget::PageSelector::setDesktop(), Inkscape::UI::Widget::SelectedStyle::setDesktop(), update_rotate(), and update_zoom().
Referenced by SPDesktopWidget::switchDesktop().
void Inkscape::UI::Widget::StatusBar::set_message | ( | const Inkscape::MessageType | type, |
const char * | message | ||
) |
Definition at line 165 of file status-bar.cpp.
References msg, and selection.
Referenced by SPDesktopWidget::setMessage().
void Inkscape::UI::Widget::StatusBar::update_rotate | ( | ) |
Definition at line 310 of file status-bar.cpp.
References _blocker, Geom::Rotate::angle(), OperationBlocker::block(), SPDesktop::current_rotation(), desktop, OperationBlocker::pending(), and rotate_value.
Referenced by set_desktop(), and SPDesktopWidget::update_rotation().
void Inkscape::UI::Widget::StatusBar::update_visibility | ( | ) |
Definition at line 321 of file status-bar.cpp.
References coordinates, Inkscape::Preferences::get(), layer_selector, rotate, and selected_style.
Referenced by SPDesktopWidget::layoutWidgets(), and StatusBar().
void Inkscape::UI::Widget::StatusBar::update_zoom | ( | ) |
Definition at line 256 of file status-bar.cpp.
References _blocker, OperationBlocker::block(), SPDesktop::current_zoom(), desktop, Inkscape::Preferences::get(), log(), OperationBlocker::pending(), and zoom_value.
Referenced by set_desktop(), and SPDesktopWidget::update_zoom().
void Inkscape::UI::Widget::StatusBar::zoom_grab_focus | ( | ) |
Definition at line 197 of file status-bar.cpp.
References zoom_value.
Referenced by SPDesktopWidget::letZoomGrabFocus().
|
private |
Definition at line 210 of file status-bar.cpp.
References log(), and zoom_value.
Referenced by StatusBar().
|
private |
|
private |
Definition at line 218 of file status-bar.cpp.
References floor(), and zoom_value.
Referenced by StatusBar().
|
private |
Definition at line 250 of file status-bar.cpp.
References Inkscape::UI::popup_at_center(), zoom, and zoom_popover.
Referenced by StatusBar().
|
private |
Definition at line 233 of file status-bar.cpp.
References _blocker, OperationBlocker::block(), OperationBlocker::pending(), and zoom_value.
Referenced by StatusBar().
|
private |
Definition at line 93 of file status-bar.h.
Referenced by rotate_value_changed(), update_rotate(), update_zoom(), and zoom_value_changed().
|
private |
Definition at line 79 of file status-bar.h.
Referenced by set_desktop(), and StatusBar().
|
private |
Definition at line 81 of file status-bar.h.
Referenced by set_coordinate(), StatusBar(), and update_visibility().
|
private |
Definition at line 91 of file status-bar.h.
Referenced by set_desktop(), update_rotate(), and update_zoom().
|
private |
Definition at line 87 of file status-bar.h.
Referenced by onDefocus(), and set_desktop().
|
private |
Definition at line 78 of file status-bar.h.
Referenced by set_desktop(), StatusBar(), and update_visibility().
|
private |
Definition at line 95 of file status-bar.h.
Referenced by StatusBar().
|
private |
Definition at line 83 of file status-bar.h.
Referenced by rotate_popup(), StatusBar(), and update_visibility().
|
private |
Definition at line 89 of file status-bar.h.
Referenced by rotate_popup(), and StatusBar().
|
private |
Definition at line 85 of file status-bar.h.
Referenced by rotate_grab_focus(), rotate_output(), rotate_value_changed(), StatusBar(), and update_rotate().
|
private |
Definition at line 77 of file status-bar.h.
Referenced by set_desktop(), StatusBar(), and update_visibility().
|
private |
Definition at line 80 of file status-bar.h.
Referenced by set_message(), and StatusBar().
|
private |
Definition at line 82 of file status-bar.h.
Referenced by StatusBar(), and zoom_popup().
|
private |
Definition at line 88 of file status-bar.h.
Referenced by StatusBar(), and zoom_popup().
|
private |
Definition at line 84 of file status-bar.h.
Referenced by StatusBar(), update_zoom(), zoom_grab_focus(), zoom_input(), zoom_output(), and zoom_value_changed().