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