MeshLib C++ Docs
Loading...
Searching...
No Matches
MRViewer/MRSceneControlMenuItems.h
Go to the documentation of this file.
1#pragma once
2#include "MRRibbonMenuItem.h"
3#include "MRHistoryStore.h"
4
5namespace MR
6{
9
10
12{
13public:
15 virtual bool action() override;
16 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& ) const override;
17 virtual std::string getDynamicTooltip() const override;
18
19private:
20 void updateUndoListCache_( const HistoryStore& store, HistoryStore::ChangeType, std::shared_ptr<HistoryAction> );
21
22 boost::signals2::scoped_connection historyStoreConnection_;
23};
24
26{
27public:
29 virtual bool action() override;
30 virtual std::string isAvailable( const std::vector<std::shared_ptr<const Object>>& ) const override;
31 virtual std::string getDynamicTooltip() const override;
32
33private:
34 void updateRedoListCache_( const HistoryStore& store, HistoryStore::ChangeType, std::shared_ptr<HistoryAction> );
35
36 boost::signals2::scoped_connection historyStoreConnection_;
37};
38
39}
This class stores history stack for undo/redo.
Definition MRHistoryStore.h:16
ChangeType
Signal is called after this store changed.
Definition MRHistoryStore.h:83
Definition MRViewer/MRSceneControlMenuItems.h:26
Definition MRRibbonMenuItem.h:23
Definition MRViewer/MRSceneControlMenuItems.h:12
virtual bool action() override
returns true if state of item changed
virtual bool action() override
returns true if state of item changed
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
return empty string if all requirements are satisfied, otherwise return first unsatisfied requirement
virtual std::string getDynamicTooltip() const override
return not-empty string with tooltip that shall replace the static tooltip from json
virtual std::string getDynamicTooltip() const override
return not-empty string with tooltip that shall replace the static tooltip from json
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const override
return empty string if all requirements are satisfied, otherwise return first unsatisfied requirement
only for bindings generation
Definition MRCameraOrientationPlugin.h:8