Beispiel #1
0
LookupEdit::LookupEdit(QWidget* parent, const char* name)
    : LineEdit(parent, name)
{
    _lookup = NULL;
    _id = INVALID_ID;
    addPopup(Key_F9, tr("lookup"));
    addPopup(Key_F10, tr("edit"));
    addPopup(Key_F11, tr("new"));
}
Beispiel #2
0
LookupEdit::LookupEdit(LookupWindow* lookup, QWidget* parent, const char* name)
    : LineEdit(parent, name)
{
    _lookup = lookup;
    _id = INVALID_ID;
    addPopup(Key_F9, tr("lookup"));
    if (lookup->allowEdit())
	addPopup(Key_F10, tr("edit"));
    if (lookup->allowNew())
	addPopup(Key_F11, tr("new"));
}
Beispiel #3
0
void CreateMainMenu()
{
    hMenu = CreateMenu();

    HMENU P0 = addPopup("File");
		addPopItem(P0, ID_OPEN, "Open");
		addPopItem(P0, ID_SAVE, "Save");
		addPopItem(P0, ID_QUIT, "Quit");

    HMENU P1 = addPopup("Action");
		addPopItem(P1, ID_MINFY, "Minify");
		addPopItem(P1, ID_OBFSC, "Obfuscate");
		
    HMENU P2 = addPopup("Help");
		addPopItem(P2, ID_ABOUT, "About");

    SetMenu(hwnd, hMenu);
}