29 #include "YTransText.h" 99 bool startWithDelimiter =
true )
100 {
return completePath( item,
false, delimiter, startWithDelimiter ); }
110 bool startWithDelimiter =
true )
111 {
return completePath( item,
true, delimiter, startWithDelimiter ); }
124 bool startWithDelimiter =
true );
146 const char *
textdomain()
const {
return _textdomain.c_str(); }
163 std::string
translate(
const std::string & orig );
176 bool startWithDelimiter );
187 std::string _textdomain;
193 #endif // YStringTree_h void setTextdomain(const char *domain)
Set the textdomain used internally for translation of pathname components.
void logTree()
Debugging - dump the tree into the log file.
const char * textdomain() const
Returns the textdomain used internally for translation of pathname components.
YStringTreeItem * root() const
Returns the root of the filter view tree.
Template class for tree items that maintain sort order.
YStringTree(const char *textdomain)
Constructor.
std::string translate(const std::string &orig)
Translate message 'orig' using the internal textdomain.
YTransText path(const YStringTreeItem *item, char delimiter, bool startWithDelimiter=true)
Construct a complete path (both original and translated) for the specified tree item.
YStringTreeItem * addBranch(const std::string &content, char delimiter=0, YStringTreeItem *parent=0)
Add a unique new branch with text content 'content' to the tree, beginning at 'parent' (root if paren...
Abstract base class for filter views with hierarchical filter criteria - e.g., RPM group tags...
std::string completePath(const YStringTreeItem *item, bool translated, char delimiter, bool startWithDelimiter)
Construct a complete original or translated path for the specified tree item.
std::string translatedPath(const YStringTreeItem *item, char delimiter, bool startWithDelimiter=true)
Construct a complete original path for the specified tree item.
std::string origPath(const YStringTreeItem *item, char delimiter, bool startWithDelimiter=true)
Construct a complete original path for the specified tree item.
Helper class for translated strings: Stores a message in the original (untranslated) version along wi...
void logBranch(YStringTreeItem *branch, std::string indentation)
Debugging - dump one branch of the tree into the log file.
virtual ~YStringTree()
Destructor.