Inheritance diagram for CP_View_Imp:

Setters | |
| void | SetCommandID (UInt32 inCommandID) |
| virtual void | SetLocation (const CP_Point &inLocation) |
| virtual void | SetSize (const CP_Size &inSize) |
| virtual void | SetPortBounds (const CP_Rect &inBounds) |
Superview | |
| virtual void | AddSubview (CP_View *inView) |
| void | AdjustToSuperview (CP_View *inView) |
Testers | |
| virtual bool | IsVisible () const |
| virtual bool | IsActive () const |
| virtual bool | IsEnabled () const |
| bool | ContainsPoint (const CP_Point &inPortPoint) |
Frame | |
| virtual void | HandleBoundsChanged (const CP_Rect &, const CP_Rect &) |
| virtual void | OnBoundsChanged (const CP_Rect &inPreviousBounds, const CP_Rect &inNewBounds) |
Initialization | |
| virtual void | OnInitPersist (CP_View *inSuperview, CP_DataValueList &inDataValueList) |
| virtual void | OnFinishPersist () |
Drag Target | |
| virtual void | OnDragEnter (CP_DragDrop &inDragDrop, bool inDragHasLeftSender) |
| virtual void | OnDragLeave (CP_DragDrop &inDragDrop) |
| virtual void | OnDragTrack (CP_DragDrop &inDragDrop) |
| static CP_M_DragTarget * | FindDragTarget (OSWindow inOSWindow, CP_Point &inMouseLocation, CP_DragDrop &inDragDrop) |
Public Member Functions | |
| CP_ViewBackground * | GetViewBackground () |
| void | SetViewBackground (CP_ViewBackground *inViewBackground) |
| virtual CP_RGBColor | GetBackColor () |
| virtual void | HandleMouseDown (CP_Event_Base &inEvent) |
| virtual void | HandleMouseUp (CP_Event_Base &inEvent) |
| 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)) |
| void | disconnect_all () |
| void | signal_connect (CP_Signal *inSender) |
| void | signal_disconnect (CP_Signal *inSender) |
| void | ClearFlavors () |
| virtual void | OnDragEnter (LPDATAOBJECT pIDataSource, DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) |
| virtual void | OnDragLeave () |
| void | SetTargetWindow (OSWindow inWindow) |
| virtual void | OnDragOver (DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) |
| virtual void | OnDrop (LPDATAOBJECT pIDataSource, DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) |
| CP_Point | GetDropPoint () |
Constructor / Destructor | |
| virtual | ~CP_View_Imp () throw () |
| Destructor. | |
Appearance | |
| virtual void | Show () |
| virtual void | Hide () |
| virtual void | Activate () |
| virtual void | Deactivate () |
| virtual void | Enable () |
| virtual void | Disable () |
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 | |
| virtual void | HandleControlColor (CP_Event_Base &inEvent) |
| virtual bool | OnCanAcceptDrag (UInt32 inItem, CP_DragDrop &inDragDrop)=0 |
| virtual bool | PtInDropArea (CP_Point &inGlobalPoint) |
| virtual bool | OnCanAcceptDragWin (LPDATAOBJECT pIDataSource, DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) |
Constructor / Destructor | |
| CP_View_Imp () | |
| Constructor. | |
| CP_View_Imp (CP_View *inSuperview, const CP_Point &inUpperLeft, const CP_Size &inContentSize, bool inCreateImp=false, UInt32 inFlags=CP_E_ViewFlags_None) | |
Protected Attributes | |
| CP_View_Imp_Base * | fViewImpBase |
| CP_EventHandler | fDummyEventHandler |
| UInt32 | fCommandID |
| CP_SmartPtr< CP_FrameAdapter > | fFrameAdapter |
| UInt32 | fFlags |
| CP_ViewBackground * | fViewBackground |
| CP_DataValueSignal | fBoundsChangedSignal |
| CP_DataValueSignal | fShowSignal |
| CP_DataValueSignal | fHideSignal |
| CP_DataValueSignal | fActivateSignal |
| CP_DataValueSignal | fDeactivateSignal |
| CP_DataValueSignal | fEnableSignal |
| CP_DataValueSignal | fDisableSignal |
| CP_DataValueSlot | fShowSlot |
| CP_DataValueSlot | fHideSlot |
| CP_DataValueSlot | fActivateSlot |
| CP_DataValueSlot | fDeactivateSlot |
| CP_DataValueSlot | fEnableSlot |
| CP_DataValueSlot | fDisableSlot |
| CP_Signals_Array * | fSignals |
| CP_Slots_Array * | fSlots |
| FourCharCode | fObjectID |
| CP_Commands_Array * | fCommands |
| CP_MenuSelectionSignal * | fMennuSelectionSignal |
| sender_set | fSenders |
| CP_IDropSource * | fIDropSource |
| CP_IDataObject * | fIDataObject |
| FORMATETC * | fDataFormats |
| DWORD | fNumberFormats |
| CP_Enumerator * | fEnumerator |
| CP_DataStream | fData |
| CP_Window * | fWindow |
| bool | fDropAreaIsHilited |
| bool | fCanAcceptCurrentDrag |
| OSWindow | fTargetWindow |
| CDropTarget * | fDropTarget |
| CP_Point | fDropPoint |
Static Protected Attributes | |
| static FourCharCode | fObjectIDCount = 0 |
| static CP_DragTarget_List * | fsDragTargetList = NULL |
| static CP_M_DragTarget * | fsCurrentDragTarget = NULL |
| static bool | fsDragHasLeftSender = false |
Under Windows all panes are implmented in this class as Windows child windows.
|
|
Destructor.
|
|
|
Constructor.
|
|
||||||||||||||||||||||||
|
Constructor. Create a pane with the upper left corner at inLocation, and the content size of inSize.
|
|
|
Show this view.
Reimplemented in CP_Window_Imp, CP_Window_Imp, CP_DrawerWindow, CP_QT_MovieView, CP_SheetWindow, CP_TabView, CP_View, CP_Window, and CP_Window_Imp. |
|
|
Hide this view.
Reimplemented in CP_Window_Imp, CP_Window_Imp, CP_DrawerWindow, CP_QT_MovieView, CP_SheetWindow, CP_TabView, CP_View, CP_Window, and CP_Window_Imp. |
|
|
Activate this view.
Reimplemented in CP_QT_MovieView, CP_TextView, and CP_View. |
|
|
Deactivate this view.
Reimplemented in CP_QT_MovieView, CP_TextView, and CP_View. |
|
|
Enable this view.
Reimplemented in CP_QT_MovieView, and CP_View. |
|
|
Disable this view.
Reimplemented in CP_QT_MovieView, and CP_View. |
|
|
Converts the passed in point from global to port coordinates.
Reimplemented in CP_Window_Imp. |
|
|
Converts the passed in point from global to local coordinates.
|
|
|
Converts the passed in point from port to local coordinates.
|
|
|
Reimplemented in CP_Window_Imp. |
|
|
Reimplemented in CP_Window_Imp. |
|
|
|
|
|
|
|
||||||||||||||||
|
Sets some user data for this view. This is used to allow users to attach some data to a CP_View object.
Reimplemented in CP_Window_Imp. |
|
||||||||||||||||
|
Sets some user data for this view. This is used to allow users to attach some data to a CP_View object.
Reimplemented in CP_Window_Imp. |
|
|
Reimplemented from CP_M_DragTarget. |
|
|
Return the event handler for this view implementation. This will be the OS implentation event handler.
Reimplemented in CP_Window_Imp, CP_MDIFrameWindow, and CP_Window_Imp. |
|
|
Return the CP_Window that contains this pane.
Reimplemented in CP_Window. |
|
|
Return the superview of this view.
|
|
|
Return the local bounds of this pane. This will always have the top left corner at location 0, 0.
Reimplemented in CP_Window_Imp, and CP_Window_Imp. |
|
|
Return the local bounds of this pane. This is the bounds of the pane in port coordinates.
Reimplemented in CP_Window_Imp, and CP_Window_Imp. |
|
|
Reimplemented in CP_Window_Imp, and CP_Scroller. |
|
|
Return the location of this pane. This is the panes location relative its superviews top left corner.
Reimplemented in CP_Window_Imp. |
|
|
Return the size of this pane.
Reimplemented in CP_Window_Imp, and CP_Window_Imp. |
|
|
|
|
|
Used when the user needs to draw into a view at times other than the normal drawing times. This will setup the view for drawing into, and return a canvas object suitable for use.
Reimplemented in CP_QT_MovieView. |
|
|
Call after the drawing is complete to free up system resources.
|
|
||||||||||||
|
CP_View_Imp method called from the user panes callback. This calls the virtual OnDraw function which users override to do the actual drawing in their panes.
|
|
|
Cause the passed in area of this pane to become invalid and force the OS to create an update event to redraw that portion.
|
|
|
Cause the passed in area of this pane to become invalid and force the OS to create an update event to redraw that portion.
|
|
|
Cause the view to redraw itself on the next chance it gets. This will mark the view as dirty, and redraw itself the next time the underlying OS updates dirty views. If used in a loop, the view will not be redrawn untill the underlying OS can process an event.
Reimplemented in CP_Window_Imp. |
|
|
|
|
|
|
|
|
Sets the frame adapter for this view. The frame adapter determines how a view will resize and reposition itself when the superview that contains it changes bounds.
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Sets the command id associated with this view. This will be the command sent out when the control is clicked on.
|
|
|
Reimplemented in CP_Window_Imp, CP_View, and CP_Window. |
|
|
Reimplemented in CP_Window_Imp, CP_View, and CP_Window. |
|
|
Sets the bounds of this view in port coordinates.
Reimplemented in CP_Window_Imp. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Reimplemented in CP_View. |
|
|
|
|
|
|
|
|
|
|
|
Returns true if this view is visible.
Reimplemented in CP_Window_Imp, and CP_View. |
|
|
Returns true if this view is active.
Reimplemented in CP_View, and CP_Window_Imp. |
|
|
Returns true if this view is enabled.
Reimplemented in CP_View. |
|
|
Tests this view to see if it contains the passed in point, which is in port coordinates.
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
Creates the MacOS user pane control that performs all drawing and other interaction between this class and the MacOS ControlManager
|
|
||||||||||||
|
||||||||||||
|
Linux - Returns true if this view supports drag and drop. This default implementation just returns true if the CP_E_ViewFlags_SupportsDragAndDrop is set, and does not check the contents of the drag and drop. Users should override this to perform a check on the contents of the drag and drop to determine if an item is acceptable.
|
|
|
Initialize the event handler for events that this class will handle.
Reimplemented in CP_Window_Imp, CP_BevelButton, CP_ChasingArrows, CP_DisclosureButton, CP_DisclosureTriangle, CP_DocumentWindow, CP_DrawerWindow, CP_EditField, CP_FocusBorder, CP_LittleArrows, CP_LittleArrowsEditBuddy, CP_PlatformControl, CP_PopupButton, CP_PopupMenu, CP_ProgressBar, CP_PushButton, CP_QT_MovieView, CP_RadioGroup, CP_ScrollBar, CP_SearchField, CP_SegmentView, CP_SelectColorButton, CP_Slider, CP_Splitter, CP_TableHeaders, CP_TableView, CP_TabView, CP_TextGroupBox, CP_TextView, CP_Toolbar, CP_WindowListHeader, CP_MDIFrameWindow, CP_MenuBarWindow, and CP_Window_Imp. |
|
||||||||||||
|
Reimplemented in CP_Scroller, CP_Splitter, and CP_View. |
|
||||||||||||
|
Called when the bounds of this view has changed.
Reimplemented in CP_OpenGLView, and CP_QT_MovieView. |
|
|
Slot to disable a view. Reimplemented in CP_SelectColorButt |