25 #define MAX_DEBUG_LABEL_LEN 32
53 string text = origText;
55 if ( text.size() > MAX_DEBUG_LABEL_LEN )
57 text.resize( MAX_DEBUG_LABEL_LEN );
65 std::ostream & operator<<( std::ostream & stream,
const YItem * item )
70 stream <<
"<NULL YItem>";
std::vector< YItem * > YItemCollection
Collection of pointers to YItem.
virtual std::string debugLabel() const
Return a descriptive label of this item instance for debugging.
std::string limitLength(const std::string &text, int limit) const
Return a string of maximum 'limit' characters.
virtual const char * itemClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
Simple item class for SelectionBox, ComboBox, MultiSelectionBox etc.