summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Tibbitts <zach@collegegeek.org>2006-11-28 22:28:37 +0000
committerZach Tibbitts <zach@collegegeek.org>2006-11-28 22:28:37 +0000
commitd6dd893c7143eeeffa7668f63563f19727982e53 (patch)
treee96e31103c53800c20e91db363e3d6f1337d8545
parent64bf0823085affc681a9eebf09ec44c25aa3fc7b (diff)
downloaddeluge-d6dd893c7143eeeffa7668f63563f19727982e53.tar.gz
deluge-d6dd893c7143eeeffa7668f63563f19727982e53.tar.bz2
deluge-d6dd893c7143eeeffa7668f63563f19727982e53.zip
basic work, gui runs
-rw-r--r--dcommon.py25
-rw-r--r--deluge.py13
-rwxr-xr-xdelugegtk.py59
-rw-r--r--glade/delugegtk.glade972
4 files changed, 583 insertions, 486 deletions
diff --git a/dcommon.py b/dcommon.py
new file mode 100644
index 000000000..6c479fec1
--- /dev/null
+++ b/dcommon.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python2.4
+#
+# Deluge common class
+# For functions and variables that
+# need to be accessed globally.
+
+import sys, os, webbrowser
+
+PROGRAM_NAME = "Deluge Torrent"
+PROGRAM_VERSION = "0.5"
+DELUGE_DIR = os.path.abspath(os.path.dirname(sys.argv[0]))
+GLADE_DIR = DELUGE_DIR + "/glade"
+PIXMAP_DIR = DELUGE_DIR + "/pixmaps"
+
+def get_glade_file(fname):
+ return GLADE_DIR + "/" + fname
+
+def get_pixmap(fname):
+ return PIXMAP_DIR + "/" + fname
+
+def open_url_in_browser(dialog, link):
+ try:
+ webbrowser.open(link)
+ except webbrowser.Error:
+ print "Error: no webbrowser found" \ No newline at end of file
diff --git a/deluge.py b/deluge.py
new file mode 100644
index 000000000..c718d357c
--- /dev/null
+++ b/deluge.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python2.4
+#
+# Deluge backend
+# A daemonized backend for
+# Deluge in order to allow
+# for multiple frontends
+
+
+
+
+class Deluge:
+ def __init__(self):
+ pass \ No newline at end of file
diff --git a/delugegtk.py b/delugegtk.py
new file mode 100755
index 000000000..189704d6c
--- /dev/null
+++ b/delugegtk.py
@@ -0,0 +1,59 @@
+#!/usr/bin/env python2.4
+#
+# Deluge common class
+# For functions and variables that
+# need to be accessed globally.
+
+import deluge, dcommon
+
+import sys, os, gettext
+import pygtk
+pygtk.require('2.0')
+import gtk
+import gtk.glade
+
+
+class DelugeGTK:
+ def __init__(self):
+ self.gladefile = dcommon.get_glade_file("delugegtk.glade")
+ self.wtree = gtk.glade.XML(self.gladefile)
+ self.window = self.wtree.get_widget("main_window")
+ if(self.window):
+ self.window.connect("destroy", gtk.main_quit)
+ self.window.set_icon_from_file(dcommon.get_pixmap("deluge32.png"))
+ actions = {
+ ## File Menu
+ "new_torrent": self.new_torrent,
+ "add_torrent": self.add_torrent,
+ ## Help Menu
+ "show_about_dialog": self.show_about_dialog,
+ }
+ self.wtree.signal_autoconnect(actions)
+
+ ## Create the about dialog
+ gtk.about_dialog_set_url_hook(dcommon.open_url_in_browser)
+ self.abt = gtk.AboutDialog()
+ self.abt.set_name(dcommon.PROGRAM_NAME)
+ self.abt.set_version(dcommon.PROGRAM_VERSION)
+ self.abt.set_website("http://deluge-torrent.org")
+ self.abt.set_icon_from_file(dcommon.get_pixmap("deluge32.png"))
+ self.abt.set_logo(gtk.gdk.pixbuf_new_from_file(
+ dcommon.get_pixmap("deluge256.png")))
+
+
+
+ def new_torrent(self, obj):
+ pass
+
+ def add_torrent(self, obj):
+ pass
+
+ def show_about_dialog(self, obj):
+ self.abt.show_all()
+ self.abt.run()
+ self.abt.hide_all()
+
+
+if __name__ == "__main__":
+ dgtk = DelugeGTK()
+ gtk.main() \ No newline at end of file
diff --git a/glade/delugegtk.glade b/glade/delugegtk.glade
index ca84cbfb9..ce09bf270 100644
--- a/glade/delugegtk.glade
+++ b/glade/delugegtk.glade
@@ -14,17 +14,373 @@
<property name="n_rows">4</property>
<property name="n_columns">3</property>
<child>
- <widget class="GtkStatusbar" id="statusbar1">
+ <widget class="GtkToolbar" id="tb_middle">
<property name="visible">True</property>
+ <property name="toolbar_style">GTK_TOOLBAR_BOTH_HORIZ</property>
+ </widget>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="y_options">GTK_FILL</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkToolbar" id="tb_left">
+ <property name="visible">True</property>
+ <property name="toolbar_style">GTK_TOOLBAR_BOTH_HORIZ</property>
+ <property name="show_arrow">False</property>
+ <child>
+ <widget class="GtkToolButton" id="toolbutton1">
+ <property name="visible">True</property>
+ <property name="label">Add Torrent</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-add</property>
+ <property name="tooltip" translatable="yes">Add Torrent</property>
+ <signal name="clicked" handler="add_torrent"/>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkToolButton" id="toolbutton_remove">
+ <property name="visible">True</property>
+ <property name="label">Remove Torrent</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-remove</property>
+ <property name="tooltip" translatable="yes">Remove Torrent</property>
+ <signal name="clicked" handler="remove_torrent"/>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkSeparatorToolItem" id="toolbutton6">
+ <property name="visible">True</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkToolButton" id="toolbutton_update">
+ <property name="visible">True</property>
+ <property name="label">Update Tracker</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-refresh</property>
+ <property name="tooltip" translatable="yes">Update Tracker</property>
+ <signal name="clicked" handler="update_tracker"/>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkToolButton" id="toolbutton3">
+ <property name="visible">True</property>
+ <property name="label">Clear Finished</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-clear</property>
+ <property name="tooltip" translatable="yes">Clear Finished Torrents</property>
+ <signal name="clicked" handler="clear_finished"/>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkSeparatorToolItem" id="separatortoolitem1">
+ <property name="visible">True</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkToolButton" id="toolbutton_pause">
+ <property name="visible">True</property>
+ <property name="label">Force Pause/Resume Torrent</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-media-pause</property>
+ <property name="tooltip" translatable="yes">Force Pause/Resume Torrent</property>
+ <signal name="clicked" handler="pause_torrent"/>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkSeparatorToolItem" id="separatortoolitem2">
+ <property name="visible">True</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkToolButton" id="toolbutton_up">
+ <property name="visible">True</property>
+ <property name="label">Move Up</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-go-up</property>
+ <property name="tooltip" translatable="yes">Queue Torrent Up</property>
+ <signal name="clicked" handler="torrent_up"/>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkToolButton" id="toolbutton_down">
+ <property name="visible">True</property>
+ <property name="label">Move Down</property>
+ <property name="use_underline">True</property>
+ <property name="stock_id">gtk-go-down</property>
+ <property name="tooltip" translatable="yes">Queue Torrent Down</property>
+ <signal name="clicked" handler="torrent_down"/>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options"></property>
+ <property name="y_options">GTK_FILL</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkMenuBar" id="menubar1">
+ <property name="visible">True</property>
+ <child>
+ <widget class="GtkMenuItem" id="menu_file">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_File</property>
+ <property name="use_underline">True</property>
+ <child>
+ <widget class="GtkMenu" id="menuitem1_menu">
+ <child>
+ <widget class="GtkImageMenuItem" id="menuitem1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Create a Torrent</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="new_torrent"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="menu-item-image10">
+ <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK</property>
+ <property name="stock">gtk-new</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="menu_addtorrent1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Add a Torrent...</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="add_torrent"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image27">
+ <property name="visible">True</property>
+ <property name="stock">gtk-add</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="menu_removetorrent">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Remove selected Torrent</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="remove_torrent"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image28">
+ <property name="visible">True</property>
+ <property name="stock">gtk-remove</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkSeparatorMenuItem" id="separatormenuitem1">
+ <property name="visible">True</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="menuitem9">
+ <property name="visible">True</property>
+ <property name="label">gtk-preferences</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">True</property>
+ <signal name="activate" handler="pref_clicked"/>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="plugins1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_Manage Plugins</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="manageplugins_clicked"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="menu-item-image8">
+ <property name="visible">True</property>
+ <property name="stock">gtk-disconnect</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkSeparatorMenuItem" id="separatormenuitem4">
+ <property name="visible">True</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="imagemenuitem1">
+ <property name="visible">True</property>
+ <property name="label">gtk-quit</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">True</property>
+ <signal name="activate" handler="menu_quit"/>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkMenuItem" id="menu_torrent">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_Torrent</property>
+ <property name="use_underline">True</property>
+ <child>
+ <widget class="GtkMenu" id="menu1">
+ <property name="visible">True</property>
+ <child>
+ <widget class="GtkCheckMenuItem" id="menushowinfo">
+ <property name="visible">True</property>
+ <property name="active">True</property>
+ <property name="label" translatable="yes">Show Info Pane</property>
+ <property name="use_underline">True</property>
+ <signal name="toggled" handler="show_info_pane_clicked"/>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkSeparatorMenuItem" id="separatormenuitem3">
+ <property name="visible">True</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="menu_q_to_bottom">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Queue to Bottom</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="torrent_bottom"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="menu-item-image9">
+ <property name="visible">True</property>
+ <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK</property>
+ <property name="stock">gtk-goto-bottom</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkSeparatorMenuItem" id="separatormenuitem5">
+ <property name="visible">True</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="menu_update_tracker">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_Update Tracker</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="update_tracker"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image29">
+ <property name="visible">True</property>
+ <property name="stock">gtk-refresh</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="menuitem5">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Clear Finished</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="clear_finished"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image30">
+ <property name="visible">True</property>
+ <property name="stock">gtk-clear</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkMenuItem" id="menu_help">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_Help</property>
+ <property name="use_underline">True</property>
+ <child>
+ <widget class="GtkMenu" id="menuitem2_menu">
+ <child>
+ <widget class="GtkImageMenuItem" id="menu_forums">
+ <property name="visible">True</property>
+ <property name="tooltip" translatable="yes">Open the online support forums in your web browser</property>
+ <property name="label" translatable="yes">Deluge Support _Forums</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="open_forums"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image31">
+ <property name="visible">True</property>
+ <property name="stock">gtk-network</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="menuitem3">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Translate This Application...</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="translate"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image32">
+ <property name="visible">True</property>
+ <property name="stock">gtk-edit</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkSeparatorMenuItem" id="separatormenuitem2">
+ <property name="visible">True</property>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="menuitem4">
+ <property name="visible">True</property>
+ <property name="label">gtk-about</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">True</property>
+ <signal name="activate" handler="show_about_dialog"/>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
</widget>
<packing>
<property name="right_attach">3</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
<property name="y_options"></property>
</packing>
</child>
<child>
+ <widget class="GtkToolbar" id="tb_right">
+ <property name="visible">True</property>
+ <property name="toolbar_style">GTK_TOOLBAR_BOTH_HORIZ</property>
+ <property name="show_arrow">False</property>
+ </widget>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options"></property>
+ <property name="y_options">GTK_FILL</property>
+ </packing>
+ </child>
+ <child>
<widget class="GtkVPaned" id="vpaned1">
<property name="visible">True</property>
<child>
@@ -73,156 +429,173 @@
<placeholder/>
</child>
<child>
- <widget class="GtkLabel" id="summary_title">
+ <widget class="GtkLabel" id="summary_compact_allocation">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="use_markup">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
- <property name="right_attach">4</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">8</property>
+ <property name="bottom_attach">9</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label177">
+ <widget class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Total Size:&lt;/b&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Use compact storage allocation:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="top_attach">8</property>
+ <property name="bottom_attach">9</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label2">
+ <widget class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Total Downloaded:&lt;/b&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Name:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="summary_tracker_response">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ </widget>
<packing>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">4</property>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label3">
+ <widget class="GtkLabel" id="summary_tracker">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Percentage Done:&lt;/b&gt;</property>
- <property name="use_markup">True</property>
</widget>
<packing>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">4</property>
+ <property name="top_attach">5</property>
+ <property name="bottom_attach">6</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label4">
+ <widget class="GtkLabel" id="summary_uploaded_this_session">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Downloaded this session:&lt;/b&gt;</property>
- <property name="use_markup">True</property>
</widget>
<packing>
+ <property name="left_attach">3</property>
+ <property name="right_attach">4</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_total_size">
+ <widget class="GtkLabel" id="summary_share_ratio">
<property name="visible">True</property>
<property name="xalign">0</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="left_attach">3</property>
+ <property name="right_attach">4</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_total_downloaded">
+ <widget class="GtkLabel" id="label19">
<property name="visible">True</property>
<property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Uploaded This Session:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">4</property>
+ <property name="bottom_attach">5</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_percentage_done">
+ <widget class="GtkLabel" id="label18">
<property name="visible">True</property>
<property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Share Ratio:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_downloaded_this_session">
+ <widget class="GtkLabel" id="summary_total_uploaded">
<property name="visible">True</property>
<property name="xalign">0</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
+ <property name="left_attach">3</property>
+ <property name="right_attach">4</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label9">
+ <widget class="GtkLabel" id="summary_pieces">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Tracker:&lt;/b&gt;</property>
- <property name="use_markup">True</property>
</widget>
<packing>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
+ <property name="left_attach">3</property>
+ <property name="right_attach">4</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label10">
+ <widget class="GtkLabel" id="label15">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Tracker Response:&lt;/b&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Total Uploaded:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label11">
+ <widget class="GtkLabel" id="label14">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Tracker Status:&lt;/b&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Pieces:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
- <property name="top_attach">7</property>
- <property name="bottom_attach">8</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_tracker_status">
+ <widget class="GtkLabel" id="summary_next_announce">
<property name="visible">True</property>
<property name="xalign">0</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
+ <property name="left_attach">3</property>
+ <property name="right_attach">4</property>
<property name="top_attach">7</property>
<property name="bottom_attach">8</property>
</packing>
@@ -242,175 +615,158 @@
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_next_announce">
+ <widget class="GtkLabel" id="summary_tracker_status">
<property name="visible">True</property>
<property name="xalign">0</property>
</widget>
<packing>
- <property name="left_attach">3</property>
- <property name="right_attach">4</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">7</property>
<property name="bottom_attach">8</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label14">
+ <widget class="GtkLabel" id="label11">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Pieces:&lt;/b&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Tracker Status:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="top_attach">7</property>
+ <property name="bottom_attach">8</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label15">
+ <widget class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Total Uploaded:&lt;/b&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Tracker Response:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_pieces">
+ <widget class="GtkLabel" id="label9">
<property name="visible">True</property>
<property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Tracker:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">3</property>
- <property name="right_attach">4</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="top_attach">5</property>
+ <property name="bottom_attach">6</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_total_uploaded">
+ <widget class="GtkLabel" id="summary_downloaded_this_session">
<property name="visible">True</property>
<property name="xalign">0</property>
</widget>
<packing>
- <property name="left_attach">3</property>
- <property name="right_attach">4</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">4</property>
+ <property name="bottom_attach">5</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label18">
+ <widget class="GtkLabel" id="summary_percentage_done">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Share Ratio:&lt;/b&gt;</property>
- <property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label19">
+ <widget class="GtkLabel" id="summary_total_downloaded">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Uploaded This Session:&lt;/b&gt;</property>
- <property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_share_ratio">
+ <widget class="GtkLabel" id="summary_total_size">
<property name="visible">True</property>
<property name="xalign">0</property>
</widget>
<packing>
- <property name="left_attach">3</property>
- <property name="right_attach">4</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_uploaded_this_session">
+ <widget class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Downloaded this session:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">3</property>
- <property name="right_attach">4</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_tracker">
+ <widget class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Percentage Done:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">4</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_tracker_response">
+ <widget class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="xalign">0</property>
+ <property name="label" translatable="yes">&lt;b&gt;Total Downloaded:&lt;/b&gt;</property>
+ <property name="use_markup">True</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">4</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label5">
- <property name="visible">True</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Name:&lt;/b&gt;</property>
- <property name="use_markup">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkLabel" id="label6">
+ <widget class="GtkLabel" id="label177">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">&lt;b&gt;Use compact storage allocation:&lt;/b&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Total Size:&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
- <property name="top_attach">8</property>
- <property name="bottom_attach">9</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="summary_compact_allocation">
+ <widget class="GtkLabel" id="summary_title">
<property name="visible">True</property>
<property name="xalign">0</property>
+ <property name="use_markup">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">8</property>
- <property name="bottom_attach">9</property>
+ <property name="right_attach">4</property>
</packing>
</child>
</widget>
@@ -506,372 +862,16 @@
</packing>
</child>
<child>
- <widget class="GtkToolbar" id="tb_right">
- <property name="visible">True</property>
- <property name="toolbar_style">GTK_TOOLBAR_BOTH_HORIZ</property>
- <property name="show_arrow">False</property>
- </widget>
- <packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options"></property>
- <property name="y_options">GTK_FILL</property>
- </packing>
- </child>
- <child>
- <widget class="GtkMenuBar" id="menubar1">
+ <widget class="GtkStatusbar" id="statusbar1">
<property name="visible">True</property>
- <child>
- <widget class="GtkMenuItem" id="menu_file">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_File</property>
- <property name="use_underline">True</property>
- <child>
- <widget class="GtkMenu" id="menuitem1_menu">
- <child>
- <widget class="GtkImageMenuItem" id="menu_addtorrent1">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Add a Torrent from File...</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="add_torrent"/>
- <child internal-child="image">
- <widget class="GtkImage" id="image27">
- <property name="visible">True</property>
- <property name="stock">gtk-add</property>
- <property name="icon_size">1</property>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="menuitem8">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Add a Torrent from URL...</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="add_torrent_url"/>
- <child internal-child="image">
- <widget class="GtkImage" id="menu-item-image11">
- <property name="visible">True</property>
- <property name="stock">gtk-add</property>
- <property name="icon_size">1</property>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="menu_removetorrent">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Remove selected Torrent</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="remove_torrent"/>
- <child internal-child="image">
- <widget class="GtkImage" id="image28">
- <property name="visible">True</property>
- <property name="stock">gtk-remove</property>
- <property name="icon_size">1</property>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkSeparatorMenuItem" id="separatormenuitem1">
- <property name="visible">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="menuitem9">
- <property name="visible">True</property>
- <property name="label">gtk-preferences</property>
- <property name="use_underline">True</property>
- <property name="use_stock">True</property>
- <signal name="activate" handler="pref_clicked"/>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="plugins1">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Manage Plugins</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="manageplugins_clicked"/>
- <child internal-child="image">
- <widget class="GtkImage" id="menu-item-image8">
- <property name="visible">True</property>
- <property name="stock">gtk-disconnect</property>
- <property name="icon_size">1</property>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkSeparatorMenuItem" id="separatormenuitem4">
- <property name="visible">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="imagemenuitem1">
- <property name="visible">True</property>
- <property name="label">gtk-quit</property>
- <property name="use_underline">True</property>
- <property name="use_stock">True</property>
- <signal name="activate" handler="menu_quit"/>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkMenuItem" id="menu_torrent">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Torrent</property>
- <property name="use_underline">True</property>
- <child>
- <widget class="GtkMenu" id="menu1">
- <property name="visible">True</property>
- <child>
- <widget class="GtkCheckMenuItem" id="menushowinfo">
- <property name="visible">True</property>
- <property name="active">True</property>
- <property name="label" translatable="yes">Show Info Pane</property>
- <property name="use_underline">True</property>
- <signal name="toggled" handler="show_info_pane_clicked"/>
- </widget>
- </child>
- <child>
- <widget class="GtkSeparatorMenuItem" id="separatormenuitem3">
- <property name="visible">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="menu_q_to_bottom">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Queue to Bottom</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="torrent_bottom"/>
- <child internal-child="image">
- <widget class="GtkImage" id="menu-item-image9">
- <property name="visible">True</property>
- <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK</property>
- <property name="stock">gtk-goto-bottom</property>
- <property name="icon_size">1</property>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkSeparatorMenuItem" id="separatormenuitem5">
- <property name="visible">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="menu_update_tracker">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Update Tracker</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="update_tracker"/>
- <child internal-child="image">
- <widget class="GtkImage" id="image29">
- <property name="visible">True</property>
- <property name="stock">gtk-refresh</property>
- <property name="icon_size">1</property>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="menuitem5">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Clear Finished</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="clear_finished"/>
- <child internal-child="image">
- <widget class="GtkImage" id="image30">
- <property name="visible">True</property>
- <property name="stock">gtk-clear</property>
- <property name="icon_size">1</property>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkMenuItem" id="menu_help">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Help</property>
- <property name="use_underline">True</property>
- <child>
- <widget class="GtkMenu" id="menuitem2_menu">
- <child>
- <widget class="GtkImageMenuItem" id="menu_forums">
- <property name="visible">True</property>
- <property name="tooltip" translatable="yes">Open the online support forums in your web browser</property>
- <property name="label" translatable="yes">Deluge Support _Forums</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="open_forums"/>
- <child internal-child="image">
- <widget class="GtkImage" id="image31">
- <property name="visible">True</property>
- <property name="stock">gtk-network</property>
- <property name="icon_size">1</property>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="menuitem3">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Translate This Application...</property>
- <property name="use_underline">True</property>
- <signal name="activate" handler="translate"/>
- <child internal-child="image">
- <widget class="GtkImage" id="image32">
- <property name="visible">True</property>
- <property name="stock">gtk-edit</property>
- <property name="icon_size">1</property>
- </widget>
- </child>
- </widget>
- </child>
- <child>
- <widget class="GtkSeparatorMenuItem" id="separatormenuitem2">
- <property name="visible">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkImageMenuItem" id="menuitem4">
- <property name="visible">True</property>
- <property name="label">gtk-about</property>
- <property name="use_underline">True</property>
- <property name="use_stock">True</property>
- <signal name="activate" handler="show_about_dialog"/>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- </child>
</widget>
<packing>
<property name="right_attach">3</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
<property name="y_options"></property>
</packing>
</child>
- <child>
- <widget class="GtkToolbar" id="tb_left">
- <property name="visible">True</property>
- <property name="toolbar_style">GTK_TOOLBAR_BOTH_HORIZ</property>
- <property name="show_arrow">False</property>
- <child>
- <widget class="GtkToolButton" id="toolbutton1">
- <property name="visible">True</property>
- <property name="label">Add Torrent</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-add</property>
- <property name="tooltip" translatable="yes">Add Torrent</property>
- <signal name="clicked" handler="add_torrent"/>
- </widget>
- </child>
- <child>
- <widget class="GtkToolButton" id="toolbutton_remove">
- <property name="visible">True</property>
- <property name="label">Remove Torrent</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-remove</property>
- <property name="tooltip" translatable="yes">Remove Torrent</property>
- <signal name="clicked" handler="remove_torrent"/>
- </widget>
- </child>
- <child>
- <widget class="GtkSeparatorToolItem" id="toolbutton6">
- <property name="visible">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkToolButton" id="toolbutton_update">
- <property name="visible">True</property>
- <property name="label">Update Tracker</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-refresh</property>
- <property name="tooltip" translatable="yes">Update Tracker</property>
- <signal name="clicked" handler="update_tracker"/>
- </widget>
- </child>
- <child>
- <widget class="GtkToolButton" id="toolbutton3">
- <property name="visible">True</property>
- <property name="label">Clear Finished</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-clear</property>
- <property name="tooltip" translatable="yes">Clear Finished Torrents</property>
- <signal name="clicked" handler="clear_finished"/>
- </widget>
- </child>
- <child>
- <widget class="GtkSeparatorToolItem" id="separatortoolitem1">
- <property name="visible">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkToolButton" id="toolbutton_pause">
- <property name="visible">True</property>
- <property name="label">Force Pause/Resume Torrent</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-media-pause</property>
- <property name="tooltip" translatable="yes">Force Pause/Resume Torrent</property>
- <signal name="clicked" handler="pause_torrent"/>
- </widget>
- </child>
- <child>
- <widget class="GtkSeparatorToolItem" id="separatortoolitem2">
- <property name="visible">True</property>
- </widget>
- </child>
- <child>
- <widget class="GtkToolButton" id="toolbutton_up">
- <property name="visible">True</property>
- <property name="label">Move Up</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-go-up</property>
- <property name="tooltip" translatable="yes">Queue Torrent Up</property>
- <signal name="clicked" handler="torrent_up"/>
- </widget>
- </child>
- <child>
- <widget class="GtkToolButton" id="toolbutton_down">
- <property name="visible">True</property>
- <property name="label">Move Down</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-go-down</property>
- <property name="tooltip" translatable="yes">Queue Torrent Down</property>
- <signal name="clicked" handler="torrent_down"/>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options"></property>
- <property name="y_options">GTK_FILL</property>
- </packing>
- </child>
- <child>
- <widget class="GtkToolbar" id="tb_middle">
- <property name="visible">True</property>
- <property name="toolbar_style">GTK_TOOLBAR_BOTH_HORIZ</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="y_options">GTK_FILL</property>
- </packing>
- </child>
</widget>
</child>
</widget>