25 #ifndef WITEMSELECTION_H
26 #define WITEMSELECTION_H
33 #include <boost/signals2/signal.hpp>
34 #include <boost/tuple/tuple.hpp>
36 #include "WItemSelectionItem.h"
37 #include "WSharedSequenceContainer.h"
56 typedef std::shared_ptr< WItemSelection >
SPtr;
61 typedef std::shared_ptr< const WItemSelection >
ConstSPtr;
119 static std::shared_ptr< WItemSelectionItem >
Item( std::string name, std::string description =
"",
const char** icon = NULL )
121 return std::shared_ptr< WItemSelectionItem >(
new WItemSelectionItem( name, description, icon ) );
132 void addItem( std::string name, std::string description =
"",
const char** icon = NULL );
139 void addItem( std::shared_ptr< WItemSelectionItem > item );
Class for keeping a single named item in a WItemSelection.
A class containing a list of named items.
virtual WItemSelector getSelectorLast()
Creates an default selection (last item selected).
virtual WItemSelector getSelectorNone()
Creates an default selection (no items selected).
virtual WItemSelector getSelectorFirst()
Creates an default selection (first item selected).
void addItem(std::string name, std::string description="", const char **icon=NULL)
Convenience method to add a new item.
virtual WItemSelector getSelector(size_t item)
Creates an default selection (a specified items selected).
WItemSelection()
Default constructor.
std::shared_ptr< WItemSelection > SPtr
Convenience typedef for a std::shared_ptr< WItemSelection >
virtual ~WItemSelection()
Destructor.
static std::shared_ptr< WItemSelectionItem > Item(std::string name, std::string description="", const char **icon=NULL)
Convenience method to create a new item.
virtual WItemSelector getSelectorAll()
Creates an default selection (all items selected).
std::shared_ptr< const WItemSelection > ConstSPtr
Convenience typedef for a std::shared_ptr< const WItemSelection >
This class represents a subset of a WItemSelection.
This class provides a common interface for thread-safe access to sequence containers (list,...