Inheritance diagram for CP_View_Imp_MLTE:
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) |
Events | |
void | CommandUpdateStatus (CP_Event_Base &inEvent) |
void | CommandProcess (CP_Event_Base &inEvent) |
void | HandleTextInputEvents (CP_Event_Base &inEvent) |
static pascal::OSStatus | CarbonEventHandler (EventHandlerCallRef inHandler, EventRef inEvent, void *inUserData) |
Public Member Functions | |
CP_View_Imp_MLTE (CP_View_Imp *inOwnerViewImp, CP_View *inSuperview, const CP_Point &inUpperLeft, const CP_Size &inContentSize, bool inHasHorizontalScroll=true, bool inHasVerticalScroll=true, bool inHasGrowBox=true, bool inReadOnly=false, bool inDrawFocusBorder=true) | |
virtual | ~CP_View_Imp_MLTE () throw () |
void | disconnect_all () |
void | signal_connect (CP_Signal *inSender) |
void | signal_disconnect (CP_Signal *inSender) |
void | SetID (FourCharCode inIdentifier) |
FourCharCode | GetID () |
void | RegisterSignal (const CP_SignalHolder &inSignal) |
CP_DataValueSignal * | FindSignal (const CP_String &inSignalName) |
UInt32 | GetNumberSignals () |
CP_String | GetNthSignalName (UInt32 inSignalIndex) |
void | RegisterSlot (const CP_SlotHolder &inSlot) |
CP_DataValueSlot | FindSlot (const CP_String &inSlotName) |
UInt32 | GetNumberSlots () |
CP_String | GetNthSlotName (UInt32 inSlotIndex) |
template<class R, class P1, class P2> | |
CP_CommandHandlerSignal * | Connect (CPLAT::CP_CommandNo cmd, void(R::*handler)(P1, P2), SInt32 mode) |
template<class R, class P1, class P2> | |
void | Connect (CP_Object *control, const CPLAT::CP_String &signalName, void(R::*handler)(P1, P2)) |
Appearance | |
void | Activate () |
void | Deactivate () |
Command Handling | |
void | HandleCommandStatus (CP_CommandStatus &inCommandStatus, bool &inOutResult, CP_CommandNo &inCommandNo) |
void | HandleCutCommand (OSStatus &inOutStatus) |
void | HandleCopyCommand (OSStatus &inOutStatus) |
void | HandleClearCommand (OSStatus &inOutStatus) |
void | HandlePasteCommand (OSStatus &inOutStatus) |
void | HandleSelectAllCommand (OSStatus &inOutStatus) |
void | HandleUndoCommand (OSStatus &inOutStatus) |
void | HandleRedoCommand (OSStatus &inOutStatus) |
Drawing | |
virtual void | HandleDraw (ControlRef inControl) |
virtual void | PrepareDraw (CP_Canvas &inCanvas, CP_Region &inUpdateArea) |
Events | |
OSStatus | HandleCarbonEvent (EventHandlerCallRef inHandler, EventRef inEvent) |
OSStatus | HandleMouseDown (CP_Event_Base &inEvent) |
virtual ControlPartCode | HandleHitTest (ControlRef inControl, const CP_Point &inMouseLocation) |
virtual ControlPartCode | HandleFocus (ControlRef inControl, ControlFocusPart inAction) |
virtual void | HandleIdle (ControlRef inControl) |
Focus | |
virtual void | OnLosingFocus () |
Getters | |
OSStatus | ReadTextFromFile (const CP_FileSystemSpec &inFileSpec) |
CP_String | GetText (char inLineEnd=CP_LF) |
UInt32 | GetTextLength () |
Key Filter | |
void | AttachFilter (CP_KeyInputFilter *inFilter) |
CP_KeyInputFilter * | GetFilter () |
Positioning | |
virtual void | SetPortBounds (const CP_Rect &inBounds) |
Printing | |
void | Print () |
Selection | |
void | GetSelection (UInt32 *inStartSelection, UInt32 *inEndSelection) |
void | SetSelection (UInt32 inStartSelection, UInt32 inEndSelection) |
bool | HasSelection () |
Setters | |
void | SetText (const CP_String &inText) |
void | SetText (CP_InStream *inStream) |
void | InsertText (const CP_String &inText) |
void | InsertText (const char *inTextPtr, SInt32 inTextLength) |
void | SetFontSpec (CP_FontSpec &inFontSpec) |
Static Public Member Functions | |
static void | Connect (CP_Object *sender, const CP_String &signalName, CP_Object *receiver, const CP_String &slotName, const bool reciprocal=false) |
static void | Connect (CP_Object *sender, CP_Object *receiver, const bool reciprocal=false, const CP_String &signalName=kCP_Signal_ValueChanged, const CP_String &slotName=kCP_Slot_SetValue) |
Protected Member Functions | |
Events | |
virtual bool | HandleFieldExitChar (char inChar) |
Misc | |
OSStatus | OpenControl (ControlHandle inControl, bool inHasHorizontalScroll=true, bool inHasVerticalScroll=true, bool inHasGrowBox=true, bool inReadOnly=false) |
OSStatus | CloseControl (ControlHandle inControl) |
Tracking | |
virtual ControlPartCode | HandleTracking (ControlRef inControl, const CP_Point &inMouseLocation, ControlActionUPP actionProc) |
Protected Attributes | |
CP_MLTESupport | fMLTESupport |
CGrafPtr | fDrawingEnvironment |
bool | fInDialogWindow |
EventHandlerUPP | fHandlerUPP |
EventHandlerRef | fHandlerRef |
CP_KeyInputFilter * | fKeyFilter |
CP_DataValueSignal | fFieldExitSignal |
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 |
CP_Signals_Array * | fSignals |
CP_Slots_Array * | fSlots |
FourCharCode | fObjectID |
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 |
static FourCharCode | fObjectIDCount = 0 |
Private Member Functions | |
Drawing | |
void | TPPaneDrawEntry (STPPaneState *ps) |
void | TPPaneDrawExit (STPPaneState *ps) |
Misc | |
void | TextChanged () |
|
|
|
|
|
Reimplemented from CP_View_Imp_Control. |
|
Reimplemented from CP_View_Imp_Control. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from CP_View_Imp_Control. |
|
Reimplemented from CP_View_Imp_Control. |
|
|
|
|
|
Reimplemented from CP_View_Imp_Control. |
|
Reimplemented from CP_View_Imp_Control. |
|
Reimplemented from CP_View_Imp_Control. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from CP_View_Imp_Control. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from CP_View_Imp_Control. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Show this control.
Reimplemented from CP_View_Imp_Base. |
|
Hide this control.
Reimplemented from CP_View_Imp_Base. |
|
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. |
|
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.
|
|
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. |
|
Cause the control to refresh itself by invalidating the bounds of this control.
Reimplemented from CP_View_Imp_Base. |
|
|
|
|
|
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 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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Sets the identifier for this object. If a specific identifier is not set with this function, then a default id is used, which is simply a running count of the number of objects created.
|
|
Returns the objects identifier.
|
|
Registers the signal / signal name contained in the passed in inSignal object.
|
|
Finds the CP_DataValueSignal object that matches the passed in inSignalName.
|
|
Returns the number of signals for this object.
|
|
Returns the signal name of the passed in signal index.
|
|
Registers the slot / slot name contained in the passed in inSlot object.
|
|
Finds the CP_Slot1 object that matches the passed in inSlotName.
|
|
Returns the number of slots for this object.
|
|
Returns the slot name of the passed in signal index.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
List of registered signals for this object. |
|
List of registered slots for this object. |
|
Object identifier. |