Scroom  0.14
Pipette Class Reference

#include <pipette.hh>

Inheritance diagram for Pipette:
Inheritance graph
Collaboration diagram for Pipette:
Collaboration graph

Public Types

using Ptr = boost::shared_ptr< Pipette >
 
- Public Types inherited from PluginInformationInterface
using Ptr = boost::shared_ptr< PluginInformationInterface >
 
- Public Types inherited from ViewObserver
using Ptr = boost::shared_ptr< ViewObserver >
 

Public Member Functions

std::string getPluginName () override
 
std::string getPluginVersion () override
 
void registerCapabilities (ScroomPluginInterface::Ptr host) override
 
Scroom::Bookkeeping::Token viewAdded (ViewInterface::Ptr v) override
 
- Public Member Functions inherited from PluginInformationInterface
 PluginInformationInterface ()=default
 
- Public Member Functions inherited from Scroom::Utils::Base
 Base ()=default
 
 Base (const Base &)=delete
 
 Base (Base &&)=delete
 
Baseoperator= (const Base &)=delete
 
Baseoperator= (Base &&)=delete
 
virtual ~Base ()=default
 
template<typename R >
boost::shared_ptr< R > shared_from_this ()
 
template<typename R >
boost::shared_ptr< R const > shared_from_this () const
 

Static Public Member Functions

static Ptr create ()
 

Private Member Functions

 Pipette ()=default
 

Additional Inherited Members

- Public Attributes inherited from PluginInformationInterface
const int pluginApiVersion {PLUGIN_API_VERSION}
 

Member Typedef Documentation

◆ Ptr

using Pipette::Ptr = boost::shared_ptr<Pipette>

Constructor & Destructor Documentation

◆ Pipette()

Pipette::Pipette ( )
privatedefault

Referenced by create().

Here is the caller graph for this function:

Member Function Documentation

◆ create()

Pipette::Ptr Pipette::create ( )
static
24 { return Ptr(new Pipette()); }

Referenced by BOOST_AUTO_TEST_CASE(), and getPluginInformation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPluginName()

std::string Pipette::getPluginName ( )
overridevirtual

Implements PluginInformationInterface.

30 { return "Pipette"; }

◆ getPluginVersion()

std::string Pipette::getPluginVersion ( )
overridevirtual

Implements PluginInformationInterface.

32 { return PACKAGE_VERSION; }

◆ registerCapabilities()

void Pipette::registerCapabilities ( ScroomPluginInterface::Ptr  host)
overridevirtual

Implements PluginInformationInterface.

35 {
36  host->registerViewObserver("Pipette", shared_from_this<Pipette>());
37 }

◆ viewAdded()

Scroom::Bookkeeping::Token Pipette::viewAdded ( ViewInterface::Ptr  v)
overridevirtual

Implements ViewObserver.

44 {
46  view->registerSelectionListener(handler);
47  view->registerPostRenderer(handler);
48 
49  view->addToolButton(GTK_TOGGLE_BUTTON(gtk_toggle_button_new_with_label("Pipette")), handler);
50 
51  return {};
52 }
Here is the call graph for this function:

The documentation for this class was generated from the following files:
PipetteHandler::Ptr
boost::shared_ptr< PipetteHandler > Ptr
Definition: pipette.hh:27
PipetteHandler::create
static Ptr create()
Definition: pipette.cc:58
Pipette::Pipette
Pipette()=default
Pipette::Ptr
boost::shared_ptr< Pipette > Ptr
Definition: pipette.hh:79