Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 141f9a0

Browse files
committed
Regenrated from CW11 IDE
1 parent 0e351f3 commit 141f9a0

1 file changed

Lines changed: 200 additions & 32 deletions

File tree

Mac/Lib/toolbox/Metrowerks_Shell_Suite.py

Lines changed: 200 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Suite Metrowerks Shell Suite: Events supported by the Metrowerks Project Shell
22
Level 1, version 1
33
4-
Generated from flap:CW9 Gold:Metrowerks CodeWarrior:CodeWarrior IDE 1.6.3
4+
Generated from flap:Metrowerks:Metrowerks CodeWarrior:CodeWarrior IDE 1.7.4
55
AETE/AEUT resource version 1/0, language 0, script 0
66
"""
77

@@ -18,13 +18,13 @@
1818

1919
_Enum_ErrT = {
2020
'information' : 'ErIn', #
21-
'compiler_error' : 'ErCE', #
2221
'compiler_warning' : 'ErCW', #
22+
'compiler_error' : 'ErCE', #
2323
'definition' : 'ErDf', #
24-
'linker_error' : 'ErLE', #
2524
'linker_warning' : 'ErLW', #
25+
'linker_error' : 'ErLE', #
2626
'find_result' : 'ErFn', #
27-
'browser_error' : 'ErBr', #
27+
'generic_error' : 'ErGn', #
2828
}
2929

3030
_Enum_Mode = {
@@ -53,6 +53,22 @@
5353
'QuickView' : 'ALTV', #
5454
}
5555

56+
_Enum_Lang = {
57+
'C' : 'LC ', #
58+
'C_2b__2b_' : 'LC++', #
59+
'Pascal' : 'LP ', #
60+
'Object_Pascal' : 'LP++', #
61+
'Java' : 'LJav', #
62+
'Assembler' : 'LAsm', #
63+
'Unknown' : 'L? ', #
64+
}
65+
66+
_Enum_Acce = {
67+
'public' : 'Publ', #
68+
'protected' : 'Prot', #
69+
'private' : 'Priv', #
70+
}
71+
5672
class Metrowerks_Shell_Suite:
5773

5874
_argmap_Add_Files = {
@@ -563,8 +579,8 @@ def Run_Project(self, _no_object=None, _attributes={}, **_arguments):
563579
if _arguments.has_key('----'):
564580
return _arguments['----']
565581

566-
def Save_Message_Window_As(self, _object, _attributes={}, **_arguments):
567-
"""Save Message Window As: Saves the message window as a text file
582+
def Save_Error_Window_As(self, _object, _attributes={}, **_arguments):
583+
"""Save Error Window As: Saves the Errors & Warnings window as a text file
568584
Required argument: Destination file for Save Message Window As
569585
Keyword argument _attributes: AppleEvent attribute dictionary
570586
"""
@@ -723,6 +739,67 @@ def Update_Project(self, _no_object=None, _attributes={}, **_arguments):
723739
if _no_object != None: raise TypeError, 'No direct arg expected'
724740

725741

742+
_reply, _arguments, _attributes = self.send(_code, _subcode,
743+
_arguments, _attributes)
744+
if _arguments.has_key('errn'):
745+
raise aetools.Error, aetools.decodeerror(_arguments)
746+
# XXXX Optionally decode result
747+
if _arguments.has_key('----'):
748+
return _arguments['----']
749+
750+
def Open_browser(self, _object, _attributes={}, **_arguments):
751+
"""Open browser: Display a class, member function, or data member object in a single class browser window
752+
Required argument: an AE object reference
753+
Keyword argument _attributes: AppleEvent attribute dictionary
754+
"""
755+
_code = 'MMPR'
756+
_subcode = 'Brow'
757+
758+
if _arguments: raise TypeError, 'No optional args expected'
759+
_arguments['----'] = _object
760+
761+
762+
_reply, _arguments, _attributes = self.send(_code, _subcode,
763+
_arguments, _attributes)
764+
if _arguments.has_key('errn'):
765+
raise aetools.Error, aetools.decodeerror(_arguments)
766+
# XXXX Optionally decode result
767+
if _arguments.has_key('----'):
768+
return _arguments['----']
769+
770+
def Get_nonsimple_classes(self, _no_object=None, _attributes={}, **_arguments):
771+
"""Get nonsimple classes: Returns an alphabetical list of classes with member functions, bases classes, or subclasses
772+
Keyword argument _attributes: AppleEvent attribute dictionary
773+
Returns: undocumented, typecode 'list'
774+
"""
775+
_code = 'MMPR'
776+
_subcode = 'NsCl'
777+
778+
if _arguments: raise TypeError, 'No optional args expected'
779+
if _no_object != None: raise TypeError, 'No direct arg expected'
780+
781+
782+
_reply, _arguments, _attributes = self.send(_code, _subcode,
783+
_arguments, _attributes)
784+
if _arguments.has_key('errn'):
785+
raise aetools.Error, aetools.decodeerror(_arguments)
786+
# XXXX Optionally decode result
787+
if _arguments.has_key('----'):
788+
return _arguments['----']
789+
790+
def Get_member_function_names(self, _object, _attributes={}, **_arguments):
791+
"""Get member function names: Returns a list containing the names of all the member functions of a class object
792+
Required argument: must be a class object
793+
Keyword argument _attributes: AppleEvent attribute dictionary
794+
Returns: undocumented, typecode 'list'
795+
"""
796+
_code = 'MMPR'
797+
_subcode = 'MbFN'
798+
799+
if _arguments: raise TypeError, 'No optional args expected'
800+
_arguments['----'] = _object
801+
802+
726803
_reply, _arguments, _attributes = self.send(_code, _subcode,
727804
_arguments, _attributes)
728805
if _arguments.has_key('errn'):
@@ -737,53 +814,80 @@ def Update_Project(self, _no_object=None, _attributes={}, **_arguments):
737814
# property 'System Paths' ('PA03') 'PInf' -- 'To add an access path for the include files. (Not supported in Pascal)' [mutable list]
738815
# property 'Always Full Search' ('PA02') 'bool' -- 'To force the compiler to search for system includes like it searches for user includes.' [mutable]
739816

