App Class Reference
[AppSupport]

Inherits Application.

Inheritance diagram for App:

Inheritance graph
[legend]
Collaboration diagram for App:

Collaboration graph
[legend]
List of all members.

Public Member Functions

StyleEditField ActiveStyleEdit ()
boolean AnyWindowsOpen ()
void ChangedGlobalUnits ()
void ClosedTextInspector ()
void ClosingWindow (docWindowBase inWin)
integer CountSelectableObjects ()
docWindow CreateNewDocumentWindow (TemplateLayer newTemplate, string inName)
labelPreviewWindow CreateNewLabelPreviewWindow (TemplateLayer newTemplate, string inName, docWindow parentWindow)
void CurrentDocUpdated (boolean redrawGraphics=true)
ADBaseShape CurrentShape ()
Boolean DisplayAllObjects ()
void DisplayAllObjects (boolean inDisp)
void EnableVendorMenu ()
void FillFontMenu ()
ADBaseShape FindObject (integer inX, integer inY)
void ForceAllObjectsRedraw ()
void ForgetCurrentSelection ()
docWindowBase FrontWindow ()
EditField GetScratchEditFieldForTextRender ()
void HandleColorChange (Color inUseColor, boolean inUseSelector, boolean inBorder)
void HandleNew ()
boolean HandleOpen ()
void HandleRedo ()
void HandleTextColorChangeZZ (Color inColour)
void HandleTextInspector (boolean forceFront=false)
void HandleUndo ()
boolean HaveMultipleSelection ()
void initXMLDocFactories ()
void InsertObject (integer i, ADBaseShape insObj)
Boolean InspectorWasVisible ()
void InspectorWindowShowHide (Boolean inShow)
void MakeCurrent (ADBaseShape newCurrent)
ADBaseShape MakeShape (string shapeName)
ADBaseShape MakeShape ()
ADBaseShape MakeShapeFromID (integer inID)
void MaxImageFileSize (integer inMaxSize)
integer MaxImageFileSize ()
void ObjectListMoveToEnd (ADBaseShape inList[], ADBaseShape inShape)
void ObjectListMoveToStart (ADBaseShape inList[], ADBaseShape inShape)
void ObjectListMoveTowardsEnd (ADBaseShape inList[], ADBaseShape inShape)
void ObjectListMoveTowardsStart (ADBaseShape inList[], ADBaseShape inShape)
ADBaseShape ObjectListNext (ADBaseShape inList[], ADBaseShape inShape)
ADBaseShape ObjectListPrevious (ADBaseShape inList[], ADBaseShape inShape)
integer ObjectListShapeIndex (ADBaseShape inList[], ADBaseShape inShape)
void ObjectListSwapAtIndex (ADBaseShape inList[], integer inIndex1, integer inIndex2)
RecentFilesList RecentFiles ()
void RemoveObject (integer i)
void RemoveObject (ADBaseShape inObject)
Color SelectionHandleColor ()
integer ShapeNameToID (string shapeName)
XMLElement TemplateElementFromFile (FolderItem inFile)
FolderItem TemplatesFolder ()
TextInspectorWindow TextInspector ()
void ToggleWindowVisible (window inWin)
void ToolWindowShowHide (Boolean inShow)
Boolean ToolWindowWasVisible ()
void VendorBuild (boolean inVendor)
Boolean VendorBuild ()
void WindowActivated (docWindowBase becomingFront)

Protected Member Functions

void CheckQuicktimeInstalled ()
void InitVendorMenu ()
void LoadPrefs ()
void UtilityWindowShowHide (Window inWin, Boolean inShow)
XmlDocument XMLFromDocument (FolderItem item, Docbundler usingBundler=nil)

Package Attributes

