From 20cc6ff7d22dc51b4d99116927922ea85e6911f2 Mon Sep 17 00:00:00 2001 From: Surendra kumar Date: Mon, 19 Mar 2018 10:14:57 +0530 Subject: [PATCH] Added Browse Files under Project menu Current project files can be browsed from menu - Project > Browse Files --- include/ide.h | 1 + res/lang/en.ts | 4 ++++ src/ide.cpp | 6 ++++++ src/menubar.cpp | 2 ++ 4 files changed, 13 insertions(+) diff --git a/include/ide.h b/include/ide.h index 2c58354..5b8346c 100644 --- a/include/ide.h +++ b/include/ide.h @@ -73,6 +73,7 @@ public Q_SLOTS: void onMenuBarProjectReload(); void onMenuBarProjectSignExport(); void onToolBarProjectSign(); + void onMenuBarProjectBrowseFiles(); void onOpenApk(const QString &apk); void onOpenDir(const QString &project); void onRunnableStarted(); diff --git a/res/lang/en.ts b/res/lang/en.ts index 0585403..5faefbc 100644 --- a/res/lang/en.ts +++ b/res/lang/en.ts @@ -306,6 +306,10 @@ install Install + + browse + Browse Files + messages diff --git a/src/ide.cpp b/src/ide.cpp index 0e7e075..6056aaf 100644 --- a/src/ide.cpp +++ b/src/ide.cpp @@ -368,6 +368,12 @@ void Ide::onMenuBarProjectSignExport() } } +void Ide::onMenuBarProjectBrowseFiles() +{ + + FileUtils::show(_project + "/"); +} + void Ide::onToolBarProjectSign() { diff --git a/src/menubar.cpp b/src/menubar.cpp index 2ba53ed..19c66de 100644 --- a/src/menubar.cpp +++ b/src/menubar.cpp @@ -78,6 +78,8 @@ void MenuBar::addProjectMenu() m->addSeparator(); m->addAction(__("sign_export", "menubar"), parent(), SLOT(onMenuBarProjectSignExport())); m->addAction(__("install", "menubar"), parent(), SLOT(onMenuBarProjectInstall())); + m->addSeparator(); + m->addAction(__("browse", "menubar"), parent(), SLOT(onMenuBarProjectBrowseFiles())); addAction(m->menuAction()); }