62 mDYKButton(
new Button(this,
_(
"Did you know..."),
"DYK",
107 if (event.
getId() ==
"DYK")
117 const std::string helpFile = link;
154 if (helpPath.empty())
161 for (
size_t i = 0, sz = lines.size(); i < sz; ++i)
168 if (helpPath.empty())
179 const std::string &str = *it;
180 const size_t idx = str.find(
'|');
181 if (idx != std::string::npos)
182 mTagFileMap[str.substr(idx + 1)].insert(str.substr(0, idx));
189 std::string text = text0;
199 if (names.size() == 1)
212 const char *
const str = (*it).c_str();
const std::string & getId() const
std::string getStringValue(const std::string &key) const
Font * getHelpFont() const
StaticBrowserBox * mBrowserBox
void search(const std::string &text)
void loadFile(std::string file)
void action(const ActionEvent &event)
void loadHelp(const std::string &helpFile)
void handleLink(const std::string &link, MouseEvent *const event)
void loadHelpSimple(const std::string &helpFile)
LayoutCell & setPadding(int p)
void setRowHeight(const int n, const int h)
const char * getChar(const char *const str)
void registerWindowForReset(Window *const window)
void addRow(const std::string &row, const bool atTop)
void setOpaque(Opaque opaque)
void setEnableKeys(const bool n)
void setEnableImages(const bool n)
void setEnableTabs(const bool n)
void setProcessVars(const bool n)
void setLinkHandler(LinkHandler *linkHandler)
static bool translateFile(const std::string &fileName, PoDict *const dict, StringVect &lines)
void setResizable(const bool resize)
virtual void setVisible(Visible visible)
void setContentSize(int width, int height)
void setWindowName(const std::string &name)
void setMinHeight(const int height)
void setMinWidth(const int width)
void enableVisibleSound(bool b)
void widgetResized(const Event &event)
void setCloseButton(const bool flag)
void setStickyButtonLock(const bool sticky)
LayoutCell & place(const int x, const int y, Widget *const wg, const int w, const int h)
#define FOR_EACH(type, iter, array)
std::set< std::string > HelpNames
HelpNames::const_iterator HelpNamesCIter
std::string trim(std::string const &str)
std::string toLower(std::string const &s)
bool loadTextFile(const std::string &fileName, StringVect &lines)
void getFilesInDir(const std::string &dir, StringVect &list, const std::string &ext)
bool checkPath(const std::string &path)
bool openBrowser(std::string url)
SetupWindow * setupWindow
std::string strprintf(const char *const format,...)
std::string pathJoin(std::string str1, const std::string &str2)
bool strStartWith(const std::string &str1, const std::string &str2)
StringVect::const_iterator StringVectCIter
std::vector< std::string > StringVect