VSTGUI  3.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CDataBrowser Class Reference

DataBrowser view. More...

#include <cdatabrowser.h>

+ Inheritance diagram for CDataBrowser:

Public Types

enum  CDataBrowserStyle { kDrawRowLines = 1 << 4, kDrawColumnLines = 1 << 5, kDrawHeader = 1 << 6 }
 
enum  { kNoSelection = -1 }
 
enum  CScrollViewStyle { kHorizontalScrollbar = 1 << 1, kVerticalScrollbar = 1 << 2, kDontDrawFrame = 1 << 3 }
 

Public Member Functions

 ~CDataBrowser ()
 
bool addView (CView *pView)
 add a child view More...
 
bool addView (CView *pView, CRect &mouseableArea, bool mouseEnabled=true)
 add a child view More...
 
bool removeView (CView *pView, const bool &withForget=true)
 remove a child view More...
 
bool removeAll (const bool &withForget=true)
 remove all child views More...
 
bool isChild (CView *pView) const
 check if pView is a child view of this container More...
 
long getNbViews () const
 get the number of child views More...
 
CViewgetView (long index) const
 get the child view at index More...
 
void drawBackgroundRect (CDrawContext *pContext, CRect &_updateRect)
 draw the background More...
 
bool onWheel (const CPoint &where, const CMouseWheelAxis &axis, const float &distance, const long &buttons)
 called if a mouse wheel event is happening over this view More...
 
virtual bool onWheel (const CPoint &where, const float &distance, const long &buttons)
 called if a mouse wheel event is happening over this view More...
 
void setTransparency (bool val)
 set views transparent state More...
 
void setBackgroundColor (const CColor &color)
 
void setViewSize (CRect &rect, bool invalid=true)
 
virtual bool isTypeOf (const char *s) const
 
virtual CViewnewCopy () const
 
virtual void useOffscreen (bool b)
 turn on/off using an offscreen. Not necessary with GDI+ on Windows, or on Mac OS X. More...
 
void modifyDrawContext (CCoord save[4], CDrawContext *pContext)
 
void restoreDrawContext (CDrawContext *pContext, CCoord save[4])
 
virtual bool advanceNextFocusView (CView *oldFocus, bool reverse=false)
 
virtual void draw (CDrawContext *pContext)
 
virtual void drawRect (CDrawContext *pContext, const CRect &updateRect)
 
virtual CMouseEventResult onMouseDown (CPoint &where, const long &buttons)
 called when a mouse down event occurs More...
 
virtual CMouseEventResult onMouseUp (CPoint &where, const long &buttons)
 called when a mouse up event occurs More...
 
virtual CMouseEventResult onMouseMoved (CPoint &where, const long &buttons)
 called when a mouse move event occurs More...
 
virtual bool hitTest (const CPoint &where, const long buttons=-1)
 
virtual long onKeyDown (VstKeyCode &keyCode)
 called if a key down event occurs and this view has focus More...
 
virtual long onKeyUp (VstKeyCode &keyCode)
 called if a key up event occurs and this view has focus More...
 
virtual bool onDrop (CDragContainer *drag, const CPoint &where)
 called if a drag is dropped onto this view More...
 
virtual void onDragEnter (CDragContainer *drag, const CPoint &where)
 called if a drag is entering this view More...
 
virtual void onDragLeave (CDragContainer *drag, const CPoint &where)
 called if a drag is leaving this view More...
 
virtual void onDragMove (CDragContainer *drag, const CPoint &where)
 called if a drag is moved inside this view More...
 
virtual void looseFocus ()
 called if view should loose focus More...
 
virtual void takeFocus ()
 called if view should take focus More...
 
virtual bool isDirty () const
 check if view is dirty More...
 
virtual void invalid ()
 mark whole view as invalid More...
 
virtual void invalidRect (const CRect rect)
 mark rect as invalid More...
 
virtual bool invalidateDirtyViews ()
 
virtual void parentSizeChanged ()
 notification that one of the views parent has changed its size More...
 
virtual CRect getVisibleSize (const CRect rect) const
 
virtual bool removed (CView *parent)
 view is removed from parent view More...
 
virtual CPointframeToLocal (CPoint &point) const
 conversion from frame coordinates to local view coordinates More...
 
virtual CPointlocalToFrame (CPoint &point) const
 conversion from local view coordinates to frame coordinates More...
 
virtual void mouse (CDrawContext *pContext, CPoint &where, long buttons=-1)
 
virtual CViewgetCurrentView () const
 
virtual void setBackground (CBitmap *background)
 set the background image of this view More...
 
virtual CBitmapgetBackground () const
 get the background image of this view More...
 
virtual bool getTransparency () const
 get views transparent state More...
 
bool isAttached () const
 is view attached to a parentView More...
 
virtual void getMouseLocation (CDrawContext *context, CPoint &point)
 
virtual void setParentView (CView *pParentView)
 
virtual void setFrame (CFrame *pParent)
 
virtual void getFrameTopLeftPos (CPoint &topLeft) const
 

Protected Types

enum  { kHSBTag, kVSBTag }
 

Protected Member Functions

void valueChanged (CControl *pControl)
 
CMessageResult notify (CBaseObject *sender, const char *message)
 
bool attached (CView *parent)
 view is attached to a parent view More...
 
virtual bool checkUpdateRect (CView *view, const CRect &rect)
 
virtual bool hitTestSubViews (const CPoint &where, const long buttons=-1)
 
void drawBackToFront (CDrawContext *context, const CRect &rect)
 

Protected Attributes

IDataBrowserdb
 
CDataBrowserView * dbView
 
CDataBrowserHeader * dbHeader
 
CViewContainerdbHeaderContainer
 
long selectedRow
 
CScrollContainer * sc
 
CScrollbarvsb
 
CScrollbarhsb
 
CRect containerSize
 
long style
 
CCView * pFirstView
 
CCView * pLastView
 
COffscreenContextpOffscreenContext
 
CColor backgroundColor
 
CPoint backgroundOffset
 
bool bDrawInOffscreen
 
CViewcurrentDragView
 
CViewmouseDownView
 
CRect size
 
CRect mouseableArea
 
CFramepParentFrame
 
CViewpParentView
 
bool bDirty
 
bool bMouseEnabled
 
bool bTransparencyEnabled
 
bool bWantsFocus
 
bool bIsAttached
 
bool bVisible
 
long autosizeFlags
 
CBitmappBackground
 
CAttributeListEntry * pAttributeList
 

Constructor

 CDataBrowser (const CRect &size, CFrame *pParent, IDataBrowser *db, long style=0, CCoord scrollbarWidth=16, CBitmap *pBackground=0)
 

CDataBrowser Methods

virtual void recalculateLayout (bool rememberSelection=false)
 trigger recalculation, call if numRows or numColumns changed More...
 
virtual void invalidate (long row, long column)
 invalidates an individual cell More...
 
virtual void invalidateRow (long row)
 invalidates a complete row More...
 
virtual void makeRowVisible (long row)
 scrolls the scrollview so that row is visible More...
 
virtual CRect getCellBounds (long row, long column)
 get bounds of a cell More...
 
virtual long getSelectedRow () const
 get selected row More...
 
virtual void setSelectedRow (long row, bool makeVisible=false)
 set the exclusive selected row More...
 
virtual void beginTextEdit (long row, long column, const char *initialText)
 starts a text edit for a cell More...
 

CScrollView Methods

virtual void setContainerSize (const CRect &cs, bool keepVisibleArea=false)
 set the virtual size of this container More...
 
const CPointgetScrollOffset () const
 get scroll offset More...
 
CScrollbargetVerticalScrollbar () const
 get the vertical scrollbar More...
 
CScrollbargetHorizontalScrollbar () const
 get the horizontal scrollbar More...
 
virtual void makeRectVisible (const CRect &rect)
 set scrollview to show rect More...
 

Reference Counting Methods

virtual void forget ()
 decrease refcount and delete object if refcount == 0 More...
 
virtual void remember ()
 increase refcount More...
 
long getNbReference () const
 get refcount More...
 

Draw and Update Methods

virtual bool checkUpdate (const CRect &updateRect) const
 
virtual void setDirty (const bool val=true)
 set the view to dirty so that it is redrawn in the next idle. Thread Safe ! More...
 
virtual void setVisible (bool state)
 set visibility state More...
 
bool isVisible () const
 get visibility state More...
 

Mouse Methods

virtual CMouseEventResult onMouseEntered (CPoint &where, const long &buttons)
 called when the mouse enters this view More...
 
