Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Commit

Permalink
Added Browse Files under Project menu
Browse files Browse the repository at this point in the history
Current project files can be browsed from menu
- Project > Browse Files
  • Loading branch information
Surendrajat committed Mar 19, 2018
1 parent 53a471c commit 20cc6ff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 4 additions & 0 deletions res/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@
<source>install</source>
<translation>Install</translation>
</message>
<message>
<source>browse</source>
<translation>Browse Files</translation>
</message>
</context>
<context>
<name>messages</name>
Expand Down
6 changes: 6 additions & 0 deletions src/ide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@ void Ide::onMenuBarProjectSignExport()
}
}

void Ide::onMenuBarProjectBrowseFiles()
{

FileUtils::show(_project + "/");
}

void Ide::onToolBarProjectSign()
{

Expand Down
2 changes: 2 additions & 0 deletions src/menubar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 20cc6ff

Please sign in to comment.