33 FXMenuTitle* menuTitle =
new FXMenuTitle(p, text.c_str(), icon, menuPane, LAYOUT_FIX_HEIGHT);
44 FXMenuCommand* menuCommand =
new FXMenuCommand(p, text.c_str(), icon, tgt, sel, LAYOUT_FIX_HEIGHT);
49 menuCommand->disable();
57GUIDesigns::buildFXMenuCommand(FXComposite* p,
const std::string& text,
const std::string& help, FXIcon* icon, FXObject* tgt, FXSelector sel,
const bool disable) {
59 FXMenuCommand* menuCommand =
new FXMenuCommand(p, text.c_str(), icon, tgt, sel, LAYOUT_FIX_HEIGHT);
61 menuCommand->setHelpText(help.c_str());
66 menuCommand->disable();
76 FXMenuCommand* menuCommand =
new FXMenuCommand(p, (text +
"\t" + shortcut +
"\t" + info).c_str(), icon, tgt, sel, LAYOUT_FIX_HEIGHT);
87 FXMenuCheck* menuCheck =
new FXMenuCheck(p, (text + std::string(
"\t\t") + info).c_str(), tgt, sel, LAYOUT_FIX_HEIGHT);
109 FXMenuCommand* menuCommand =
new FXMenuCommand(p, text.c_str(),
nullptr, tgt, sel, LAYOUT_FIX_HEIGHT);
119 FXuint opts, FXint x, FXint y, FXint w, FXint h, FXint pl, FXint pr, FXint pt, FXint pb) {
120 FXLabel* label =
new FXLabel(p, text.c_str(), ic, opts, x, y, w, h, pl, pr, pt, pb);
121 label->setTipText(tip.c_str());
122 label->setHelpText(help.c_str());
128GUIDesigns::buildFXButton(FXComposite* p,
const std::string& text,
const std::string& tip,
const std::string& help, FXIcon* ic, FXObject* tgt,
129 FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h, FXint pl, FXint pr, FXint pt, FXint pb) {
130 FXButton* button =
new FXButton(p, text.c_str(), ic, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb);
131 button->setTipText(tip.c_str());
132 button->setHelpText(help.c_str());
139 FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h, FXint pl, FXint pr, FXint pt, FXint pb) {
140 FXRadioButton* radioButton =
new FXRadioButton(p, text.c_str(), tgt, sel, opts, x, y, w, h, pl, pr, pt, pb);
141 radioButton->setTipText(tip.c_str());
142 radioButton->setHelpText(help.c_str());
int GUIDesignHeight
the default size for GUI elements
static FXLabel * buildFXLabel(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXuint opts, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
Construct label with given text and icon.
static FXButton * buildFXButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXObject *tgt, FXSelector sel, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build button
static MFXMenuCheckIcon * buildFXMenuCheckboxIcon(FXComposite *p, const std::string &text, const std::string &shortcut, const std::string &info, FXIcon *icon, FXObject *tgt, FXSelector sel)
build menu checkbox with icon
static FXMenuTitle * buildFXMenuTitle(FXComposite *p, const std::string &text, FXIcon *icon, FXMenuPane *menuPane)
build menu title
static FXMenuCommand * buildFXMenuCommandRecentFile(FXComposite *p, const std::string &text, FXObject *tgt, FXSelector sel)
build menu command (for recent files)
static FXMenuCheck * buildFXMenuCheckbox(FXComposite *p, const std::string &text, const std::string &info, FXObject *tgt, FXSelector sel)
build menu checkbox
static FXRadioButton * buildFXRadioButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXObject *tgt, FXSelector sel, FXuint opts=RADIOBUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build radio button
static FXMenuCommand * buildFXMenuCommand(FXComposite *p, const std::string &text, FXIcon *icon, FXObject *tgt, FXSelector sel, const bool disable=false)
build menu command
static FXMenuCommand * buildFXMenuCommandShortcut(FXComposite *p, const std::string &text, const std::string &shortcut, const std::string &info, FXIcon *icon, FXObject *tgt, FXSelector sel)
build menu command