25 #ifndef WCOLUMNPROPERTYHANDLER_H
26 #define WCOLUMNPROPERTYHANDLER_H
35 #include <boost/function.hpp>
37 #include "../WDataType.h"
38 #include "../WProtonData.h"
39 #include "../WSingleSelectorName.h"
40 #include "core/common/WItemSelectionItemTyped.h"
66 typedef std::shared_ptr< WColumnPropertyHandler >
SPtr;
149 typedef std::map< WPropSelection, std::string >::iterator
PropMapEntry;
164 int getFilterIndex(
int index, std::list< std::string > typeName );
Creates, updates and handles the column properties.
void propertyNotifier(WPropertyBase::SPtr property)
Event function when WItemSelection is triggered.
std::tuple< std::string, std::string, std::string, std::list< std::string > > NameDescriptionSearchTyp
tuple with 3 string as value
std::map< WPropSelection, std::string >::iterator PropMapEntry
Reresents an entry in a < WPropSelection, string > map.
WPropertyGroup::SPtr m_properties
A property variable that is generated by the WModul.
std::shared_ptr< WColumnPropertyHandler > SPtr
shared_ptr that points to itself
WPropSelection addHeaderProperty(WColumnPropertyHandler::NameDescriptionSearchTyp ndst, WPropertyBase::PropertyChangeNotifierType notifier)
Creates the individual WItemSelection.
std::shared_ptr< WItemSelection > initializeSelectionItem(std::list< std::string > typeName)
creates the content (options) of the WItemSelection
void updateProperty()
update current group property and subproperty
WPropGroup m_columnSelectionGroup
Property group for column selection.
WColumnPropertyHandler::CallbackPtr m_externEventMethod
A void function variable that can be use outside.
WColumnPropertyHandler::CallbackPtr m_dataUpdate
A function variable that reinitializes the WDataSets.
WItemSelectionItemTyped< std::string > ItemType
represents the item type for item-selection
void createProperties()
creates the group property and the subproperty
std::map< WPropSelection, std::string > mapPropSelectionsToString
A map between WPropSelection items and column names as strings.
void setSelectionEventMethod(WColumnPropertyHandler::CallbackPtr externEventMethod)
setter to use a external function
WColumnPropertyHandler(WProtonData::SPtr protonData, WPropertyGroup::SPtr properties, WColumnPropertyHandler::CallbackPtr dataUpdate)
constructor
boost::function< void() > CallbackPtr
Function variables for updating the data.
int getFilterIndex(int index, std::list< std::string > typeName)
converts the index to the filtered index
WProtonData::SPtr m_protonData
Pointer to the content and header of the CSV.
A derivation of WItemSelection which can store a value of any type.
boost::function< void(std::shared_ptr< WPropertyBase >)> PropertyChangeNotifierType
Signal signature emitted during set operations.
std::shared_ptr< WPropertyBase > SPtr
Convenience typedef for a std::shared_ptr< WPropertyBase >
std::shared_ptr< WPropertyGroup > SPtr
shared pointer to object of this type
std::shared_ptr< WProtonData > SPtr
shared_ptr that points to itself