This is the event class for the wxDataViewCtrl notifications.
Events using this class
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
Event macros:
- EVT_DATAVIEW_SELECTION_CHANGED(id, func):
Process a wxEVT_DATAVIEW_SELECTION_CHANGED
event.
- EVT_DATAVIEW_ITEM_ACTIVATED(id, func):
Process a wxEVT_DATAVIEW_ITEM_ACTIVATED
event.
- EVT_DATAVIEW_ITEM_EDITING_STARTED(id, func):
Process a wxEVT_DATAVIEW_ITEM_EDITING_STARTED
event.
- EVT_DATAVIEW_ITEM_EDITING_DONE(id, func):
Process a wxEVT_DATAVIEW_ITEM_EDITING_DONE
event.
- EVT_DATAVIEW_ITEM_COLLAPSING(id, func):
Process a wxEVT_DATAVIEW_ITEM_COLLAPSING
event.
- EVT_DATAVIEW_ITEM_COLLAPSED(id, func):
Process a wxEVT_DATAVIEW_ITEM_COLLAPSED
event.
- EVT_DATAVIEW_ITEM_EXPANDING(id, func):
Process a wxEVT_DATAVIEW_ITEM_EXPANDING
event.
- EVT_DATAVIEW_ITEM_EXPANDED(id, func):
Process a wxEVT_DATAVIEW_ITEM_EXPANDED
event.
- EVT_DATAVIEW_ITEM_VALUE_CHANGED(id, func):
Process a wxEVT_DATAVIEW_ITEM_VALUE_CHANGED
event.
- EVT_DATAVIEW_ITEM_CONTEXT_MENU(id, func):
Process a wxEVT_DATAVIEW_ITEM_CONTEXT_MENU
event.
- EVT_DATAVIEW_COLUMN_HEADER_CLICK(id, func):
Process a wxEVT_DATAVIEW_COLUMN_HEADER_CLICK
event.
- EVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK(id, func):
Process a wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK
event.
- EVT_DATAVIEW_COLUMN_SORTED(id, func):
Process a wxEVT_DATAVIEW_COLUMN_SORTED
event.
- EVT_DATAVIEW_COLUMN_REORDERED(id, func):
Process a wxEVT_DATAVIEW_COLUMN_REORDERED
event. Currently this even is only generated when using the native OSX version.
- EVT_DATAVIEW_ITEM_BEGIN_DRAG(id, func):
Process a wxEVT_DATAVIEW_ITEM_BEGIN_DRAG
event.
- EVT_DATAVIEW_ITEM_DROP_POSSIBLE(id, func):
Process a wxEVT_DATAVIEW_ITEM_DROP_POSSIBLE
event.
- EVT_DATAVIEW_ITEM_DROP(id, func):
Process a wxEVT_DATAVIEW_ITEM_DROP
event.
- EVT_DATAVIEW_CACHE_HINT(id, func):
Process a wxEVT_DATAVIEW_CACHE_HINT
event.
|
| wxDataViewEvent (wxEventType commandType=wxEVT_NULL, int winid=0) |
| Constructor.
|
|
int | GetColumn () const |
| Returns the position of the column in the control or -1 if no column field was set by the event emitter.
|
|
wxDataViewColumn * | GetDataViewColumn () const |
| Returns a pointer to the wxDataViewColumn from which the event was emitted or NULL.
|
|
wxDataViewModel * | GetModel () const |
| Returns the wxDataViewModel associated with the event.
|
|
wxPoint | GetPosition () const |
| Returns the position of a context menu event in screen coordinates.
|
|
const wxVariant & | GetValue () const |
| Returns a reference to a value.
|
|
bool | IsEditCancelled () const |
| Can be used to determine whether the new value is going to be accepted in wxEVT_DATAVIEW_ITEM_EDITING_DONE handler.
|
|
void | SetColumn (int col) |
| Sets the column index associated with this event.
|
|
void | SetDataViewColumn (wxDataViewColumn *col) |
| For wxEVT_DATAVIEW_COLUMN_HEADER_CLICK only.
|
|
void | SetModel (wxDataViewModel *model) |
| Sets the dataview model associated with this event.
|
|
void | SetValue (const wxVariant &value) |
| Sets the value associated with this event.
|
|
void | SetDataObject (wxDataObject *obj) |
| Set wxDataObject for data transfer within a drag operation.
|
|
wxDataFormat | GetDataFormat () const |
| Gets the wxDataFormat during a drop operation.
|
|
size_t | GetDataSize () const |
| Gets the data size for a drop data transfer.
|
|
void * | GetDataBuffer () const |
| Gets the data buffer for a drop data transfer.
|
|
void | SetDragFlags (int flags) |
| Specify the kind of the drag operation to perform.
|
|
wxDragResult | GetDropEffect () const |
| Returns the effect the user requested to happen to the dropped data.
|
|
int | GetCacheFrom () const |
| Return the first row that will be displayed.
|
|
int | GetCacheTo () const |
| Return the last row that will be displayed.
|
|
wxDataViewItem | GetItem () const |
|
void | SetItem (const wxDataViewItem &item) |
|
void | SetEditCanceled (bool editCancelled) |
|
void | SetPosition (int x, int y) |
|
void | SetCache (int from, int to) |
|
wxDataObject * | GetDataObject () const |
|
void | SetDataFormat (const wxDataFormat &format) |
|
void | SetDataSize (size_t size) |
|
void | SetDataBuffer (void *buf) |
|
int | GetDragFlags () const |
|
void | SetDropEffect (wxDragResult effect) |
|
| wxNotifyEvent (wxEventType eventType=wxEVT_NULL, int id=0) |
| Constructor (used internally by wxWidgets only).
|
|
void | Allow () |
| This is the opposite of Veto(): it explicitly allows the event to be processed.
|
|
bool | IsAllowed () const |
| Returns true if the change is allowed (Veto() hasn't been called) or false otherwise (if it was).
|
|
void | Veto () |
| Prevents the change announced by this event from happening.
|
|
Public Member Functions inherited from wxCommandEvent |
| wxCommandEvent (wxEventType commandEventType=wxEVT_NULL, int id=0) |
| Constructor.
|
|
void * | GetClientData () const |
| Returns client data pointer for a listbox or choice selection event (not valid for a deselection).
|
|
wxClientData * | GetClientObject () const |
| Returns client object pointer for a listbox or choice selection event (not valid for a deselection).
|
|
long | GetExtraLong () const |
| Returns extra information dependent on the event objects type.
|
|
int | GetInt () const |
| Returns the integer identifier corresponding to a listbox, choice or radiobox selection (only if the event was a selection, not a deselection), or a boolean value representing the value of a checkbox.
|
|
int | GetSelection () const |
| Returns item index for a listbox or choice selection event (not valid for a deselection).
|
|
wxString | GetString () const |
| Returns item string for a listbox or choice selection event.
|
|
bool | IsChecked () const |
| This method can be used with checkbox and menu events: for the checkboxes, the method returns true for a selection event and false for a deselection one.
|
|
bool | IsSelection () const |
| For a listbox or similar event, returns true if it is a selection, false if it is a deselection.
|
|
void | SetClientData (void *clientData) |
| Sets the client data for this event.
|
|
void | SetClientObject (wxClientData *clientObject) |
| Sets the client object for this event.
|
|
void | SetExtraLong (long extraLong) |
| Sets the m_extraLong member.
|
|
void | SetInt (int intCommand) |
| Sets the m_commandInt member.
|
|
void | SetString (const wxString &string) |
| Sets the m_commandString member.
|
|
| wxEvent (int id=0, wxEventType eventType=wxEVT_NULL) |
| Constructor.
|
|
virtual wxEvent * | Clone () const =0 |
| Returns a copy of the event.
|
|
wxObject * | GetEventObject () const |
| Returns the object (usually a window) associated with the event, if any.
|
|
wxEventType | GetEventType () const |
| Returns the identifier of the given event type, such as wxEVT_BUTTON .
|
|
virtual wxEventCategory | GetEventCategory () const |
| Returns a generic category for this event.
|
|
int | GetId () const |
| Returns the identifier associated with this event, such as a button command id.
|
|
wxObject * | GetEventUserData () const |
| Return the user data associated with a dynamically connected event handler.
|
|
bool | GetSkipped () const |
| Returns true if the event handler should be skipped, false otherwise.
|
|
long | GetTimestamp () const |
| Gets the timestamp for the event.
|
|
bool | IsCommandEvent () const |
| Returns true if the event is or is derived from wxCommandEvent else it returns false.
|
|
void | ResumePropagation (int propagationLevel) |
| Sets the propagation level to the given value (for example returned from an earlier call to wxEvent::StopPropagation).
|
|
void | SetEventObject (wxObject *object) |
| Sets the originating object.
|
|
void | SetEventType (wxEventType type) |
| Sets the event type.
|
|
void | SetId (int id) |
| Sets the identifier associated with this event, such as a button command id.
|
|
void | SetTimestamp (long timeStamp=0) |
| Sets the timestamp for the event.
|
|
bool | ShouldPropagate () const |
| Test if this event should be propagated or not, i.e. if the propagation level is currently greater than 0.
|
|
void | Skip (bool skip=true) |
| This method can be used inside an event handler to control whether further event handlers bound to this event will be called after the current one returns.
|
|
int | StopPropagation () |
| Stop the event from propagating to its parent window.
|
|
| wxObject () |
| Default ctor; initializes to NULL the internal reference data.
|
|
| wxObject (const wxObject &other) |
| Copy ctor.
|
|
virtual | ~wxObject () |
| Destructor.
|
|
virtual wxClassInfo * | GetClassInfo () const |
| This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar).
|
|
wxObjectRefData * | GetRefData () const |
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object.
|
|
bool | IsKindOf (const wxClassInfo *info) const |
| Determines whether this class is a subclass of (or the same class as) the given class.
|
|
bool | IsSameAs (const wxObject &obj) const |
| Returns true if this object has the same data pointer as obj.
|
|
void | Ref (const wxObject &clone) |
| Makes this object refer to the data in clone.
|
|
void | SetRefData (wxObjectRefData *data) |
| Sets the wxObject::m_refData pointer.
|
|
void | UnRef () |
| Decrements the reference count in the associated data, and if it is zero, deletes the data.
|
|
void | UnShare () |
| This is the same of AllocExclusive() but this method is public.
|
|
void | operator delete (void *buf) |
| The delete operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined.
|
|
void * | operator new (size_t size, const wxString &filename=NULL, int lineNum=0) |
| The new operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined.
|
|