attempts to fix the proplist crash - fruitless
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -236,11 +236,14 @@ class WXDLLEXPORT wxStringFormValidator: public wxPropertyFormValidator
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPropertyFormDialog: public wxDialog
|
class WXDLLEXPORT wxPropertyFormDialog: public wxDialog
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxPropertyFormDialog)
|
|
||||||
public:
|
public:
|
||||||
wxPropertyFormDialog(wxPropertyFormView *v, wxWindow *parent, const wxString& title,
|
wxPropertyFormDialog(wxPropertyFormView *v = NULL,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
wxWindow *parent = NULL,
|
||||||
long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = "dialogBox");
|
const wxString& title = wxEmptyString,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxDEFAULT_DIALOG_STYLE,
|
||||||
|
const wxString& name = _T("dialogBox"));
|
||||||
|
|
||||||
void OnCloseWindow(wxCloseEvent& event);
|
void OnCloseWindow(wxCloseEvent& event);
|
||||||
void OnDefaultAction(wxControl *item);
|
void OnDefaultAction(wxControl *item);
|
||||||
@@ -253,6 +256,7 @@ class WXDLLEXPORT wxPropertyFormDialog: public wxDialog
|
|||||||
wxPropertyFormView* m_view;
|
wxPropertyFormView* m_view;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_CLASS(wxPropertyFormDialog)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -261,11 +265,14 @@ DECLARE_EVENT_TABLE()
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPropertyFormPanel: public wxPanel
|
class WXDLLEXPORT wxPropertyFormPanel: public wxPanel
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxPropertyFormPanel)
|
|
||||||
public:
|
public:
|
||||||
wxPropertyFormPanel(wxPropertyFormView *v, wxWindow *parent, const wxPoint& pos = wxDefaultPosition,
|
wxPropertyFormPanel(wxPropertyFormView *v = NULL,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "panel"):
|
wxWindow *parent = NULL,
|
||||||
wxPanel(parent, -1, pos, size, style, name)
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = 0,
|
||||||
|
const wxString& name = _T("panel"))
|
||||||
|
: wxPanel(parent, -1, pos, size, style, name)
|
||||||
{
|
{
|
||||||
m_view = v;
|
m_view = v;
|
||||||
}
|
}
|
||||||
@@ -277,6 +284,8 @@ class WXDLLEXPORT wxPropertyFormPanel: public wxPanel
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
wxPropertyFormView* m_view;
|
wxPropertyFormView* m_view;
|
||||||
|
|
||||||
|
DECLARE_CLASS(wxPropertyFormPanel)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -285,12 +294,15 @@ class WXDLLEXPORT wxPropertyFormPanel: public wxPanel
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPropertyFormFrame: public wxFrame
|
class WXDLLEXPORT wxPropertyFormFrame: public wxFrame
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxPropertyFormFrame)
|
|
||||||
public:
|
public:
|
||||||
wxPropertyFormFrame(wxPropertyFormView *v, wxFrame *parent, const wxString& title,
|
wxPropertyFormFrame(wxPropertyFormView *v = NULL,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
wxFrame *parent = NULL,
|
||||||
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame"):
|
const wxString& title = wxEmptyString,
|
||||||
wxFrame(parent, -1, title, pos, size, style, name)
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxDEFAULT_FRAME_STYLE,
|
||||||
|
const wxString& name = _T("frame"))
|
||||||
|
: wxFrame(parent, -1, title, pos, size, style, name)
|
||||||
{
|
{
|
||||||
m_view = v;
|
m_view = v;
|
||||||
m_propertyPanel = NULL;
|
m_propertyPanel = NULL;
|
||||||
@@ -307,6 +319,7 @@ class WXDLLEXPORT wxPropertyFormFrame: public wxFrame
|
|||||||
wxPanel* m_propertyPanel;
|
wxPanel* m_propertyPanel;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_CLASS(wxPropertyFormFrame)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -191,15 +191,22 @@ private:
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPropertyTextEdit: public wxTextCtrl
|
class WXDLLEXPORT wxPropertyTextEdit: public wxTextCtrl
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxPropertyTextEdit)
|
|
||||||
public:
|
public:
|
||||||
wxPropertyTextEdit(wxPropertyListView *v, wxWindow *parent, const wxWindowID id,
|
wxPropertyTextEdit(wxPropertyListView *v = NULL,
|
||||||
const wxString& value, const wxPoint& pos = wxDefaultPosition,
|
wxWindow *parent = NULL,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "text");
|
const wxWindowID id = -1,
|
||||||
void OnSetFocus(void);
|
const wxString& value = wxEmptyString,
|
||||||
void OnKillFocus(void);
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = 0,
|
||||||
|
const wxString& name = _T("text"));
|
||||||
|
|
||||||
|
void OnSetFocus();
|
||||||
|
void OnKillFocus();
|
||||||
|
|
||||||
wxPropertyListView* m_view;
|
wxPropertyListView* m_view;
|
||||||
|
|
||||||
|
DECLARE_CLASS(wxPropertyTextEdit)
|
||||||
};
|
};
|
||||||
|
|
||||||
#define wxPROP_ALLOW_TEXT_EDITING 1
|
#define wxPROP_ALLOW_TEXT_EDITING 1
|
||||||
@@ -272,11 +279,15 @@ class WXDLLEXPORT wxPropertyListValidator: public wxPropertyValidator
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPropertyListDialog: public wxDialog
|
class WXDLLEXPORT wxPropertyListDialog: public wxDialog
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxPropertyListDialog)
|
|
||||||
public:
|
public:
|
||||||
wxPropertyListDialog(wxPropertyListView *v, wxWindow *parent, const wxString& title,
|
wxPropertyListDialog(wxPropertyListView *v = NULL,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
wxWindow *parent = NULL,
|
||||||
long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = "dialogBox");
|
const wxString& title = wxEmptyString,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxDEFAULT_DIALOG_STYLE,
|
||||||
|
const wxString& name = _T("dialogBox"));
|
||||||
|
|
||||||
void OnCloseWindow(wxCloseEvent& event);
|
void OnCloseWindow(wxCloseEvent& event);
|
||||||
void OnDefaultAction(wxControl *item);
|
void OnDefaultAction(wxControl *item);
|
||||||
void OnCancel(wxCommandEvent& event);
|
void OnCancel(wxCommandEvent& event);
|
||||||
@@ -287,6 +298,7 @@ class WXDLLEXPORT wxPropertyListDialog: public wxDialog
|
|||||||
private:
|
private:
|
||||||
wxPropertyListView* m_view;
|
wxPropertyListView* m_view;
|
||||||
|
|
||||||
|
DECLARE_CLASS(wxPropertyListDialog)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -296,12 +308,14 @@ DECLARE_EVENT_TABLE()
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPropertyListPanel: public wxPanel
|
class WXDLLEXPORT wxPropertyListPanel: public wxPanel
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxPropertyListPanel)
|
|
||||||
public:
|
public:
|
||||||
wxPropertyListPanel(wxPropertyListView *v, wxWindow *parent, const wxPoint& pos = wxDefaultPosition,
|
wxPropertyListPanel(wxPropertyListView *v = NULL,
|
||||||
|
wxWindow *parent = NULL,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0, const wxString& name = "panel"):
|
long style = 0,
|
||||||
wxPanel(parent, -1, pos, size, style, name)
|
const wxString& name = _T("panel"))
|
||||||
|
: wxPanel(parent, -1, pos, size, style, name)
|
||||||
{
|
{
|
||||||
m_view = v;
|
m_view = v;
|
||||||
}
|
}
|
||||||
@@ -321,6 +335,7 @@ class WXDLLEXPORT wxPropertyListPanel: public wxPanel
|
|||||||
wxPropertyListView* m_view;
|
wxPropertyListView* m_view;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_CLASS(wxPropertyListPanel)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -329,12 +344,15 @@ DECLARE_EVENT_TABLE()
|
|||||||
|
|
||||||
class WXDLLEXPORT wxPropertyListFrame: public wxFrame
|
class WXDLLEXPORT wxPropertyListFrame: public wxFrame
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxPropertyListFrame)
|
|
||||||
public:
|
public:
|
||||||
wxPropertyListFrame(wxPropertyListView *v, wxFrame *parent, const wxString& title,
|
wxPropertyListFrame(wxPropertyListView *v = NULL,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
wxFrame *parent = NULL,
|
||||||
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame"):
|
const wxString& title = wxEmptyString,
|
||||||
wxFrame(parent, -1, title, pos, size, style, name)
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxDEFAULT_FRAME_STYLE,
|
||||||
|
const wxString& name = _T("frame"))
|
||||||
|
: wxFrame(parent, -1, title, pos, size, style, name)
|
||||||
{
|
{
|
||||||
m_view = v;
|
m_view = v;
|
||||||
m_propertyPanel = NULL;
|
m_propertyPanel = NULL;
|
||||||
@@ -352,6 +370,7 @@ class WXDLLEXPORT wxPropertyListFrame: public wxFrame
|
|||||||
wxPropertyListPanel* m_propertyPanel;
|
wxPropertyListPanel* m_propertyPanel;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_CLASS(wxPropertyListFrame)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -810,7 +810,7 @@ void MyPanel::OnPageChanging( wxNotebookEvent &event )
|
|||||||
"page change from taking place - if you select\n"
|
"page change from taking place - if you select\n"
|
||||||
"[No] the current page will stay the third one\n",
|
"[No] the current page will stay the third one\n",
|
||||||
"Control sample",
|
"Control sample",
|
||||||
wxICON_QUESTION | wxYES_NO) != wxYES )
|
wxICON_QUESTION | wxYES_NO, this) != wxYES )
|
||||||
{
|
{
|
||||||
event.Veto();
|
event.Veto();
|
||||||
|
|
||||||
|
@@ -1071,6 +1071,8 @@ void DnDFrame::OnLeftDown(wxMouseEvent &WXUNUSED(event) )
|
|||||||
,wxCURSOR_PENCIL, // for copy
|
,wxCURSOR_PENCIL, // for copy
|
||||||
wxCURSOR_SPRAYCAN, // for move
|
wxCURSOR_SPRAYCAN, // for move
|
||||||
wxCURSOR_QUESTION_ARROW // for nothing
|
wxCURSOR_QUESTION_ARROW // for nothing
|
||||||
|
#elif defined(__WXGTK__)
|
||||||
|
,wxICON(mondrian)
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -588,6 +588,8 @@ void MyListCtrl::OnListKeyDown(wxListEvent& event)
|
|||||||
void MyListCtrl::OnChar(wxKeyEvent& event)
|
void MyListCtrl::OnChar(wxKeyEvent& event)
|
||||||
{
|
{
|
||||||
wxLogMessage(_T("Got char event."));
|
wxLogMessage(_T("Got char event."));
|
||||||
|
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyListCtrl::LogEvent(const wxListEvent& event, const wxChar *eventName)
|
void MyListCtrl::LogEvent(const wxListEvent& event, const wxChar *eventName)
|
||||||
|
@@ -245,6 +245,9 @@ void MyFrame::OnDeletePage(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
if (m_notebook->GetPageCount() > 0)
|
if (m_notebook->GetPageCount() > 0)
|
||||||
m_notebook->DeletePage( m_notebook->GetPageCount()-1 );
|
m_notebook->DeletePage( m_notebook->GetPageCount()-1 );
|
||||||
|
|
||||||
|
// VZ: this crashes wxGTK
|
||||||
|
//m_notebook->RemovePage( m_notebook->GetPageCount()-1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnNextPage(wxCommandEvent& WXUNUSED(event))
|
void MyFrame::OnNextPage(wxCommandEvent& WXUNUSED(event))
|
||||||
|
@@ -284,7 +284,7 @@ void wxPropertyFormView::OnDoubleClick(wxControl *item)
|
|||||||
* Property form dialog box
|
* Property form dialog box
|
||||||
*/
|
*/
|
||||||
|
|
||||||
IMPLEMENT_CLASS(wxPropertyFormDialog, wxDialog)
|
IMPLEMENT_DYNAMIC_CLASS(wxPropertyFormDialog, wxDialog)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxPropertyFormDialog, wxDialog)
|
BEGIN_EVENT_TABLE(wxPropertyFormDialog, wxDialog)
|
||||||
EVT_CLOSE(wxPropertyFormDialog::OnCloseWindow)
|
EVT_CLOSE(wxPropertyFormDialog::OnCloseWindow)
|
||||||
@@ -337,7 +337,7 @@ bool wxPropertyFormDialog::ProcessEvent(wxEvent& event)
|
|||||||
* Property form panel
|
* Property form panel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
IMPLEMENT_CLASS(wxPropertyFormPanel, wxPanel)
|
IMPLEMENT_DYNAMIC_CLASS(wxPropertyFormPanel, wxPanel)
|
||||||
|
|
||||||
void wxPropertyFormPanel::OnDefaultAction(wxControl *item)
|
void wxPropertyFormPanel::OnDefaultAction(wxControl *item)
|
||||||
{
|
{
|
||||||
@@ -362,7 +362,7 @@ bool wxPropertyFormPanel::ProcessEvent(wxEvent& event)
|
|||||||
* Property frame
|
* Property frame
|
||||||
*/
|
*/
|
||||||
|
|
||||||
IMPLEMENT_CLASS(wxPropertyFormFrame, wxFrame)
|
IMPLEMENT_DYNAMIC_CLASS(wxPropertyFormFrame, wxFrame)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxPropertyFormFrame, wxFrame)
|
BEGIN_EVENT_TABLE(wxPropertyFormFrame, wxFrame)
|
||||||
EVT_CLOSE(wxPropertyFormFrame::OnCloseWindow)
|
EVT_CLOSE(wxPropertyFormFrame::OnCloseWindow)
|
||||||
|
@@ -72,7 +72,7 @@ static wxBitmap *GetCrossBitmap();
|
|||||||
// Property text edit control
|
// Property text edit control
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
IMPLEMENT_CLASS(wxPropertyTextEdit, wxTextCtrl)
|
IMPLEMENT_DYNAMIC_CLASS(wxPropertyTextEdit, wxTextCtrl)
|
||||||
|
|
||||||
wxPropertyTextEdit::wxPropertyTextEdit(wxPropertyListView *v, wxWindow *parent,
|
wxPropertyTextEdit::wxPropertyTextEdit(wxPropertyListView *v, wxWindow *parent,
|
||||||
const wxWindowID id, const wxString& value,
|
const wxWindowID id, const wxString& value,
|
||||||
@@ -675,7 +675,7 @@ void wxPropertyListView::OnText(wxCommandEvent& event)
|
|||||||
// Property dialog box
|
// Property dialog box
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
IMPLEMENT_CLASS(wxPropertyListDialog, wxDialog)
|
IMPLEMENT_DYNAMIC_CLASS(wxPropertyListDialog, wxDialog)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxPropertyListDialog, wxDialog)
|
BEGIN_EVENT_TABLE(wxPropertyListDialog, wxDialog)
|
||||||
EVT_BUTTON(wxID_CANCEL, wxPropertyListDialog::OnCancel)
|
EVT_BUTTON(wxID_CANCEL, wxPropertyListDialog::OnCancel)
|
||||||
@@ -735,7 +735,7 @@ bool wxPropertyListDialog::ProcessEvent(wxEvent& event)
|
|||||||
// Property panel
|
// Property panel
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
IMPLEMENT_CLASS(wxPropertyListPanel, wxPanel)
|
IMPLEMENT_DYNAMIC_CLASS(wxPropertyListPanel, wxPanel)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxPropertyListPanel, wxPanel)
|
BEGIN_EVENT_TABLE(wxPropertyListPanel, wxPanel)
|
||||||
EVT_SIZE(wxPropertyListPanel::OnSize)
|
EVT_SIZE(wxPropertyListPanel::OnSize)
|
||||||
@@ -771,7 +771,7 @@ void wxPropertyListPanel::OnSize(wxSizeEvent& WXUNUSED(event))
|
|||||||
// Property frame
|
// Property frame
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
IMPLEMENT_CLASS(wxPropertyListFrame, wxFrame)
|
IMPLEMENT_DYNAMIC_CLASS(wxPropertyListFrame, wxFrame)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxPropertyListFrame, wxFrame)
|
BEGIN_EVENT_TABLE(wxPropertyListFrame, wxFrame)
|
||||||
EVT_CLOSE(wxPropertyListFrame::OnCloseWindow)
|
EVT_CLOSE(wxPropertyListFrame::OnCloseWindow)
|
||||||
|
Reference in New Issue
Block a user