comparison orpg/orpg_windows.py @ 133:37d26a98883f alpha

Traipse Alpha 'OpenRPG' {091010-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 **Pretty important update that can help remove thousands of dead children from your gametree. **Children, <forms />, <group_atts />, <horizontal />, <cols />, <rows />, <height />, etc... are all tags now. Check your gametree and look for dead children!! **New Gamtree Recusion method, mapping, and context sensitivity. !!Alpha - Watch out for infinite loops!! Dead Node Children, now that's a O O -v-v- Happy Halloween!
author sirebral
date Tue, 10 Nov 2009 12:11:13 -0600
parents c5bc2abaf7f8
children 06f10429eedc
comparison
equal deleted inserted replaced
132:fe4dc5817d5e 133:37d26a98883f
30 30
31 from orpg.orpg_wx import * 31 from orpg.orpg_wx import *
32 from orpg.orpgCore import * 32 from orpg.orpgCore import *
33 import orpg.tools.rgbhex 33 import orpg.tools.rgbhex
34 from orpg.dirpath import dir_struct 34 from orpg.dirpath import dir_struct
35 from orpg.tools.orpg_log import debug
35 from orpg.tools.metamenus import MenuEx 36 from orpg.tools.metamenus import MenuEx
36 37
37 class img_helper: 38 class img_helper:
38 def __init__(self): 39 def __init__(self):
39 pass 40 pass
53 54
54 def get_type(self,file_name): 55 def get_type(self,file_name):
55 pos = string.rfind(file_name,'.') 56 pos = string.rfind(file_name,'.')
56 ext = string.lower(file_name[pos+1:]) 57 ext = string.lower(file_name[pos+1:])
57 img_type = 0 58 img_type = 0
58 # TaS - sirebral. Replaces 10 lines with 6 lines.
59 recycle_bin = {"gif": wx.BITMAP_TYPE_GIF, "jpg": wx.BITMAP_TYPE_JPEG, 59 recycle_bin = {"gif": wx.BITMAP_TYPE_GIF, "jpg": wx.BITMAP_TYPE_JPEG,
60 "jpeg": wx.BITMAP_TYPE_JPEG, "bmp": wx.BITMAP_TYPE_BMP, "png": wx.BITMAP_TYPE_PNG} 60 "jpeg": wx.BITMAP_TYPE_JPEG, "bmp": wx.BITMAP_TYPE_BMP, "png": wx.BITMAP_TYPE_PNG}
61 if recycle_bin.has_key(ext): img_type = recycle_bin[ext] 61 if recycle_bin.has_key(ext): img_type = recycle_bin[ext]
62 else: img_type = None ## this was imf_type = None. imf? 62 else: img_type = None
63 del recycle_bin; return img_type 63 del recycle_bin; return img_type
64 64
65 ################################ 65 ################################
66 ## Tabs 66 ## Tabs
67 ################################ 67 ################################
85 'slanted&colorful': FNB.FNB_VC8|FNB.FNB_COLORFUL_TABS, 'slant&colorful': FNB.FNB_VC8|FNB.FNB_COLORFUL_TABS} 85 'slanted&colorful': FNB.FNB_VC8|FNB.FNB_COLORFUL_TABS, 'slant&colorful': FNB.FNB_VC8|FNB.FNB_COLORFUL_TABS}
86 nbstyle |= theme_dict[tabtheme] 86 nbstyle |= theme_dict[tabtheme]
87 if style: nbstyle |= style 87 if style: nbstyle |= style
88 self.SetWindowStyleFlag(nbstyle) 88 self.SetWindowStyleFlag(nbstyle)
89 89
90 #Tas - sirebral. Planned changes to the huge statement below. 90 # Tas - sirebral. Planned changes to the huge statement below.
91 if tabtheme == 'slanted&aqua': 91 if tabtheme == 'slanted&aqua':
92 self.SetGradientColourTo(wx.Color(0, 128, 255)) 92 self.SetGradientColourTo(wx.Color(0, 128, 255))
93 self.SetGradientColourFrom(wx.WHITE) 93 self.SetGradientColourFrom(wx.WHITE)
94 94
95 elif tabtheme == 'slanted&bw': 95 elif tabtheme == 'slanted&bw':
186 (second_x,second_y) = self.GetWindow2().GetPositionTuple() 186 (second_x,second_y) = self.GetWindow2().GetPositionTuple()
187 splitmode = self.GetSplitMode() 187 splitmode = self.GetSplitMode()
188 sash = self.GetSashPosition() 188 sash = self.GetSashPosition()
189 189
190 if splitmode == wx.SPLIT_VERTICAL: 190 if splitmode == wx.SPLIT_VERTICAL:
191 pos = mouse_X # Position of the mouse pointer 191 pos = mouse_X # Position of the mouse pointer
192 second = second_x # Beginning of the second (Right) pane 192 second = second_x # Beginning of the second (Right) pane
193 second_size = second_w # Size of the second pane 193 second_size = second_w # Size of the second pane
194 else: 194 else:
195 pos = mouse_Y # Position of the mouse pointer 195 pos = mouse_Y # Position of the mouse pointer
196 second = second_y # Beginning of the second (Bottom) pane 196 second = second_y # Beginning of the second (Bottom) pane
197 second_size = second_h # Size of the second pane 197 second_size = second_h # Size of the second pane
198 sash_size = second - sash # Beginning of sash to beginning of second is the sash size 198 sash_size = second - sash # Beginning of sash to beginning of second is the sash size
199 199
200 if (pos > sash + sash_size and second_size < sash) or (pos < sash and second_size > sash): 200 if (pos > sash + sash_size and second_size < sash) or (pos < sash and second_size > sash):
201 # Equivalent to the following 201 # Equivalent to the following
202 # if 202 # if
203 # (the mouse position is below/to the right of the sash, including it's thickness 203 # (the mouse position is below/to the right of the sash, including it's thickness