|
Scroom 0.14-48-ga0fee447
|
#include <view.hh>


Public Types | |
| using | Ptr = std::shared_ptr< View > |
Public Types inherited from ViewInterface | |
| using | Ptr = std::shared_ptr< ViewInterface > |
| using | WeakPtr = std::weak_ptr< ViewInterface > |
Static Public Member Functions | |
| static Ptr | create (GtkBuilder *scroomXml, const PresentationInterface::Ptr &presentation) |
| static void | updateScrollbar (GtkAdjustment *adj, int zoom, double value, double presentationStart, double presentationSize, double windowSize) |
Private Types | |
| enum | LocationChangeCause { SCROLLBAR , TEXTBOX , OTHER } |
Private Member Functions | |
| View (GtkBuilder *scroomXml) | |
| void | updateTweaks () |
| Scroom::Utils::Point< double > | windowPointToPresentationPoint (Scroom::Utils::Point< double > wp) const |
| Scroom::Utils::Point< double > | presentationPointToWindowPoint (Scroom::Utils::Point< double > presentationpoint) const |
| Scroom::Utils::Point< double > | tweakedPosition () const |
| void | updateNewWindowMenu () |
| void | on_zoombox_changed (int newzoom, const Scroom::Utils::Point< double > &mousePos) |
| void | updateXY (const Scroom::Utils::Point< double > &newPos, const LocationChangeCause &source) |
|
private |
|
explicitprivate |

|
override |
|
delete |
|
delete |
|
overridevirtual |
Request that the given widget be added to the sidebar.
Implements ViewInterface.

|
overridevirtual |
Adds a new tool button to the toolbar. The given ToolStateListener will be informed when the tool is turned on or off. Only one tool will be active at the same time.
Implements ViewInterface.

|
overridevirtual |
Request that the given tool item be added to the toolbar.
Implements ViewInterface.
Referenced by addToolButton().

| void View::clearPresentation | ( | ) |
Referenced by on_view_destroyed().


|
static |
Referenced by create_scroom().

|
overridevirtual |
Returns a shared pointer to the current presentation.
Implements ViewInterface.
|
overridevirtual |
Return a pointer to the progess interface associated with the View
Implements ViewInterface.
| bool View::hasPresentation | ( | ) |
| void View::hide | ( | ) |
Referenced by on_close_activate().

|
overridevirtual |
Request that the window content is redrawn.
Implements ViewInterface.
Referenced by on_buttonRelease(), on_motion_notify(), on_window_size_changed(), on_zoombox_changed(), setPresentation(), and updateXY().

| void View::on_buttonPress | ( | GdkEventButton * | event | ) |
Referenced by on_button_press_event().


| void View::on_buttonRelease | ( | GdkEventButton * | event | ) |
Referenced by on_button_release_event().


| void View::on_configure | ( | ) |
Referenced by on_drawingarea_configure_event(), and View().


| void View::on_motion_notify | ( | GdkEventMotion * | event | ) |
Referenced by on_motion_notify_event().


| void View::on_newPresentationInterfaces_update | ( | const std::map< NewPresentationInterface::Ptr, std::string > & | newPresentationInterfaces | ) |
Referenced by View().


| void View::on_presentation_created | ( | const PresentationInterface::Ptr & | p | ) |

| void View::on_presentation_destroyed | ( | ) |
| void View::on_scrollbar_value_changed | ( | GtkAdjustment * | adjustment | ) |
Referenced by on_scrollbar_value_changed().


| void View::on_scrollwheel | ( | GdkEventScroll * | event | ) |
Referenced by on_scroll_event().


| void View::on_textbox_value_changed | ( | GtkEditable * | editable | ) |
Referenced by on_textbox_value_changed().


| void View::on_window_size_changed | ( | const Scroom::Utils::Point< int > & | newSize | ) |
Referenced by on_configure().


| void View::on_zoombox_changed | ( | ) |
Referenced by on_scrollwheel(), on_zoombox_changed(), and on_zoombox_changed().


|
private |

|
private |

| void View::redraw | ( | cairo_t * | cr | ) |
Referenced by on_drawingarea_expose_event().


|
overridevirtual |
Register a postrenderer to be updated whenever a redraw occurs. When this happens, the 'render' function gets called on the instance that is passed to the given instance.
Note that the order in which different registered instances get updated is the order in which they register to the view. This order remains constant throughout the view's lifetime.
Implements ViewInterface.
|
overridevirtual |
Register a SelectionListener to be updated whenever the user selects a region . When the user changes the selection, various functions on the given instance are called.
Implements ViewInterface.
|
overridevirtual |
Request that the given tool item be removed from the toolbar.
Implements ViewInterface.
|
overridevirtual |
Request that the given widget be removed from the sidebar.
Implements ViewInterface.

| void View::setPresentation | ( | PresentationInterface::Ptr | presentation | ) |
Referenced by clearPresentation().


