Scroom  0.14
anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy Class Reference
Inheritance diagram for anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy:
Inheritance graph
Collaboration diagram for anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy:
Collaboration graph

Public Member Functions

void invalidate () override
 
ProgressInterface::Ptr getProgressInterface () override
 
void addSideWidget (std::string, GtkWidget *) override
 
void removeSideWidget (GtkWidget *) override
 
void addToToolbar (GtkToolItem *) override
 
void removeFromToolbar (GtkToolItem *) override
 
void registerSelectionListener (SelectionListener::Ptr) override
 
void registerPostRenderer (PostRenderer::Ptr) override
 
void setStatusMessage (const std::string &) override
 
boost::shared_ptr< PresentationInterfacegetCurrentPresentation () override
 
void addToolButton (GtkToggleButton *, ToolStateListener::Ptr) override
 

Static Public Member Functions

static Ptr create ()
 

Private Member Functions

 ViewInterfaceDummy ()=default
 

Additional Inherited Members

- Public Types inherited from ViewInterface
using Ptr = boost::shared_ptr< ViewInterface >
 
using WeakPtr = boost::weak_ptr< ViewInterface >
 

Constructor & Destructor Documentation

◆ ViewInterfaceDummy()

anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::ViewInterfaceDummy ( )
privatedefault

Member Function Documentation

◆ addSideWidget()

void anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::addSideWidget ( std::string  title,
GtkWidget *  w 
)
inlineoverridevirtual

Request that the given widget be added to the sidebar.

Precondition
Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)

Implements ViewInterface.

147 {}

◆ addToolButton()

void anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::addToolButton ( GtkToggleButton *  ,
ToolStateListener::Ptr   
)
inlineoverridevirtual

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.

See also
ToolStateListener

Implements ViewInterface.

155 {};

◆ addToToolbar()

void anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::addToToolbar ( GtkToolItem *  ti)
inlineoverridevirtual

Request that the given tool item be added to the toolbar.

Precondition
Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)

Implements ViewInterface.

149 {}

◆ create()

static Ptr anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::create ( )
inlinestatic
143 { return Ptr(new ViewInterfaceDummy()); }

◆ getCurrentPresentation()

boost::shared_ptr<PresentationInterface> anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::getCurrentPresentation ( )
inlineoverridevirtual

Returns a shared pointer to the current presentation.

See also
PresentationInterface

Implements ViewInterface.

154 { return {}; };

◆ getProgressInterface()

ProgressInterface::Ptr anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::getProgressInterface ( )
inlineoverridevirtual

Return a pointer to the progess interface associated with the View

Note
The progress bar should only be manipulated from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)

Implements ViewInterface.

146 { return {}; }

◆ invalidate()

void anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::invalidate ( )
inlineoverridevirtual

Request that the window content is redrawn.

Precondition
Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)

Implements ViewInterface.

145 {}

◆ registerPostRenderer()

void anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::registerPostRenderer ( PostRenderer::Ptr  )
inlineoverridevirtual

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.

See also
PostRenderer

Implements ViewInterface.

152 {};

◆ registerSelectionListener()

void anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::registerSelectionListener ( SelectionListener::Ptr  )
inlineoverridevirtual

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.

See also
SelectionListener

Implements ViewInterface.

151 {};

◆ removeFromToolbar()

void anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::removeFromToolbar ( GtkToolItem *  ti)
inlineoverridevirtual

Request that the given tool item be removed from the toolbar.

Precondition
Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)

Implements ViewInterface.

150 {}

◆ removeSideWidget()

void anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::removeSideWidget ( GtkWidget *  w)
inlineoverridevirtual

Request that the given widget be removed from the sidebar.

Precondition
Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)

Implements ViewInterface.

148 {}

◆ setStatusMessage()

void anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::setStatusMessage ( const std::string &  )
inlineoverridevirtual

Sets the status message in the status bar of the application.

Implements ViewInterface.

153 {};

The documentation for this class was generated from the following file:
ViewInterface::Ptr
boost::shared_ptr< ViewInterface > Ptr
Definition: viewinterface.hh:193
anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy::ViewInterfaceDummy
ViewInterfaceDummy()=default