Removing OS/2 specific positioning methods, no longer needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -83,11 +83,6 @@ public:
|
|||||||
// Implementation from now on
|
// Implementation from now on
|
||||||
// --------------------------
|
// --------------------------
|
||||||
//
|
//
|
||||||
virtual void AlterChildPos(void); // OS/2 child control positioning
|
|
||||||
virtual void UpdateInternalSize( wxWindow* pChild
|
|
||||||
,int nWidth
|
|
||||||
,int nHeight
|
|
||||||
);
|
|
||||||
PSWP GetSwpClient(void) { return &m_vSwpClient; }
|
PSWP GetSwpClient(void) { return &m_vSwpClient; }
|
||||||
protected:
|
protected:
|
||||||
//
|
//
|
||||||
|
@@ -453,6 +453,7 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
void MoveChildren(int nDiff);
|
void MoveChildren(int nDiff);
|
||||||
|
PSWP GetSwp(void) {return &m_vWinSwp;}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// PM can't create some MSW styles natively but can perform these after
|
// PM can't create some MSW styles natively but can perform these after
|
||||||
@@ -541,7 +542,6 @@ protected:
|
|||||||
#endif // wxUSE_TOOLTIPS
|
#endif // wxUSE_TOOLTIPS
|
||||||
|
|
||||||
int GetOS2ParentHeight(wxWindowOS2* pParent);
|
int GetOS2ParentHeight(wxWindowOS2* pParent);
|
||||||
virtual void OS2Layout(int nWidth, int nHeight);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
@@ -572,6 +572,7 @@ private:
|
|||||||
private:
|
private:
|
||||||
HWND m_hWndScrollBarHorz;
|
HWND m_hWndScrollBarHorz;
|
||||||
HWND m_hWndScrollBarVert;
|
HWND m_hWndScrollBarVert;
|
||||||
|
SWP m_vWinSwp;
|
||||||
|
|
||||||
// Virtual function hiding supression
|
// Virtual function hiding supression
|
||||||
inline virtual bool Reparent(wxWindowBase* pNewParent)
|
inline virtual bool Reparent(wxWindowBase* pNewParent)
|
||||||
|
@@ -122,15 +122,6 @@ public:
|
|||||||
// so should be there for all platforms
|
// so should be there for all platforms
|
||||||
void OnActivate(wxActivateEvent &WXUNUSED(event)) { }
|
void OnActivate(wxActivateEvent &WXUNUSED(event)) { }
|
||||||
|
|
||||||
// Override in derived, platfrom specific, class if your OS coordinate
|
|
||||||
// system uses anything other than the top left as 0,0. The second
|
|
||||||
// method updates any internal sizing parameters such as OS/2's SWP struct
|
|
||||||
inline virtual void AlterChildPos(void) { }
|
|
||||||
inline virtual void UpdateInternalSize( wxWindow* WXUNUSED(pChild)
|
|
||||||
,int WXUNUSED(nWidth)
|
|
||||||
,int WXUNUSED(nHeight)
|
|
||||||
) { }
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// the frame client to screen translation should take account of the
|
// the frame client to screen translation should take account of the
|
||||||
// toolbar which may shift the origin of the client area
|
// toolbar which may shift the origin of the client area
|
||||||
|
@@ -962,10 +962,6 @@ protected:
|
|||||||
// a toolbar that it manages itself).
|
// a toolbar that it manages itself).
|
||||||
virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags);
|
virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags);
|
||||||
|
|
||||||
#ifdef __WXPM__
|
|
||||||
// extra OS/2 layout processing
|
|
||||||
virtual void OS2Layout(int width, int height) { };
|
|
||||||
#endif
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@@ -137,9 +137,6 @@ void wxTopLevelWindowBase::OnSize(wxSizeEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
if ( child )
|
if ( child )
|
||||||
{
|
{
|
||||||
#ifdef __WXPM__
|
|
||||||
AlterChildPos();
|
|
||||||
#endif
|
|
||||||
return; // it's our second subwindow - nothing to do
|
return; // it's our second subwindow - nothing to do
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,14 +159,7 @@ void wxTopLevelWindowBase::OnSize(wxSizeEvent& WXUNUSED(event))
|
|||||||
static const int ofs = 0;
|
static const int ofs = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __WXPM__
|
|
||||||
// OS/2 PM has to do a LOT of stuff to get things
|
|
||||||
// positioned right, especially if the child is a
|
|
||||||
// scrolled window.
|
|
||||||
UpdateInternalSize(child, clientW, clientH);
|
|
||||||
#else
|
|
||||||
child->SetSize(ofs, ofs, clientW - 2*ofs, clientH - 2*ofs);
|
child->SetSize(ofs, ofs, clientW - 2*ofs, clientH - 2*ofs);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1194,9 +1194,6 @@ bool wxWindowBase::Layout()
|
|||||||
GetClientSize(&w, &h);
|
GetClientSize(&w, &h);
|
||||||
|
|
||||||
GetSizer()->SetDimension( 0, 0, w, h );
|
GetSizer()->SetDimension( 0, 0, w, h );
|
||||||
#if defined __WXPM__
|
|
||||||
OS2Layout(w, h);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user