wxPropertyGridEvent Class Reference

A propertygrid event holds information about events associated with wxPropertyGrid objects. More...

#include <propgrid.h>

List of all members.

Public Member Functions

bool CanVeto () const
virtual wxEvent * Clone () const
void DisableProperty ()
void EnableProperty (bool enable=true)
unsigned int GetColumn () const
wxPGPropertyGetMainParent () const
wxPGPropertyGetProperty () const
wxPGProperty::ClientDataType GetPropertyClientData () const
const wxString & GetPropertyLabel () const
wxString GetPropertyName () const
wxVariant GetPropertyValue () const
wxArrayInt GetPropertyValueAsArrayInt () const
wxArrayString GetPropertyValueAsArrayString () const
long GetPropertyValueAsBool () const
double GetPropertyValueAsDouble () const
int GetPropertyValueAsInt () const
long GetPropertyValueAsLong () const
wxPoint GetPropertyValueAsPoint () const
wxSize GetPropertyValueAsSize () const
wxString GetPropertyValueAsString () const
void * GetPropertyValueAsVoidPtr () const
const wxObject * GetPropertyValueAsWxObjectPtr () const
wxPGVFBFlags GetValidationFailureBehavior () const
wxPGValidationInfoGetValidationInfo ()
const wxVariant & GetValue () const
bool HasProperty () const
bool IsPropertyEnabled () const
void SetCanVeto (bool canVeto)
void SetColumn (unsigned int column)
void SetProperty (wxPGProperty *p)
void SetPropertyGrid (wxPropertyGrid *pg)
void SetupValidationInfo ()
void SetValidationFailureBehavior (int flags)
void SetValidationFailureMessage (const wxString &message)
void Veto (bool veto=true)
bool WasVetoed () const
 wxPropertyGridEvent (const wxPropertyGridEvent &event)
 wxPropertyGridEvent (wxEventType commandType=0, int id=0)
 ~wxPropertyGridEvent ()

Private Member Functions

void Init ()

Private Attributes

bool m_canVeto
unsigned int m_column
wxPropertyGridm_pg
wxPGPropertym_property
wxPGValidationInfom_validationInfo
bool m_wasVetoed

Detailed Description

A propertygrid event holds information about events associated with wxPropertyGrid objects.

Derived from

wxNotifyEvent
wxCommandEvent
wxEvent
wxObject

Include files

<wx/propertygrid/propertygrid.h>

Definition at line 8141 of file propgrid.h.


Constructor & Destructor Documentation

wxPropertyGridEvent::wxPropertyGridEvent ( wxEventType  commandType = 0,
int  id = 0 
)

Constructor.

wxPropertyGridEvent::wxPropertyGridEvent ( const wxPropertyGridEvent event  ) 

Copy constructor.

wxPropertyGridEvent::~wxPropertyGridEvent (  ) 

Destructor.


Member Function Documentation

bool wxPropertyGridEvent::CanVeto (  )  const [inline]

Returns true if you can veto the action that the event is signaling.

Definition at line 8299 of file propgrid.h.

virtual wxEvent* wxPropertyGridEvent::Clone (  )  const [virtual]

Copyer.

void wxPropertyGridEvent::DisableProperty (  )  [inline]

Disables property.

Definition at line 8164 of file propgrid.h.

void wxPropertyGridEvent::EnableProperty ( bool  enable = true  )  [inline]

Enables property.

Definition at line 8158 of file propgrid.h.

unsigned int wxPropertyGridEvent::GetColumn (  )  const [inline]

Returns the column index associated with this event.

Definition at line 8172 of file propgrid.h.

wxPGProperty* wxPropertyGridEvent::GetMainParent (  )  const [inline]

Definition at line 8177 of file propgrid.h.

wxPGProperty* wxPropertyGridEvent::GetProperty (  )  const [inline]

Returns id of associated property.

Definition at line 8184 of file propgrid.h.

wxPGProperty::ClientDataType wxPropertyGridEvent::GetPropertyClientData (  )  const [inline]

Returns client data of relevant property.

Definition at line 8217 of file propgrid.h.

const wxString& wxPropertyGridEvent::GetPropertyLabel (  )  const [inline]

Returns label of associated property.

Definition at line 8203 of file propgrid.h.

wxString wxPropertyGridEvent::GetPropertyName (  )  const [inline]

Returns global name of associated property.

Definition at line 8210 of file propgrid.h.

wxVariant wxPropertyGridEvent::GetPropertyValue (  )  const [inline]

Returns value of relevant property.

Definition at line 8225 of file propgrid.h.

