#endif
#ifndef WX_PRECOMP
- #include "wx/wx.h"
+ #include "wx/window.h"
+ #include "wx/dialog.h"
+ #include "wx/frame.h"
#endif
#include <stdlib.h>
#include "wx/string.h"
#include "wx/splitter.h"
#include "wx/dcscreen.h"
+#include "wx/settings.h"
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxSplitterWindow, wxWindow)
{
DrawSashTracker(x, y);
}
-
+
m_oldX = x;
m_oldY = y;
return;
}
#endif // __WXGTK__
}
- else if (event.Dragging() && (m_dragMode == wxSPLIT_DRAG_DRAGGING))
+ else if (event.Dragging() && (m_dragMode == wxSPLIT_DRAG_DRAGGING))
{
// Obtain window size. We are only interested in the dimension the sash
// splits up
if ( dialog )
iconized = dialog->IsIconized();
else
- wxFAIL_MSG(T("should have a top level frame or dialog parent!"));
+ wxFAIL_MSG(wxT("should have a top level frame or dialog parent!"));
}
if ( iconized )
if ( GetWindowStyleFlag() & wxSP_3D )
{
-
+
dc.SetPen(*m_facePen);
dc.SetBrush(*m_faceBrush);
dc.DrawRectangle(1, 1 , w-1, m_borderSize-2 ); //high
if ( m_windowOne && !m_windowTwo )
{
m_windowOne->SetSize(m_borderSize, m_borderSize, w - 2*m_borderSize, h - 2*m_borderSize);
-
- if (m_windowOne->GetAutoLayout())
- m_windowOne->Layout();
+
}
else if ( m_windowOne && m_windowTwo )
{
m_windowOne->SetSize(x1, y1, w1, h1);
m_windowTwo->SetSize(x2, y2, w2, h2);
-
- if (m_windowOne->GetAutoLayout())
- m_windowOne->Layout();
- if (m_windowTwo->GetAutoLayout())
- m_windowTwo->Layout();
+
}
else
{
w - 2*m_borderSize, m_sashPosition - m_borderSize);
m_windowTwo->SetSize(m_borderSize, m_sashPosition + m_sashSize,
w - 2*m_borderSize, h - 2*m_borderSize - m_sashSize - (m_sashPosition - m_borderSize));
-
- if (m_windowOne->GetAutoLayout())
- m_windowOne->Layout();
- if (m_windowTwo->GetAutoLayout())
- m_windowTwo->Layout();
+
}
}
wxClientDC dc(this);
}
else
{
- wxFAIL_MSG(T("splitter: attempt to remove a non-existent window"));
+ wxFAIL_MSG(wxT("splitter: attempt to remove a non-existent window"));
return FALSE;
}
// Replace a window with another one
bool wxSplitterWindow::ReplaceWindow(wxWindow *winOld, wxWindow *winNew)
{
- wxCHECK_MSG( winOld, FALSE, T("use one of Split() functions instead") );
- wxCHECK_MSG( winNew, FALSE, T("use Unsplit() functions instead") );
+ wxCHECK_MSG( winOld, FALSE, wxT("use one of Split() functions instead") );
+ wxCHECK_MSG( winNew, FALSE, wxT("use Unsplit() functions instead") );
if ( winOld == m_windowTwo )
{
}
else
{
- wxFAIL_MSG(T("splitter: attempt to replace a non-existent window"));
+ wxFAIL_MSG(wxT("splitter: attempt to replace a non-existent window"));
return FALSE;
}