wxX11: link errors down to 1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,7 +95,7 @@ notebook.cpp Generic NotWin32,NotGTK,NotOS2,NotMGL,NotX11,NotMac,NotMicro
|
|||||||
numdlgg.cpp Generic
|
numdlgg.cpp Generic
|
||||||
paletteg.cpp Generic NotMSW,NotX,NotOS2,NotMGL,NotX11,NotMac,NotMicro
|
paletteg.cpp Generic NotMSW,NotX,NotOS2,NotMGL,NotX11,NotMac,NotMicro
|
||||||
panelg.cpp Generic
|
panelg.cpp Generic
|
||||||
printps.cpp Generic NotMSW,NotX11
|
printps.cpp Generic NotMSW
|
||||||
prntdlgg.cpp Generic NotMSW
|
prntdlgg.cpp Generic NotMSW
|
||||||
progdlgg.cpp Generic
|
progdlgg.cpp Generic
|
||||||
prop.cpp Generic
|
prop.cpp Generic
|
||||||
@@ -615,6 +615,7 @@ dcmemory.cpp X11
|
|||||||
dcscreen.cpp X11
|
dcscreen.cpp X11
|
||||||
dcscreen.cpp X11
|
dcscreen.cpp X11
|
||||||
evtloop.cpp X11
|
evtloop.cpp X11
|
||||||
|
font.cpp X11
|
||||||
gdiobj.cpp X11
|
gdiobj.cpp X11
|
||||||
glcanvas.cpp X11
|
glcanvas.cpp X11
|
||||||
icon.cpp X11
|
icon.cpp X11
|
||||||
|
@@ -31,19 +31,17 @@ public:
|
|||||||
|
|
||||||
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
|
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
|
||||||
{ (void)Create(parent, flags); }
|
{ (void)Create(parent, flags); }
|
||||||
|
|
||||||
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
||||||
|
|
||||||
virtual bool Show( bool show = TRUE );
|
virtual bool Show( bool show = TRUE );
|
||||||
|
|
||||||
// implementation
|
|
||||||
// --------------
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||||
virtual void DoSetSize(int x, int y,
|
virtual void DoSetSize(int x, int y,
|
||||||
int width, int height,
|
int width, int height,
|
||||||
int sizeFlags = wxSIZE_AUTO);
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
|
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
|
||||||
|
@@ -98,8 +98,5 @@ protected:
|
|||||||
wxString m_title;
|
wxString m_title;
|
||||||
};
|
};
|
||||||
|
|
||||||
// list of all frames and modeless dialogs
|
|
||||||
;; extern WXDLLEXPORT_DATA(wxWindowList) wxModelessWindows;
|
|
||||||
|
|
||||||
#endif // _WX_X11_TOPLEVEL_H_
|
#endif // _WX_X11_TOPLEVEL_H_
|
||||||
|
|
||||||
|
@@ -171,7 +171,6 @@ protected:
|
|||||||
int sizeFlags = wxSIZE_AUTO);
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
virtual void DoSetClientSize(int width, int height);
|
virtual void DoSetClientSize(int width, int height);
|
||||||
virtual void DoMoveWindow(int x, int y, 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 DoCaptureMouse();
|
||||||
virtual void DoReleaseMouse();
|
virtual void DoReleaseMouse();
|
||||||
|
@@ -73,6 +73,8 @@
|
|||||||
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowGTK)
|
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowGTK)
|
||||||
#elif defined(__WXMGL__)
|
#elif defined(__WXMGL__)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMGL)
|
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowMGL)
|
||||||
|
#elif defined(__WXX11__)
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowX11)
|
||||||
#elif defined(__WXPM__)
|
#elif defined(__WXPM__)
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowOS2)
|
IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowOS2)
|
||||||
#endif
|
#endif
|
||||||
|
@@ -60,8 +60,6 @@ wxApp *wxTheApp = NULL;
|
|||||||
|
|
||||||
wxHashTable *wxWidgetHashTable = NULL;
|
wxHashTable *wxWidgetHashTable = NULL;
|
||||||
|
|
||||||
static Window wxGetParentWindow(Window window);
|
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
|
IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
|
BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
|
||||||
@@ -296,7 +294,7 @@ void wxApp::ProcessXEvent(WXEvent* _event)
|
|||||||
// TODO: may need to translate coordinates from actualWindow
|
// TODO: may need to translate coordinates from actualWindow
|
||||||
// to window, if the receiving window != wxWindow window
|
// to window, if the receiving window != wxWindow window
|
||||||
while (window && !(win = wxGetWindowFromTable(window)))
|
while (window && !(win = wxGetWindowFromTable(window)))
|
||||||
window = wxGetParentWindow(window);
|
window = wxGetWindowParent(window);
|
||||||
|
|
||||||
// TODO: shouldn't all the ProcessEvents below
|
// TODO: shouldn't all the ProcessEvents below
|
||||||
// be win->GetEventHandler()->ProcessEvent?
|
// be win->GetEventHandler()->ProcessEvent?
|
||||||
@@ -643,7 +641,7 @@ WXColormap wxApp::GetMainColormap(WXDisplay* display)
|
|||||||
return (WXColormap) c;
|
return (WXColormap) c;
|
||||||
}
|
}
|
||||||
|
|
||||||
Window wxGetParentWindow(Window window)
|
Window wxGetWindowParent(Window window)
|
||||||
{
|
{
|
||||||
Window parent, root = 0;
|
Window parent, root = 0;
|
||||||
unsigned int noChildren = 0;
|
unsigned int noChildren = 0;
|
||||||
|
@@ -14,6 +14,7 @@ ALL_SOURCES = \
|
|||||||
x11/dcmemory.cpp \
|
x11/dcmemory.cpp \
|
||||||
x11/dcscreen.cpp \
|
x11/dcscreen.cpp \
|
||||||
x11/evtloop.cpp \
|
x11/evtloop.cpp \
|
||||||
|
x11/font.cpp \
|
||||||
x11/gdiobj.cpp \
|
x11/gdiobj.cpp \
|
||||||
x11/glcanvas.cpp \
|
x11/glcanvas.cpp \
|
||||||
x11/gsockx11.c \
|
x11/gsockx11.c \
|
||||||
@@ -23,6 +24,7 @@ ALL_SOURCES = \
|
|||||||
x11/minifram.cpp \
|
x11/minifram.cpp \
|
||||||
x11/palette.cpp \
|
x11/palette.cpp \
|
||||||
x11/pen.cpp \
|
x11/pen.cpp \
|
||||||
|
x11/popupwin.cpp \
|
||||||
x11/region.cpp \
|
x11/region.cpp \
|
||||||
x11/settings.cpp \
|
x11/settings.cpp \
|
||||||
x11/timer.cpp \
|
x11/timer.cpp \
|
||||||
@@ -90,6 +92,7 @@ ALL_SOURCES = \
|
|||||||
generic/msgdlgg.cpp \
|
generic/msgdlgg.cpp \
|
||||||
generic/numdlgg.cpp \
|
generic/numdlgg.cpp \
|
||||||
generic/panelg.cpp \
|
generic/panelg.cpp \
|
||||||
|
generic/printps.cpp \
|
||||||
generic/prntdlgg.cpp \
|
generic/prntdlgg.cpp \
|
||||||
generic/progdlgg.cpp \
|
generic/progdlgg.cpp \
|
||||||
generic/prop.cpp \
|
generic/prop.cpp \
|
||||||
@@ -637,6 +640,7 @@ GUIOBJS = \
|
|||||||
dcmemory.o \
|
dcmemory.o \
|
||||||
dcscreen.o \
|
dcscreen.o \
|
||||||
evtloop.o \
|
evtloop.o \
|
||||||
|
font.o \
|
||||||
gdiobj.o \
|
gdiobj.o \
|
||||||
glcanvas.o \
|
glcanvas.o \
|
||||||
gsockx11.o \
|
gsockx11.o \
|
||||||
@@ -646,6 +650,7 @@ GUIOBJS = \
|
|||||||
minifram.o \
|
minifram.o \
|
||||||
palette.o \
|
palette.o \
|
||||||
pen.o \
|
pen.o \
|
||||||
|
popupwin.o \
|
||||||
region.o \
|
region.o \
|
||||||
settings.o \
|
settings.o \
|
||||||
timer.o \
|
timer.o \
|
||||||
@@ -843,6 +848,7 @@ GENERICOBJS = \
|
|||||||
msgdlgg.o \
|
msgdlgg.o \
|
||||||
numdlgg.o \
|
numdlgg.o \
|
||||||
panelg.o \
|
panelg.o \
|
||||||
|
printps.o \
|
||||||
prntdlgg.o \
|
prntdlgg.o \
|
||||||
progdlgg.o \
|
progdlgg.o \
|
||||||
prop.o \
|
prop.o \
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
#include "wx/fontutil.h" // for wxNativeFontInfo
|
#include "wx/fontutil.h" // for wxNativeFontInfo
|
||||||
#include "wx/tokenzr.h"
|
#include "wx/tokenzr.h"
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
|
#include "wx/x11/private.h"
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
|
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
|
||||||
|
|
||||||
|
@@ -33,8 +33,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow)
|
|||||||
|
|
||||||
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" ))
|
if (!CreateBase( parent, -1, wxDefaultPosition, wxDefaultSize, style, wxDefaultValidator, "popup" ))
|
||||||
{
|
{
|
||||||
wxFAIL_MSG( wxT("wxPopupWindow creation failed") );
|
wxFAIL_MSG( wxT("wxPopupWindow creation failed") );
|
||||||
|
@@ -48,14 +48,6 @@ static bool SetWMDecorations(Widget w, long style);
|
|||||||
#endif
|
#endif
|
||||||
static bool MWMIsRunning(Window w);
|
static bool MWMIsRunning(Window w);
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// globals
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// list of all frames and modeless dialogs
|
|
||||||
// wxWindowList wxModelessWindows;
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxTopLevelWindowX11 creation
|
// wxTopLevelWindowX11 creation
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -164,9 +156,6 @@ wxTopLevelWindowX11::~wxTopLevelWindowX11()
|
|||||||
{
|
{
|
||||||
wxTopLevelWindows.DeleteObject(this);
|
wxTopLevelWindows.DeleteObject(this);
|
||||||
|
|
||||||
if ( wxModelessWindows.Find(this) )
|
|
||||||
wxModelessWindows.DeleteObject(this);
|
|
||||||
|
|
||||||
// If this is the last top-level window, exit.
|
// If this is the last top-level window, exit.
|
||||||
if ( wxTheApp && (wxTopLevelWindows.Number() == 0) )
|
if ( wxTheApp && (wxTopLevelWindows.Number() == 0) )
|
||||||
{
|
{
|
||||||
|
@@ -152,9 +152,11 @@ static void xt_notify_end_process(XtPointer data, int *WXUNUSED(fid),
|
|||||||
|
|
||||||
XtRemoveInput(*id);
|
XtRemoveInput(*id);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
|
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
XtInputId id = XtAppAddInput((XtAppContext) wxTheApp->GetAppContext(),
|
XtInputId id = XtAppAddInput((XtAppContext) wxTheApp->GetAppContext(),
|
||||||
fd,
|
fd,
|
||||||
(XtPointer *) XtInputReadMask,
|
(XtPointer *) XtInputReadMask,
|
||||||
@@ -162,8 +164,8 @@ int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
|
|||||||
(XtPointer) proc_data);
|
(XtPointer) proc_data);
|
||||||
|
|
||||||
return (int)id;
|
return (int)id;
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// misc
|
// misc
|
||||||
|
@@ -74,7 +74,7 @@ static wxWindow* g_captureWindow = NULL;
|
|||||||
// event tables
|
// event tables
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxWindowX11, wxWindowBase)
|
IMPLEMENT_ABSTRACT_CLASS(wxWindowX11, wxWindowBase)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxWindowX11, wxWindowBase)
|
BEGIN_EVENT_TABLE(wxWindowX11, wxWindowBase)
|
||||||
EVT_SYS_COLOUR_CHANGED(wxWindowX11::OnSysColourChanged)
|
EVT_SYS_COLOUR_CHANGED(wxWindowX11::OnSysColourChanged)
|
||||||
|
Reference in New Issue
Block a user