wxArrayInt wxPropertyGridEvent::GetPropertyValueAsArrayInt (  )  const [inline]

Definition at line 8271 of file propgrid.h.

wxArrayString wxPropertyGridEvent::GetPropertyValueAsArrayString (  )  const [inline]

Definition at line 8259 of file propgrid.h.

long wxPropertyGridEvent::GetPropertyValueAsBool (  )  const [inline]

Definition at line 8243 of file propgrid.h.

double wxPropertyGridEvent::GetPropertyValueAsDouble (  )  const [inline]

Definition at line 8247 of file propgrid.h.

int wxPropertyGridEvent::GetPropertyValueAsInt (  )  const [inline]

Definition at line 8239 of file propgrid.h.

long wxPropertyGridEvent::GetPropertyValueAsLong (  )  const [inline]

Definition at line 8235 of file propgrid.h.

wxPoint wxPropertyGridEvent::GetPropertyValueAsPoint (  )  const [inline]

Definition at line 8263 of file propgrid.h.

wxSize wxPropertyGridEvent::GetPropertyValueAsSize (  )  const [inline]

Definition at line 8267 of file propgrid.h.

wxString wxPropertyGridEvent::GetPropertyValueAsString (  )  const [inline]

Definition at line 8231 of file propgrid.h.

void* wxPropertyGridEvent::GetPropertyValueAsVoidPtr (  )  const [inline]

Definition at line 8255 of file propgrid.h.

const wxObject* wxPropertyGridEvent::GetPropertyValueAsWxObjectPtr (  )  const [inline]

Definition at line 8251 of file propgrid.h.

wxPGVFBFlags wxPropertyGridEvent::GetValidationFailureBehavior (  )  const [inline]

Definition at line 8336 of file propgrid.h.

wxPGValidationInfo& wxPropertyGridEvent::GetValidationInfo (  )  [inline]

Definition at line 8283 of file propgrid.h.

const wxVariant& wxPropertyGridEvent::GetValue (  )  const [inline]

Returns value that is about to be set for wxEVT_PG_CHANGING.

Definition at line 8310 of file propgrid.h.

bool wxPropertyGridEvent::HasProperty (  )  const [inline]

Returns true if event has associated property.

Definition at line 8290 of file propgrid.h.

void wxPropertyGridEvent::Init (  )  [private]
bool wxPropertyGridEvent::IsPropertyEnabled (  )  const [inline]

Definition at line 8292 of file propgrid.h.

void wxPropertyGridEvent::SetCanVeto ( bool  canVeto  )  [inline]

Definition at line 8342 of file propgrid.h.

void wxPropertyGridEvent::SetColumn ( unsigned int  column  )  [inline]

Definition at line 8357 of file propgrid.h.

void wxPropertyGridEvent::SetProperty ( wxPGProperty p  )  [inline]

Changes the associated property.

Definition at line 8346 of file propgrid.h.

void wxPropertyGridEvent::SetPropertyGrid ( wxPropertyGrid pg  )  [inline]

Definition at line 8348 of file propgrid.h.

void wxPropertyGridEvent::SetupValidationInfo (  )  [inline]

Definition at line 8350 of file propgrid.h.

void wxPropertyGridEvent::SetValidationFailureBehavior ( int  flags  )  [inline]

Set override validation failure behavior. Only effective if Veto was also called, and only allowed if event type is wxEVT_PG_CHANGING.

Definition at line 8320 of file propgrid.h.

void wxPropertyGridEvent::SetValidationFailureMessage ( const wxString &  message  )  [inline]

Sets custom failure message for this time only. Only applies if wxPG_VFB_SHOW_MESSAGE is set in validation failure flags.

Definition at line 8329 of file propgrid.h.

void wxPropertyGridEvent::Veto ( bool  veto = true  )  [inline]

Call this from your event handler to veto action that the event is signaling. You can only veto a shutdown if wxPropertyGridEvent::CanVeto returns true.

Remarks:
Currently only wxEVT_PG_CHANGING supports vetoing.

Definition at line 8306 of file propgrid.h.

bool wxPropertyGridEvent::WasVetoed (  )  const [inline]

Definition at line 8343 of file propgrid.h.


Member Data Documentation

Definition at line 8372 of file propgrid.h.

unsigned int wxPropertyGridEvent::m_column [private]

Definition at line 8370 of file propgrid.h.

Definition at line 8367 of file propgrid.h.

Definition at line 8366 of file propgrid.h.

Definition at line 8368 of file propgrid.h.

Definition at line 8373 of file propgrid.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


wxpropgrid
Author(s): Jaakko Salli
autogenerated on Fri Jan 11 09:34:07 2013