virtual CMouseEventResult onMouseExited (CPoint &where, const long &buttons)
 called when the mouse leaves this view More...
 
virtual void setMouseEnabled (const bool bEnable=true)
 turn on/off mouse usage for this view More...
 
virtual bool getMouseEnabled () const
 get the state of wheather this view uses the mouse or not More...
 
virtual void setMouseableArea (const CRect &rect)
 set the area in which the view reacts to the mouse More...
 
virtual CRectgetMouseableArea (CRect &rect) const
 get the area in which the view reacts to the mouse More...
 
virtual const CRectgetMouseableArea () const
 read only access to the mouseable area More...
 

View Size Methods

virtual CRect getVisibleSize () const
 returns the visible size of the view More...
 
CCoord getHeight () const
 get the height of the view More...
 
CCoord getWidth () const
 get the width of the view More...
 
virtual CRectgetViewSize (CRect &rect) const
 returns the current view size More...
 
virtual const CRectgetViewSize () const
 read only access to view size More...
 
virtual void setAutosizeFlags (long flags)
 set autosize flags More...
 
virtual long getAutosizeFlags () const
 get autosize flags More...
 

Focus Methods

virtual bool wantsFocus () const
 check if view supports focus More...
 
virtual void setWantsFocus (bool state)
 set focus support on/off More...
 

Attribute Methods

bool getAttributeSize (const CViewAttributeID id, long &outSize) const
 get the size of an attribute More...
 
bool getAttribute (const CViewAttributeID id, const long inSize, void *outData, long &outSize) const
 get an attribute More...
 
bool setAttribute (const CViewAttributeID id, const long inSize, const void *inData)
 set an attribute More...
 
bool removeAttribute (const CViewAttributeID id)
 remove an attribute More...
 

Parent Methods

CViewgetParentView () const
 get parent view More...
 
CFramegetFrame () const
 get frame More...
 
virtual VSTGUIEditorInterfacegetEditor () const
 get editor More...
 

Sub View Methods

virtual bool addView (CView *pView, CView *pBefore)
 add a child view before another view More...
 
virtual CViewgetViewAt (const CPoint &where, bool deep=false) const
 get the view at point where More...
 
virtual CViewContainergetContainerAt (const CPoint &where, bool deep=true) const
 get the container at point where More...
 

Background Methods

virtual void setBackgroundColor (const CColor color)
 set the background color (will only be drawn if this container is not set to transparent and does not have a background bitmap) More...
 
virtual CColor getBackgroundColor () const
 get the background color More...
 
virtual void setBackgroundOffset (const CPoint &p)
 set the offset of the background bitmap More...
 
virtual const CPointgetBackgroundOffset () const
 get the offset of the background bitmap More...
 

Detailed Description

DataBrowser view.

Member Enumeration Documentation

anonymous enum
Enumerator
kNoSelection 
anonymous enum
protectedinherited
Enumerator
kHSBTag 
kVSBTag 
Enumerator
kDrawRowLines 
kDrawColumnLines 
kDrawHeader 
enum CScrollViewStyle
inherited
Enumerator
kHorizontalScrollbar 

add a horizontal scrollbar

kVerticalScrollbar 

add a vertical scrollbar

kDontDrawFrame 

don't draw frame

Constructor & Destructor Documentation

CDataBrowser ( const CRect size,
CFrame pParent,
IDataBrowser db,
long  style = 0,
CCoord  scrollbarWidth = 16,
CBitmap pBackground = 0 
)
Parameters
sizesize of data browser
pParentframe
dbdata browser interface. If db is inheritated from CBaseObject it will be remembered and released if data browser is destroyed
styledata browser and scroll view style see CDataBrowserStyle and CScrollViewStyle
scrollbarWidthwidth of scrollbars
pBackgroundbackground bitmap

Member Function Documentation

bool addView ( CView pView)
virtualinherited

add a child view

Parameters
pViewthe view object to add to this container
Returns
true on success. false if view was already attached

Reimplemented from CViewContainer.

bool addView ( CView pView,
CRect mouseableArea,
bool  mouseEnabled = true 
)
virtualinherited

add a child view

Parameters
pViewthe view object to add to this container
mouseableAreathe view area in where the view will get mouse events
mouseEnabledbool to set if view will get mouse events
Returns
true on success. false if view was already attached

