BC++ updates, propery form fix, dialog fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -181,7 +181,7 @@ $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
|
|||||||
$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
|
$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
|
||||||
-erase $(LIBTARGET)
|
-erase $(LIBTARGET)
|
||||||
-erase $(WXLIBDIR)\wx.dll
|
-erase $(WXLIBDIR)\wx.dll
|
||||||
$(LINK) $(LINK_FLAGS) /L$(WXLIBDIR) /v @&&!
|
$(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
|
||||||
c0d32.obj $(OBJECTS)
|
c0d32.obj $(OBJECTS)
|
||||||
$(WXLIBDIR)\wx
|
$(WXLIBDIR)\wx
|
||||||
nul
|
nul
|
||||||
|
@@ -45,7 +45,8 @@ Default constructor.
|
|||||||
|
|
||||||
Copy constructor.
|
Copy constructor.
|
||||||
|
|
||||||
\func{}{wxVariant}{\param{const char*}{ value}, \param{const wxString\& }{name = ``"}}\\
|
\func{}{wxVariant}{\param{const char*}{ value}, \param{const wxString\& }{name = ``"}}
|
||||||
|
|
||||||
\func{}{wxVariant}{\param{const wxString\&}{ value}, \param{const wxString\& }{name = ``"}}
|
\func{}{wxVariant}{\param{const wxString\&}{ value}, \param{const wxString\& }{name = ``"}}
|
||||||
|
|
||||||
Construction from a string value.
|
Construction from a string value.
|
||||||
|
@@ -281,6 +281,8 @@ public:
|
|||||||
|
|
||||||
// Extend event processing to search the view's event table
|
// Extend event processing to search the view's event table
|
||||||
virtual bool ProcessEvent(wxEvent& event);
|
virtual bool ProcessEvent(wxEvent& event);
|
||||||
|
void SetView(wxPropertyFormView* view) { m_view = view; }
|
||||||
|
wxPropertyFormView* GetView() const { return m_view; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxPropertyFormView* m_view;
|
wxPropertyFormView* m_view;
|
||||||
|
@@ -164,6 +164,10 @@ bool wxPropertyFormView::AssociateNames(void)
|
|||||||
|
|
||||||
bool wxPropertyFormView::OnClose(void)
|
bool wxPropertyFormView::OnClose(void)
|
||||||
{
|
{
|
||||||
|
if (m_propertyWindow->IsKindOf(CLASSINFO(wxPropertyFormPanel)))
|
||||||
|
{
|
||||||
|
((wxPropertyFormPanel*)m_propertyWindow)->SetView(NULL);
|
||||||
|
}
|
||||||
delete this;
|
delete this;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@@ -329,14 +329,16 @@ void wxDialog::DoShowModal()
|
|||||||
|
|
||||||
wxWindow *parent = GetParent();
|
wxWindow *parent = GetParent();
|
||||||
|
|
||||||
|
wxWindow* oldFocus = m_oldFocus;
|
||||||
|
|
||||||
// inside this block, all app windows are disabled
|
// inside this block, all app windows are disabled
|
||||||
{
|
{
|
||||||
wxWindowDisabler wd(this);
|
wxWindowDisabler wd(this);
|
||||||
|
|
||||||
// remember where the focus was
|
// remember where the focus was
|
||||||
if ( !m_oldFocus )
|
if ( !oldFocus )
|
||||||
{
|
{
|
||||||
m_oldFocus = parent;
|
oldFocus = parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
// enter the modal loop
|
// enter the modal loop
|
||||||
@@ -360,9 +362,12 @@ void wxDialog::DoShowModal()
|
|||||||
#endif // __WIN32__
|
#endif // __WIN32__
|
||||||
|
|
||||||
// and restore focus
|
// and restore focus
|
||||||
if ( m_oldFocus && (m_oldFocus != this) )
|
// Note that this code MUST NOT access the dialog object's data
|
||||||
|
// in case the object has been deleted (which will be the case
|
||||||
|
// for a modal dialog that has been destroyed before calling EndModal).
|
||||||
|
if ( oldFocus && (oldFocus != this) )
|
||||||
{
|
{
|
||||||
m_oldFocus->SetFocus();
|
oldFocus->SetFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -361,7 +361,7 @@ $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
|
|||||||
$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
|
$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
|
||||||
-erase $(LIBTARGET)
|
-erase $(LIBTARGET)
|
||||||
-erase $(WXLIBDIR)\wx.dll
|
-erase $(WXLIBDIR)\wx.dll
|
||||||
$(LINK) $(LINK_FLAGS) /L$(WXLIBDIR) /v @&&!
|
$(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
|
||||||
c0d32.obj $(OBJECTS)
|
c0d32.obj $(OBJECTS)
|
||||||
$(WXLIBDIR)\wx
|
$(WXLIBDIR)\wx
|
||||||
nul
|
nul
|
||||||
|
Reference in New Issue
Block a user