#include <CascadeVesselPanel.h>
Inheritance diagram for CascadeVesselPanel:
Public Types | |
typedef void() | ActiveVesselChangeCallback (const Vessel *newActiveVessel, void *pClientData) |
typedef void() | VesselInsertedCallback (const Vessel *newActiveVessel, void *pClientData) |
typedef void() | VesselRemovedCallback (const CascadeString &vesselMountPath, void *pClientData) |
Public Member Functions | |
CascadeVesselPanel () | |
virtual | ~CascadeVesselPanel () |
void | SetAcquireGraphicsOnPaint (bool bAcquireOnPaint) |
void | RegisterActiveVesselChangeCallback (ActiveVesselChangeCallback *pCallback, void *pClientData) |
void | RegisterVesselWorkingPathChangeCallback (ActiveVesselChangeCallback *pCallback, void *pClientData) |
void | RegisterVesselInsertedCallback (VesselInsertedCallback *pCallback, void *pClientData) |
void | RegisterVesselRemovedCallback (VesselRemovedCallback *pCallback, void *pClientData) |
void | OnMountMessage (const CascadeMountMessage &mountMessage) |
Vessel * | GetActiveVessel () |
u8 | GetActiveVesselIndex () |
Vessel * | GetVesselAt (u8 index) |
bool | SetActiveVessel (Vessel *pVessel, bool bNotify=true) |
bool | SetActiveVessel (CascadeString path, bool bNotify=true) |
bool | SetActiveVessel (u32 idx, bool bFullRepaint, bool bNotify=true) |
u8 | GetNumVessels () |
void | LookForMountedVessels (bool bScanVessels=false) |
void | RemoveAllVessels () |
Vessel * | AddVessel (CascadeMountMessage::MediaType type, CascadeString name, CascadeString path) |
Vessel * | AddVessel (Vessel *pVessel) |
bool | RemoveVessel (CascadeString path) |
void | ScanVessel (Vessel *pV) |
virtual bool | OnKeyDown (u32 nKey) |
virtual void | OnPaint (CascadeBitmap &bitmap) |
virtual bool | OnNavKey (u32 nKey, CascadeWindow *&pProposedNewFocusWnd) |
virtual bool | WillAcceptFocus () |
Classes | |
class | Slot |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
called to handle a key down CK_KEY message OnKeyDown() gets called to handle a key down message. return true to indicate you have processed the message; false to allow the message to continue to be dispatched. NOTE that navigation keys (CK_NORTH, etc.) do not get dispatched to OnKeyDown(), they get dispatched to OnNavKey().
Reimplemented from CascadeWindow. |
|
|
|
called to handle a navigation key message OnNavKey() gets called to handle a navigation key message. pProposedNewFocusWnd is the proposed new focus window. Clients who override this function may examine pProposedNewFocusWnd and change it if they want. OnNavKey() will be successively be called on a window and its parents until someone returns true, indicating they wish message dispatch to stop. At that point the pProposedNewFocusWnd (if non-NULL) will be set as the new focus window. The base class implementation returns false to allow its parent a chance to change the pProposedNewFocusWnd. If at the end of this business, pProposedNewFocusWnd doesn't point to a new focus window, then the focus will not change and the nav key will get dispatched to your CascadeApp's OnKeyDown() handler.
Reimplemented from CascadeWindow. |
|
Called to instruct this window to paint OnPaint() is called by the Cascade Windowing system to instruct your window to paint (on the bitmap passed in). Higher system performance will result if you manually clip your painting to the bitmap's clipRect (bitmap.GetClipRect()), though this is not required. It IS required to manually clip your painting to the window's absolute rect (since the graphics library doesn't yet support clipping). OnPaint() will only be called by the Cascade windowing system if some portion of the window's absolute rect intersects with the bitmap's clipRect. clients can manually call OnPaint to instruct the window to paint to an arbitrary bitmap outside of the context of the Cascade windowing system. Note that OnPaint() is a paint handling function for a single window. To cause a window and all of its child windows to paint, call PaintTree() instead.
Reimplemented from CascadeWindow. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
by default CascadeWidgets will accept input focus unless they are disabled WillAcceptFocus() is overridden so that the default behavior for CascadeWidget derived classes is to only accept focus if they are not disabled.
Reimplemented from CascadeWidget. |