Reimplemented from CViewContainer.

bool addView ( CView pView,
CView pBefore 
)
virtualinherited

add a child view before another view

Parameters
pViewthe view object to add to this container
pBeforethe view object
Returns
true on success. false if view was already attached
bool advanceNextFocusView ( CView oldFocus,
bool  reverse = false 
)
virtualinherited
Parameters
oldFocusold focus view
reversesearch order
Returns
true on success

Reimplemented in CFrame.

bool attached ( CView parent)
protectedvirtual

view is attached to a parent view

Parameters
parentparent view
Returns
true if view successfully attached to parent

Reimplemented from CViewContainer.

void beginTextEdit ( long  row,
long  column,
const char *  initialText 
)
virtual

starts a text edit for a cell

Parameters
rowrow number
columncolumn number
initialTextUTF-8 string the text edit field will be initialized with
virtual bool checkUpdate ( const CRect updateRect) const
inlinevirtualinherited
bool checkUpdateRect ( CView view,
const CRect rect 
)
protectedvirtualinherited

check if view needs to be updated for rect

Parameters
viewview to check
rectupdate rect
Returns
true if view needs update
void draw ( CDrawContext pContext)
virtualinherited
Parameters
pContextthe context which to use to draw this container and its subviews

Reimplemented from CView.

Reimplemented in CFrame.

void drawBackgroundRect ( CDrawContext pContext,
CRect _updateRect 
)
virtualinherited

draw the background

Parameters
pContextthe context which to use to draw the background
_updateRectthe area which to draw

Reimplemented from CViewContainer.

void drawBackToFront ( CDrawContext context,
const CRect rect 
)
protectedinherited
void drawRect ( CDrawContext pContext,
const CRect updateRect 
)
virtualinherited
Parameters
pContextthe context which to use to draw
updateRectthe area which to draw

Reimplemented from CView.

Reimplemented in CFrame.

virtual void forget ( )
inlinevirtualinherited

decrease refcount and delete object if refcount == 0

Reimplemented in CDrawContext.

CPoint & frameToLocal ( CPoint point) const
virtualinherited

conversion from frame coordinates to local view coordinates

Parameters
pointlocation
Returns
converted point

Reimplemented from CView.

bool getAttribute ( const CViewAttributeID  id,
const long  inSize,
void *  outData,
long &  outSize 
) const
inherited

get an attribute

Parameters
idthe ID of the Attribute
inSizethe size of the outData pointer
outDataa pointer where to copy the attribute data
outSizethe size in bytes which was copied into outData
Returns
true if attribute exists and outData was big enough. outSize and outData is valid then.
bool getAttributeSize ( const CViewAttributeID  id,
long &  outSize 
) const
inherited

get the size of an attribute

Parameters
idthe ID of the Attribute
outSizeon return the size of the attribute
Returns
true if attribute exists. outSize is valid then.
virtual long getAutosizeFlags ( ) const
inlinevirtualinherited

get autosize flags

virtual CBitmap* getBackground ( ) const
inlinevirtualinherited

get the background image of this view

virtual CColor getBackgroundColor ( ) const
inlinevirtualinherited

get the background color

virtual const CPoint& getBackgroundOffset ( ) const
inlinevirtualinherited

get the offset of the background bitmap

CRect getCellBounds ( long  row,
long  column 
)
virtual

get bounds of a cell

Parameters
rowrow number
columncolumn number
Returns
bounds of cell
CViewContainer * getContainerAt ( const CPoint p,
bool  deep = true 
) const
virtualinherited

get the container at point where

Parameters
plocation
deepsearch deep
Returns
view container at position p
CView * getCurrentView ( ) const
virtualinherited
Deprecated:

Reimplemented in CFrame.

VSTGUIEditorInterface * getEditor ( ) const
virtualinherited

get editor

Reimplemented in CFrame.

CFrame* getFrame ( ) const
inlineinherited

get frame

void getFrameTopLeftPos ( CPoint topLeft) const
virtualinherited
CCoord getHeight ( ) const
inlineinherited

get the height of the view

CScrollbar* getHorizontalScrollbar ( ) const
inlineinherited

get the horizontal scrollbar

virtual CRect& getMouseableArea ( CRect rect) const
inlinevirtualinherited

get the area in which the view reacts to the mouse

virtual const CRect& getMouseableArea ( ) const
inlinevirtualinherited

read only access to the mouseable area

virtual bool getMouseEnabled ( ) const
inlinevirtualinherited

get the state of wheather this view uses the mouse or not

void getMouseLocation ( CDrawContext context,
CPoint point 
)
virtualinherited
long getNbReference ( ) const
inlineinherited

get refcount

long getNbViews ( ) const
virtualinherited

get the number of child views

Returns
number of subviews

Reimplemented from CViewContainer.

CView* getParentView ( ) const
inlineinherited

get parent view

const CPoint & getScrollOffset ( ) const
inherited

get scroll offset

virtual long getSelectedRow ( ) const
inlinevirtual

get selected row

virtual bool getTransparency ( ) const
inlinevirtualinherited

get views transparent state

CScrollbar* getVerticalScrollbar ( ) const
inlineinherited

get the vertical scrollbar

CView * getView ( long  index) const
virtualinherited

get the child view at index

Parameters
indexthe index of the view to return
Returns
view at index. NULL if view at index does not exist.

Reimplemented from CViewContainer.

CView * getViewAt ( const CPoint p,
bool  deep = false 
) const
virtualinherited

get the view at point where

Parameters
plocation
deepsearch deep
Returns
view at position p
virtual CRect& getViewSize ( CRect rect) const
inlinevirtualinherited

returns the current view size

virtual const CRect& getViewSize ( ) const
inlinevirtualinherited

read only access to view size

CRect getVisibleSize ( ) const
virtualinherited

returns the visible size of the view

Returns
visible size of view
CRect getVisibleSize ( const CRect  rect) const
virtualinherited
Parameters
rectsize to get visible size of
Returns
visible size of rect
CCoord getWidth ( ) const
inlineinherited

get the width of the view

bool hitTest ( const CPoint where,
const long  buttons = -1 
)
virtualinherited
Parameters
wherepoint
buttonsmouse button and modifier state
Returns
true if container accepts the hit

Reimplemented from CView.

bool hitTestSubViews ( const CPoint where,
const long  buttons = -1 
)
protectedvirtualinherited
Parameters
wherepoint
buttonsmouse button and modifier state
Returns
true if any sub view accepts the hit
void invalid ( )
virtualinherited

mark whole view as invalid

Reimplemented from CView.

Reimplemented in CFrame.

void invalidate ( long  row,
long  column 
)
virtual

invalidates an individual cell

currently this will invalidate the whole row

Parameters
rowrow to invalidate
columncolumn to invalidate
bool invalidateDirtyViews ( )
virtualinherited
void invalidateRow ( long  row)
virtual

invalidates a complete row

Parameters
rowrow to invalidate
void invalidRect ( const CRect  rect)
virtualinherited

mark rect as invalid

Parameters
rectrect to invalidate

Reimplemented from CView.

Reimplemented in CFrame.

bool isAttached ( ) const
inlineinherited

is view attached to a parentView

bool isChild ( CView pView) const
virtualinherited

check if pView is a child view of this container

Parameters
pViewthe view which should be checked if it is a child of this container
Returns
true on success

Reimplemented from CViewContainer.

bool isDirty ( ) const
virtualinherited

check if view is dirty

Reimplemented from CView.

virtual bool isTypeOf ( const char *  s) const
inlinevirtualinherited

Reimplemented from CViewContainer.

bool isVisible ( ) const
inlineinherited

get visibility state

CPoint & localToFrame ( CPoint point) const
virtualinherited

conversion from local view coordinates to frame coordinates

Parameters
pointlocation
Returns
converted point

Reimplemented from CView.

void looseFocus ( )
virtualinherited

called if view should loose focus

Reimplemented from CView.

void makeRectVisible ( const CRect rect)
virtualinherited

set scrollview to show rect

void makeRowVisible ( long  row)
virtual

scrolls the scrollview so that row is visible

Parameters
rowrow to make visible
void modifyDrawContext ( CCoord  save[4],
CDrawContext pContext 
)
inherited
void mouse ( CDrawContext pContext,
CPoint where,
long  buttons = -1 
)
virtualinherited
Deprecated:
use the new mouse methods instead

Reimplemented from CView.

Reimplemented in CFrame.

virtual CView* newCopy ( ) const
inlinevirtualinherited