ImageManager CurrentImageManager
boolean gQuitting
boolean gWindowsIgnoreClose
Canvas mActiveCanvas
Color mBorderColor
BumperCoordinator mBumperCoordinator
CmdProcessor mCmdProcessor
ShapeLayer mCurrentLayer
ADBaseShape mCurrentShape
boolean mDisplayAllObjects
docWindowBase mDocWindows []
color mFillColor
ImageCacheSingleton mImageCacheSingleton
InspectorWindow mInspector
Boolean mInspectorWasVisible
integer mMaxImageFileSize
ADMultiShape mMultipleSelection
boolean mMultiShapeOpInProgress
integer mNewDocumentsCount
ADBaseShape mObjectList []
ADPluginManager mPluginManager
positionWindow mPositionWindow
MFPreferences mPreferences
RecentFilesList mRecentFiles
ResourcesBrowserWindow mResourcesBrowserWindow
QueuedActionRunner mRunner
ADBaseShape mSelectionList []
TemplatesLibraryWindow mTemplateBrowser
DocBundler mTemplateDocBundler
ImageManager mTemplateImageManager
TextInspectorWindow mTextInspectorWindow
integer mToolID
Boolean mToolsWereVisible
ToolWindow mToolWindow
boolean mVendorBuild
MenuItem mVendorMenu_EditReplicateTemplate
MenuItem mVendorMenu_ViewEditTemplateGuidelines
MenuItem mVendorMenu_ViewToggleTemplate
MenuItem mVendorMenuItems []

Private Member Functions

string NewDocumentName ()
Menu Handlers
bool About ()
bool AlignBottoms ()
bool AlignHorizontalCentres ()
bool AlignLeftEdges ()
bool AlignRightEdges ()
bool AlignTops ()
bool AlignVerticalCentres ()
bool ApplyPictureEffects ()
bool EditChangeBarcode ()
bool EditChangeSerialNumber ()
bool EditChangeTable ()
bool EditClear ()
bool EditCopy ()
bool EditCut ()
bool EditGeneratedFill ()
bool EditGroup ()
bool EditPaste ()
bool EditRedo ()
bool EditReplicateTemplate ()
bool EditSelectAll ()
bool EditUndo ()
bool EditUngroup ()
bool FileChangeActiveTemplate ()
bool FileClose ()
bool FileNew ()
bool FileOpen ()
bool FilePageSetup ()
bool FilePrint ()
bool FilePrinterControl ()
bool FileRevert ()
bool FileSave ()
bool FileSaveAs ()
bool Inspector ()
bool LayerGuidelines ()
bool LoadTemplateWithoutBrowsing ()
bool MenuBlack ()
bool MenuBlue ()
bool MenuBrown ()
bool MenuCyan ()
bool MenuGreen ()
bool MenuMagenta ()
bool MenuOrange ()
bool MenuPurple ()
bool MenuRed ()
bool MenuWhite ()
bool MenuYellow ()
bool MoveDown ()
bool MoveLeft ()
bool MoveRight ()
bool MoveUp ()
bool ReplicateInGrid ()
bool ReplicateToMatchingTemplates ()
bool RulerScalecm ()
bool RulerScaleInches ()
bool RulerScalemm ()
bool RulerScalePoints ()
bool SelectByTemplate ()
bool ShapeCentreNearestTemplate ()
bool ShapeRotate ()
bool SnapToGuidelines ()
bool TextInspector ()
bool ToolPalette ()
bool ToolsCliptoTemplate ()
bool ToolsColours ()
bool ToolsDisplayTemplateOutlines ()
bool ToolsGrid ()
bool ToolsMoveBack ()
bool ToolsMoveForward ()
bool ToolsMoveToBack ()
bool ToolsMoveToFront ()
bool ToolsPositionTools ()
bool ToolsPreferences ()
bool ToolsSnapToGrid ()
bool ToolsTemplateLabelSettings ()
bool ToolsTemplateSettings ()
bool ViewEditGuidelinesLayer ()
bool ViewEditNormalLayer ()
bool ViewEditTemplateGuidelines ()
bool ViewLabelPage ()
bool ViewLayersTemplateGuidelines ()
bool ViewPrintableOnly ()
bool ViewRefresh ()
bool ViewToggleTemplate ()
bool ViewZoom100 ()
bool ViewZoomIn ()
bool ViewZoomOut ()
bool ViewZoomTo ()
Events
bool Activate ()
bool Close ()
bool Deactivate ()
bool EnableMenuItems ()
bool HandleAppleEvent ()
bool NewDocument ()
bool Open ()
bool OpenDocument ()

