PageRenderTime 273ms CodeModel.GetById 130ms app.highlight 16ms RepoModel.GetById 124ms app.codeStats 1ms

/Lib/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py

http://unladen-swallow.googlecode.com/
Python | 193 lines | 169 code | 15 blank | 9 comment | 4 complexity | ec2f73b4329d0c57333dbb84a9b58772 MD5 | raw file
  1"""
  2Package generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5
  3"""
  4
  5from warnings import warnpy3k
  6warnpy3k("In 3.x, the CodeWarrior package is removed.", stacklevel=2)
  7
  8import aetools
  9Error = aetools.Error
 10import CodeWarrior_suite
 11import Standard_Suite
 12import Metrowerks_Shell_Suite
 13import Required
 14
 15
 16_code_to_module = {
 17    'CWIE' : CodeWarrior_suite,
 18    'CoRe' : Standard_Suite,
 19    'MMPR' : Metrowerks_Shell_Suite,
 20    'reqd' : Required,
 21}
 22
 23
 24
 25_code_to_fullname = {
 26    'CWIE' : ('CodeWarrior.CodeWarrior_suite', 'CodeWarrior_suite'),
 27    'CoRe' : ('CodeWarrior.Standard_Suite', 'Standard_Suite'),
 28    'MMPR' : ('CodeWarrior.Metrowerks_Shell_Suite', 'Metrowerks_Shell_Suite'),
 29    'reqd' : ('CodeWarrior.Required', 'Required'),
 30}
 31
 32from CodeWarrior_suite import *
 33from Standard_Suite import *
 34from Metrowerks_Shell_Suite import *
 35from Required import *
 36
 37def getbaseclasses(v):
 38    if not getattr(v, '_propdict', None):
 39        v._propdict = {}
 40        v._elemdict = {}
 41        for superclassname in getattr(v, '_superclassnames', []):
 42            superclass = eval(superclassname)
 43            getbaseclasses(superclass)
 44            v._propdict.update(getattr(superclass, '_propdict', {}))
 45            v._elemdict.update(getattr(superclass, '_elemdict', {}))
 46        v._propdict.update(getattr(v, '_privpropdict', {}))
 47        v._elemdict.update(getattr(v, '_privelemdict', {}))
 48
 49import StdSuites
 50
 51#
 52# Set property and element dictionaries now that all classes have been defined
 53#
 54getbaseclasses(character)
 55getbaseclasses(selection_2d_object)
 56getbaseclasses(application)
 57getbaseclasses(document)
 58getbaseclasses(text)
 59getbaseclasses(window)
 60getbaseclasses(file)
 61getbaseclasses(line)
 62getbaseclasses(insertion_point)
 63getbaseclasses(single_class_browser)
 64getbaseclasses(project_document)
 65getbaseclasses(symbol_browser)
 66getbaseclasses(editor_document)
 67getbaseclasses(file_compare_document)
 68getbaseclasses(class_browser)
 69getbaseclasses(subtarget)
 70getbaseclasses(message_document)
 71getbaseclasses(project_inspector)
 72getbaseclasses(text_document)
 73getbaseclasses(catalog_document)
 74getbaseclasses(class_hierarchy)
 75getbaseclasses(target)
 76getbaseclasses(build_progress_document)
 77getbaseclasses(target_file)
 78getbaseclasses(ToolServer_worksheet)
 79getbaseclasses(single_class_hierarchy)
 80getbaseclasses(File_Mapping)
 81getbaseclasses(browser_catalog)
 82getbaseclasses(Build_Settings)
 83getbaseclasses(ProjectFile)
 84getbaseclasses(VCS_Setup)
 85getbaseclasses(data_member)
 86getbaseclasses(Shielded_Folder)
 87getbaseclasses(Custom_Keywords)
 88getbaseclasses(Path_Information)
 89getbaseclasses(Segment)
 90getbaseclasses(Source_Tree)
 91getbaseclasses(Access_Paths)
 92getbaseclasses(Debugger_Windowing)
 93getbaseclasses(Relative_Path)
 94getbaseclasses(Environment_Variable)
 95getbaseclasses(base_class)
 96getbaseclasses(Debugger_Display)
 97getbaseclasses(Build_Extras)
 98getbaseclasses(Error_Information)
 99getbaseclasses(Editor)
