Go to the documentation of this file.
14 #include <boost/shared_ptr.hpp>
15 #include <boost/weak_ptr.hpp>
29 const std::string
GRID(
"GridSelection");
30 const std::string
PIXEL(
"PixelSelection");
83 using Ptr = boost::shared_ptr<PostRenderer>;
99 virtual void render(boost::shared_ptr<ViewInterface>
const& vi,
118 using Ptr = boost::shared_ptr<SelectionListener>;
164 using Ptr = boost::shared_ptr<ToolStateListener>;
193 using Ptr = boost::shared_ptr<ViewInterface>;
194 using WeakPtr = boost::weak_ptr<ViewInterface>;
222 virtual void addSideWidget(std::string title, GtkWidget* w) = 0;
Selection & operator=(const Point &p)
Definition: viewinterface.hh:64
double width() const
Definition: viewinterface.hh:71
Definition: presentationinterface.hh:69
virtual void removeSideWidget(GtkWidget *w)=0
virtual void addSideWidget(std::string title, GtkWidget *w)=0
virtual void onSelectionUpdate(Selection selection, boost::shared_ptr< ViewInterface > view)=0
Definition: assertions.hh:14
virtual ProgressInterface::Ptr getProgressInterface()=0
Definition: viewinterface.hh:115
boost::shared_ptr< ProgressInterface > Ptr
Definition: progressinterface.hh:20
double length() const
Definition: viewinterface.hh:73
boost::shared_ptr< ViewInterface > Ptr
Definition: viewinterface.hh:193
Definition: viewinterface.hh:38
virtual void onSelectionStart(Selection selection, boost::shared_ptr< ViewInterface > view)=0
const std::string PIXEL("PixelSelection")
const std::string DEFAULT(GRID)
Selection(Point point)
Definition: viewinterface.hh:53
value_type x
Definition: point.hh:111
Point< T > make_point(T x, T y)
Definition: point.hh:116
Selection(Point start_, Point end_)
Definition: viewinterface.hh:58
virtual void setStatusMessage(const std::string &)=0
virtual void removeFromToolbar(GtkToolItem *ti)=0
boost::shared_ptr< SelectionListener > Ptr
Definition: viewinterface.hh:118
const std::string GRID("GridSelection")
virtual void invalidate()=0
boost::weak_ptr< ViewInterface > WeakPtr
Definition: viewinterface.hh:194
virtual std::string getSelectionType()
Definition: viewinterface.hh:121
Point start
Definition: viewinterface.hh:44
virtual void render(boost::shared_ptr< ViewInterface > const &vi, cairo_t *cr, Scroom::Utils::Rectangle< double > presentationArea, int zoom)=0
Definition: interface.hh:10
virtual boost::shared_ptr< PresentationInterface > getCurrentPresentation()=0
Definition: viewinterface.hh:27
virtual void addToToolbar(GtkToolItem *ti)=0
virtual void onSelectionEnd(Selection selection, boost::shared_ptr< ViewInterface > view)=0
virtual void registerSelectionListener(SelectionListener::Ptr)=0
double height() const
Definition: viewinterface.hh:72
Definition: viewinterface.hh:190
virtual void registerPostRenderer(PostRenderer::Ptr)=0
virtual void addToolButton(GtkToggleButton *, ToolStateListener::Ptr)=0
value_type y
Definition: point.hh:112
Point end
Definition: viewinterface.hh:45
Selection(double x, double y)
Definition: viewinterface.hh:48
Definition: viewinterface.hh:80
boost::shared_ptr< PostRenderer > Ptr
Definition: viewinterface.hh:83