740-
# Class 'Document' ('docu') -- 'An open text file'
741-
# property 'name' ('pnam') 'TEXT' -- 'The document\325s name' []
742-
# property 'mode' ('Mode') 'Mode' -- 'The document\325s open mode' [enum]
743-
# property 'disk file' ('file') 'fss ' -- 'The document\325s location on disk' []
744-
745817
# Class 'Editor' ('EDTR') -- ''
746-
# property 'Syntax coloring' ('ED01') 'bool' -- 'Mark keywords and comments with color.' [mutable]
747-
# property 'Text color' ('ED02') 'cRGB' -- 'The color for ordinary text.' [mutable]
748-
# property 'Comment color' ('ED03') 'cRGB' -- 'The color for comments.' [mutable]
749-
# property 'Keyword color' ('ED04') 'cRGB' -- 'The color for language keywords.' [mutable]
750-
# property 'String color' ('ED05') 'cRGB' -- 'The color for strings.' [mutable]
751-
# property 'Custom color' ('ED06') 'cRGB' -- 'The color for custom keywords.' [mutable]
752-
# property 'Flash delay' ('ED07') 'long' -- 'The amount of time, in sixtieths of a second, the editor highlights a matching bracket.' [mutable]
753-
# property 'Dynamic scroll' ('ED08') 'bool' -- 'Display a window\325s contents as you move the scroll box.' [mutable]
754-
# property 'Balance' ('ED09') 'bool' -- 'Flash the matching opening bracket when you type a closing bracket.' [mutable]
755-
# property 'Remember font' ('ED10') 'bool' -- 'Display a source file with its own font settings.' [mutable]
756-
# property 'Remember window' ('ED11') 'bool' -- 'Restore the last size and position for a source file window when you open it.' [mutable]
757-
# property 'Remember selection' ('ED12') 'bool' -- 'Restore the previous selection in a file when you open it.' [mutable]
758-
# property 'Save on update' ('ED13') 'bool' -- 'Save all editor windows automatically when you choose the Update command.' [mutable]
759-
# property 'Projector aware' ('ED14') 'bool' -- "Honor MPW Projector\325s 'CKID' resources in text files." [mutable]
818+
# property 'Flash delay' ('ED01') 'long' -- 'The amount of time, in sixtieths of a second, the editor highlights a matching bracket.' [mutable]
819+
# property 'Dynamic scroll' ('ED02') 'bool' -- 'Display a window\325s contents as you move the scroll box.' [mutable]
820+
# property 'Balance' ('ED03') 'bool' -- 'Flash the matching opening bracket when you type a closing bracket.' [mutable]
821+
# property 'Use Drag & Drop Editing' ('ED04') 'bool' -- 'Use Drag & Drop text editing.' [mutable]
822+
# property 'Save on update' ('ED05') 'bool' -- 'Save all editor windows automatically when you choose the Update command.' [mutable]
823+
# property 'Sort Function Popup' ('ED06') 'bool' -- '' [mutable]
824+
# property 'Use Multiple Undo' ('ED07') 'bool' -- '' [mutable]
825+
# property 'Remember font' ('ED08') 'bool' -- 'Display a source file with its own font settings.' [mutable]
826+
# property 'Remember selection' ('ED09') 'bool' -- 'Restore the previous selection in a file when you open it.' [mutable]
827+
# property 'Remember window' ('ED10') 'bool' -- 'Restore the last size and position for a source file window when you open it.' [mutable]
828+
# property 'Main Text Color' ('ED12') 'cRGB' -- 'Main, default, color for text.' [mutable]
829+
# property 'Background Color' ('ED13') 'cRGB' -- 'Color of the background of editor windows.' [mutable]
830+
# property 'Context Popup Delay' ('ED14') 'bool' -- 'The amount of time, in sixtieths of a second, before the context popup is displayed if you click and hold on a browser symbol.' [mutable]
831+
832+
# Class 'Syntax Coloring' ('SNTX') -- ''
833+
# property 'Syntax coloring' ('GH01') 'bool' -- 'Mark keywords and comments with color.' [mutable]
834+
# property 'Comment color' ('GH02') 'cRGB' -- 'The color for comments.' [mutable]
835+
# property 'Keyword color' ('GH03') 'cRGB' -- 'The color for language keywords.' [mutable]
836+
# property 'String color' ('GH04') 'cRGB' -- 'The color for strings.' [mutable]
837+
# property 'Custom color 1' ('GH05') 'cRGB' -- 'The color for the first set of custom keywords.' [mutable]
838+
# property 'Custom color 2' ('GH06') 'cRGB' -- 'The color for the second set custom keywords.' [mutable]
839+
# property 'Custom color 3' ('GH07') 'cRGB' -- 'The color for the third set of custom keywords.' [mutable]
840+
# property 'Custom color 4' ('GH08') 'cRGB' -- 'The color for the fourth set of custom keywords.' [mutable]
841+
842+
# Class 'Custom Keywords' ('CUKW') -- ''
843+
# property 'Custom color 1' ('KW01') 'cRGB' -- 'The color for the first set of custom keywords.' [mutable]
844+
# property 'Custom color 2' ('KW02') 'cRGB' -- 'The color for the second set custom keywords.' [mutable]
845+
# property 'Custom color 3' ('KW03') 'cRGB' -- 'The color for the third set of custom keywords.' [mutable]
846+
# property 'Custom color 4' ('KW04') 'cRGB' -- 'The color for the fourth set of custom keywords.' [mutable]
847+
848+
# Class 'Browser Coloring' ('BRKW') -- 'Colors for Browser symbols.'
849+
# property 'Browser Keywords' ('BW00') 'bool' -- 'Mark Browser symbols with color.' [mutable]
850+
# property 'Classes Color' ('BW01') 'cRGB' -- 'The color for classes.' [mutable]
851+
# property 'Constants Color' ('BW02') 'cRGB' -- 'The color for constants.' [mutable]
852+
# property 'Enums Color' ('BW03') 'cRGB' -- 'The color for enums.' [mutable]
853+
# property 'Functions Color' ('BW04') 'cRGB' -- 'Set color for functions.' [mutable]
854+
# property 'Globals Color' ('BW05') 'cRGB' -- 'The color for globals' [mutable]
855+
# property 'Macros Color' ('BW06') 'cRGB' -- 'The color for macros.' [mutable]
856+
# property 'Templates Color' ('BW07') 'cRGB' -- 'Set color for templates.' [mutable]
857+
# property 'Typedefs Color' ('BW08') 'cRGB' -- 'The color for typedefs.' [mutable]
760858

761859
# Class 'Error Information' ('ErrM') -- 'Describes a single error or warning from the compiler or the linker.'
762860
# property 'kind' ('ErrT') 'ErrT' -- 'The type of error or warning.' [enum]
763861
# property 'message' ('ErrS') 'TEXT' -- 'The error or warning message.' []
764862
# property 'disk file' ('file') 'fss ' -- 'The file where the error occurred. May not be returned for certain kinds of errors (eg, link errors).' []
765-
# property 'line' ('ErrL') 'long' -- 'The line in the file where the error occurred. May not be returned for certain kinds of errors (eg, link errors).' []
863+
# property 'lineNumber' ('ErrL') 'long' -- 'The line in the file where the error occurred. May not be returned for certain kinds of errors (eg, link errors).' []
766864

767-
# Class 'Extras' ('EXTR') -- ''
865+
# Class 'Extras' ('GXTR') -- ''
768866
# property 'Completion sound' ('EX01') 'bool' -- 'Play a sound when finished a Bring Up To Date or Make command.' [mutable]
769867
# property 'Success sound' ('EX02') 'TEXT' -- 'The sound CodeWarrior plays when it successfully finishes a Bring Up To Date or Make command.' [mutable]
770868
# property 'Failure sound' ('EX03') 'TEXT' -- 'The sound CodeWarrior plays when it cannot finish a Bring Up To Date or Make command.' [mutable]
771-
# property 'Modification date caching' ('EX04') 'bool' -- '' [mutable]
772-
# property 'Generate Map' ('EX05') 'bool' -- 'Generate a Pascal Make map file.' [mutable]
773-
# property 'Store analysis results' ('EX06') 'bool' -- '' [mutable]
774869
# property 'Full screen zoom' ('EX07') 'bool' -- 'Zoom windows to the full screen width.' [mutable]
775870
# property 'External reference' ('EX08') 'RefP' -- 'Which on-line function reference to use.' [mutable enum]
871+
# property 'Use Script Menu' ('EX12') 'bool' -- 'Controls the use of the AppleScript menu' [mutable]
872+
# property 'Use Editor Extensions' ('EX10') 'bool' -- 'Controls the use of the Editor Extensions menu' [mutable]
873+
# property 'Use External Editor' ('EX11') 'bool' -- 'Controls whether CodeWarrior uses its own integrated editor or an external application for editing text files.' [mutable]
874+
# property 'Honor Projector State for Projects' ('EX13') 'bool' -- 'Controls whether CodeWarrior opens files set to read-only by Projector.' [mutable]
875+
876+
# Class 'Build Extras' ('LXTR') -- ''
776877
# property 'Browser active' ('EX09') 'bool' -- 'Allow the collection of browser information.' [mutable]
878+
# property 'Modification date caching' ('EX04') 'bool' -- '' [mutable]
879+
# property 'Generate Map' ('EX05') 'bool' -- 'Generate a Pascal Make map file.' [mutable]
880+
# property 'Store analysis results' ('EX06') 'bool' -- '' [mutable]
777881

778882
# Class 'Font' ('mFNT') -- ''
779883
# property 'Auto indent' ('FN01') 'bool' -- 'Indent new lines automatically.' [mutable]
780-
# property 'Tab size' ('FN02') 'shor' -- '' []
884+
# property 'Tab size' ('FN02') 'shor' -- '' [mutable]
781885
# property 'Text font' ('ptxf') 'TEXT' -- 'The font used in editing windows.' [mutable]
782886
# property 'Text size' ('ptps') 'shor' -- 'The size of the text in an editing window.' [mutable]
783887

784888
# Class 'Function Information' ('FDef') -- 'Describes the location of any function or global data definition within the current project.'
785889
# property 'disk file' ('file') 'fss ' -- 'The location on disk of the file containing the definition.' []
786-
# property 'line' ('ErrL') 'long' -- 'The line number where the definition begins.' []
890+
# property 'lineNumber' ('ErrL') 'long' -- 'The line number where the definition begins.' []
787891

788892
# Class 'Path Information' ('PInf') -- 'Contains all of the parameters that describe an access path.'
789893
# property 'name' ('pnam') 'TEXT' -- 'The actual path name.' [mutable]
@@ -800,6 +904,7 @@ def Update_Project(self, _no_object=None, _attributes={}, **_arguments):
800904
# property 'symbols' ('SymG') 'bool' -- 'Are debugging symbols generated for this file ?' [mutable]
801905
# property 'weak link' ('Weak') 'bool' -- 'Is this file imported weakly into the project ? [PowerPC only]' [mutable]
802906
# property 'initialize before' ('Bfor') 'bool' -- 'Intiailize the shared library before the main application.' [mutable]
907+
# property 'includes' ('IncF') 'fss ' -- '' []
803908

