25 #ifndef WPROPERTYWRAPPER_H
26 #define WPROPERTYWRAPPER_H
31 #include <boost/shared_ptr.hpp>
34 #include "core/common/WPropertyBase.h"
71 bool getBool(
bool notify =
false )
const;
79 int getInt(
bool notify =
false )
const;
87 std::string
getString(
bool notify =
false )
const;
95 double getDouble(
bool notify =
false )
const;
103 std::string
getFilename(
bool notify =
false )
const;
167 boost::shared_ptr< WPropertyBase >
m_prop;
170 #endif // WPROPERTYWRAPPER_H
void setFilename(std::string const &fn)
Set the filename of the filename property.
bool getBool(bool notify=false) const
Get the value of a boolean property.
void waitForUpdate()
Wait for the property to update its value.
void setString(std::string const &s)
Set the value of a string property.
boost::shared_ptr< WPropertyBase > m_prop
The property.
void setDouble(double d)
Set the value of a double property.
void setBool(bool b)
Set the value of a boolean property.
Encapsulates a WProperty.
void setSelection(int s)
Sets the selected item of a selection.
std::string getDescription() const
Return the description of the property.
std::string getString(bool notify=false) const
Get the value of a string property.
double getDouble(bool notify=false) const
Get the value of a double property.
void click()
Trigger a trigger property.
int getSelection(bool notify=false) const
Get the (first) selected item of a selection property.
WPropertyWrapper(boost::shared_ptr< WPropertyBase > prop)
Constructor.
std::string getName() const
Return the name of the property.
void setInt(int i)
Set the value of an integer property.
std::string getFilename(bool notify=false) const
Get the filename of a filename property.
int getInt(bool notify=false) const
Get the value of an integer property.