/[cvs]/nfo/projects/netfraggle/bin/fraggleViewport.py
ViewVC logotype

Diff of /nfo/projects/netfraggle/bin/fraggleViewport.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by xabbu, Sat Sep 4 20:26:01 2004 UTC revision 1.20 by xabbu, Sun Sep 5 10:09:26 2004 UTC
# Line 2  Line 2 
2    
3  # $Id$  # $Id$
4  # $Log$  # $Log$
5    # Revision 1.20  2004/09/05 10:09:26  xabbu
6    # + Bug that menues where displayed incorrectly on nt like os resolved.
7    # + Removed OS dependend menu creation in faggleMain -> moved to fraggleViewPort
8    # + Modules configuration dialog can be displayed by selecting Files->Modules now
9    #
10    # Revision 1.19  2004/09/05 00:21:10  xabbu
11    # +Fixed File Menu Modules item on Posix system. Gotta do testing on Windows with it.
12    #
13  # Revision 1.18  2004/09/04 20:26:01  xabbu  # Revision 1.18  2004/09/04 20:26:01  xabbu
14  # +Added a button to the Preferences tab for showing the Modules Dialog.  # +Added a button to the Preferences tab for showing the Modules Dialog.
15  #  Todo: When the module dialog is shown, it is still being blocked by the    preferences dialog. I am not sure why but will have to look into it further.  #  Todo: When the module dialog is shown, it is still being blocked by the    preferences dialog. I am not sure why but will have to look into it further.
# Line 120  class fraggleViewport(wxMDIParentFrame): Line 128  class fraggleViewport(wxMDIParentFrame):
128      def _init_utils(self):      def _init_utils(self):
129          # generated method, don't edit          # generated method, don't edit
130          self.menuBar1 = wxMenuBar()          self.menuBar1 = wxMenuBar()
131          self.menuBar1.SetAutoLayout(1)          self.menuBar1.SetAutoLayout(0)
132    
133          self.menu1 = wxMenu(title='')          self.menu1 = wxMenu(title='')
134    
# Line 137  class fraggleViewport(wxMDIParentFrame): Line 145  class fraggleViewport(wxMDIParentFrame):
145          # generated method, don't edit          # generated method, don't edit
146          wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT,          wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT,
147                name='fraggleViewport', parent=prnt, pos=wxPoint(335, 382),                name='fraggleViewport', parent=prnt, pos=wxPoint(335, 382),
148                size=wxSize(435, 273),                size=wxSize(435, 250),
149                style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,                style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
150                title='NetFraggle 0.0.1')                title='NetFraggle 0.0.1')
151          self._init_utils()          self._init_utils()
152          self.SetClientSize(wxSize(427, 246))          self.SetClientSize(wxSize(427, 223))
153          self.SetMenuBar(self.menuBar1)          self.SetMenuBar(self.menuBar1)
154    
155      def __init_modules__(self):      def __init_modules__(self):
# Line 199  class fraggleViewport(wxMDIParentFrame): Line 207  class fraggleViewport(wxMDIParentFrame):
207          event.Skip()          event.Skip()
208    
209    
210      def OnMenu2items0Menu(self, event):      #def OnMenu2items0Menu(self, event):
211          try:       #   try:
212              self.dialogPrefs.ShowModal()        #      self.dialogPrefs.ShowModal()
213          finally:       #   finally:
214              pass        #      pass
215          event.Skip()        #  event.Skip()
216    
217      def OnMenu2items1Menu(self, event):      def OnMenu2items1Menu(self, event):
218          """Show about screen"""          """Show about screen"""
# Line 234  class fraggleViewport(wxMDIParentFrame): Line 242  class fraggleViewport(wxMDIParentFrame):
242          self.Close(True)          self.Close(True)
243    
244      def OnMenu1FmodulesMenu(self, event):      def OnMenu1FmodulesMenu(self, event):
245            self.dialogModules.Show()
246          event.Skip()          event.Skip()
247    
248      def OnMenu1FprefsMenu(self, event):      def OnMenu1FprefsMenu(self, event):
249            try:
250             self.dialogPrefs.ShowModal()
251            finally:
252              pass
253          event.Skip()          event.Skip()
254    
255      def OnMenu1Items1Menu(self, event):      def OnMenu1Items1Menu(self, event):
256            self.Destroy()
257          event.Skip()          event.Skip()
258                    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.20

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed