156
|
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:
|
184
|
24 # $Id: voxchat.py,v Traipse 'Ornery-Orc' prof.ebral Exp $
|
156
|
25 #
|
|
26 # Description: nodehandler for alias.
|
|
27 #
|
|
28
|
184
|
29 __version__ = "$Id: voxchat.py,v Traipse 'Ornery-Orc' prof.ebral Exp $"
|
156
|
30
|
|
31 import re, os, string, core
|
|
32
|
|
33 from orpg.orpg_windows import *
|
|
34 import orpg.tools.scriptkit
|
|
35 import orpg.tools.predTextCtrl
|
|
36 import orpg.tools.rgbhex
|
|
37 import orpg.tools.inputValidator
|
|
38
|
|
39 from orpg.dirpath import dir_struct
|
|
40 import orpg.minidom
|
|
41 import orpg.networking.mplay_client
|
|
42 from orpg.orpgCore import component
|
|
43
|
|
44 #
|
|
45 # Good things to add:
|
|
46 # 1.u'use filter' per alias [ this should be done ]
|
|
47 # 2. make aliases remember which filter they're using [ lisbox in gtk appaears to ignore SetSelection( <= 0 )
|
|
48 #
|
|
49
|
|
50
|
|
51 class voxchat_handler(core.node_handler):
|
|
52 def __init__(self, xml_dom, tree_node):
|
|
53 core.node_handler.__init__( self, xml_dom, tree_node)
|
|
54 self.node = xml_dom
|
184
|
55 #self.xml = component.get('xml')
|
156
|
56
|
|
57 def get_design_panel( self, parent ):
|
|
58 aliasLib = component.get('alias')
|
|
59 aliasLib.ImportFromTree(self.node)
|
|
60 return None
|
|
61
|
|
62 def get_use_panel( self, parent ):
|
|
63 aliasLib = component.get('alias')
|
|
64 aliasLib.ImportFromTree(self.node)
|
|
65 return None
|