git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14117
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
12 files changed:
numdlgg.cpp Generic
paletteg.cpp Generic NotMSW,NotX,NotOS2,NotMGL,NotX11,NotMac,NotMicro
panelg.cpp Generic
numdlgg.cpp Generic
paletteg.cpp Generic NotMSW,NotX,NotOS2,NotMGL,NotX11,NotMac,NotMicro
panelg.cpp Generic
-printps.cpp Generic NotMSW,NotX11
+printps.cpp Generic NotMSW
prntdlgg.cpp Generic NotMSW
progdlgg.cpp Generic
prop.cpp Generic
prntdlgg.cpp Generic NotMSW
progdlgg.cpp Generic
prop.cpp Generic
dcscreen.cpp X11
dcscreen.cpp X11
evtloop.cpp X11
dcscreen.cpp X11
dcscreen.cpp X11
evtloop.cpp X11
gdiobj.cpp X11
glcanvas.cpp X11
icon.cpp X11
gdiobj.cpp X11
glcanvas.cpp X11
icon.cpp X11
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
{ (void)Create(parent, flags); }
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
{ (void)Create(parent, flags); }
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
virtual bool Show( bool show = TRUE );
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
virtual bool Show( bool show = TRUE );
- // implementation
- // --------------
-
protected:
virtual void DoMoveWindow(int x, int y, int width, int height);
virtual void DoSetSize(int x, int y,
int width, int height,
int sizeFlags = wxSIZE_AUTO);
protected:
virtual void DoMoveWindow(int x, int y, int width, int height);
virtual void DoSetSize(int x, int y,
int width, int height,
int sizeFlags = wxSIZE_AUTO);
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
-// list of all frames and modeless dialogs
-;; extern WXDLLEXPORT_DATA(wxWindowList) wxModelessWindows;
-
#endif // _WX_X11_TOPLEVEL_H_
#endif // _WX_X11_TOPLEVEL_H_
int sizeFlags = wxSIZE_AUTO);
virtual void DoSetClientSize(int width, int height);
virtual void DoMoveWindow(int x, int y, int width, int height);
int sizeFlags = wxSIZE_AUTO);
virtual void DoSetClientSize(int width, int height);
virtual void DoMoveWindow(int x, int y, int width, int height);
- virtual bool DoPopupMenu(wxMenu *menu, int x, int y);
virtual void DoCaptureMouse();
virtual void DoReleaseMouse();
virtual void DoCaptureMouse();
virtual void DoReleaseMouse();
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowGTK)
#elif defined(__WXMGL__)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMGL)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowGTK)
#elif defined(__WXMGL__)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMGL)
+#elif defined(__WXX11__)
+ IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowX11)
#elif defined(__WXPM__)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowOS2)
#endif
#elif defined(__WXPM__)
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowOS2)
#endif
wxHashTable *wxWidgetHashTable = NULL;
wxHashTable *wxWidgetHashTable = NULL;
-static Window wxGetParentWindow(Window window);
-
IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
// TODO: may need to translate coordinates from actualWindow
// to window, if the receiving window != wxWindow window
while (window && !(win = wxGetWindowFromTable(window)))
// TODO: may need to translate coordinates from actualWindow
// to window, if the receiving window != wxWindow window
while (window && !(win = wxGetWindowFromTable(window)))
- window = wxGetParentWindow(window);
+ window = wxGetWindowParent(window);
// TODO: shouldn't all the ProcessEvents below
// be win->GetEventHandler()->ProcessEvent?
// TODO: shouldn't all the ProcessEvents below
// be win->GetEventHandler()->ProcessEvent?
-Window wxGetParentWindow(Window window)
+Window wxGetWindowParent(Window window)
{
Window parent, root = 0;
unsigned int noChildren = 0;
{
Window parent, root = 0;
unsigned int noChildren = 0;
x11/dcmemory.cpp \
x11/dcscreen.cpp \
x11/evtloop.cpp \
x11/dcmemory.cpp \
x11/dcscreen.cpp \
x11/evtloop.cpp \
x11/gdiobj.cpp \
x11/glcanvas.cpp \
x11/gsockx11.c \
x11/gdiobj.cpp \
x11/glcanvas.cpp \
x11/gsockx11.c \
x11/minifram.cpp \
x11/palette.cpp \
x11/pen.cpp \
x11/minifram.cpp \
x11/palette.cpp \
x11/pen.cpp \
x11/region.cpp \
x11/settings.cpp \
x11/timer.cpp \
x11/region.cpp \
x11/settings.cpp \
x11/timer.cpp \
generic/msgdlgg.cpp \
generic/numdlgg.cpp \
generic/panelg.cpp \
generic/msgdlgg.cpp \
generic/numdlgg.cpp \
generic/panelg.cpp \
generic/prntdlgg.cpp \
generic/progdlgg.cpp \
generic/prop.cpp \
generic/prntdlgg.cpp \
generic/progdlgg.cpp \
generic/prop.cpp \
dcmemory.o \
dcscreen.o \
evtloop.o \
dcmemory.o \
dcscreen.o \
evtloop.o \
gdiobj.o \
glcanvas.o \
gsockx11.o \
gdiobj.o \
glcanvas.o \
gsockx11.o \
minifram.o \
palette.o \
pen.o \
minifram.o \
palette.o \
pen.o \
region.o \
settings.o \
timer.o \
region.o \
settings.o \
timer.o \
msgdlgg.o \
numdlgg.o \
panelg.o \
msgdlgg.o \
numdlgg.o \
panelg.o \
prntdlgg.o \
progdlgg.o \
prop.o \
prntdlgg.o \
progdlgg.o \
prop.o \
#include "wx/fontutil.h" // for wxNativeFontInfo
#include "wx/tokenzr.h"
#include "wx/settings.h"
#include "wx/fontutil.h" // for wxNativeFontInfo
#include "wx/tokenzr.h"
#include "wx/settings.h"
+#include "wx/x11/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
bool wxPopupWindow::Create( wxWindow *parent, int style )
{
bool wxPopupWindow::Create( wxWindow *parent, int style )
{
- m_needParent = FALSE;
-
if (!CreateBase( parent, -1, wxDefaultPosition, wxDefaultSize, style, wxDefaultValidator, "popup" ))
{
wxFAIL_MSG( wxT("wxPopupWindow creation failed") );
if (!CreateBase( parent, -1, wxDefaultPosition, wxDefaultSize, style, wxDefaultValidator, "popup" ))
{
wxFAIL_MSG( wxT("wxPopupWindow creation failed") );
#endif
static bool MWMIsRunning(Window w);
#endif
static bool MWMIsRunning(Window w);
-
-// ----------------------------------------------------------------------------
-// globals
-// ----------------------------------------------------------------------------
-
-// list of all frames and modeless dialogs
-// wxWindowList wxModelessWindows;
-
// ----------------------------------------------------------------------------
// wxTopLevelWindowX11 creation
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxTopLevelWindowX11 creation
// ----------------------------------------------------------------------------
{
wxTopLevelWindows.DeleteObject(this);
{
wxTopLevelWindows.DeleteObject(this);
- if ( wxModelessWindows.Find(this) )
- wxModelessWindows.DeleteObject(this);
-
// If this is the last top-level window, exit.
if ( wxTheApp && (wxTopLevelWindows.Number() == 0) )
{
// If this is the last top-level window, exit.
if ( wxTheApp && (wxTopLevelWindows.Number() == 0) )
{
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
{
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
{
XtInputId id = XtAppAddInput((XtAppContext) wxTheApp->GetAppContext(),
fd,
(XtPointer *) XtInputReadMask,
XtInputId id = XtAppAddInput((XtAppContext) wxTheApp->GetAppContext(),
fd,
(XtPointer *) XtInputReadMask,
(XtPointer) proc_data);
return (int)id;
(XtPointer) proc_data);
return (int)id;
// ----------------------------------------------------------------------------
// misc
// ----------------------------------------------------------------------------
// misc
// event tables
// ----------------------------------------------------------------------------
// event tables
// ----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxWindowX11, wxWindowBase)
+IMPLEMENT_ABSTRACT_CLASS(wxWindowX11, wxWindowBase)
BEGIN_EVENT_TABLE(wxWindowX11, wxWindowBase)
EVT_SYS_COLOUR_CHANGED(wxWindowX11::OnSysColourChanged)
BEGIN_EVENT_TABLE(wxWindowX11, wxWindowBase)
EVT_SYS_COLOUR_CHANGED(wxWindowX11::OnSysColourChanged)