home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 4.8 KB | 151 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Defines.k
- // Release Version: $ ODF 1 $
- //
- // Author: Henri Lamiraux
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef DEFINES_K
- #define DEFINES_K
-
- #ifndef FWMENU_K
- #include "FWMenu.k"
- #endif
-
- //-------------------------------------------------------------------------------------
- // Uncomment the following three lines, and define them appropriately!!
- // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
- // to be 1. Otherwise define it to be 0.
- // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
- // 1 to enable the extensions manager. Otherwise, define it to be 0.
- // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
- // define it to be zero. Note that if your part is scriptable is must support
- // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
-
- #define FW_SUPPORTS_EMBEDDING 1
- #define FW_SUPPORTS_EXTENSIONS 1
- #define FW_SUPPORTS_SCRIPTING 1
-
- //-------------------------------------------------------------------------------------
- // Icons ID
- #define kViewAsIconID 128
- #define kAboutIconID 130
-
- //-------------------------------------------------------------------------------------
- // Frame Presentations
- #define kMainPresentation "Apple:Presentation:DrawPart:Main"
- #define kPalettePresentation "Apple:Presentation:DrawPart:Palette"
- #define kPatternPresentation "Apple:Presentation:DrawPart:Pattern"
- #define kToolPresentation "Apple:Presentation:DrawPart:Tool"
- #define kPrintPresentation "Apple:Presentation:DrawPart:Print"
- #define kAlignObjectsPresentation "Apple:Presentation:DrawPart:AlignObjects"
-
- //-------------------------------------------------------------------------------------
- // Types
- #define kPublishFormat "Apple:Publish:Draw"
- #define kSubscribeFormat "Apple:Subscribe:Draw"
-
- //-------------------------------------------------------------------------------------
- // About
- #define kAbout 1200
-
- //-------------------------------------------------------------------------------------
- // Menus
- #define kMenuBar 1200
-
- #define cMoveForward FW_kFirstUserCommandID
- #define cMoveToFront cMoveForward + 1
- #define cMoveBackward cMoveToFront + 1
- #define cMoveToBack cMoveBackward + 1
- #define cAlignToGrid cMoveToBack + 1
- #define cAlignObjects cAlignToGrid + 1
- #define cRotate cAlignObjects + 1
- #define cFlipH cRotate + 1
- #define cFlipV cFlipH + 1
- #define cGroup cFlipV + 1
- #define cUngroup cGroup + 1
- #define cLock cUngroup + 1
- #define cUnlock cLock + 1
-
- #define cPen1 cUnlock + 1
- #define cPen2 cPen1+1
- #define cPen3 cPen2+1
- #define cPen4 cPen3+1
- #define cPen5 cPen4+1
-
- #define cGraphicsGrid cPen5 + 1
- #define cRulers cGraphicsGrid + 1
- #define cAutoGrid cRulers + 1
- #define cScaleSelection cAutoGrid + 1
- #define cRoundCorners cScaleSelection + 1
-
- #define cAsFrame cRoundCorners + 1
- #define cAsLargeIcon cAsFrame + 1
- #define cAsSmallIcon cAsLargeIcon + 1
- #define cAsThumbnail cAsSmallIcon + 1
-
- #define cZoom50 cAsThumbnail + 1
- #define cZoom100 cZoom50 + 1
- #define cZoom200 cZoom100 + 1
-
- #define cInchUnit cZoom200 + 1
- #define cCmUnit cInchUnit + 1
- #define cPixelUnit cCmUnit + 1
- #define cPicaUnit cPixelUnit + 1
- #define cDegreesUnit cPicaUnit + 1
- #define cRadiansUnit cDegreesUnit + 1
-
- #define cHideShowTools cRadiansUnit + 1
- #define cHideShowPattern cHideShowTools+1
- #define cHideShowPalette cHideShowPattern+1
-
- //-------------------------------------------------------------------------------------
- // Views
- #define kDrawView 1200
- #define kDrawViewNotRoot 1201
-
- #define kDrawViewID 2
- #define kHorzScrollBarID 3
- #define kVertScrollBarID 4
- #define kGrowBoxID 5
- #define kHorzRulerID 6
- #define kVertRulerID 7
-
- //-------------------------------------------------------------------------------------
- // Strings
- #define kDrawUndoStrings 1200
- #define kUndoFillColorMsg 1
- #define kRedoFillColorMsg 2
- #define kUndoFrameColorMsg 3
- #define kRedoFrameColorMsg 4
- #define kUndoFillPatternMsg 5
- #define kRedoFillPatternMsg 6
- #define kUndoFramePatternMsg 7
- #define kRedoFramePatternMsg 8
- #define kUndoPenSizeMsg 9
- #define kRedoPenSizeMsg 10
- #define kUndoRenderVerbMsg 11
- #define kRedoRenderVerbMsg 12
- #define kUndoDrawingMsg 13
- #define kRedoDrawingMsg 14
- #define kUndoGroupMsg 15
- #define kRedoGroupMsg 16
- #define kUndoUngroupMsg 17
- #define kRedoUngroupMsg 18
- #define kUndoResizeMsg 19
- #define kRedoResizeMsg 20
-
- #define kDrawingSizeX 600
- #define kDrawingSizeY 800
-
- //-------------------------------------------------------------------------------------
- // Part Info
- #define kPartInfoID 1200
-
- #endif
-
-