Detailed Description

The application instance is responsible for managing the toolbar and inspector windows as well as any global data structures. The instance manages the creation and destruction of the toollbar and inspector windows as well as their visibility. It does NOT handle the dispLay of data within these windows.

Currently the application instance has a global member variable which is a list of all shape instances in the current document. This is a reference only and is changed when you change layers (or windows).

The application instance also acts as a 'go-between' between a shape instance and the window it is attached to. Shape instances have no knowledge of the window they may be drawn therefore shape inStances make requests to the application instance for some operations such as sending mesages to the inspector window to update

The application instance is also used to handle tricky situations where shape instances may need specific drawing information but do not have access to that information. An example of this is during the render process for text blocks. text blocks require specific drawing environments prepared so a mesage is sent by the text instance to the application instance to handle the operation. Once everything is prepared, the application instance sends a message to the text instance to complete its rendering.


Member Function Documentation

bool App.About (  )  [private]

bool App.Activate (  )  [private]

StyleEditField App.ActiveStyleEdit (  ) 

bool App.AlignBottoms (  )  [private]

bool App.AlignHorizontalCentres (  )  [private]

bool App.AlignLeftEdges (  )  [private]

bool App.AlignRightEdges (  )  [private]

bool App.AlignTops (  )  [private]

bool App.AlignVerticalCentres (  )  [private]

boolean App.AnyWindowsOpen (  ) 

bool App.ApplyPictureEffects (  )  [private]

void App.ChangedGlobalUnits (  ) 

void App.CheckQuicktimeInstalled (  )  [protected]

bool App.Close (  )  [private]

void App.ClosedTextInspector (  ) 

void App.ClosingWindow ( docWindowBase  inWin  ) 

integer App.CountSelectableObjects (  ) 

docWindow App.CreateNewDocumentWindow ( TemplateLayer  newTemplate,
string  inName 
)

labelPreviewWindow App.CreateNewLabelPreviewWindow ( TemplateLayer  newTemplate,
string  inName,
docWindow  parentWindow 
)

void App.CurrentDocUpdated ( boolean  redrawGraphics = true  ) 

ADBaseShape App.CurrentShape (  ) 

bool App.Deactivate (  )  [private]

Boolean App.DisplayAllObjects (  ) 

void App.DisplayAllObjects ( boolean  inDisp  ) 

bool App.EditChangeBarcode (  )  [private]

bool App.EditChangeSerialNumber (  )  [private]

bool App.EditChangeTable (  )  [private]

bool App.EditClear (  )  [private]

bool App.EditCopy (  )  [private]

bool App.EditCut (  )  [private]

bool App.EditGeneratedFill (  )  [private]

bool App.EditGroup (  )  [private]

bool App.EditPaste (  )  [private]

bool App.EditRedo (  )  [private]

bool App.EditReplicateTemplate (  )  [private]

bool App.EditSelectAll (  )  [private]

bool App.EditUndo (  )  [private]

bool App.EditUngroup (  )  [private]

bool App.EnableMenuItems (  )  [private]

void App.EnableVendorMenu (  ) 

bool App.FileChangeActiveTemplate (  )  [private]

bool App.FileClose (  )  [private]

bool App.FileNew (  )  [private]

bool App.FileOpen (  )  [private]

bool App.FilePageSetup (  )  [private]

bool App.FilePrint (  )  [private]

bool App.FilePrinterControl (  )  [private]

bool App.FileRevert (  )  [private]

bool App.FileSave (  )  [private]

bool App.FileSaveAs (  )  [private]

void App.FillFontMenu (  ) 

ADBaseShape App.FindObject ( integer  inX,
integer  inY 
)

void App.ForceAllObjectsRedraw (  ) 

void App.ForgetCurrentSelection (  ) 

docWindowBase App.FrontWindow (  ) 

EditField App.GetScratchEditFieldForTextRender (  ) 

bool App.HandleAppleEvent (  )  [private]