|
overridevirtual |
| void View::toolButtonToggled | ( | GtkToggleButton * | button | ) |
|
private |
Referenced by presentationPointToWindowPoint(), redraw(), updateRulers(), and windowPointToPresentationPoint().

|
private |
Referenced by on_presentation_created(), on_presentation_destroyed(), and View().

| void View::updateRulers | ( | ) |
Referenced by updateScrollbars(), and updateXY().


|
static |
Referenced by updateScrollbars().


| void View::updateScrollbars | ( | ) |
Referenced by on_window_size_changed(), on_zoombox_changed(), setPresentation(), and updateXY().


| void View::updateTextbox | ( | ) |
Referenced by on_zoombox_changed(), setPresentation(), and updateXY().

|
private |
Referenced by setPresentation().

|
private |
Referenced by on_motion_notify(), on_scrollbar_value_changed(), and on_textbox_value_changed().


| void View::updateZoom | ( | ) |
Referenced by on_window_size_changed(), and setPresentation().


|
private |
Referenced by on_buttonPress(), on_buttonRelease(), and on_motion_notify().


|
private |
Referenced by on_buttonPress(), on_buttonRelease(), and on_motion_notify().
|
private |
Referenced by invalidate(), on_configure(), and View().
|
private |
|
private |
Referenced by updateRulers(), and View().
|
private |
Referenced by View().
|
private |
Referenced by updateScrollbars(), and View().
|
private |
Referenced by updateScrollbars(), and View().
|
private |
Referenced by ~View().
|
private |
Referenced by View().
|
private |
Referenced by on_buttonPress(), on_buttonRelease(), and on_motion_notify().
|
private |
of the top left visible pixel
Referenced by on_motion_notify(), on_scrollbar_value_changed(), on_window_size_changed(), on_zoombox_changed(), setPresentation(), tweakedPosition(), updateScrollbars(), updateTextbox(), and updateXY().
|
private |
Referenced by redraw(), and registerPostRenderer().
|
private |
Referenced by create(), getCurrentPresentation(), hasPresentation(), redraw(), setPresentation(), updateScrollbars(), updateTextbox(), updateTweaks(), and updateZoom().
|
private |
Referenced by setPresentation(), updateScrollbars(), and updateZoom().
|
private |
Referenced by on_presentation_created(), and updateNewWindowMenu().
|
private |
Referenced by View().
|
private |
Referenced by getProgressInterface(), and View().
|
private |
Referenced by create(), on_newPresentationInterfaces_update(), and updateNewWindowMenu().
|
private |
Referenced by on_buttonPress(), on_buttonRelease(), and on_motion_notify().
|
private |
Referenced by on_buttonPress(), on_buttonRelease(), on_motion_notify(), and registerSelectionListener().
|
private |
Referenced by addSideWidget(), removeSideWidget(), and View().
|
private |
Referenced by setFullScreen(), unsetFullScreen(), and View().
|
private |
Referenced by setStatusMessage(), and View().
|
private |
Referenced by setStatusMessage(), and View().
|
private |
Referenced by addToToolbar(), removeFromToolbar(), and View().
|
private |
Referenced by setFullScreen(), unsetFullScreen(), and View().
|
private |
Referenced by addToToolbar(), removeFromToolbar(), and View().
|
private |
Referenced by addToToolbar(), removeFromToolbar(), and View().
|
private |
Referenced by addToolButton(), and toolButtonToggled().
|
private |
Referenced by on_textbox_value_changed(), updateTextbox(), and updateTweaks().
|
private |
Referenced by tweakedPosition(), and updateTweaks().
|
private |
Referenced by updateRulers(), and updateTweaks().
|
private |
Referenced by on_buttonPress(), on_buttonRelease(), on_motion_notify(), and updateTweaks().
|
private |
Referenced by updateRulers(), and View().
|
private |
Referenced by View().
|
private |
Referenced by updateScrollbars(), and View().
|
private |
Referenced by on_scrollbar_value_changed(), updateScrollbars(), and View().
|
private |
Referenced by hide(), setFullScreen(), setPresentation(), unsetFullScreen(), View(), and ~View().
|
private |
Referenced by on_textbox_value_changed(), updateTextbox(), and View().
|
private |
Referenced by on_textbox_value_changed(), updateTextbox(), and View().
|
private |
Referenced by on_motion_notify(), on_scrollwheel(), on_textbox_value_changed(), on_window_size_changed(), on_zoombox_changed(), presentationPointToWindowPoint(), redraw(), setPresentation(), tweakedPosition(), updateRulers(), updateScrollbars(), updateTextbox(), updateZoom(), and windowPointToPresentationPoint().
|
private |
Referenced by on_scrollwheel(), on_zoombox_changed(), updateZoom(), and View().
|
private |
Referenced by on_scrollwheel(), on_zoombox_changed(), updateZoom(), and View().