AfrFoundation CATApplicationFrame

Usage: you must use this class as is. You should never derive it.


public class CATApplicationFrame

Class representing the application main window model.
Role: An application frame is a specialized window which allows to start commands and perform standard interactions. The CATApplicationFrame class corresponds to the model of this window. The CATApplicationFrame class is also able to create workshops and workbenches since workshop and workbench factories are defined as its data extensions.


Constructor and Destructor Index


o ~CATApplicationFrame()

Method Index


o GetApplicationDocument()
Returns the application document.
o GetApplicationResource(CATString&,CATString&)
Returns a resource value.
o GetCurrentWorkbench()
Returns the internal name of the current workbench.
o GetCurrentWorkshop()
Returns the internal name of the current workshop.
o GetFrame()
Retrieves a pointer to the application frame.
o GetMainWindow()
Returns the main window.
o HidePalette(CATString&)
Hides a toolbar.
o SetBusyCursor()
Changes the cursor mouse into a busy cursor.
o SetMessage(MessageType,CATUnicodeString&)
Displays a message in the status bar.
o ShowPalette(CATString&)
Displays a toolbar.

Enumerated Type Index


o MessageType
Type of message to displays in the status bar.

Constructor and Destructor


o ~CATApplicationFrame
public virtual ~CATApplicationFrame()

Methods


o GetApplicationDocument
public GetApplicationDocument()
Returns the application document.
Role: This method returns the document window of the application. Refer to the method for its usage.
Returns:
The application document.
Lifecycle rules deviation: This method doesn't AddRef the returned value.
o GetApplicationResource
public GetApplicationResource( iResourceKey,
oResourceValue)
Returns a resource value.
Role: Reads a resource in the Application resource file (CATRsc file).
Parameters:
iResourceKey
The resource key.
oResourceValue
The resource value.
Returns:
Returns S_OK if the resource was found and correctly read, else returns E_FAIL.
o GetCurrentWorkbench
public GetCurrentWorkbench()
Returns the internal name of the current workbench.
o GetCurrentWorkshop
public GetCurrentWorkshop()
Returns the internal name of the current workshop.
o GetFrame
public static GetFrame()
Retrieves a pointer to the application frame.
Returns:
The application frame pointer.
Lifecycle rules deviation: This method doesn't AddRef the returned value.
o GetMainWindow
public GetMainWindow()
Returns the main window.
Role: This method returns: It enables you mainly to find a parent for your dialog box:
Returns:
A dialog object.
Lifecycle rules deviation: This method doesn't AddRef the returned value.
o HidePalette
public HidePalette( const paletteName)
Hides a toolbar.
Parameters:
iPaletteName
The name of the toolbar to set invisible. This name is third argument of the
macro.
  NewAccess(CATCmdContainer, pMyTlb, iPaletteName);
 
o SetBusyCursor
public static SetBusyCursor()
Changes the cursor mouse into a busy cursor.
Role: Use this method to indicate that your application is busy. This method calls the SetBusyCursor method of the class.
o SetMessage
public SetMessage( iMessageType,
const iMessage)
Displays a message in the status bar.
Parameters:
iMessageType
The message type.
Legal values: The parameter must be set to CATApplicationFrame::Information.
iMessage
The message.
o ShowPalette
public ShowPalette( const iPaletteName)
Displays a toolbar.
Parameters:
iPaletteName
The name of the toolbar to set visible. This name is third argument of the
macro.
  NewAccess(CATCmdContainer, pMyTlb, iPaletteName);
 

Enumerated Types


o MessageType
enum MessageType {
  Information,
  Prompt,
  MultiDocumentPrompt,
  ShortPrompt,
  LogMessage
}
Type of message to displays in the status bar.
Parameters:
Information
Simple text.
Prompt
Internal usage.
MultiDocumentPrompt
Internal usage.
ShortPrompt
Internal usage.
LogMessage
Internal usage.

This object is included in the file: CATApplicationFrame.h
If needed, your Imakefile.mk should include the module: CATAfrFoundation

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.