100getbaseclasses(Shielded_Folders)
101getbaseclasses(Extras)
102getbaseclasses(File_Mappings)
103getbaseclasses(Function_Information)
104getbaseclasses(Debugger_Target)
105getbaseclasses(Syntax_Coloring)
106getbaseclasses(class_)
107getbaseclasses(Global_Source_Trees)
108getbaseclasses(Target_Settings)
109getbaseclasses(Debugger_Global)
110getbaseclasses(member_function)
111getbaseclasses(Runtime_Settings)
112getbaseclasses(Plugin_Settings)
113getbaseclasses(Browser_Coloring)
114getbaseclasses(Font)
115getbaseclasses(Target_Source_Trees)
116
117#
118# Indices of types declared in this module
119#
120_classdeclarations = {
121    'cha ' : character,
122    'csel' : selection_2d_object,
123    'capp' : application,
124    'docu' : document,
125    'ctxt' : text,
126    'cwin' : window,
127    'file' : file,
128    'clin' : line,
129    'cins' : insertion_point,
130    '1BRW' : single_class_browser,
131    'PRJD' : project_document,
132    'SYMB' : symbol_browser,
133    'EDIT' : editor_document,
134    'COMP' : file_compare_document,
135    'BROW' : class_browser,
136    'SBTG' : subtarget,
137    'MSSG' : message_document,
138    'INSP' : project_inspector,
139    'TXTD' : text_document,
140    'CTLG' : catalog_document,
141    'HIER' : class_hierarchy,
142    'TRGT' : target,
143    'PRGS' : build_progress_document,
144    'SRCF' : target_file,
145    'TOOL' : ToolServer_worksheet,
146    '1HIR' : single_class_hierarchy,
147    'FMap' : File_Mapping,
148    'Cata' : browser_catalog,
149    'BSTG' : Build_Settings,
150    'SrcF' : ProjectFile,
151    'VCSs' : VCS_Setup,
152    'DtMb' : data_member,
153    'SFit' : Shielded_Folder,
154    'CUKW' : Custom_Keywords,
155    'PInf' : Path_Information,
156    'Seg ' : Segment,
157    'SrcT' : Source_Tree,
158    'PATH' : Access_Paths,
159    'DbWN' : Debugger_Windowing,
160    'RlPt' : Relative_Path,
161    'EnvV' : Environment_Variable,
162    'BsCl' : base_class,
163    'DbDS' : Debugger_Display,
164    'LXTR' : Build_Extras,
165    'ErrM' : Error_Information,
166    'EDTR' : Editor,
167    'SHFL' : Shielded_Folders,
168    'GXTR' : Extras,
169    'FLMP' : File_Mappings,
170    'FDef' : Function_Information,
171    'DbTG' : Debugger_Target,
172    'SNTX' : Syntax_Coloring,
173    'Clas' : class_,
174    'GSTs' : Global_Source_Trees,
175    'TARG' : Target_Settings,
176    'DbGL' : Debugger_Global,
177    'MbFn' : member_function,
178    'RSTG' : Runtime_Settings,
179    'PSTG' : Plugin_Settings,
180    'BRKW' : Browser_Coloring,
181    'mFNT' : Font,
182    'TSTs' : Target_Source_Trees,
183}
184
185
186class CodeWarrior(CodeWarrior_suite_Events,
187        Standard_Suite_Events,
188        Metrowerks_Shell_Suite_Events,
189        Required_Events,
190        aetools.TalkTo):
191    _signature = 'CWIE'
192
193    _moduleName = 'CodeWarrior'