projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update OpenVMS compile support
[wxWidgets.git]
/
src
/
univ
/
winuniv.cpp
diff --git
a/src/univ/winuniv.cpp
b/src/univ/winuniv.cpp
index 85635f1319130bcf64be8e4a9a0258db9f090c33..1f86e4861ce503d0fa991c8bdbcfd93722add980 100644
(file)
--- a/
src/univ/winuniv.cpp
+++ b/
src/univ/winuniv.cpp
@@
-35,21
+35,21
@@
#include "wx/menu.h"
#include "wx/frame.h"
#include "wx/log.h"
#include "wx/menu.h"
#include "wx/frame.h"
#include "wx/log.h"
+ #include "wx/button.h"
#endif // WX_PRECOMP
#include "wx/univ/colschem.h"
#include "wx/univ/renderer.h"
#include "wx/univ/theme.h"
#endif // WX_PRECOMP
#include "wx/univ/colschem.h"
#include "wx/univ/renderer.h"
#include "wx/univ/theme.h"
+
#if wxUSE_CARET
#include "wx/caret.h"
#endif // wxUSE_CARET
#if wxUSE_CARET
#include "wx/caret.h"
#endif // wxUSE_CARET
-// turn Refresh() debugging on/off
-#define WXDEBUG_REFRESH
-
-#ifndef __WXDEBUG__
- #undef WXDEBUG_REFRESH
+#if wxDEBUG_LEVEL >= 2
+ // turn Refresh() debugging on/off
+ #define WXDEBUG_REFRESH
#endif
#if defined(WXDEBUG_REFRESH) && defined(__WXMSW__) && !defined(__WXMICROWIN__)
#endif
#if defined(WXDEBUG_REFRESH) && defined(__WXMSW__) && !defined(__WXMICROWIN__)
@@
-92,7
+92,7
@@
public:
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMSW)
#elif defined(__WXGTK__)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowGTK)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMSW)
#elif defined(__WXGTK__)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowGTK)
-#elif defined(__WXOSX__)
+#elif defined(__WXOSX_
OR_COCOA_
_)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMac)
#elif defined(__WXMGL__)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMGL)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMac)
#elif defined(__WXMGL__)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMGL)
@@
-129,7
+129,7
@@
void wxWindow::Init()
{
#if wxUSE_SCROLLBAR
m_scrollbarVert =
{
#if wxUSE_SCROLLBAR
m_scrollbarVert =
- m_scrollbarHorz =
(wxScrollBar *)
NULL;
+ m_scrollbarHorz = NULL;
#endif // wxUSE_SCROLLBAR
m_isCurrent = false;
#endif // wxUSE_SCROLLBAR
m_isCurrent = false;
@@
-224,7
+224,7
@@
bool wxWindow::Create(wxWindow *parent,
wxWindow::~wxWindow()
{
wxWindow::~wxWindow()
{
-
m_isBeingDeleted = true
;
+
SendDestroyEvent()
;
#if wxUSE_SCROLLBAR
// clear pointers to scrollbar before deleting the children: they are
#if wxUSE_SCROLLBAR
// clear pointers to scrollbar before deleting the children: they are
@@
-728,6
+728,11
@@
wxSize wxWindow::DoGetBestClientSize() const
return wxWindowNative::DoGetBestSize();
}
return wxWindowNative::DoGetBestSize();
}
+wxSize wxWindow::DoGetBorderSize() const
+{
+ return AdjustSize(wxSize(0, 0));
+}
+
wxSize wxWindow::AdjustSize(const wxSize& size) const
{
wxSize sz = size;
wxSize wxWindow::AdjustSize(const wxSize& size) const
{
wxSize sz = size;
@@
-927,7
+932,7
@@
void wxWindow::SetScrollbar(int orient,
{
#if wxUSE_SCROLLBAR
wxASSERT_MSG( pageSize <= range,
{
#if wxUSE_SCROLLBAR
wxASSERT_MSG( pageSize <= range,
-
_
T("page size can't be greater than range") );
+
wx
T("page size can't be greater than range") );
bool hasClientSizeChanged = false;
wxScrollBar *scrollbar = GetScrollbar(orient);
bool hasClientSizeChanged = false;
wxScrollBar *scrollbar = GetScrollbar(orient);
@@
-1145,7
+1150,7
@@
void wxWindow::ScrollWindow(int dx, int dy, const wxRect *rect)
wxRect wxWindow::ScrollNoRefresh(int dx, int dy, const wxRect *rectTotal)
{
wxRect wxWindow::ScrollNoRefresh(int dx, int dy, const wxRect *rectTotal)
{
- wxASSERT_MSG( !dx || !dy,
_
T("can't be used for diag scrolling") );
+ wxASSERT_MSG( !dx || !dy,
wx
T("can't be used for diag scrolling") );
// the rect to refresh (which we will calculate)
wxRect rect;
// the rect to refresh (which we will calculate)
wxRect rect;
@@
-1160,7
+1165,7
@@
wxRect wxWindow::ScrollNoRefresh(int dx, int dy, const wxRect *rectTotal)
// location
wxSize sizeTotal = rectTotal ? rectTotal->GetSize() : GetClientSize();
// location
wxSize sizeTotal = rectTotal ? rectTotal->GetSize() : GetClientSize();
- wxLogTrace(
_T("scroll"), _
T("rect is %dx%d, scroll by %d, %d"),
+ wxLogTrace(
wxT("scroll"), wx
T("rect is %dx%d, scroll by %d, %d"),
sizeTotal.x, sizeTotal.y, dx, dy);
// the initial and end point of the region we move in client coords
sizeTotal.x, sizeTotal.y, dx, dy);
// the initial and end point of the region we move in client coords
@@
-1178,7
+1183,7
@@
wxRect wxWindow::ScrollNoRefresh(int dx, int dy, const wxRect *rectTotal)
if ( size.x <= 0 || size.y <= 0 )
{
// just redraw everything as nothing of the displayed image will stay
if ( size.x <= 0 || size.y <= 0 )
{
// just redraw everything as nothing of the displayed image will stay
- wxLogTrace(
_T("scroll"), _
T("refreshing everything"));
+ wxLogTrace(
wxT("scroll"), wx
T("refreshing everything"));
rect = rectTotal ? *rectTotal : wxRect(0, 0, sizeTotal.x, sizeTotal.y);
}
rect = rectTotal ? *rectTotal : wxRect(0, 0, sizeTotal.x, sizeTotal.y);
}
@@
-1230,8
+1235,8
@@
wxRect wxWindow::ScrollNoRefresh(int dx, int dy, const wxRect *rectTotal)
);
dc.Blit(ptDest, size, &dcMem, wxPoint(0,0));
);
dc.Blit(ptDest, size, &dcMem, wxPoint(0,0));
- wxLogTrace(
_
T("scroll"),
-
_
T("Blit: (%d, %d) of size %dx%d -> (%d, %d)"),
+ wxLogTrace(
wx
T("scroll"),
+
wx
T("Blit: (%d, %d) of size %dx%d -> (%d, %d)"),
ptSource.x, ptSource.y,
size.x, size.y,
ptDest.x, ptDest.y);
ptSource.x, ptSource.y,
size.x, size.y,
ptDest.x, ptDest.y);
@@
-1262,7
+1267,7
@@
wxRect wxWindow::ScrollNoRefresh(int dx, int dy, const wxRect *rectTotal)
rect.height = sizeTotal.y;
rect.height = sizeTotal.y;
- wxLogTrace(
_T("scroll"), _
T("refreshing (%d, %d)-(%d, %d)"),
+ wxLogTrace(
wxT("scroll"), wx
T("refreshing (%d, %d)-(%d, %d)"),
rect.x, rect.y,
rect.GetRight() + 1, rect.GetBottom() + 1);
}
rect.x, rect.y,
rect.GetRight() + 1, rect.GetBottom() + 1);
}
@@
-1283,7
+1288,7
@@
wxRect wxWindow::ScrollNoRefresh(int dx, int dy, const wxRect *rectTotal)
rect.width = sizeTotal.x;
rect.width = sizeTotal.x;
- wxLogTrace(
_T("scroll"), _
T("refreshing (%d, %d)-(%d, %d)"),
+ wxLogTrace(
wxT("scroll"), wx
T("refreshing (%d, %d)-(%d, %d)"),
rect.x, rect.y,
rect.GetRight() + 1, rect.GetBottom() + 1);
}
rect.x, rect.y,
rect.GetRight() + 1, rect.GetBottom() + 1);
}