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

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

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

revision 1.5 by joko, Fri Aug 27 03:22:30 2004 UTC revision 1.8 by xabbu, Sun Sep 5 10:09:26 2004 UTC
# Line 3  Line 3 
3    
4  # $Id$  # $Id$
5  # $Log$  # $Log$
6    # Revision 1.8  2004/09/05 10:09:26  xabbu
7    # + Bug that menues where displayed incorrectly on nt like os resolved.
8    # + Removed OS dependend menu creation in faggleMain -> moved to fraggleViewPort
9    # + Modules configuration dialog can be displayed by selecting Files->Modules now
10    #
11    # Revision 1.7  2004/08/30 13:55:12  joko
12    # + caching phpsessionid here
13    #
14    # Revision 1.6  2004/08/30 13:01:47  joko
15    # U prepend "libs"-dir to path
16    #
17  # Revision 1.5  2004/08/27 03:22:30  joko  # Revision 1.5  2004/08/27 03:22:30  joko
18  # start singleton instance of FraggleEngine here  # start singleton instance of FraggleEngine here
19  #  #
# Line 33  class BoaApp(wxApp): Line 44  class BoaApp(wxApp):
44  class fraggleMainWin(fraggleViewport):  class fraggleMainWin(fraggleViewport):
45      def _init_coll_menu1_Items(self, parent):      def _init_coll_menu1_Items(self, parent):
46    
47          if os.name == 'posix':          
48              fraggleViewport._init_coll_menu1_Items(self, parent)              fraggleViewport._init_coll_menu1_Items(self, parent)
49          elif os.name == 'nt':        
             parent.Append(wxID_FRAGGLEVIEWPORTMENU1FPREFS, '&Configure Netfraggle', "", wxITEM_NORMAL)  
             parent.Append(wxID_FRAGGLEVIEWPORTMENU1ITEMS1, '&Exit Netfraggle', "", wxITEM_NORMAL)  
   
         EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu)  
         EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu)  
50    
51      def _init_coll_menu2_Items(self, parent):      def _init_coll_menu2_Items(self, parent):
52    
53          if os.name == 'posix':        
54              fraggleViewport._init_coll_menu2_Items(self, parent)              fraggleViewport._init_coll_menu2_Items(self, parent)
55          elif os.name == 'nt':          
             parent.Append(wxID_FRAGGLEVIEWPORTMENU2CONT, '&Contents', "", wxITEM_NORMAL)  
             parent.Append(wxID_FRAGGLEVIEWPORTMENU2ABOUT, '&About', "", wxITEM_NORMAL)  
               
         EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2CONT, self.OnMenu2items0Menu)  
         EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU2ABOUT, self.OnMenu2items1Menu)  
56    
57  def main():  def main():
58      sys.path.append(os.path.join(APPLOCATION, '..', 'libs'))      global engine, phpsessionid
59      global engine      sys.path.insert(0, os.path.join(APPLOCATION, '..', 'libs'))
60      engine = FraggleEngine()      engine = FraggleEngine()
61        # TODO: move elsewhere!
62        phpsessionid = ""
63      application = BoaApp(0)      application = BoaApp(0)
64      application.MainLoop()      application.MainLoop()
65    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.8

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