removed wxDialog::Centre()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,8 +78,6 @@ public:
|
|||||||
|
|
||||||
virtual void InitDialog(void);
|
virtual void InitDialog(void);
|
||||||
|
|
||||||
virtual void Centre( int direction = wxHORIZONTAL );
|
|
||||||
|
|
||||||
virtual void SetIcon( const wxIcon &icon );
|
virtual void SetIcon( const wxIcon &icon );
|
||||||
virtual void Iconize( bool WXUNUSED(iconize)) { }
|
virtual void Iconize( bool WXUNUSED(iconize)) { }
|
||||||
virtual bool IsIconized() const { return FALSE; }
|
virtual bool IsIconized() const { return FALSE; }
|
||||||
|
@@ -78,8 +78,6 @@ public:
|
|||||||
|
|
||||||
virtual void InitDialog(void);
|
virtual void InitDialog(void);
|
||||||
|
|
||||||
virtual void Centre( int direction = wxHORIZONTAL );
|
|
||||||
|
|
||||||
virtual void SetIcon( const wxIcon &icon );
|
virtual void SetIcon( const wxIcon &icon );
|
||||||
virtual void Iconize( bool WXUNUSED(iconize)) { }
|
virtual void Iconize( bool WXUNUSED(iconize)) { }
|
||||||
virtual bool IsIconized() const { return FALSE; }
|
virtual bool IsIconized() const { return FALSE; }
|
||||||
|
@@ -548,19 +548,6 @@ void wxDialog::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int heigh
|
|||||||
GetEventHandler()->ProcessEvent( event );
|
GetEventHandler()->ProcessEvent( event );
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDialog::Centre( int direction )
|
|
||||||
{
|
|
||||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid dialog") );
|
|
||||||
|
|
||||||
int x = 0;
|
|
||||||
int y = 0;
|
|
||||||
|
|
||||||
if ((direction & wxHORIZONTAL) == wxHORIZONTAL) x = (gdk_screen_width () - m_width) / 2;
|
|
||||||
if ((direction & wxVERTICAL) == wxVERTICAL) y = (gdk_screen_height () - m_height) / 2;
|
|
||||||
|
|
||||||
Move( x, y );
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxDialog::OnInternalIdle()
|
void wxDialog::OnInternalIdle()
|
||||||
{
|
{
|
||||||
if (!m_sizeSet && GTK_WIDGET_REALIZED(m_wxwindow))
|
if (!m_sizeSet && GTK_WIDGET_REALIZED(m_wxwindow))
|
||||||
|
@@ -548,19 +548,6 @@ void wxDialog::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int heigh
|
|||||||
GetEventHandler()->ProcessEvent( event );
|
GetEventHandler()->ProcessEvent( event );
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDialog::Centre( int direction )
|
|
||||||
{
|
|
||||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid dialog") );
|
|
||||||
|
|
||||||
int x = 0;
|
|
||||||
int y = 0;
|
|
||||||
|
|
||||||
if ((direction & wxHORIZONTAL) == wxHORIZONTAL) x = (gdk_screen_width () - m_width) / 2;
|
|
||||||
if ((direction & wxVERTICAL) == wxVERTICAL) y = (gdk_screen_height () - m_height) / 2;
|
|
||||||
|
|
||||||
Move( x, y );
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxDialog::OnInternalIdle()
|
void wxDialog::OnInternalIdle()
|
||||||
{
|
{
|
||||||
if (!m_sizeSet && GTK_WIDGET_REALIZED(m_wxwindow))
|
if (!m_sizeSet && GTK_WIDGET_REALIZED(m_wxwindow))
|
||||||
|
Reference in New Issue
Block a user