68 mOpenAgainCheckBox(
new CheckBox(this,
_(
"Auto open this window"),
69 config.getBoolValue(
"showDidYouKnow"), this,
"openagain"))
103 place(4, 4, okButton, 1, 1);
125 const std::string &eventId =
event.getId();
126 if (eventId ==
"close")
133 if (eventId ==
"prev")
137 else if (eventId ==
"next")
141 else if (eventId ==
"openagain")
161 if (num < minTip || num >
maxTip)
174 const std::string file =
strprintf(
"tips/%d", num);
176 if (helpPath.empty())
183 for (
size_t i = 0, sz = lines.size(); i < sz; ++i)
std::string getStringValue(const std::string &key) const
void setValue(const std::string &key, const std::string &value)
int getIntValue(const std::string &key) const
void action(const ActionEvent &event)
void setVisible(Visible visible)
void loadFile(const int num)
StaticBrowserBox * mBrowserBox
ItemLinkHandler * mItemLinkHandler
CheckBox * mOpenAgainCheckBox
Font * getHelpFont() const
LayoutCell & setPadding(int p)
void setRowHeight(const int n, const int h)
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)
bool isWindowVisible() const
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)
DidYouKnowWindow * didYouKnowWindow
SetupWindow * setupWindow
std::string strprintf(const char *const format,...)
std::string pathJoin(std::string str1, const std::string &str2)
std::vector< std::string > StringVect