Mercurial > libervia-web
comparison browser_side/dialog.py @ 288:7316a5696366
browser_side: renamed item and labels for discussion groups
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 27 Nov 2013 14:00:58 +0100 |
parents | aebb96bfa8d1 |
children | 0b7934e75e76 |
comparison
equal
deleted
inserted
replaced
287:7a1dc69112b8 | 288:7316a5696366 |
---|---|
48 | 48 |
49 def __init__(self, host, default_room=DEFAULT_MUC): | 49 def __init__(self, host, default_room=DEFAULT_MUC): |
50 Grid.__init__(self, 2, 2, Width='100%') | 50 Grid.__init__(self, 2, 2, Width='100%') |
51 self.host = host | 51 self.host = host |
52 | 52 |
53 self.exist_radio = RadioButton("room", "Select discussion room:") | 53 self.exist_radio = RadioButton("room", "Already joined:") |
54 self.rooms_list = ListBox(Width='100%') | 54 self.rooms_list = ListBox(Width='95%') |
55 self.setRooms() | 55 self.setRooms() |
56 self.add(self.exist_radio, 0, 0) | 56 |
57 self.add(self.rooms_list, 0, 1) | 57 self.new_radio = RadioButton("room", "Discussion room:") |
58 | |
59 self.new_radio = RadioButton("room", "New discussion room:") | |
60 self.new_radio.setChecked(True) | 58 self.new_radio.setChecked(True) |
61 self.box = TextBox(Width='100%') | 59 self.box = TextBox(Width='95%') |
62 self.box.setText(self.GENERATE_MUC if default_room == "" else default_room) | 60 self.box.setText(self.GENERATE_MUC if default_room == "" else default_room) |
63 self.add(self.new_radio, 1, 0) | 61 |
64 self.add(self.box, 1, 1) | 62 self.add(self.new_radio, 0, 0) |
63 self.add(self.box, 0, 1) | |
64 self.add(self.exist_radio, 1, 0) | |
65 self.add(self.rooms_list, 1, 1) | |
65 | 66 |
66 self.rooms_list.addFocusListener(self) | 67 self.rooms_list.addFocusListener(self) |
67 self.box.addFocusListener(self) | 68 self.box.addFocusListener(self) |
68 | 69 |
69 def onFocus(self, sender): | 70 def onFocus(self, sender): |
153 | 154 |
154 | 155 |
155 class RoomAndContactsChooser(DialogBox): | 156 class RoomAndContactsChooser(DialogBox): |
156 """Select a room and some users to invite in""" | 157 """Select a room and some users to invite in""" |
157 | 158 |
158 def __init__(self, host, callback, nb_contact=None, ok_button="OK", title="Group discussions", | 159 def __init__(self, host, callback, nb_contact=None, ok_button="OK", title="Discussion groups", |
159 title_room="Join room", title_invite="Invite contacts", visible=(True, True)): | 160 title_room="Join room", title_invite="Invite contacts", visible=(True, True)): |
160 DialogBox.__init__(self, centered=True) | 161 DialogBox.__init__(self, centered=True) |
161 self.host = host | 162 self.host = host |
162 self.callback = callback | 163 self.callback = callback |
163 self.title_room = title_room | 164 self.title_room = title_room |