linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #07155
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3322: Add "Open downloads directory" to the toolbar
------------------------------------------------------------
revno: 3322
committer: eMTee <emtee11@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Tue 2013-07-16 18:49:11 +0200
message:
Add "Open downloads directory" to the toolbar
modified:
help/window_main.html
win32/MainWindow.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'help/window_main.html'
--- help/window_main.html 2013-06-13 18:19:05 +0000
+++ help/window_main.html 2013-07-16 16:49:11 +0000
@@ -213,10 +213,11 @@
<a href="window_search.html" title="Search"><img src="Search.ico" width="20" height="20" alt="Search"/></a>
<a href="window_adlsearch.html" title="ADL Search"><img src="ADLSearch.ico" width="20" height="20" alt="ADL Search"/></a>
<a href="window_network_stats.html" title="Network Statistics"><img src="NetStats.ico" width="20" height="20" alt="Network Statistics"/></a>
+<a href="#tb_opendldir" title="Open downloads directory"><img src="OpenDLDir.ico" width="20" height="20" alt="Open downloads directory"/></a>
<a href="#tb_openfl" title="Open file list..."><img src="OpenFileList.ico" width="20" height="20" alt="Open file list..."/></a>
<a href="#tb_openownfl" title="Open own list"><img src="OpenOwnFileList.ico" width="20" height="20" alt="Open own list"/></a>
+<a href="#tb_refresh" title="Refresh file list"><img src="Refresh.ico" width="20" height="20" alt="Refresh file list"/></a>
<a href="#tb_recent" title="Recent windows"><img src="Recents.ico" width="20" height="20" alt="Recent windows"/></a>
-<a href="#tb_refresh" title="Refresh file list"><img src="Refresh.ico" width="20" height="20" alt="Refresh file list"/></a>
<a href="#tb_settings" title="Settings"><img src="Settings.ico" width="20" height="20" alt="Settings"/></a>
<a href="window_notepad.html" title="Notepad"><img src="Notepad.ico" width="20" height="20" alt="Notepad"/></a>
<a href="#tb_plugins" title="Plugins"><img src="Plugins.ico" width="20" height="20" alt="Plugins"/></a>
@@ -265,6 +266,11 @@
<dt>Network Statistics</dt>
<dd cshelp="IDH_TOOLBAR_NET_STATS">Open the <placeholder><a href="window_network_stats.html">Network Statistics</a></placeholder> window.</dd>
+ <dt id="tb_opendldir">Open downloads directory</dt>
+ <dd cshelp="IDH_TOOLBAR_DOWNLOADS_DIR">
+ Opens your default finished downloads folder in Windows Explorer. Useful for quick accessing your downloaded files.
+ </dd>
+
<dt id="tb_openfl">Open file list...</dt>
<dd cshelp="IDH_TOOLBAR_FILE_LIST">
Open a file list previously saved on your disk (a dialog will appear so you can pick the one you wish to open).
=== modified file 'win32/MainWindow.cpp'
--- win32/MainWindow.cpp 2013-06-03 12:14:18 +0000
+++ win32/MainWindow.cpp 2013-07-16 16:49:11 +0000
@@ -450,6 +450,8 @@
IDH_TOOLBAR_ADL_SEARCH, [this] { ADLSearchFrame::openWindow(getTabView()); });
toolbar->addButton(StatsFrame::id, WinUtil::toolbarIcon(IDI_NET_STATS), 0, T_("Network Statistics"), false,
IDH_TOOLBAR_NET_STATS, [this] { StatsFrame::openWindow(getTabView()); });
+ toolbar->addButton("OpenDlDir", WinUtil::toolbarIcon(IDI_OPEN_DL_DIR), 0, T_("Open downloads directory"), false,
+ IDH_TOOLBAR_DOWNLOADS_DIR, [this] { handleOpenDownloadsDir(); });
toolbar->addButton("OpenFL", WinUtil::toolbarIcon(IDI_OPEN_FILE_LIST), 0, T_("Open file list..."), false,
IDH_TOOLBAR_FILE_LIST, [this] { handleOpenFileList(); });
toolbar->addButton("OpenOwnFL", WinUtil::toolbarIcon(IDI_OPEN_OWN_FILE_LIST), 0, T_("Open own list"), false,
@@ -487,6 +489,7 @@
comma +
StatsFrame::id + comma +
comma +
+ "OpenDlDir" + comma +
"OpenFL" + comma +
"OpenOwnFL" + comma +
"Refresh" + comma +