git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2710
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
class WXDLLEXPORT wxPrivateDataObject : public wxDataObject
{
class WXDLLEXPORT wxPrivateDataObject : public wxDataObject
{
+#ifdef __WXGTK__
+ DECLARE_DYNAMIC_CLASS( wxPrivateDataObject )
+#endif
public:
wxPrivateDataObject();
public:
wxPrivateDataObject();
virtual void GetDataHere(void *dest) const
{ WriteData(dest); }
virtual void GetDataHere(void *dest) const
{ WriteData(dest); }
// the function which really copies the data - called by WriteData() above
// and uses GetSize() to get the size of the data
// the function which really copies the data - called by WriteData() above
// and uses GetSize() to get the size of the data
- //
- // VZ: I really wonder why do we need it
void WriteData( const void *data, void *dest ) const;
private:
void WriteData( const void *data, void *dest ) const;
private:
if (TagAllChildrenUntilLast(first,last,select)) return;
if (TagAllChildrenUntilLast(first,last,select)) return;
cout << first->GetText() << " " << last->GetText() << " " << (int) select << endl;
cout << first->GetText() << " " << last->GetText() << " " << (int) select << endl;
TagNextChildren(first,last,select);
}
TagNextChildren(first,last,select);
}
event.SetEventObject( this );
// Here we don't send any selection mode yet ! TO SEE
event.SetEventObject( this );
// Here we don't send any selection mode yet ! TO SEE
if (m_current)
cout << m_current->GetText() << " " << (int)m_current->HasHilight() << endl;
if (m_current)
cout << m_current->GetText() << " " << (int)m_current->HasHilight() << endl;
if ( GetEventHandler()->ProcessEvent( event ) && event.WasVetoed() )
return;
if ( GetEventHandler()->ProcessEvent( event ) && event.WasVetoed() )
return;
- cout << m_current->GetText() << " " << (int)m_current->HasHilight() << endl;
+ cout << m_current->GetText() << " " << (int)m_current->HasHilight() << endl;
+*/
// ctrl press
if (unselect_others)
// ctrl press
if (unselect_others)
gtk_editable_select_region( GTK_EDITABLE(m_text), (gint)from, (gint)to );
}
gtk_editable_select_region( GTK_EDITABLE(m_text), (gint)from, (gint)to );
}
-void wxTextCtrl::ShowPosition( long pos )
+void wxTextCtrl::ShowPosition( long WXUNUSED(pos) )
- SetInsertionPoint( pos );
+// SetInsertionPoint( pos );
}
long wxTextCtrl::GetInsertionPoint() const
}
long wxTextCtrl::GetInsertionPoint() const
gtk_editable_select_region( GTK_EDITABLE(m_text), (gint)from, (gint)to );
}
gtk_editable_select_region( GTK_EDITABLE(m_text), (gint)from, (gint)to );
}
-void wxTextCtrl::ShowPosition( long pos )
+void wxTextCtrl::ShowPosition( long WXUNUSED(pos) )
- SetInsertionPoint( pos );
+// SetInsertionPoint( pos );
}
long wxTextCtrl::GetInsertionPoint() const
}
long wxTextCtrl::GetInsertionPoint() const