// Copyright (C) 1995 Taligent, Inc. All rights reserved. #if 0 --------------------------------------------------------------------------- > Class: | TMarsPresenter > Taxonomy Category: | Graphical Editing Framework | Mars > Interface Category: | Sample. > Inherits From: | TGUIPresenter. > Inherited By: | None. > Purpose: | TMarsPresenter derives from TGUIPresenter to provide a custom presenter for Mars. TMarsPresenter manages the presentation of the Mars GrafEdit application. TMarsPresenter creates the canvas view to display the document component, provides functions to build menus, and manages the current selection on which the menu commands work. For more information, see _GrafEdit,_ Chapter 4, "Mars sample application code walkthrough." > Instantiation: | Allocate on the heap or the stack. Usually on the heap. > Deriving Classes: | Do not derive classes from TMarsPresenter. > Concurrency: | _Not_ multithread safe. > Resource Use: | No special requirements. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TMarsPresenter::TMarsPresenter ; | TMarsPresenter (const TGUIBundle &) > Interface Category: | API. > Purpose: | Standard constructor for a presentation. > Calling Context: | Called by the Presentation framework. > Parameters: = const TGUIBundle & -The bundle to alias. > Return Value: | None. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TMarsPresenter::~ TMarsPresenter ; | virtual ~ TMarsPresenter () > Interface Category: | API. > Purpose: | Destructor. > Calling Context: | Called to destroy an object. > Parameters: = Takes no parameters. > Return Value: | None. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TMarsPresenter::HandleCreateMainView ; | virtual TView * HandleCreateMainView (TGUIBundle * theBundleToAlias) const > Interface Category: | API. > Purpose: | Creates and returns the main view for the presenter. The main view aliases the specified GUIBundle. > Calling Context: | Called by the Presentation framework. > Parameters: = TGUIBundle * theBundleToAlias -The bundle to pass on to the main view constructor. > Return Value: | The newly created main view. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TMarsPresenter::SetCanvasView ; | virtual void SetCanvasView (TCanvasView * canvasView) > Interface Category: | API. > Purpose: | Editable text uses this function to activate and deactivate menus appropriately. > Calling Context: | Called by HandleCreateMainView. > Parameters: = TCanvasView * canvasView -The canvas view. > Return Value: | None. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TMarsPresenter::HandleMenuActivate ; | virtual void HandleMenuActivate (TMenu & theMainMenu) > Interface Category: | API. > Purpose: | Handles the activation of the main menu. > Calling Context: | Called by the Presentation framework. > Parameters: = TMenu & theMainMenu -The menu that activated. > Return Value: | None. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TMarsPresenter::HandleMenuDeactivate ; | virtual void HandleMenuDeactivate (TMenu & theMainMenu) > Interface Category: | API. > Purpose: | Handles the deactivation of the main menu. > Calling Context: | Called by the Presentation framework. > Parameters: = TMenu & theMainMenu -The menu that deactivated. > Return Value: | None. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif