35 #ifndef CONTROL_MANAGER_H 36 #define CONTROL_MANAGER_H 65 typedef std::map< std::string, std::set< std::string > >
ViewControls;
75 typedef std::map< ControlMapEntry, std::set<std::string>,
77 typedef std::map< ControlMapEntry, std::set<std::string>,
80 std::set< std::string >
81 availableControlList(
const std::string&
view,
82 const std::list<std::string>& objects )
const;
83 std::set< std::string >
84 availableControlList(
const std::string&
view,
85 const std::string&
object )
const;
86 std::set< std::string >
87 activableControlList(
const std::string&
view,
88 const std::list<std::string>& selectedObjects )
91 bool insertView(
const std::string&
view,
92 const ViewControls& viewControls );
93 bool removeView(
const std::string&
view );
95 bool insertObject(
const std::string&
object,
96 const ObjectControls& objectControls );
97 bool removeObject(
const std::string&
object );
99 void addControl(
const std::string&
view,
const std::string&
object,
100 const std::set< std::string > & controls );
101 void addControl(
const std::string&
view,
const std::string&
object,
102 const std::string& control );
104 bool removeControl(
const std::string&
view,
const std::string&
object,
105 const std::string& control );
107 bool removeControlList(
const std::string&
view,
108 const std::string&
object );
112 std::map< ControlMapEntry, std::set<std::string>,
std::map< ControlMapEntry, std::set< std::string >, LessControlMap >::iterator iterator
std::map< std::string, std::set< std::string > > ObjectControls
std::map< std::string, std::set< std::string > > ViewControls
ControlMapEntry(std::string v, std::string o)
std::map< ControlMapEntry, std::set< std::string >, LessControlMap >::const_iterator const_iterator
bool operator()(ControlMapEntry entry1, ControlMapEntry entry2) const