projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added XPM ctor
[wxWidgets.git]
/
src
/
motif
/
frame.cpp
diff --git
a/src/motif/frame.cpp
b/src/motif/frame.cpp
index 22ec6184a32af87bc2785f70a58cd5a2fb01381c..b7f1899e08d6556940b6d220934ed16be08ceb42 100644
(file)
--- a/
src/motif/frame.cpp
+++ b/
src/motif/frame.cpp
@@
-21,6
+21,8
@@
#pragma implementation "frame.h"
#endif
#pragma implementation "frame.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
#ifdef __VMS
#define XtDisplay XTDISPLAY
#ifdef __VMS
#define XtDisplay XTDISPLAY
@@
-109,7
+111,7
@@
IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxTopLevelWindow)
void wxFrame::Init()
{
void wxFrame::Init()
{
- m_iconized =
FALSE
;
+ m_iconized =
false
;
//// Motif-specific
m_frameShell = (WXWidget) NULL;
//// Motif-specific
m_frameShell = (WXWidget) NULL;
@@
-128,7
+130,7
@@
bool wxFrame::Create(wxWindow *parent,
{
if( !wxTopLevelWindow::Create( parent, id, title, pos, size, style,
name ) )
{
if( !wxTopLevelWindow::Create( parent, id, title, pos, size, style,
name ) )
- return
FALSE
;
+ return
false
;
m_backgroundColour =
wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE);
m_backgroundColour =
wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE);
@@
-168,7
+170,7
@@
bool wxFrame::Create(wxWindow *parent,
"Created frame (0x%p) with work area 0x%p and client "
"area 0x%p", m_mainWidget, m_workArea, m_clientArea);
"Created frame (0x%p) with work area 0x%p and client "
"area 0x%p", m_mainWidget, m_workArea, m_clientArea);
- XtAddEventHandler((Widget) m_clientArea, ExposureMask,F
ALSE
,
+ XtAddEventHandler((Widget) m_clientArea, ExposureMask,F
alse
,
wxUniversalRepaintProc, (XtPointer) this);
if (x > -1)
wxUniversalRepaintProc, (XtPointer) this);
if (x > -1)
@@
-180,7
+182,7
@@
bool wxFrame::Create(wxWindow *parent,
if (height > -1)
XtVaSetValues((Widget) m_frameShell, XmNheight, height, NULL);
if (height > -1)
XtVaSetValues((Widget) m_frameShell, XmNheight, height, NULL);
- ChangeFont(
FALSE
);
+ ChangeFont(
false
);
ChangeBackgroundColour();
ChangeBackgroundColour();
@@
-191,7
+193,7
@@
bool wxFrame::Create(wxWindow *parent,
GetEventHandler()->ProcessEvent(sizeEvent);
GetEventHandler()->ProcessEvent(sizeEvent);
- return
TRUE
;
+ return
true
;
}
bool wxFrame::DoCreate( wxWindow* parent, wxWindowID id,
}
bool wxFrame::DoCreate( wxWindow* parent, wxWindowID id,
@@
-212,7
+214,7
@@
bool wxFrame::DoCreate( wxWindow* parent, wxWindowID id,
XmNallowShellResize, True,
XmNdeleteResponse, XmDO_NOTHING,
XmNmappedWhenManaged, False,
XmNallowShellResize, True,
XmNdeleteResponse, XmDO_NOTHING,
XmNmappedWhenManaged, False,
- XmNiconic, (style & wxICONIZE) ? T
RUE : FALSE
,
+ XmNiconic, (style & wxICONIZE) ? T
rue : False
,
NULL);
m_frameShell = (WXWidget)frameShell;
NULL);
m_frameShell = (WXWidget)frameShell;
@@
-260,21
+262,21
@@
bool wxFrame::DoCreate( wxWindow* parent, wxWindowID id,
wxModelessWindows.Append( this );
wxModelessWindows.Append( this );
- return
TRUE
;
+ return
true
;
}
wxFrame::~wxFrame()
{
}
wxFrame::~wxFrame()
{
- m_isBeingDeleted =
TRUE
;
+ m_isBeingDeleted =
true
;
if (m_clientArea)
{
if (m_clientArea)
{
- XtRemoveEventHandler((Widget) m_clientArea, ExposureMask, F
ALSE
,
+ XtRemoveEventHandler((Widget) m_clientArea, ExposureMask, F
alse
,
wxUniversalRepaintProc, (XtPointer) this);
}
if (GetMainWidget())
wxUniversalRepaintProc, (XtPointer) this);
}
if (GetMainWidget())
- Show(
FALSE
);
+ Show(
false
);
if (m_frameMenuBar)
{
if (m_frameMenuBar)
{
@@
-353,11
+355,16
@@
void wxFrame::DoGetClientSize(int *x, int *y) const
yy -= tbh;
}
#endif // wxUSE_TOOLBAR
yy -= tbh;
}
#endif // wxUSE_TOOLBAR
- *x = xx; *y = yy;
+
+//CE found a call here with NULL y pointer
+ if (x)
+ *x = xx;
+ if (y)
+ *y = yy;
}
// Set the client size (i.e. leave the calculation of borders etc.
}
// Set the client size (i.e. leave the calculation of borders etc.
-// to wxWi
ndow
s)
+// to wxWi
dget
s)
void wxFrame::DoSetClientSize(int width, int height)
{
// Calculate how large the new main window should be
void wxFrame::DoSetClientSize(int width, int height)
{
// Calculate how large the new main window should be
@@
-423,8
+430,8
@@
void wxFrame::DoSetSize(int x, int y, int width, int height, int WXUNUSED(sizeFl
bool wxFrame::Show( bool show )
{
bool wxFrame::Show( bool show )
{
- if( !wx
TopLevelWindowMotif
::Show( show ) )
- return
FALSE
;
+ if( !wx
WindowBase
::Show( show ) )
+ return
false
;
m_isShown = show;
m_isShown = show;
@@
-435,15
+442,14
@@
bool wxFrame::Show( bool show )
SetVisibleStatus(show);
if (show)
{
SetVisibleStatus(show);
if (show)
{
- XtMapWidget (shell);
- XRaiseWindow (XtDisplay(shell), XtWindow(shell));
+ XtPopup(shell, XtGrabNone);
}
else
{
}
else
{
- Xt
UnmapWidget
(shell);
+ Xt
Popdown
(shell);
}
}
- return
TRUE
;
+ return
true
;
}
void wxFrame::SetTitle(const wxString& title)
}
void wxFrame::SetTitle(const wxString& title)
@@
-639,7
+645,7
@@
bool wxFrame::PreResize()
PositionStatusBar();
#endif // wxUSE_STATUSBAR
PositionStatusBar();
#endif // wxUSE_STATUSBAR
- return
TRUE
;
+ return
true
;
}
WXWidget wxFrame::GetClientWidget() const
}
WXWidget wxFrame::GetClientWidget() const