Inheritance diagram for CP_View_Imp_Rich:
Events | |
virtual void | InitEventHandler (CP_EventHandler &inEventHandler) |
LRESULT | HandleWinProcMessage (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) |
void | HandleMouseEnteredEvent (CP_Event_Base &inEvent) |
void | HandleMouseExitedEvent (CP_Event_Base &inEvent) |
Getters | |
virtual CP_EventHandler & | GetEventHandler () |
WNDPROC | GetOldWinProc () |
HBRUSH | GetBackgroundBrush () |
static CP_View_Imp_Win * | GetLastViewWithMouse () |
static void | SetLastViewWithMouse (CP_View_Imp_Win *inView) |
Public Member Functions | |
CP_View_Imp_Rich (CP_View_Imp *inOwnerViewImp, CP_View *inSuperview, const CP_Point &inUpperLeft, const CP_Size &inContentSize, bool inHasHorizontalScroll=true, bool inHasVerticalScroll=true, bool inReadOnly=false) | |
virtual | ~CP_View_Imp_Rich () 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 (OSControl inControl) |
Focus | |
virtual void | OnLosingFocus () |
Getters | |
OSStatus | ReadTextFromFile (const CP_FileSystemSpec &inFileSpec) |
Getters | |
CP_String | GetText (char inLineEnd=CP_LF) |
UInt32 | GetTextLength () |
Key Filter | |
void | AttachFilter (CP_KeyInputFilter *inFilter) |
CP_KeyInputFilter * | GetFilter () |
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) |
Testers | |
bool | HasTextToPaste () |
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 | |
Setters | |
virtual void | SetPortBounds (const CP_Rect &inBounds) |
void | SetTextFont (const CP_String &inFontName) |
void | SetTextSize (SInt16 inFontSize) |
void | SetTextFace (SInt16 inFace) |
void | SetTextColor (const CP_RGBColor &inForeColor) |
Protected Attributes | |
CP_KeyInputFilter * | fKeyFilter |
CP_DataValueSignal | fFieldExitSignal |
CP_EventHandler | fEventHandler |
CP_Point | fLocation |
UInt32 | fWinStyleFlags |
UInt32 | fWinExtStyleFlags |
WNDPROC | fnOldWndProc |
bool | fIsCustomPane |
CP_View * | fSuperview |
CP_Point | fOrigin |
CP_View_Imp * | fOwnerViewImp |
OSControl | fOSControl |
CP_EventHandler | fDummyEventHandler |
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 SInt16 | fsWinViewID = 0 |
static HBRUSH | fsBackgroundBrush |
static CP_View_Imp_Win * | fsLastViewWithMouse = NULL |
static FourCharCode | fObjectIDCount = 0 |
Private Member Functions | |
Events | |
void | HandleKeyboardInput_Win (CP_Event_Base &inEvent) |
void | CommandProcess (CP_Event_Base &inEvent) |
void | CommandUpdateStatus (CP_Event_Base &inEvent) |
Initialization | |
void | Init (CP_View *inSuperview, const CP_Point &inLocation, const CP_Size &inContentSize, bool inHasHorizontalScroll=true, bool inHasVerticalScroll=true, bool inReadOnly=false) |
void | InitEventHandler (CPLAT::CP_EventHandler &inEventHandler) |
bool | HandleFieldExitChar (char inChar) |
Misc | |
void | TextChanged () |
Static Private Member Functions | |
static DWORD CALLBACK | CP_RichText_StreamInCallback (DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb) |
|
|
|
Destructor.
|
|
Activate this view.
Reimplemented from CP_View_Imp_Base. |
|
Deactivate this view.
Reimplemented from CP_View_Imp_Base. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attach a text field to this field. NOTE: It is possible to pass a NULL validator in, which will remove any existing one.
|
|
Return the key input filter associated with this field. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Do we have text in our scrap to paste into our field. |
|
Sets the port bounds of the child window.
Reimplemented from CP_View_Imp_Win. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Show this view.
Reimplemented from CP_View_Imp_Base. |
|
Hide this view.
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. |
|
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. |
|
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. |
|
Create the Windows child window that is used to display the contents of this pane.
|
|
Creates the Windows child HWND that is used to implement this class under Windows. If the user has not changed the default flags used to create the child window, they will be created with the following flags:
|
|
|
|
|
|
Initialize the event handler data member for this class. This will register the Windows messages that are handled by this class with their respective CP_EventSignal handlers.
Reimplemented from CP_View_Imp_Base. Reimplemented in CP_View_Imp_WinToolbar. |
|
Handle any Windows specific message for this pane. This is the routine that is called from the windows pane handler. You need override the protected OnHandleWinProcMessage method to handle the specific messages you need to in your class. This method will catch any exceptions thrown in your methods to prevent propagating into the Windows callback.
|
|
|
|
|
|
Reimplemented from CP_View_Imp_Base. |
|
|
|
|
|
|
|
|
|
Reimplemented from CP_View_Imp_Base. |
|
Sets the data member and event handler to the passed in Windows window proc that was used in a created child window. This is the previous one that we are subclassing.
|
|
|
|
|
|
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. |
|
|
|
Creates the Windows child window for our view class. This is called by the other methods to create our custom window class used to implmement this class under Windows.
|
|
Register the window class used for the panes child window with Windows.
|
|
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. |
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_Control, CP_View_Imp_ControlScroller, and CP_View_Imp_MLTE. |
|
|
|
|
|
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.
|
|
Reimplemented in CP_View_Imp_Control. |
|
Reimplemented in CP_View_Imp_Control. |
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Class that handles all of the events for this windnow. Reimplemented from CP_View_Imp_Base. |
|
|
|
The Windows style flags used to create the pane. |
|
The Windows extended style flags used to create the pane. |
|
The standard Windows window callback. This is the one returned before we set the callback to our panes callback. |
|
View id of this viewe under Windows. |
|
Is this view a custom pane, and not a Windows control. |
|
|
|
|
|
CP_View that contains this view |
|
|
|
CP_View_Imp that we provide implementation for. |
|
Platform control to implement View features. |
|
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. |