Scroom  0.14
Measure Class Reference

#include <measure.hh>

Inheritance diagram for Measure:
Inheritance graph
Collaboration diagram for Measure:
Collaboration graph

Public Types

using Ptr = boost::shared_ptr< Measure >
 
- 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

 Measure ()=default
 

Additional Inherited Members

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

Member Typedef Documentation

◆ Ptr

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

Constructor & Destructor Documentation

◆ Measure()

Measure::Measure ( )
privatedefault

Referenced by create().

Here is the caller graph for this function:

Member Function Documentation

◆ create()

Measure::Ptr Measure::create ( )
static
27 { return Ptr(new Measure()); }

Referenced by getPluginInformation().

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

◆ getPluginName()

std::string Measure::getPluginName ( )
overridevirtual

Implements PluginInformationInterface.

33 { return "Measure"; }

◆ getPluginVersion()

std::string Measure::getPluginVersion ( )
overridevirtual

Implements PluginInformationInterface.

35 { return PACKAGE_VERSION; }

◆ registerCapabilities()

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

Implements PluginInformationInterface.

38 {
39  host->registerViewObserver("Measure tool", shared_from_this<Measure>());
40 }

◆ viewAdded()

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

Implements ViewObserver.

47 {
49  view->registerSelectionListener(handler);
50  view->registerPostRenderer(handler);
51 
52  view->addToolButton(GTK_TOGGLE_BUTTON(gtk_toggle_button_new_with_label("Measure")), handler);
53 
54  return {};
55 }
Here is the call graph for this function:

The documentation for this class was generated from the following files:
Measure::Measure
Measure()=default
MeasureHandler::create
static Ptr create()
Definition: measure.cc:61
MeasureHandler::Ptr
boost::shared_ptr< MeasureHandler > Ptr
Definition: measure.hh:24
Measure::Ptr
boost::shared_ptr< Measure > Ptr
Definition: measure.hh:64