Reimplemented from CViewContainer.

CMessageResult notify ( CBaseObject sender,
const char *  message 
)
protectedvirtual
Parameters
sendermessage sender
messagemessage text
Returns
message handled or not. See CMessageResult

Reimplemented from CViewContainer.

void onDragEnter ( CDragContainer drag,
const CPoint where 
)
virtualinherited

called if a drag is entering this view

Reimplemented from CView.

void onDragLeave ( CDragContainer drag,
const CPoint where 
)
virtualinherited

called if a drag is leaving this view

Reimplemented from CView.

void onDragMove ( CDragContainer drag,
const CPoint where 
)
virtualinherited

called if a drag is moved inside this view

Reimplemented from CView.

bool onDrop ( CDragContainer drag,
const CPoint where 
)
virtualinherited

called if a drag is dropped onto this view

Reimplemented from CView.

long onKeyDown ( VstKeyCode keyCode)
virtualinherited

called if a key down event occurs and this view has focus

Parameters
keyCodekey code of pressed key
Returns
-1 if not handled and 1 if handled

Reimplemented from CView.

Reimplemented in CFrame.

long onKeyUp ( VstKeyCode keyCode)
virtualinherited

called if a key up event occurs and this view has focus

Parameters
keyCodekey code of pressed key
Returns
-1 if not handled and 1 if handled

Reimplemented from CView.

Reimplemented in CFrame.

CMouseEventResult onMouseDown ( CPoint where,
const long &  buttons 
)
virtualinherited

called when a mouse down event occurs

Parameters
wheremouse location of mouse down
buttonsbutton and modifier state
Returns
event result. see CMouseEventResult

Reimplemented from CView.

Reimplemented in CFrame.

virtual CMouseEventResult onMouseEntered ( CPoint where,
const long &  buttons 
)
inlinevirtualinherited

called when the mouse enters this view

virtual CMouseEventResult onMouseExited ( CPoint where,
const long &  buttons 
)
inlinevirtualinherited

called when the mouse leaves this view

Reimplemented in CFrame.

CMouseEventResult onMouseMoved ( CPoint where,
const long &  buttons 
)
virtualinherited

called when a mouse move event occurs

Parameters
wheremouse location of mouse move
buttonsbutton and modifier state
Returns
event result. see CMouseEventResult

Reimplemented from CView.

Reimplemented in CFrame.

CMouseEventResult onMouseUp ( CPoint where,
const long &  buttons 
)
virtualinherited

called when a mouse up event occurs

Parameters
wheremouse location of mouse up
buttonsbutton and modifier state
Returns
event result. see CMouseEventResult

Reimplemented from CView.

Reimplemented in CFrame.

bool onWheel ( const CPoint where,
const CMouseWheelAxis axis,
const float &  distance,
const long &  buttons 
)
virtualinherited

called if a mouse wheel event is happening over this view

Parameters
wherelocation
axismouse wheel axis
distancewheel distance
buttonsbutton and modifier state
Returns
true if handled

Reimplemented from CViewContainer.

bool onWheel ( const CPoint where,
const float &  distance,
const long &  buttons 
)
virtualinherited

called if a mouse wheel event is happening over this view

Parameters
wherelocation
distancewheel distance
buttonsbutton and modifier state
Returns
true if handled

Reimplemented from CView.

Reimplemented in CFrame.

void parentSizeChanged ( )
virtualinherited

notification that one of the views parent has changed its size

Reimplemented from CView.

void recalculateLayout ( bool  rememberSelection = false)
virtual

trigger recalculation, call if numRows or numColumns changed

Parameters
rememberSelectionif true selection will be remembered
virtual void remember ( )
inlinevirtualinherited

increase refcount

bool removeAll ( const bool &  withForget = true)
virtualinherited

remove all child views

Parameters
withForgetbool to indicate if the view's reference counter should be decreased after removed from the container
Returns
true on success

Reimplemented from CViewContainer.

bool removeAttribute ( const CViewAttributeID  id)
inherited

remove an attribute

bool removed ( CView parent)
virtualinherited

view is removed from parent view

Parameters
parentparent view
Returns
true if view successfully removed from parent

Reimplemented from CView.

bool removeView ( CView pView,
const bool &  withForget = true 
)
virtualinherited

remove a child view

