2 |
|
|
3 |
# $Id$ |
# $Id$ |
4 |
# $Log$ |
# $Log$ |
5 |
|
# Revision 1.16 2004/08/30 13:06:40 joko |
6 |
|
# U now gets preferences via self.engine |
7 |
|
# |
8 |
# Revision 1.15 2004/08/27 21:14:02 xabbu |
# Revision 1.15 2004/08/27 21:14:02 xabbu |
9 |
# TopicDetails can now be closed. |
# TopicDetails can now be closed. |
10 |
# GUI change on Preferences Dialog in order to prepare multiple server profiles. |
# GUI change on Preferences Dialog in order to prepare multiple server profiles. |
37 |
|
|
38 |
from fraggleConstants import * |
from fraggleConstants import * |
39 |
import fraggleDialogPrefs |
import fraggleDialogPrefs |
|
import fraggleCtlPreferences |
|
40 |
import FraggleAboutDialog |
import FraggleAboutDialog |
41 |
import FraggleTopicFrame |
import FraggleTopicFrame |
42 |
import FraggleXMLRPC |
import FraggleXMLRPC |
126 |
self.SetMenuBar(self.menuBar1) |
self.SetMenuBar(self.menuBar1) |
127 |
|
|
128 |
def __init_preferences__(self): |
def __init_preferences__(self): |
129 |
self.preferencesCtl = fraggleCtlPreferences.create(self) |
self.preferencesCtl = self.engine.preferences |
130 |
self.dialogPrefs = fraggleDialogPrefs.create(self) |
self.dialogPrefs = fraggleDialogPrefs.create(self) |
131 |
self.dialogPrefs.loadConfig() |
self.dialogPrefs.loadConfig() |
132 |
self.dialogPrefs.updateConfig() |
self.dialogPrefs.updateConfig() |
133 |
|
|
134 |
# new as of 2004-08-26: TopicFrame |
# new as of 2004-08-26: TopicFrame |
135 |
# new as of 2004-08-27: pass configList to TopicFrame |
# new as of 2004-08-27: pass configList to TopicFrame |
136 |
self.topicFrame = FraggleTopicFrame.create(self, self.preferencesCtl.configList) |
self.topicFrame = FraggleTopicFrame.create(self) |
137 |
self.topicFrame.Move(wxPoint(5, 5)) |
self.topicFrame.Move(wxPoint(5, 5)) |
138 |
|
|
139 |
#frame.Show() |
#frame.Show() |
156 |
EVT_MENU(self.tbicon, wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSEXIT, self.OnTaskBarAppExit) |
EVT_MENU(self.tbicon, wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSEXIT, self.OnTaskBarAppExit) |
157 |
|
|
158 |
def __init__(self, parent): |
def __init__(self, parent): |
159 |
|
import __main__ |
160 |
|
self.engine = __main__.engine |
161 |
self._init_ctrls(parent) |
self._init_ctrls(parent) |
162 |
self.__init_preferences__() |
self.__init_preferences__() |
163 |
self.__init_taskbar_icon__() |
self.__init_taskbar_icon__() |