Inheritance diagram for CP_View_Imp_Control:
Events | |
virtual ControlPartCode | HandleHitTest (ControlRef inControl, const CP_Point &inMouseLocation) |
virtual ControlPartCode | HandleTracking (ControlRef inControl, const CP_Point &inMouseLocation, ControlActionUPP inActionProc) |
virtual ControlPartCode | HandleFocus (ControlRef inControl, ControlFocusPart inAction) |
virtual void | HandleIdle (ControlRef inControl) |
virtual void | HandleActivate (ControlRef inControl, Boolean inActivating) |
virtual void | HandleKeyDown (ControlRef inControl, SInt16 keyCode, SInt16 charCode, SInt16 modifiers) |
Drawing | |
void | HandleDraw (CP_Canvas &inCanvas, CP_Region &inUpdateArea) |
virtual void | FinishDrawing (CP_Canvas &drawingCanvas) |
CP_Point | GetOrigin () |
void | SetOrigin (const CP_Point &inOrigin) |
Drawing | |
void | Invalidate (const CP_Region &inInvalidArea) |
virtual void | HandleDrawInCanvas (CP_Canvas &inCanvas, CP_Region &inUpdateArea) |
Public Member Functions | |
void | disconnect_all () |
void | signal_connect (CP_Signal *inSender) |
void | signal_disconnect (CP_Signal *inSender) |
Constructor / Destructor | |
CP_View_Imp_Control (CP_View_Imp *inOwnerViewImp, CP_View *inSuperview, const CP_Point &inUpperLeft, const CP_Size &inContentSize, bool inCreateImp=false) | |
Constructor. | |
virtual | ~CP_View_Imp_Control () throw () |
Destructor. | |
Protected Member Functions | |
Constructor / Destructor | |
CP_View_Imp_Control () | |
Constructor. | |
Protected Attributes | |
CP_EventHandler | fEventHandler |
CP_View * | fSuperview |
CP_Point | fOrigin |
CP_View_Imp * | fOwnerViewImp |
OSControl | fOSControl |
CP_EventHandler | fDummyEventHandler |
CP_Point | fLocation |
CP_Size | fSize |
CP_Commands_Array * | fCommands |
CP_MenuSelectionSignal * | fMennuSelectionSignal |
sender_set | fSenders |
Static Protected Attributes | |
static ControlUserPaneDrawUPP | fsPaneImp_DrawProc = NULL |
static ControlUserPaneHitTestUPP | fsPaneImp_HitTestProc = NULL |
static ControlUserPaneTrackingUPP | fsPaneImp_PaneTrackingProc = NULL |
static ControlUserPaneFocusUPP | fsPaneImp_PaneFocusProc = NULL |
static ControlUserPaneIdleUPP | fsPaneImp_PaneIdleProc = NULL |
static ControlUserPaneActivateUPP | fsPaneImp_PaneActivateProc = NULL |
static ControlUserPaneKeyDownUPP | fsPaneImp_PaneKeyDownProc = NULL |
Private Member Functions | |
Initialization | |
void | CreateUserPaneControl (const CP_Point &inUpperLeft, const CP_Size &inContentSize) |
|
Constructor. Create a pane with the upper left corner at inLocation, and the content size of inSize.
|
|
Destructor.
|
|
Constructor.
|
|
Show this control.
Reimplemented from CP_View_Imp_Base. |
|
Hide this control.
Reimplemented from CP_View_Imp_Base. |
|
Activate this control.
Reimplemented from CP_View_Imp_Base. Reimplemented in CP_View_Imp_MLTE. |
|
Deactivate this control.
Reimplemented from CP_View_Imp_Base. Reimplemented in CP_View_Imp_MLTE. |
|
Enable this control.
Reimplemented from CP_View_Imp_Base. |
|
Disable this control.
Reimplemented from CP_View_Imp_Base. |
|
Used when the user needs to draw into a view at times other than the normal drawing times. This will setup the control for drawing into, and return a canvas object suitable for use.
Reimplemented from CP_View_Imp_Base. |
|
Called from the user pane draw upp to handle setting up the environment for drawing the contents of this control, and then calling the CP_Views overriden HandleDraw() for a subclass to perform the actual drawing in this control.
Reimplemented in CP_View_Imp_MLTE. |
|
Draws the user pane control immediately. This will take care of setting up the drawing environment for the control to draw, and then draw the contents of the control.
Reimplemented from CP_View_Imp_Base. |
|
Prepares the control for drawing into.
Reimplemented from CP_View_Imp_Base. Reimplemented in CP_View_Imp_ControlScroller, and CP_View_Imp_MLTE. |
|
Cause the control to refresh itself by invalidating the bounds of this control.
Reimplemented from CP_View_Imp_Base. |
|
Called from the user pane upp to perform hit testing. This calls the owner view imp class to let subclasses perform the actual hit testing.
Reimplemented in CP_View_Imp_MLTE, and CP_View_Imp_Toolbar_Item. |
|
Called from the user pane upp to perform mouse tracking while the user is holding the mouse down. This calls the owner view imp class to let subclasses perform the actual mouse tracking.
Reimplemented in CP_View_Imp_MLTE, and CP_View_Imp_Toolbar_Item. |
|
Called from the user pane upp to set the focus of this control. This calls the owner view imp class to let subclasses perform the actual focus setting.
Reimplemented in CP_View_Imp_MLTE. |
|
Reimplemented in CP_View_Imp_MLTE. |
|
|
|
|
|
Return the event handler for this view implementation. This will be the OS implentation event handler.
Reimplemented from CP_View_Imp_Base. |
|
Return the port bounds of this pane. This is the bounds of the pane in port coordinates.
Reimplemented from CP_View_Imp_Base. |
|
Reimplemented from CP_View_Imp_Base. Reimplemented in CP_View_Imp_ControlScroller. |
|
Embeds the passed in view into this control.
Reimplemented from CP_View_Imp_Base. |
|
Reimplemented from CP_View_Imp_Base. |
|
Sets the bounds of this control in port coordinates to that of the passed in rect.
Reimplemented from CP_View_Imp_Base. Reimplemented in CP_View_Imp_ControlScroller, and CP_View_Imp_MLTE. |
|
Sets the location of this control releative to its superview. The passed in location is relative to the subview that contains this control.
Reimplemented from CP_View_Imp_Base. |
|
Sets the size of this control. This will expand or shrink the control relative to its upper left corner.
Reimplemented from CP_View_Imp_Base. |
|
Returns true if this view is visible.
Reimplemented from CP_View_Imp_Base. |
|
Returns true if this view is active.
Reimplemented from CP_View_Imp_Base. |
|
Returns true if this view is enabled.
Reimplemented from CP_View_Imp_Base. |
|
Cause the passed in area of this pane to become invalid and force the OS to create an update event to redraw that portion.
Reimplemented from CP_View_Imp_Base. |
|
Reimplemented in CP_View_Imp_Toolbar, and CP_View_Imp_Toolbar_Item. |
|
Creates the MacOS user pane control that performs all drawing and other interaction between this class and the MacOS ControlManager
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in CP_View_Imp_Gtk, CP_View_Imp_Win, and CP_View_Imp_WinToolbar. |
|
Return the local bounds of this pane. This will always have the top left corner at location 0, 0.
|
|
Returns the OSControl that is implementing this base view. The will be a MacOS ControlHandle on non HIView OSs or non compositing windows, and an HIViewRef on compositing windows.
|
|
|
|
|
|
|
|
|
|
Public method called from the various OS implementations when they need to draw some content. This then calls the CP_View_Imp HandleDraw to notify your object that is should draw something via its OnDraw() method.
|
|
Reimplemented in CP_View_Imp_Win. |
|
|
|
|
|
Gets the CP_View_Imp class that this object provides the OS implementation of.
|
|
Sets the CP_View_Imp class that this object provides the OS implementation of.
|
|
Adjusts the passed in GtkWidget to be positioned correctly in the subview at the specified position, and resized to the passed in size. The implementation object of this view will handle the actual work.
Reimplemented in CP_View_Imp_Gtk. |
|
Updates the status of a command.
|
|
Updates the status of a command based on the current state of the application.
|
|
Handles the processing of a command. If the command has been registered with this class, then its signal will be called. If the command has not been registered, then this function does nothing with the passed in command.
|
|
Signal called when a menu item is selected with no associated command. |
|
Returns the signal called when a menu item is selected and has no command associated with it.
|
|
Registers the passed in command. This places the command in a list of commands we will handle updating the status for, and when called executing the signal registered for the command.
|
|
Registers the passed in command. This places the command in a list of commands we will handle updating the status for, and when called executing the signal registered for the command.
|
|
Registers the passed in command. This places the command in a list of commands we will handle updating the status for. You are returned the signal object that you need to connect your slot to.
|
|
Registers the passed in command, returning the command status signal. If the command already exists, we will return the existing command status signal if there is one, otherwise we create a new signal, and return that signal. If there is already a signal, then return the existing signal.
|
|
Registers the passed in command, returning the command handling signal. If the command already exists, we will return the existing command handler signal if there is one, otherwise we create a new signal, and return that signal. If there is already a signal, then return the existing signal.
|
|
Returns true if the passed in command is known to this class.
|
|
Replaces a CP_Command for the passed in command number.
|
|
Unregisters a command.
|
|
Returns the CP_Command object associated with the passed in command number.
|
|
MacOS - Handles the processing of the passed in HICommand. This will translate the HICommand into a CPLAT CP_CommandNo for processing and updating the status of the command.
|
|
|
|
|
|
|
|
|
|
|
|
ControlManager callback to draw the contents of this pane. |
|
ControlManager callback for hit testing of this pane. |
|
ControlManager callback for tracking of this pane. |
|
ControlManager callback for tracking of this pane. |
|
ControlManager callback for idle time in this pane. |
|
ControlManager callback for pane activate in this pane. |
|
ControlManager callback for keydowns in this pane. |
|
|
|
CP_View that contains this view |
|
|
|
CP_View_Imp that we provide implementation for. |
|
Platform control to implement View features. |
|
Dummy event handler if the view imp has not been created. Reimplemented in CP_View_Imp_Win. |
|
Upper left corner of view, relative to superview Reimplemented in CP_View_Imp_Gtk. |
|
|
|
List of commands managed by this class. |
|
|