Parameters
pViewthe view which should be removed from the container
withForgetbool to indicate if the view's reference counter should be decreased after removed from the container
Returns
true on success

Reimplemented from CViewContainer.

void restoreDrawContext ( CDrawContext pContext,
CCoord  save[4] 
)
inherited
bool setAttribute ( const CViewAttributeID  id,
const long  inSize,
const void *  inData 
)
inherited

set an attribute

copies data into the attribute. If it does not exist, creates a new attribute.

Parameters
idthe ID of the Attribute
inSizethe size of the outData pointer
inDataa pointer to the data
Returns
true if attribute was set
virtual void setAutosizeFlags ( long  flags)
inlinevirtualinherited

set autosize flags

void setBackground ( CBitmap background)
virtualinherited

set the background image of this view

Parameters
backgroundnew background bitmap
void setBackgroundColor ( const CColor color)
inherited
void setBackgroundColor ( const CColor  color)
virtualinherited

set the background color (will only be drawn if this container is not set to transparent and does not have a background bitmap)

Parameters
colorthe new background color of the container
virtual void setBackgroundOffset ( const CPoint p)
inlinevirtualinherited

set the offset of the background bitmap

void setContainerSize ( const CRect cs,
bool  keepVisibleArea = false 
)
virtualinherited

set the virtual size of this container

virtual void setDirty ( const bool  val = true)
inlinevirtualinherited

set the view to dirty so that it is redrawn in the next idle. Thread Safe !

Reimplemented in CVuMeter, and CControl.

virtual void setFrame ( CFrame pParent)
inlinevirtualinherited
virtual void setMouseableArea ( const CRect rect)
inlinevirtualinherited

set the area in which the view reacts to the mouse

virtual void setMouseEnabled ( const bool  bEnable = true)
inlinevirtualinherited

turn on/off mouse usage for this view

virtual void setParentView ( CView pParentView)
inlinevirtualinherited
void setSelectedRow ( long  index,
bool  makeVisible = false 
)
virtual

set the exclusive selected row

Parameters
indexrow to select
makeVisibleif true makes row visible
void setTransparency ( bool  val)
virtualinherited

set views transparent state

Reimplemented from CView.

void setViewSize ( CRect rect,
bool  invalid = true 
)
virtualinherited
Parameters
rectthe new size of the container
invalidthe views to dirty

Reimplemented from CViewContainer.

void setVisible ( bool  state)
virtualinherited

set visibility state

virtual void setWantsFocus ( bool  state)
inlinevirtualinherited

set focus support on/off

void takeFocus ( )
virtualinherited

called if view should take focus

Reimplemented from CView.

void useOffscreen ( bool  b)
virtualinherited

turn on/off using an offscreen. Not necessary with GDI+ on Windows, or on Mac OS X.

void valueChanged ( CControl pControl)
protectedvirtual

Implements CControlListener.

virtual bool wantsFocus ( ) const
inlinevirtualinherited

check if view supports focus

Member Data Documentation

long autosizeFlags
protectedinherited
CColor backgroundColor
protectedinherited
CPoint backgroundOffset
protectedinherited
bool bDirty
protectedinherited
bool bDrawInOffscreen
protectedinherited
bool bIsAttached
protectedinherited
bool bMouseEnabled
protectedinherited
bool bTransparencyEnabled
protectedinherited
bool bVisible
protectedinherited
bool bWantsFocus
protectedinherited
CRect containerSize
protectedinherited
CView* currentDragView
protectedinherited
IDataBrowser* db
protected
CDataBrowserHeader* dbHeader
protected
CViewContainer* dbHeaderContainer
protected
CDataBrowserView* dbView
protected
CScrollbar* hsb
protectedinherited
CRect mouseableArea
protectedinherited
CView* mouseDownView
protectedinherited
CAttributeListEntry* pAttributeList
protectedinherited
CBitmap* pBackground
protectedinherited
CCView* pFirstView
protectedinherited
CCView* pLastView
protectedinherited
COffscreenContext* pOffscreenContext
protectedinherited
CFrame* pParentFrame
protectedinherited
CView* pParentView
protectedinherited
CScrollContainer* sc
protectedinherited
long selectedRow
protected
CRect size
protectedinherited
long style
protectedinherited
CScrollbar* vsb
protectedinherited

The documentation for this class was generated from the following files: