Browse Source

- Allow to open destination folder on double-click

adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
18ee43225e
  1. 1
      Changelog
  2. 10
      TODO
  3. 15
      qBittorrent.kdevelop
  4. 24
      src/GUI.cpp
  5. 8
      src/options.ui
  6. 4
      src/options_imp.cpp
  7. 2
      src/options_imp.h

1
Changelog

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
* Tuesday October 06 2007 - Christophe Dumez <chris@qbittorrent.org> - v1.1.0
- FEATURE: Option to start qBittorrent minimized in systray
- FEATURE: Allow to define double-click actions in torrents lists
- FEATURE: Allow to open torrent destination folder
- BUGFIX: Do not display seeds number in seeding list (always 0)
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.0.0

10
TODO

@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
- Display in torrent addition dialog:
* free disk space on selected drive
* free disk space after torrent download (and/or torrent size)
- Add "Open destination dir" on double click
- Add "Open destination dir" on right click
- Use ShareMonkey Web service (http://www.sharemonkey.com/)
// in v1.0.0 - FEATURE FREEZE
@ -56,11 +56,3 @@ @@ -56,11 +56,3 @@
// RC8
- BUGFIX: Fix destination save dir in addition dialog
rc6->rc7 changelog:
- BUGFIX: Catching DHT exception in case there is a problem
- BUGFIX: Removed build dependency on Python
- BUGFIX: Fixed a bug in children update when changing files priorities
- BUGFIX: Pause/Start All now affect all tabs, not only the current one
- BUGFIX: Don't reload all torrents everytime settings are saved
- BUGFIX: Don't reload seeding torrents anymore (no point)
- I18N: Updated Turkish translation

15
qBittorrent.kdevelop

@ -94,13 +94,12 @@ @@ -94,13 +94,12 @@
<includestyle>4</includestyle>
<designerintegration>ExternalDesigner</designerintegration>
<root>/usr/lib/qt4</root>
<qmake>/usr/bin/qmake-qt4</qmake>
<designer>/usr/bin/designer-qt4</designer>
<qmake>/usr/bin/qmake</qmake>
<designer>/usr/bin/designer</designer>
<designerpluginpaths/>
</qt>
<references>
<pcs>automatic_%2Fhome%2Fchris%2Fqbittorrent_svn%2Ftrunk</pcs>
<pcs>Qt4</pcs>
<pcs>automatic_%2Fhome%2Fishanarora%2Fprojects%2Fqbittorrent</pcs>
</references>
<codecompletion>
<automaticCodeCompletion>true</automaticCodeCompletion>
@ -149,14 +148,14 @@ @@ -149,14 +148,14 @@
</kdevfilecreate>
<kdevtrollproject>
<general>
<activedir></activedir>
<activedir>src</activedir>
</general>
<run>
<directoryradio>executable</directoryradio>
<mainprogram>/home/chris/qbittorrent_svn/trunk/src/qbittorrent</mainprogram>
<mainprogram>/home/ishanarora/projects/qbittorrent/src/qbittorrent</mainprogram>
<programargs/>
<globaldebugarguments/>
<globalcwd>/home/chris/qbittorrent_svn/trunk</globalcwd>
<globalcwd>/home/ishanarora/projects/qbittorrent</globalcwd>
<useglobalprogram>true</useglobalprogram>
<terminal>false</terminal>
<autocompile>true</autocompile>
@ -187,7 +186,7 @@ @@ -187,7 +186,7 @@
</cppsupportpart>
<ctagspart>
<customArguments/>
<customTagfilePath>/home/chris/qbittorrent_svn/trunk/tags</customTagfilePath>
<customTagfilePath>/home/ishanarora/projects/qbittorrent/tags</customTagfilePath>
<activeTagsFiles/>
</ctagspart>
<kdevdocumentation>

24
src/GUI.cpp

@ -980,26 +980,10 @@ void GUI::torrentDoubleClicked(QString hash, bool finished) { @@ -980,26 +980,10 @@ void GUI::torrentDoubleClicked(QString hash, bool finished) {
case TOGGLE_PAUSE:
this->togglePausedState(hash);
break;
case DELETE_IT: {
int ret = QMessageBox::question(
this,
tr("Are you sure? -- qBittorrent"),
tr("Are you sure you want to delete the selected item(s) from download list and from hard drive?"),
tr("&Yes"), tr("&No"),
QString(), 0, 1);
if(ret)
return;
QString fileName = h.name();
// Remove the torrent
BTSession->deleteTorrent(hash, true);
// Delete item from list
if(finished) {
finishedTorrentTab->deleteTorrent(hash);
} else {
downloadingTorrentTab->deleteTorrent(hash);
}
// Update info bar
downloadingTorrentTab->setInfoBar(tr("'%1' was removed permanently.", "'xxx.avi' was removed permanently.").arg(fileName));
case OPEN_DEST: {
QTorrentHandle h = BTSession->getTorrentHandle(hash);
QString savePath = h.save_path();
QDesktopServices::openUrl(QUrl(savePath));
break;
}
case SHOW_PROPERTIES :

8
src/options.ui

@ -610,12 +610,12 @@ @@ -610,12 +610,12 @@
</item>
<item>
<property name="text" >
<string>Delete torrent</string>
<string>Open destination folder</string>
</property>
</item>
<item>
<property name="text" >
<string>Show torrent's properties</string>
<string>Display torrent properties</string>
</property>
</item>
</widget>
@ -653,12 +653,12 @@ @@ -653,12 +653,12 @@
</item>
<item>
<property name="text" >
<string>Delete torrent</string>
<string>Open destination folder</string>
</property>
</item>
<item>
<property name="text" >
<string>Show torrent's properties</string>
<string>Display torrent properties</string>
</property>
</item>
</widget>

4
src/options_imp.cpp

@ -998,14 +998,14 @@ QString options_imp::getScanDir() const { @@ -998,14 +998,14 @@ QString options_imp::getScanDir() const {
// Return action on double-click on a downloading torrent set in options
int options_imp::getActionOnDblClOnTorrentDl() const {
if(actionTorrentDlOnDblClBox->currentIndex()<1)
return 1;
return 0;
return actionTorrentDlOnDblClBox->currentIndex();
}
// Return action on double-click on a finished torrent set in options
int options_imp::getActionOnDblClOnTorrentFn() const {
if(actionTorrentFnOnDblClBox->currentIndex()<1)
return 1;
return 0;
return actionTorrentFnOnDblClBox->currentIndex();
}

2
src/options_imp.h

@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
// actions on double-click on torrents
#define TOGGLE_PAUSE 0
#define DELETE_IT 1
#define OPEN_DEST 1
#define SHOW_PROPERTIES 2
using namespace libtorrent;

Loading…
Cancel
Save