a2dTipWindowProperty Class Reference
[a2dPropObject holds property objects]

property to hold a tip window type variable to be associated with a a2dPropObject More...

#include <gen.h>

Inheritance diagram for a2dTipWindowProperty:

Inheritance graph
[legend]
Collaboration diagram for a2dTipWindowProperty:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dTipWindowProperty (const a2dPropertyIdWindow *id, wxTipWindow *window, const wxString &tipstring, bool useObjRect=true)
 constructor
 a2dTipWindowProperty (const a2dPropertyIdWindow *id, wxTipWindow *window, const wxString &tipstring, const wxRect &rect)
 constructor
 a2dTipWindowProperty (const a2dTipWindowProperty *ori)
 a2dTipWindowProperty (const a2dTipWindowProperty &other)
virtual a2dNamedPropertyClone (a2dObject::CloneOptions options) const
 Virtual copy constructor.
virtual void Assign (const a2dNamedProperty &other)
 Virtual assignment operator.
void SetString (const wxString &tipstring)
const wxString & GetString (void)
 when a2dStringProperty, return its value else assert
const wxRect & GetRect () const
 get rect which keep tip visible
bool GetUseObjRect () const
 is the tip based on a2dCanvasObject boundingbox
virtual void DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
 Save settings.
virtual void DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
 Load settings.

Static Public Member Functions

static a2dTipWindowPropertyCreatePropertyFromString (const a2dPropertyIdWindow *id, const wxString &value)

Protected Attributes

wxString m_tipstring
bool m_useObjRect
wxRect m_rectStay


Detailed Description

property to hold a tip window type variable to be associated with a a2dPropObject

Value is stired as wxWindow*. GetValue() must be casted to wxTipWindow to get the tip window.

Definition at line 2289 of file gen.h.


Constructor & Destructor Documentation

a2dTipWindowProperty::a2dTipWindowProperty ( const a2dPropertyIdWindow id,
wxTipWindow *  window,
const wxString &  tipstring,
bool  useObjRect = true 
)

constructor

Parameters:
id id of property e.g. a2dCanvasObject::PROPID_TipWindow
window tip window to show
topstring string to show in tip window
useObjRect if true, use the a2dCanvasObject its boundingbox to keep tip visible

Definition at line 2385 of file gen.cpp.

a2dTipWindowProperty::a2dTipWindowProperty ( const a2dPropertyIdWindow id,
wxTipWindow *  window,
const wxString &  tipstring,
const wxRect &  rect 
)

constructor

Parameters:
id id of property e.g. a2dCanvasObject::PROPID_TipWindow
window tip window to show
topstring string to show in tip window
rect use rect to keep tip visible

Definition at line 2392 of file gen.cpp.


Member Function Documentation

a2dTipWindowProperty * a2dTipWindowProperty::CreatePropertyFromString ( const a2dPropertyIdWindow id,
const wxString &  value 
) [static]

Construct a new property object from a string If this is not appropriate, this may return NULL

Reimplemented from a2dWindowProperty.

Definition at line 2459 of file gen.cpp.


The documentation for this class was generated from the following files:
a2dTipWindowProperty Class Reference -- Tue Aug 31 18:35:55 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation