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
dcscreen.cpp X11
dcscreen.cpp X11
evtloop.cpp X11
+font.cpp X11
gdiobj.cpp X11
glcanvas.cpp X11
icon.cpp X11
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 );
- // 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);
-
+
private:
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
wxString m_title;
};
-// list of all frames and modeless dialogs
-;; extern WXDLLEXPORT_DATA(wxWindowList) wxModelessWindows;
-
#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);
- virtual bool DoPopupMenu(wxMenu *menu, int x, int y);
virtual void DoCaptureMouse();
virtual void DoReleaseMouse();
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
wxHashTable *wxWidgetHashTable = NULL;
-static Window wxGetParentWindow(Window window);
-
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)))
- window = wxGetParentWindow(window);
+ window = wxGetWindowParent(window);
// TODO: shouldn't all the ProcessEvents below
// be win->GetEventHandler()->ProcessEvent?
return (WXColormap) c;
}
-Window wxGetParentWindow(Window window)
+Window wxGetWindowParent(Window window)
{
Window parent, root = 0;
unsigned int noChildren = 0;
x11/dcmemory.cpp \
x11/dcscreen.cpp \
x11/evtloop.cpp \
+ x11/font.cpp \
x11/gdiobj.cpp \
x11/glcanvas.cpp \
x11/gsockx11.c \
x11/minifram.cpp \
x11/palette.cpp \
x11/pen.cpp \
+ x11/popupwin.cpp \
x11/region.cpp \
x11/settings.cpp \
x11/timer.cpp \
generic/msgdlgg.cpp \
generic/numdlgg.cpp \
generic/panelg.cpp \
+ generic/printps.cpp \
generic/prntdlgg.cpp \
generic/progdlgg.cpp \
generic/prop.cpp \
dcmemory.o \
dcscreen.o \
evtloop.o \
+ font.o \
gdiobj.o \
glcanvas.o \
gsockx11.o \
minifram.o \
palette.o \
pen.o \
+ popupwin.o \
region.o \
settings.o \
timer.o \
msgdlgg.o \
numdlgg.o \
panelg.o \
+ printps.o \
prntdlgg.o \
progdlgg.o \
prop.o \
#include "wx/fontutil.h" // for wxNativeFontInfo
#include "wx/tokenzr.h"
#include "wx/settings.h"
+#include "wx/x11/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
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") );
#endif
static bool MWMIsRunning(Window w);
-
-// ----------------------------------------------------------------------------
-// globals
-// ----------------------------------------------------------------------------
-
-// list of all frames and modeless dialogs
-// wxWindowList wxModelessWindows;
-
// ----------------------------------------------------------------------------
// wxTopLevelWindowX11 creation
// ----------------------------------------------------------------------------
{
wxTopLevelWindows.DeleteObject(this);
- if ( wxModelessWindows.Find(this) )
- wxModelessWindows.DeleteObject(this);
-
// If this is the last top-level window, exit.
if ( wxTheApp && (wxTopLevelWindows.Number() == 0) )
{
XtRemoveInput(*id);
}
+#endif
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
{
+#if 0
XtInputId id = XtAppAddInput((XtAppContext) wxTheApp->GetAppContext(),
fd,
(XtPointer *) XtInputReadMask,
(XtPointer) proc_data);
return (int)id;
-}
#endif
+}
// ----------------------------------------------------------------------------
// misc
// event tables
// ----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxWindowX11, wxWindowBase)
+IMPLEMENT_ABSTRACT_CLASS(wxWindowX11, wxWindowBase)
BEGIN_EVENT_TABLE(wxWindowX11, wxWindowBase)
EVT_SYS_COLOUR_CHANGED(wxWindowX11::OnSysColourChanged)