Add copy hash to clipboard stuff
[doldaconnect.git] / clients / gtk2 / mainwnd.desc
CommitLineData
d3372da9 1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#endif
4;prefix: main_
5;hasaccels: y
6;hascolumns: y
7;hasrenderers: y
2e8363c8 8:menu name: srpopup var: y
a2e3d687 9 $menuitem name: srhash label: "Search for this hash" sig: activate var: y
07644ebe 10 $menuitem name: srcopy label: "Copy this hash to clipboard" sig: activate var: y
2e8363c8 11end
12:menu name: trpopup var: y
a2e3d687 13 $menuitem name: trhash label: "Search for this hash" sig: activate var: y
07644ebe 14 $menuitem name: trcopy label: "Copy this hash to clipboard" sig: activate var: y
a2e3d687 15 $menuitem name: trcancel label: "Cancel transfer" sig: activate
2e8363c8 16end
d3372da9 17:wnd name: wnd title: "Dolda Connect" var: y sig(delete_event):initdeath
18 :vbox
19 :menubar
20 :menuitem label: _Main
21 :menu
22 $menuitem name: connmenu label: _Connect sig: activate accel: "CONTROL+C" var: y
23 $menuitem name: dconnmenu label: _Disconnect sig: activate accel: "CONTROL+D" var: y sensitive: FALSE
24 $menusep
25 $menuitem name: sdmenu label: "_Shut down daemon" sig: activate
26 $smenuitem stock: QUIT sig(activate):initdeath
27 end
28 end
29 :menuitem label: Op_tions
30 :menu
31 $smenuitem name: prefmenu stock: PREFERENCES sig: activate
32 end
33 end
34 end
35 :vpaned name: pane1 var: y expand: TRUE fill: TRUE resize: 1
36 :notebook
37 :vpaned name: pane2 var: y nblabel: "_Hub connections" resize: 2
38 :vbox
39 $mlbl label: "Connected hu_bs" mwidget: fnetnodes
40 :sw expand: TRUE fill: TRUE
41 :treeview name: fnetnodes var: y rules: TRUE
42 :tvcol title: "Hub name" sortcol: 1 resizable: TRUE
43 $pixbufrend stock_id: 4
44 $textrend text: 1
45 end
46 $tvcol title: "# users" text: 3 sortcol: 3 resizable: TRUE
47 end
48 end
49 $btn name: dcnctbtn label: "D_isconnect" sig: clicked
50 end
51 :vbox
52 $mlbl label: "_Public hub list" mwidget: phublist
53 :sw expand: TRUE fill: TRUE
54 :treeview name: phublist var: y rules: TRUE searchcol: 0 sig(cursor-changed): cb_main_phublist_cchange sig(row-activated): cb_main_phublist_activate
55 $tvcol title: "# users" text: 3 sortcol: 3 resizable: TRUE
56 $tvcol title: "Name" text: 0 sortcol: 0 resizable: TRUE
57 $tvcol title: "Description" text: 2 sortcol: 2 resizable: TRUE
58 end
59 end
60 :table rows: 2 cols: 3 fill: TRUE
61 $mlbl label: "_Filter:" tx: 0 ty: 0 mwidget: pubhubfilter
62 $text name: pubhubfilter var: y expand: y fill: y sig: activate tx: 1 ty: 0
63 $btn label: "_Get public hub list" sig(clicked): cb_main_pubhubfilter_activate tx: 2 ty: 0
64 $mlbl label: "_Address:" tx: 0 ty: 1 mwidget: fnaddr
65 $text name: fnaddr var: y expand: y fill: y sig: activate tx: 1 ty: 1
66 $btn label: "C_onnect" sig(clicked): cb_main_fnaddr_activate tx: 2 ty: 1
67 end
68 end
69 end
70 :vpaned name: pane3 var: y nblabel: "_Chat" resize: 2
71 :vbox
72 $mlbl label: "Hu_bs" mwidget: chatnodes
73 :sw fill: TRUE expand: TRUE
74 :treeview name: chatnodes var: y rules: TRUE sig(row-activated): cb_main_chatnodes_activate
75 :tvcol title: "Hub name" sortcol: 1
76 $pixbufrend stock_id: 5
77 $textrend text: 1
78 end
79 end
80 end
81 end
82 :vbox
83 :sw fill: TRUE expand: TRUE
84 $textview name: chatview var: y editable: FALSE
85 end
86 :hbox
87 $mlbl label: "Chat st_ring:" mwidget: chatstr
88 $text name: chatstr var: y expand: TRUE fill: TRUE sig: activate
89 $btn label: "S_end" sig(clicked): cb_main_chatstr_activate
90 end
91 end
92 end
93 :vbox nblabel: "_Search"
94 :hbox
95 $mlbl label: "S_imple search:" mwidget: simplesrch
96 $text name: simplesrch var: y expand: TRUE fill: TRUE sig: changed sig(activate): cb_main_srchbtn_clicked
97 $btn name: srchbtn var: y label: "S_earch" sig: clicked
98 $btn name: srchcanbtn var: y label: "C_ancel" sig: clicked sensitive: FALSE
99 end
100 $chk name: filternoslots var: y label: "Displa_y results with free slots only" sig: toggled
101 :exp label: "Ad_vanced" name: advexp var: y
102 :table rows: 2 cols: 2
103 $mlbl tx: 0 ty: 0 label: "C_omplete search expression:" mwidget: realsrch
104 $text tx: 1 ty: 0 name: realsrch var: y expand: y fill: y sig: changed sig(activate): cb_main_srchbtn_clicked
105 $mlbl tx: 0 ty: 1 label: "Filter ar_gument:" mwidget: dlarg
106 $text tx: 1 ty: 1 name: dlarg var: y expand: y fill: y
107 end
108 end
109 $lbl name: srchstatus var: y label: "Ready to search" fill: TRUE
110 $hr pad: 5
111 $mlbl label: "Search _results:" mwidget: srchres
112 :sw expand: TRUE fill: TRUE
2e8363c8 113 :treeview name: srchres var: y rules: TRUE searchcol: 3 sig(row-activated): cb_main_srchres_activate sig(popup-menu): cb_main_srpopup sig(button-release-event): cb_main_srpopup
d3372da9 114 :tvcol title: "#" sortcol: 7 resizable: FALSE
115 $textrend func: hidezerofunc funcdata: "(gpointer)7"
116 end
117 $tvcol title: "Peer name" text: 2 sortcol: 2 resizable: TRUE
118 $tvcol title: "File name" text: 3 sortcol: 3 resizable: TRUE expander: y
119 :tvcol title: "Size" sortcol: 4 resizable: TRUE
120 $textrend func: transnicebytefunc funcdata: "(gpointer)4"
121 end
122 $tvcol title: "Slots" text: 5 sortcol: 5 resizable: TRUE
123 :tvcol title: "Known speed" sortcol: 8 resizable: TRUE
124 $textrend func: speedtimefunc
125 end
126 $tvcol title: "Rsp. time" text: 6 sortcol: 6 resizable: TRUE
2e8363c8 127 $tvcol title: "Hash" text: 9 sortcol: 9 resizable: TRUE
d3372da9 128 end
129 end
130 end
131 end
132 :notebook
133 :vbox nblabel: "_Downloads"
134 $mlbl label: "_List of downloads:" mwidget: downloads
135 :sw fill: TRUE expand: TRUE
2e8363c8 136 :treeview name: downloads var: y sig(key-press-event): cb_main_trlist_keypress sig(popup-menu): cb_main_trpopup sig(button-release-event): cb_main_trpopup
d3372da9 137 :tvcol title: "User Name"
138 $pixbufrend stock_id: 8
139 $textrend text: 4
140 end
141 $tvcol title: "File Name" text: 5
142 :tvcol title: "Size"
143 $textrend func: transnicebytefunc funcdata: "(gpointer)6"
144 end
145 :tvcol title: "Position"
146#ifdef ENABLE_GTK2PBAR
147 $custrend newfunc: custom_cell_renderer_progress_new attr(percentage): 9
148#else
149 $textrend func: percentagefunc funcdata: "(gpointer)9" expand: FALSE
150#endif
151 $textrend func: transnicebytefunc funcdata: "(gpointer)7"
152 end
153 :tvcol title: "Error"
154 $textrend func: transerrorinfo
155 end
2e8363c8 156 $tvcol title: "Hash" text: 12
d3372da9 157 end
158 end
159 end
160 :vbox nblabel: "_Uploads"
161 $mlbl label: "_List of uploads:" mwidget: uploads
162 :sw fill: TRUE expand: TRUE
163 :treeview name: uploads var: y sig(key-press-event): cb_main_trlist_keypress
164 :tvcol title: "User Name"
165 $pixbufrend stock_id: 8
166 $textrend text: 4
167 end
168 $tvcol title: "File Name" text: 5
169 :tvcol title: "Size"
170 $textrend func: transnicebytefunc funcdata: "(gpointer)6"
171 end
172 :tvcol title: "Position"
173#ifdef ENABLE_GTK2PBAR
174 $custrend newfunc: custom_cell_renderer_progress_new attr(percentage): 9
175#else
176 $textrend func: percentagefunc funcdata: "(gpointer)9" expand: FALSE
177#endif
178 $textrend func: transnicebytefunc funcdata: "(gpointer)7"
179 end
180 end
181 end
182 end
183 end
184 end
185 $sbar var: y name: statusbar
186 end
187end