Browse Source

- Added Documentation entry in Help menu

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
e6fca96d0d
  1. 2
      TODO
  2. 6
      src/GUI.cpp
  3. 1
      src/GUI.h
  4. 105
      src/MainWindow.ui

2
TODO

@ -39,7 +39,7 @@
- File selection in a torrent in compact mode??? - File selection in a torrent in compact mode???
- Windows port : http://www.peerweb.nl/qbittorrent/experimentalbuild/testing.zip - Windows port : http://www.peerweb.nl/qbittorrent/experimentalbuild/testing.zip
- Make use of QSessionManager to save application state? - Make use of QSessionManager to save application state?
- Make use of dbus on Linux for the single instance instead of socket communication - Make use of dbus on Linux for the single instance instead of socket communication?
(http://techbase.kde.org/Development/Tutorials/D-Bus/Accessing_Interfaces) (http://techbase.kde.org/Development/Tutorials/D-Bus/Accessing_Interfaces)
- Write documentation - Write documentation
- Allow the user to see when peers were blocked thanks to IPFilter. Maybe in a file in order not to spam the GUI. - Allow the user to see when peers were blocked thanks to IPFilter. Maybe in a file in order not to spam the GUI.

6
src/GUI.cpp

@ -101,7 +101,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent){
actionPreview_file->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/preview.png"))); actionPreview_file->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/preview.png")));
actionSet_upload_limit->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/seeding.png"))); actionSet_upload_limit->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/seeding.png")));
actionSet_download_limit->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/downloading.png"))); actionSet_download_limit->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/downloading.png")));
// actionDocumentation->setIcon(QIcon(QString::fromUtf8(":/Icons/help.png"))); actionDocumentation->setIcon(QIcon(QString::fromUtf8(":/Icons/help.png")));
connecStatusLblIcon = new QLabel(); connecStatusLblIcon = new QLabel();
connecStatusLblIcon->setFrameShape(QFrame::NoFrame); connecStatusLblIcon->setFrameShape(QFrame::NoFrame);
connecStatusLblIcon->setPixmap(QPixmap(QString::fromUtf8(":/Icons/skin/disconnected.png"))); connecStatusLblIcon->setPixmap(QPixmap(QString::fromUtf8(":/Icons/skin/disconnected.png")));
@ -215,6 +215,10 @@ void GUI::on_actionWebsite_triggered(){
QDesktopServices::openUrl(QUrl("http://www.qbittorrent.org")); QDesktopServices::openUrl(QUrl("http://www.qbittorrent.org"));
} }
void GUI::on_actionDocumentation_triggered(){
QDesktopServices::openUrl(QUrl("http://wiki.qbittorrent.org"));
}
void GUI::on_actionBugReport_triggered(){ void GUI::on_actionBugReport_triggered(){
QDesktopServices::openUrl(QUrl("http://bugs.qbittorrent.org")); QDesktopServices::openUrl(QUrl("http://bugs.qbittorrent.org"));
} }

1
src/GUI.h

@ -139,6 +139,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
void on_actionDelete_triggered(); void on_actionDelete_triggered();
void on_actionSet_download_limit_triggered(); void on_actionSet_download_limit_triggered();
void on_actionSet_upload_limit_triggered(); void on_actionSet_upload_limit_triggered();
void on_actionDocumentation_triggered();
void checkConnectionStatus(); void checkConnectionStatus();
void configureSession(bool deleteOptions); void configureSession(bool deleteOptions);
void processParams(const QStringList& params); void processParams(const QStringList& params);

105
src/MainWindow.ui

@ -17,12 +17,21 @@
</property> </property>
<widget class="QWidget" name="centralwidget" > <widget class="QWidget" name="centralwidget" >
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item> <item>
<widget class="QTabWidget" name="tabs" > <widget class="QTabWidget" name="tabs" >
<property name="tabPosition" > <property name="tabPosition" >
@ -36,28 +45,55 @@
<string>Downloads</string> <string>Downloads</string>
</attribute> </attribute>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item> <item>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<item> <property name="leftMargin" >
<layout class="QHBoxLayout" > <number>0</number>
<property name="margin" > </property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number> <number>0</number>
</property> </property>
<item>
<layout class="QHBoxLayout" >
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item> <item>
<spacer> <spacer>
<property name="orientation" > <property name="orientation" >
@ -252,20 +288,38 @@
</item> </item>
<item> <item>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<item> <property name="leftMargin" >
<layout class="QHBoxLayout" > <number>0</number>
<property name="margin" > </property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number> <number>0</number>
</property> </property>
<item>
<layout class="QHBoxLayout" >
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item> <item>
<widget class="QLabel" name="info_icon" > <widget class="QLabel" name="info_icon" >
<property name="minimumSize" > <property name="minimumSize" >
@ -327,9 +381,7 @@
<item> <item>
<widget class="QTextBrowser" name="infoBar" > <widget class="QTextBrowser" name="infoBar" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -390,6 +442,7 @@
<addaction name="actionAbout" /> <addaction name="actionAbout" />
<addaction name="actionBugReport" /> <addaction name="actionBugReport" />
<addaction name="actionWebsite" /> <addaction name="actionWebsite" />
<addaction name="actionDocumentation" />
</widget> </widget>
<widget class="QMenu" name="menu_File" > <widget class="QMenu" name="menu_File" >
<property name="title" > <property name="title" >
@ -425,7 +478,10 @@
</size> </size>
</property> </property>
<attribute name="toolBarArea" > <attribute name="toolBarArea" >
<number>4</number> <enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak" >
<bool>false</bool>
</attribute> </attribute>
<addaction name="actionOpen" /> <addaction name="actionOpen" />
<addaction name="actionDownload_from_URL" /> <addaction name="actionDownload_from_URL" />
@ -540,6 +596,11 @@
<string>Set download limit</string> <string>Set download limit</string>
</property> </property>
</action> </action>
<action name="actionDocumentation" >
<property name="text" >
<string>Documentation</string>
</property>
</action>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

Loading…
Cancel
Save