comparison orpg/main.py @ 126:e7f990be5075 alpha

Traipse Alpha 'OpenRPG' {091002-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user. Update Summary (Cleaning up for Beta) Added Bookmarks Fix to Remote Admin Commands Minor fix to text based Server Fix to Pretty Print, from Core Fix to Splitter Nodes not being created Fix to massive amounts of images loading, from Core Added 'boot' command to remote admin Added confirmation window for sent nodes Minor changes to allow for portability to an OpenSUSE linux OS Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG Zoom Mouse plugin added Images added to Plugin UI Switching to Element Tree Map efficiency, from FlexiRPG Added Status Bar to Update Manager default_manifest.xml renamed to default_upmana.xml Cleaner clode for saved repositories New TrueDebug Class in orpg_log (See documentation for usage) Mercurial's hgweb folder is ported to upmana Happy Halloween!
author sirebral
date Mon, 02 Nov 2009 11:50:00 -0600
parents 8827271fbe1b
children 37d26a98883f
comparison
equal deleted inserted replaced
125:ed4c3606ad1f 126:e7f990be5075
33 from orpg.orpgCore import * 33 from orpg.orpgCore import *
34 from orpg_version import * 34 from orpg_version import *
35 from orpg.orpg_windows import * 35 from orpg.orpg_windows import *
36 36
37 import wx.py 37 import wx.py
38 from orpg import minidom 38 #from orpg import minidom
39 import orpg.player_list 39 import orpg.player_list
40 import orpg.tools.pluginui as pluginUI 40 import orpg.tools.pluginui as pluginUI
41 import orpg.tools.aliaslib 41 import orpg.tools.aliaslib
42 import orpg.tools.toolBars 42 import orpg.tools.toolBars
43 import orpg.tools.orpg_sound 43 import orpg.tools.orpg_sound
863 evt.Skip() 863 evt.Skip()
864 self._mgr.Update() 864 self._mgr.Update()
865 865
866 866
867 def saveLayout(self): 867 def saveLayout(self):
868 filename = dir_struct["user"] + "layout.xml"
868 layout = parse(dir_struct["user"] + "layout.xml") 869 layout = parse(dir_struct["user"] + "layout.xml")
869 xml_dom = layout.getroot() 870 xml_dom = layout.getroot()
870 (x_size,y_size) = self.GetClientSize() 871 (x_size,y_size) = self.GetClientSize()
871 (x_pos,y_pos) = self.GetPositionTuple() 872 (x_pos,y_pos) = self.GetPositionTuple()
872 if self.IsMaximized(): max = 1 873 if self.IsMaximized(): max = 1
876 xml_dom.set("posx", str(x_pos)) 877 xml_dom.set("posx", str(x_pos))
877 xml_dom.set("posy", str(y_pos)) 878 xml_dom.set("posy", str(y_pos))
878 xml_dom.set("maximized", str(max)) 879 xml_dom.set("maximized", str(max))
879 layout = xml_dom.findall("DockLayout") 880 layout = xml_dom.findall("DockLayout")
880 try: 881 try:
881 textnode = xml.safe_get_text_node(layout[0]) 882 layout[0].text = str(self._mgr.SavePerspective())
882 textnode._set_nodeValue(str(self._mgr.SavePerspective()))
883 except: 883 except:
884 elem = minidom.Element('DockLayout') 884 elem = Element('DockLayout')
885 elem.set("DO_NO_EDIT","True") 885 elem.set("DO_NO_EDIT","True")
886 textnode = xml.safe_get_text_node(elem) 886 elem.text = str(self._mgr.SavePerspective())
887 textnode._set_nodeValue(str(self._mgr.SavePerspective()))
888 xml_dom.append(elem) 887 xml_dom.append(elem)
889 temp_file = open(filename, "w") 888 temp_file = open(filename, "w")
890 temp_file.write(xml_dom.toxml(1)) 889 temp_file.write(tostring(xml_dom))
891 temp_file.close() 890 temp_file.close()
892 891
893 892
894 def build_hotkeys(self): 893 def build_hotkeys(self):
895 self.mainmenu.accel.xaccel.extend(self.chat.get_hot_keys()) 894 self.mainmenu.accel.xaccel.extend(self.chat.get_hot_keys())
1182 component.add('xml', xml) 1181 component.add('xml', xml)
1183 component.add('settings', settings) 1182 component.add('settings', settings)
1184 component.add('validate', validate) 1183 component.add('validate', validate)
1185 component.add("tabbedWindows", []) 1184 component.add("tabbedWindows", [])
1186 1185
1187 #Update Manager 1186 #Update Manager
1188 self.manifest = manifest.ManifestChanges() 1187 self.manifest = manifest.ManifestChanges()
1189 1188
1190 self.called = False 1189 self.called = False
1191 wx.InitAllImageHandlers() 1190 wx.InitAllImageHandlers()
1192 self.splash = orpgSplashScreen(None, dir_struct["icon"] + 'splash13.jpg', 3000, self.AfterSplash) 1191 self.splash = orpgSplashScreen(None, dir_struct["icon"] + 'splash13.jpg', 3000, self.AfterSplash)