void App.HandleColorChange ( Color  inUseColor,
boolean  inUseSelector,
boolean  inBorder 
)

void App.HandleNew (  ) 

boolean App.HandleOpen (  ) 

void App.HandleRedo (  ) 

void App.HandleTextColorChangeZZ ( Color  inColour  ) 

void App.HandleTextInspector ( boolean  forceFront = false  ) 

void App.HandleUndo (  ) 

boolean App.HaveMultipleSelection (  ) 

void App.InitVendorMenu (  )  [protected]

void App.initXMLDocFactories (  ) 

void App.InsertObject ( integer  i,
ADBaseShape  insObj 
)

bool App.Inspector (  )  [private]

Boolean App.InspectorWasVisible (  ) 

void App.InspectorWindowShowHide ( Boolean  inShow  ) 

bool App.LayerGuidelines (  )  [private]

void App.LoadPrefs (  )  [protected]

bool App.LoadTemplateWithoutBrowsing (  )  [private]

void App.MakeCurrent ( ADBaseShape  newCurrent  ) 

ADBaseShape App.MakeShape ( string  shapeName  ) 

ADBaseShape App.MakeShape (  ) 

ADBaseShape App.MakeShapeFromID ( integer  inID  ) 

void App.MaxImageFileSize ( integer  inMaxSize  ) 

integer App.MaxImageFileSize (  ) 

bool App.MenuBlack (  )  [private]

bool App.MenuBlue (  )  [private]

bool App.MenuBrown (  )  [private]

bool App.MenuCyan (  )  [private]

bool App.MenuGreen (  )  [private]

bool App.MenuMagenta (  )  [private]

bool App.MenuOrange (  )  [private]

bool App.MenuPurple (  )  [private]

bool App.MenuRed (  )  [private]

bool App.MenuWhite (  )  [private]

bool App.MenuYellow (  )  [private]

bool App.MoveDown (  )  [private]

bool App.MoveLeft (  )  [private]

bool App.MoveRight (  )  [private]

bool App.MoveUp (  )  [private]

bool App.NewDocument (  )  [private]

string App.NewDocumentName (  )  [private]

void App.ObjectListMoveToEnd ( ADBaseShape  inList[],
ADBaseShape  inShape 
)

void App.ObjectListMoveToStart ( ADBaseShape  inList[],
ADBaseShape  inShape 
)

void App.ObjectListMoveTowardsEnd ( ADBaseShape  inList[],
ADBaseShape  inShape 
)

void App.ObjectListMoveTowardsStart ( ADBaseShape  inList[],
ADBaseShape  inShape 
)

ADBaseShape App.ObjectListNext ( ADBaseShape  inList[],
ADBaseShape  inShape 
)

ADBaseShape App.ObjectListPrevious ( ADBaseShape  inList[],
ADBaseShape  inShape 
)

integer App.ObjectListShapeIndex ( ADBaseShape  inList[],
ADBaseShape  inShape 
)

void App.ObjectListSwapAtIndex ( ADBaseShape  inList[],
integer  inIndex1,
integer  inIndex2 
)

bool App.Open (  )  [private]

bool App.OpenDocument (  )  [private]

RecentFilesList App.RecentFiles (  ) 

void App.RemoveObject ( integer  i  ) 

void App.RemoveObject ( ADBaseShape  inObject  ) 

bool App.ReplicateInGrid (  )  [private]

bool App.ReplicateToMatchingTemplates (  )  [private]

bool App.RulerScalecm (  )  [private]

bool App.RulerScaleInches (  )  [private]

bool App.RulerScalemm (  )  [private]

bool App.RulerScalePoints (  )  [private]

bool App.SelectByTemplate (  )  [private]

Color App.SelectionHandleColor (  ) 

bool App.ShapeCentreNearestTemplate (  )  [private]

integer App.ShapeNameToID ( string  shapeName  ) 

bool App.ShapeRotate (  )  [private]

bool App.SnapToGuidelines (  )  [private]

XMLElement App.TemplateElementFromFile ( FolderItem  inFile  ) 

FolderItem App.TemplatesFolder (  )