2 |
|
|
3 |
# $Id$ |
# $Id$ |
4 |
# $Log$ |
# $Log$ |
5 |
|
# Revision 1.15 2004/08/27 21:14:02 xabbu |
6 |
|
# TopicDetails can now be closed. |
7 |
|
# GUI change on Preferences Dialog in order to prepare multiple server profiles. |
8 |
|
# Small bugfixes to get the new topic windows working on posix platform. |
9 |
|
# |
10 |
|
# Revision 1.14 2004/08/27 04:39:06 joko |
11 |
|
# cleanup |
12 |
|
# |
13 |
# Revision 1.13 2004/08/27 03:25:44 joko |
# Revision 1.13 2004/08/27 03:25:44 joko |
14 |
# added FraggleTaskBarMenu |
# added FraggleTaskBarMenu |
15 |
# |
# |
62 |
def _init_coll_FraggleTaskBarMenu_Items(self, parent): |
def _init_coll_FraggleTaskBarMenu_Items(self, parent): |
63 |
# generated method, don't edit |
# generated method, don't edit |
64 |
|
|
65 |
restore = parent.Append(helpString='Restore', |
parent.Append(helpString='Restore', |
66 |
id=wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSRESTORE, |
id=wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSRESTORE, |
67 |
item='Restore', kind=wxITEM_NORMAL) |
item='Restore', kind=wxITEM_NORMAL) |
68 |
parent.Append(helpString='Sync enabled', |
parent.Append(helpString='Sync enabled', |
71 |
parent.Append(helpString='Exit', |
parent.Append(helpString='Exit', |
72 |
id=wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSEXIT, item='Exit', |
id=wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSEXIT, item='Exit', |
73 |
kind=wxITEM_NORMAL) |
kind=wxITEM_NORMAL) |
|
#EVT_MENU_OPEN(restore, |
|
|
# self.OnFraggleTaskBarMenuItemsrestoreMenu) |
|
|
#EVT_MENU_OPEN(restore, wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSRESTORE, |
|
|
# self.OnFraggleTaskBarMenuItemsrestoreMenu) |
|
|
#EVT_MENU(self, wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSEXIT, |
|
|
# self.OnFraggleTaskBarMenuItemsexitMenu) |
|
74 |
|
|
75 |
def _init_coll_menu2_Items(self, parent): |
def _init_coll_menu2_Items(self, parent): |
76 |
# generated method, don't edit |
# generated method, don't edit |
102 |
self.menuBar1.SetAutoLayout(1) |
self.menuBar1.SetAutoLayout(1) |
103 |
|
|
104 |
self.menu1 = wxMenu(title='') |
self.menu1 = wxMenu(title='') |
105 |
|
self._init_coll_menu1_Items(self.menu1) |
106 |
|
|
107 |
self.menu2 = wxMenu(title='') |
self.menu2 = wxMenu(title='') |
108 |
|
self._init_coll_menu2_Items(self.menu2) |
109 |
|
|
110 |
self.FraggleTaskBarMenu = wxMenu(title=u'NetFraggle') |
self.FraggleTaskBarMenu = wxMenu(title=u'NetFraggle') |
111 |
|
self._init_coll_FraggleTaskBarMenu_Items(self.FraggleTaskBarMenu) |
112 |
|
|
113 |
self._init_coll_menuBar1_Menus(self.menuBar1) |
self._init_coll_menuBar1_Menus(self.menuBar1) |
|
self._init_coll_menu1_Items(self.menu1) |
|
|
self._init_coll_menu2_Items(self.menu2) |
|
|
self._init_coll_FraggleTaskBarMenu_Items(self.FraggleTaskBarMenu) |
|
114 |
|
|
115 |
def _init_ctrls(self, prnt): |
def _init_ctrls(self, prnt): |
116 |
# generated method, don't edit |
# generated method, don't edit |
117 |
wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT, |
wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT, |
118 |
name='fraggleViewport', parent=prnt, pos=wxPoint(338, 296), |
name='fraggleViewport', parent=prnt, pos=wxPoint(335, 382), |
119 |
size=wxSize(435, 296), |
size=wxSize(427, 269), |
120 |
style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, |
style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, |
121 |
title='NetFraggle 0.0.1') |
title='NetFraggle 0.0.1') |
122 |
self._init_utils() |
self._init_utils() |
123 |
self.SetClientSize(wxSize(427, 269)) |
self.SetClientSize(wxSize(427, 246)) |
124 |
self.SetMenuBar(self.menuBar1) |
self.SetMenuBar(self.menuBar1) |
125 |
|
|
126 |
def __init_preferences__(self): |
def __init_preferences__(self): |
132 |
# new as of 2004-08-26: TopicFrame |
# new as of 2004-08-26: TopicFrame |
133 |
# new as of 2004-08-27: pass configList to TopicFrame |
# new as of 2004-08-27: pass configList to TopicFrame |
134 |
self.topicFrame = FraggleTopicFrame.create(self, self.preferencesCtl.configList) |
self.topicFrame = FraggleTopicFrame.create(self, self.preferencesCtl.configList) |
135 |
self.topicFrame.Move(wxPoint(10, 10)) |
self.topicFrame.Move(wxPoint(5, 5)) |
136 |
|
|
137 |
#frame.Show() |
#frame.Show() |
138 |
#frame.Destroy() |
#frame.Destroy() |
153 |
EVT_MENU(self.tbicon, wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSRESTORE, self.OnTaskBarAppRestore) |
EVT_MENU(self.tbicon, wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSRESTORE, self.OnTaskBarAppRestore) |
154 |
EVT_MENU(self.tbicon, wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSEXIT, self.OnTaskBarAppExit) |
EVT_MENU(self.tbicon, wxID_FRAGGLEVIEWPORTFRAGGLETASKBARMENUITEMSEXIT, self.OnTaskBarAppExit) |
155 |
|
|
|
#EVT_BUTTON(self.updateButton, wxID_FRAGGLETOPICFRAMEUPDATEBUTTON, |
|
|
# self.OnUpdateButtonButton) |
|
|
|
|
156 |
def __init__(self, parent): |
def __init__(self, parent): |
157 |
self._init_ctrls(parent) |
self._init_ctrls(parent) |
158 |
self.__init_preferences__() |
self.__init_preferences__() |