6bd07ad453fb741546703d552af8b3a08e409c84
[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                                                 :table rows: 2 cols: 3 fill: TRUE
63                                                         $mlbl label: "_Filter:" tx: 0 ty: 0 mwidget: pubhubfilter
64                                                         $text name: pubhubfilter var: y expand: y fill: y sig: activate tx: 1 ty: 0
65                                                         $btn label: "_Get public hub list" sig(clicked): cb_main_pubhubfilter_activate tx: 2 ty: 0
66                                                         $mlbl label: "_Address:" tx: 0 ty: 1 mwidget: fnaddr
67                                                         $text name: fnaddr var: y expand: y fill: y sig: activate tx: 1 ty: 1
68                                                         $btn label: "C_onnect" sig(clicked): cb_main_fnaddr_activate tx: 2 ty: 1
69                                                 end
70                                         end
71                                 end
72                                 :vpaned name: pane3 var: y nblabel: "_Chat" resize: 2
73                                         :vbox
74                                                 $mlbl label: "Hu_bs" mwidget: chatnodes
75                                                 :sw fill: TRUE expand: TRUE
76                                                         :treeview name: chatnodes var: y rules: TRUE sig(row-activated): cb_main_chatnodes_activate
77                                                                 :tvcol title: "Hub name" sortcol: 1
78                                                                         $pixbufrend stock_id: 5
79                                                                         $textrend text: 1
80                                                                 end
81                                                         end
82                                                 end
83                                         end
84                                         :vbox
85                                                 :sw fill: TRUE expand: TRUE
86                                                         $textview name: chatview var: y editable: FALSE
87                                                 end
88                                                 :hbox
89                                                         $mlbl label: "Chat st_ring:" mwidget: chatstr
90                                                         $text name: chatstr var: y expand: TRUE fill: TRUE sig: activate
91                                                         $btn label: "S_end" sig(clicked): cb_main_chatstr_activate
92                                                 end
93                                         end
94                                 end
95                                 :vbox nblabel: "_Search"
96                                         :hbox
97                                                 $mlbl label: "S_imple search:" mwidget: simplesrch
98                                                 $text name: simplesrch var: y expand: TRUE fill: TRUE sig: changed sig(activate): cb_main_srchbtn_clicked
99                                                 $btn name: srchbtn var: y label: "S_earch" sig: clicked
100                                                 $btn name: srchcanbtn var: y label: "C_ancel" sig: clicked sensitive: FALSE
101                                         end
102                                         $chk name: filternoslots var: y label: "Displa_y results with free slots only" sig: toggled
103                                         :exp label: "Ad_vanced" name: advexp var: y
104                                                 :table rows: 2 cols: 2
105                                                         $mlbl tx: 0 ty: 0 label: "C_omplete search expression:" mwidget: realsrch
106                                                         $text tx: 1 ty: 0 name: realsrch var: y expand: y fill: y sig: changed sig(activate): cb_main_srchbtn_clicked
107                                                         $mlbl tx: 0 ty: 1 label: "Filter ar_gument:" mwidget: dlarg
108                                                         $text tx: 1 ty: 1 name: dlarg var: y expand: y fill: y
109                                                 end
110                                         end
111                                         $lbl name: srchstatus var: y label: "Ready to search" fill: TRUE
112                                         $hr pad: 5
113                                         $mlbl label: "Search _results:" mwidget: srchres
114                                         :sw expand: TRUE fill: TRUE
115                                                 :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
116                                                         :tvcol title: "#" sortcol: 7 resizable: FALSE
117                                                                 $textrend func: hidezerofunc funcdata: "GINT_TO_POINTER(7)"
118                                                         end
119                                                         $tvcol title: "Peer name" text: 2 sortcol: 2 resizable: TRUE
120                                                         $tvcol title: "File name" text: 3 sortcol: 3 resizable: TRUE expander: y
121                                                         :tvcol title: "Size" sortcol: 4 resizable: TRUE
122                                                                 $textrend func: transnicebytefunc funcdata: "GINT_TO_POINTER(4)"
123                                                         end
124                                                         $tvcol title: "Slots" text: 5 sortcol: 5 resizable: TRUE
125                                                         :tvcol title: "Known speed" sortcol: 8 resizable: TRUE
126                                                                 $textrend func: speedtimefunc
127                                                         end
128                                                         $tvcol title: "Rsp. time" text: 6 sortcol: 6 resizable: TRUE
129                                                         $tvcol title: "Hash" text: 9 sortcol: 9 resizable: TRUE
130                                                 end
131                                         end
132                                 end
133                         end
134                         :notebook
135                                 :vbox nblabel: "_Downloads"
136                                         $mlbl label: "_List of downloads:" mwidget: downloads
137                                         :sw fill: TRUE expand: TRUE
138                                                 :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
139                                                         :tvcol title: "User Name"
140                                                                 $pixbufrend stock_id: 8
141                                                                 $textrend text: 4
142                                                         end
143                                                         $tvcol title: "File Name" text: 5
144                                                         :tvcol title: "Size"
145                                                                 $textrend func: transnicebytefunc funcdata: "GINT_TO_POINTER(6)"
146                                                         end
147                                                         :tvcol title: "Position"
148 #ifdef ENABLE_GTK2PBAR
149                                                                 $custrend newfunc: custom_cell_renderer_progress_new attr(percentage): 9
150 #else
151                                                                 $textrend func: percentagefunc funcdata: "GINT_TO_POINTER(9)" expand: FALSE
152 #endif
153                                                                 $textrend func: transnicebytefunc funcdata: "GINT_TO_POINTER(7)"
154                                                         end
155                                                         :tvcol title: "Speed"
156                                                                 $textrend func: transspeedinfo
157                                                         end
158                                                         :tvcol title: "Error"
159                                                                 $textrend func: transerrorinfo
160                                                         end
161                                                         $tvcol title: "Hash" text: 12
162                                                 end
163                                         end
164                                 end
165                                 :vbox nblabel: "_Uploads"
166                                         $mlbl label: "_List of uploads:" mwidget: uploads
167                                         :sw fill: TRUE expand: TRUE
168                                                 :treeview name: uploads var: y sig(key-press-event): cb_main_trlist_keypress
169                                                         :tvcol title: "User Name"
170                                                                 $pixbufrend stock_id: 8
171                                                                 $textrend text: 4
172                                                         end
173                                                         $tvcol title: "File Name" text: 5
174                                                         :tvcol title: "Size"
175                                                                 $textrend func: transnicebytefunc funcdata: "GINT_TO_POINTER(6)"
176                                                         end
177                                                         :tvcol title: "Position"
178 #ifdef ENABLE_GTK2PBAR
179                                                                 $custrend newfunc: custom_cell_renderer_progress_new attr(percentage): 9
180 #else
181                                                                 $textrend func: percentagefunc funcdata: "GINT_TO_POINTER(9)" expand: FALSE
182 #endif
183                                                                 $textrend func: transnicebytefunc funcdata: "GINT_TO_POINTER(7)"
184                                                         end
185                                                         :tvcol title: "Speed"
186                                                                 $textrend func: transspeedinfo
187                                                         end
188                                                 end
189                                         end
190                                 end
191                         end
192                 end
193         $sbar var: y name: statusbar
194         end
195 end