Beispiel #1
0
void MenuBar::addProjectMenu()
{
    QMenu *m = new QMenu(Qrc::text("menubar.project"), this);
    m->addAction(Qrc::text("menubar.project.reload"), parent(), SLOT(onMenuBarProjectReload()));
    m->addSeparator();
    m->addAction(Qrc::text("menubar.project.build"), parent(), SLOT(onMenuBarProjectBuild()), Qt::Key_F5);
    m->addSeparator();
    m->addAction(Qrc::text("menubar.project.sign_export"), parent(), SLOT(onMenuBarProjectSignExport()));
    m->addAction(Qrc::text("menubar.project.install"), parent(), SLOT(onMenuBarProjectInstall()));
    addAction(m->menuAction());
}
Beispiel #2
0
void MenuBar::addProjectMenu()
{
    QMenu *m = new QMenu(__("project", "menubar"), this);
    m->addAction(__("reload", "menubar"), parent(), SLOT(onMenuBarProjectReload()));
    m->addSeparator();
    m->addAction(__("build", "menubar"), parent(), SLOT(onMenuBarProjectBuild()), Qt::Key_F5);
    m->addSeparator();
    m->addAction(__("sign_export", "menubar"), parent(), SLOT(onMenuBarProjectSignExport()));
    m->addAction(__("install", "menubar"), parent(), SLOT(onMenuBarProjectInstall()));
    addAction(m->menuAction());
}
Beispiel #3
0
AS_NAMESPACE_START

ToolBar::ToolBar(QWidget *p)
    : QToolBar(p)
{
    addAction(Qrc::icon("toolbar_apk"), Qrc::text("toolbar.item.apk"), p, SLOT(onMenuBarFileOpenApk()));
    addAction(Qrc::icon("toolbar_dir"), Qrc::text("toolbar.item.dir"), p, SLOT(onMenuBarFileOpenDir()));
    addSeparator();
    addAction(Qrc::icon("toolbar_save"), Qrc::text("toolbar.item.save"), p, SLOT(onMenuBarFileSave()));
    addSeparator();
    addAction(Qrc::icon("toolbar_build"), Qrc::text("toolbar.item.build"), p, SLOT(onMenuBarProjectBuild()));
    addAction(Qrc::icon("toolbar_sign"), Qrc::text("toolbar.item.sign"), p, SLOT(onMenuBarProjectSignExport()));
    addSeparator();
    addAction(Qrc::icon("toolbar_terminal"), Qrc::text("toolbar.item.terminal"), p, SLOT(onMenuBarFileTerminal()));
    addAction(Qrc::icon("toolbar_settings"), Qrc::text("toolbar.item.settings"), p, SLOT(onMenuBarEditSettings()));
    setObjectName("ToolBar");
}