comparison orpg/gametree/nodehandlers/voxchat.py @ 0:4385a7d0efd1 grumpy-goblin

Deleted and repushed it with the 'grumpy-goblin' branch. I forgot a y
author sirebral
date Tue, 14 Jul 2009 16:41:58 -0500
parents
children c54768cffbd4
comparison
equal deleted inserted replaced
-1:000000000000 0:4385a7d0efd1
1 # Copyright (C) 2000-2001 The OpenRPG Project
2 #
3 # openrpg-dev@lists.sourceforge.net
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 # --
19 #
20 # File: voxchat.py
21 # Author: Ted Berg
22 # Maintainer:
23 # Version:
24 # $Id: voxchat.py,v 1.37 2007/05/06 16:42:55 digitalxero Exp $
25 #
26 # Description: nodehandler for alias.
27 #
28
29 __version__ = "$Id: voxchat.py,v 1.37 2007/05/06 16:42:55 digitalxero Exp $"
30
31 import re
32 import os
33 import string
34
35 from orpg.orpg_windows import *
36 import core
37 import orpg.tools.scriptkit
38 import orpg.tools.predTextCtrl
39 import orpg.tools.rgbhex
40 import orpg.tools.inputValidator
41
42 import orpg.dirpath
43 import orpg.minidom
44 import orpg.networking.mplay_client
45 from orpg.orpgCore import open_rpg
46
47 #
48 # Good things to add:
49 # 1.u'use filter' per alias [ this should be done ]
50 # 2. make aliases remember which filter they're using [ lisbox in gtk appaears to ignore SetSelection( <= 0 )
51 #
52
53
54 class voxchat_handler(core.node_handler):
55 def __init__(self, xml_dom, tree_node):
56 core.node_handler.__init__( self, xml_dom, tree_node)
57 self.node = xml_dom
58 self.xml = open_rpg.get_component('xml')
59
60 def get_design_panel( self, parent ):
61 aliasLib = open_rpg.get_component('alias')
62 aliasLib.ImportFromTree(self.node)
63 return None
64
65 def get_use_panel( self, parent ):
66 aliasLib = open_rpg.get_component('alias')
67 aliasLib.ImportFromTree(self.node)
68 return None