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