Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
ToolStateListener Class Referenceabstract

#include <viewinterface.hh>

Inheritance diagram for ToolStateListener:
Inheritance graph
Collaboration diagram for ToolStateListener:
Collaboration graph

Public Types

using Ptr = std::shared_ptr< ToolStateListener >
 

Public Member Functions

virtual void onEnable ()=0
 
virtual void onDisable ()=0
 

Additional Inherited Members

- Private Member Functions inherited from Interface
 Interface ()=default
 
 Interface (const Interface &)=delete
 
Interfaceoperator= (const Interface &)=delete
 
 Interface (Interface &&)=delete
 
Interfaceoperator= (Interface &&)=delete
 
virtual ~Interface ()=default
 

Detailed Description

Interface provided to something that wants to listener to enable/disable events from its tool button.

Member Typedef Documentation

◆ Ptr

using ToolStateListener::Ptr = std::shared_ptr<ToolStateListener>

Member Function Documentation

◆ onDisable()

virtual void ToolStateListener::onDisable ( )
pure virtual

Then function is called whenever the tool button is deselected.

Implemented in MeasureHandler, and PipetteHandler.

◆ onEnable()

virtual void ToolStateListener::onEnable ( )
pure virtual

This function is called whenever the tool button is selected.

Implemented in MeasureHandler, and PipetteHandler.


The documentation for this class was generated from the following file: