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