804909
# Class 'Segment' ('Seg ') -- 'A segment or group in the project'
805910
# property 'name' ('pnam') 'TEXT' -- '' [mutable]
@@ -822,3 +927,66 @@ def Update_Project(self, _no_object=None, _attributes={}, **_arguments):
822927
# property 'Launchable' ('TA05') 'bool' -- '' [mutable]
823928
# property 'Ignored by Make' ('TA06') 'bool' -- '' [mutable]
824929
# property 'Compiler' ('TA07') 'TEXT' -- '' [mutable]
930+
931+
# Class 'class' ('Clas') -- 'A class, struct, or record type in the current project'
932+
# property 'name' ('pnam') 'TEXT' -- '' []
933+
# property 'language' ('Lang') 'Lang' -- 'Implementation language of this class' [enum]
934+
# property 'declaration file' ('DcFl') 'fss ' -- 'Source file containing the class declaration' []
935+
# property 'declaration start offset' ('DcSt') 'long' -- 'Start of class declaration source code' []
936+
# property 'declaration end offset' ('DcEn') 'long' -- 'End of class declaration' []
937+
# property 'subclasses' ('SubC') 'Clas' -- 'the immediate subclasses of this class' [list]
938+
# property 'all subclasses' ('SubA') 'Clas' -- 'the classes directly or indirectly derived from this class' [list]
939+
# element 'BsCl' as ['indx']
940+
# element 'MbFn' as ['indx', 'name']
941+
# element 'DtMb' as ['indx', 'name']
942+
943+
# Class 'classes' ('Clas') -- ''
944+
# property '' ('c@#!') 'type' -- '' [0]
945+
946+
# Class 'member function' ('MbFn') -- 'A class member function or method.'
947+
# property 'name' ('pnam') 'TEXT' -- '' []
948+
# property 'access' ('Acce') 'Acce' -- '' [enum]
949+
# property 'virtual' ('Virt') 'bool' -- '' []
950+
# property 'static' ('Stat') 'bool' -- '' []
951+
# property 'declaration file' ('DcFl') 'fss ' -- 'Source file containing the member function declaration' []
952+
# property 'declaration start offset' ('DcSt') 'long' -- 'start of member function declaration source code' []
953+
# property 'declaration end offset' ('DcEn') 'long' -- 'end of member function declaration' []
954+
# property 'implementation file' ('DfFl') 'fss ' -- 'Source file containing the member function definition' []
955+
# property 'implementation start offset' ('DfSt') 'long' -- 'start of member function definition source code' []
956+
# property 'implementation end offset' ('DfEn') 'long' -- 'end of member function definition' []
957+
958+
# Class 'member functions' ('MbFn') -- ''
959+
# property '' ('c@#!') 'type' -- '' [0]
960+
961+
# Class 'data member' ('DtMb') -- 'A class data member or field'
962+
# property 'name' ('pnam') 'TEXT' -- '' []
963+
# property 'access' ('Acce') 'Acce' -- '' [enum]
964+
# property 'static' ('Stat') 'bool' -- '' []
965+
# property 'declaration start offset' ('DcSt') 'long' -- '' []
966+
# property 'declaration end offset' ('DcEn') 'long' -- '' []
967+
968+
# Class 'data members' ('DtMb') -- ''
969+
# property '' ('c@#!') 'type' -- '' [0]
970+
971+
# Class 'base class' ('BsCl') -- 'A base class or super class of a class'
972+
# property 'class' ('Clas') 'obj ' -- 'The class object corresponding to this base class' []
973+
# property 'access' ('Acce') 'Acce' -- '' [enum]
974+
# property 'virtual' ('Virt') 'bool' -- '' []
975+
976+
# Class 'base classes' ('BsCl') -- ''
977+
# property '' ('c@#!') 'type' -- '' [0 enum]
978+
979+
# Class 'browser catalog' ('Cata') -- 'The browser symbol catalog for the current project'
980+
# element 'Clas' as ['indx', 'name']
981+
982+
# Class 'VCS Setup' ('VCSs') -- 'The version control system perferences.'
983+
# property 'VCS Active' ('VC01') 'bool' -- 'Use Version Control' [mutable]
984+
# property 'Connection Method' ('VC02') 'TEXT' -- 'Name of Version Control System to use.' [mutable]
985+
# property 'Username' ('VC03') 'TEXT' -- 'The user name for the VCS.' [mutable]
986+
# property 'Password' ('VC04') 'TEXT' -- 'The password for the VCS.' [mutable]
987+
# property 'Auto Connect' ('VC05') 'bool' -- 'Automatically connect to database when starting.' [mutable]
988+
# property 'Store Password' ('VC06') 'bool' -- 'Store the password.' [mutable]
989+
# property 'Always Prompt' ('VC07') 'bool' -- 'Always show login dialog' [mutable]
990+
# property 'Mount Volume' ('VC08') 'bool' -- "Attempt to mount the database volume if it isn't available." [mutable]
991+
# property 'Database Path' ('VC09') 'PInf' -- 'Path to the VCS database.' [mutable]
992+
# property 'Local Root' ('VC10') 'PInf' -- 'Path to the local directory to checkout to.' [mutable]

0 commit comments

Comments
 (0)