From: <ror...@us...> - 2007-06-28 06:15:08
|
Revision: 47 http://roreditor.svn.sourceforge.net/roreditor/?rev=47&view=rev Author: rorthomas Date: 2007-06-27 23:15:07 -0700 (Wed, 27 Jun 2007) Log Message: ----------- * added revision number to starter title Modified Paths: -------------- trunk/lib/ror/starter.py Modified: trunk/lib/ror/starter.py =================================================================== --- trunk/lib/ror/starter.py 2007-06-28 06:12:03 UTC (rev 46) +++ trunk/lib/ror/starter.py 2007-06-28 06:15:07 UTC (rev 47) @@ -132,7 +132,11 @@ self.Close() def __set_properties(self): - self.SetTitle("RoR Toolkit starter") + try: + import ror.svn + self.SetTitle("RoR Toolkit r%d" % ror.svn.getRevision()) + except: + self.SetTitle("RoR Toolkit") def __do_layout(self): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ror...@us...> - 2007-07-01 13:35:25
|
Revision: 72 http://roreditor.svn.sourceforge.net/roreditor/?rev=72&view=rev Author: rorthomas Date: 2007-07-01 06:35:19 -0700 (Sun, 01 Jul 2007) Log Message: ----------- * minor log rendersystem modification Modified Paths: -------------- trunk/lib/ror/starter.py Modified: trunk/lib/ror/starter.py =================================================================== --- trunk/lib/ror/starter.py 2007-07-01 13:07:27 UTC (rev 71) +++ trunk/lib/ror/starter.py 2007-07-01 13:35:19 UTC (rev 72) @@ -80,7 +80,7 @@ f=open(filename, 'r') content = f.readlines() f.close() - print self.renderSystem + log().info("selected rendersystem: %s" % RENDERSYSTEMS[self.renderSystem]) for i in range(0, len(content)): if content[i].find(OPENGLLINE) >= 0: if self.renderSystem == 0: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ror...@us...> - 2007-07-01 14:16:15
|
Revision: 75 http://roreditor.svn.sourceforge.net/roreditor/?rev=75&view=rev Author: rorthomas Date: 2007-07-01 07:16:14 -0700 (Sun, 01 Jul 2007) Log Message: ----------- * minor fixes to the starter regarding exit Modified Paths: -------------- trunk/lib/ror/starter.py Modified: trunk/lib/ror/starter.py =================================================================== --- trunk/lib/ror/starter.py 2007-07-01 14:10:37 UTC (rev 74) +++ trunk/lib/ror/starter.py 2007-07-01 14:16:14 UTC (rev 75) @@ -107,10 +107,12 @@ def OnUpdate(self, event=None): import svngui gui = svngui.svnUpdate() + del gui def checkForUpdate(self): import svn return svn.checkForUpdate() + def OnStartRoR(self, event=None): try: @@ -184,7 +186,8 @@ self.btnStartTerrainEditor.Enable(True) def OnExit(self, event=None): - self.Close() + self.Close() + sys.exit(0) def __set_properties(self): try: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ror...@us...> - 2007-07-03 00:44:42
|
Revision: 78 http://roreditor.svn.sourceforge.net/roreditor/?rev=78&view=rev Author: rorthomas Date: 2007-07-02 17:44:38 -0700 (Mon, 02 Jul 2007) Log Message: ----------- * added bitmap to starter Modified Paths: -------------- trunk/lib/ror/starter.py Modified: trunk/lib/ror/starter.py =================================================================== --- trunk/lib/ror/starter.py 2007-07-01 14:59:25 UTC (rev 77) +++ trunk/lib/ror/starter.py 2007-07-03 00:44:38 UTC (rev 78) @@ -13,7 +13,21 @@ DIRECTXLINE = "Plugin=RenderSystem_Direct3D9.dll" OPENGLLINE = "Plugin=RenderSystem_GL.dll" +SPLASHIMAGE = "splash.bmp" + +class ImagePanel(wx.Panel): + """ class Panel1 creates a panel with an image on it, inherits wx.Panel """ + def __init__(self, parent, id, imageFile): + wx.Panel.__init__(self, parent, id) + try: + jpg1 = wx.Image(imageFile, wx.BITMAP_TYPE_ANY).ConvertToBitmap() + wx.StaticBitmap(self, wx.ID_ANY, jpg1, (0, 0), (jpg1.GetWidth(), jpg1.GetHeight())) + except IOError: + print "Image file %s not found" % imageFile + raise SystemExit + + class SettingsDialog(wx.Frame): rordir = None def __init__(self, *args, **kwds): @@ -21,8 +35,10 @@ wx.Frame.__init__(self, *args, **kwds) self.panel = wx.Panel(self, wx.ID_ANY) + + self.image = ImagePanel(self.panel, wx.ID_ANY, SPLASHIMAGE) - self.lblRoRDir = wx.StaticText(self.panel, wx.ID_ANY, "Please select Rigs of Rods Directory!") + self.lblRoRDir = wx.StaticText(self.panel, wx.ID_ANY, "Please select Rigs of Rods Directory!", size = (20, 20), style = wx.ALIGN_CENTRE | wx.ST_NO_AUTORESIZE) self.btnSelectRoRDir = wx.Button(self.panel, wx.ID_ANY, "Select RoR Directory") self.Bind(wx.EVT_BUTTON, self.OnSelectRoRDir, self.btnSelectRoRDir) @@ -61,23 +77,27 @@ self.btnStartRoR.Enable(True) self.btnStartTruckEditor.Enable(True) self.btnStartTerrainEditor.Enable(True) - self.lblRoRDir.SetLabel(self.rordir) else: self.rordir = "" self.btnStartRoR.Enable(False) self.btnStartTruckEditor.Enable(False) self.btnStartTerrainEditor.Enable(False) - self.lblRoRDir.SetLabel("Please select Rigs of Rods Directory!") - else: self.btnStartRoR.Enable(False) self.btnStartTruckEditor.Enable(False) self.btnStartTerrainEditor.Enable(False) + self.displayRoRDir() self.__set_properties() self.__do_layout() self.renderSystem = RENDERSYSTEMS[0] + def displayRoRDir(self): + if self.rordir == "": + self.lblRoRDir.SetLabel("Please select Rigs of Rods Directory!") + else: + self.lblRoRDir.SetLabel("Selected Rigs of Rods Directory: " + self.rordir) + def OnSelectRenderer(self, id=None, func=None): self.renderSystem = self.cbbRenderEngine.GetCurrentSelection() self.updateRenderer() @@ -199,6 +219,7 @@ def __do_layout(self): sizer_panel = wx.BoxSizer(wx.VERTICAL) + sizer_panel.Add(self.image, 0, wx.EXPAND, 0) sizer_panel.Add(self.lblRoRDir, 0, wx.EXPAND, 0) sizer_panel.Add(self.btnSelectRoRDir, 0, wx.EXPAND, 0) sizer_panel.Add(self.cbbRenderEngine, 0, wx.EXPAND, 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ror...@us...> - 2007-07-08 19:01:39
|
Revision: 96 http://roreditor.svn.sourceforge.net/roreditor/?rev=96&view=rev Author: rorthomas Date: 2007-07-08 12:01:38 -0700 (Sun, 08 Jul 2007) Log Message: ----------- * minor corrections Modified Paths: -------------- trunk/lib/ror/starter.py Modified: trunk/lib/ror/starter.py =================================================================== --- trunk/lib/ror/starter.py 2007-07-08 19:01:11 UTC (rev 95) +++ trunk/lib/ror/starter.py 2007-07-08 19:01:38 UTC (rev 96) @@ -117,9 +117,12 @@ f.close() def OnDepGraph(self, event=None): + dlg = wx.MessageDialog(self, "to get this working, you must install tools/pyparsing*.exe and tools/graphviz*.exe!", "Info", wx.OK | wx.ICON_INFORMATION) + dlg.ShowModal() + dlg.Destroy() import depchecker depchecker.RoRDepChecker(self.rordir, "all", "") - dlg = wx.MessageDialog(self, "If everything went fine, you should find the graph in the RoRToolkit Directory under dependencies.png!", "Info", wx.OK | wx.ICON_INFORMATION) + dlg = wx.MessageDialog(self, "If everything went fine (and you got the correct tools installed), you should find the graph in the RoRToolkit Directory under dependencies.png!", "Info", wx.OK | wx.ICON_INFORMATION) dlg.ShowModal() dlg.Destroy() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |