Replace tabs with spaces

This commit is contained in:
Maarten Bent
2020-12-22 19:04:16 +01:00
parent 32a0c57f7a
commit a530d645d1
23 changed files with 159 additions and 161 deletions

View File

@@ -56,7 +56,7 @@
#endif #endif
#ifndef TMT_FONT #ifndef TMT_FONT
#define TMT_FONT 210 #define TMT_FONT 210
#endif #endif
#ifndef HAVE_VSSYM32 #ifndef HAVE_VSSYM32

View File

@@ -25,7 +25,7 @@ BEGIN
MENUITEM "&Cascade", 4002 MENUITEM "&Cascade", 4002
MENUITEM "Tile &Horizontally", 4001 MENUITEM "Tile &Horizontally", 4001
MENUITEM "Tile &Vertically", 4005 MENUITEM "Tile &Vertically", 4005
MENUITEM "", -1 MENUITEM "", -1
MENUITEM "&Arrange Icons", 4003 MENUITEM "&Arrange Icons", 4003
MENUITEM "&Next", 4004 MENUITEM "&Next", 4004
END END

View File

@@ -26,12 +26,12 @@ typedef struct {
GR_FONT_ID fid; GR_FONT_ID fid;
} XFontStruct; } XFontStruct;
typedef struct { typedef struct {
short lbearing; /* origin to left edge of raster */ short lbearing; /* origin to left edge of raster */
short rbearing; /* origin to right edge of raster */ short rbearing; /* origin to right edge of raster */
short width; /* advance to next char's origin */ short width; /* advance to next char's origin */
short ascent; /* baseline to top edge of raster */ short ascent; /* baseline to top edge of raster */
short descent; /* baseline to bottom edge of raster */ short descent; /* baseline to bottom edge of raster */
unsigned short attributes; /* per char flags (not predefined) */ unsigned short attributes; /* per char flags (not predefined) */
} XCharStruct; } XCharStruct;
/* Configure window value mask bits */ /* Configure window value mask bits */
@@ -133,8 +133,8 @@ typedef struct {
#define XSetSubwindowMode(d, gc, mode) wxNoop() #define XSetSubwindowMode(d, gc, mode) wxNoop()
#define XFreeColormap(d, cmap) wxNoop() #define XFreeColormap(d, cmap) wxNoop()
#define XSetTransientForHint(d, w, p) wxNoop() #define XSetTransientForHint(d, w, p) wxNoop()
#define XUnionRegion(sr1,sr2,r) GrUnionRegion(r,sr1,sr2) #define XUnionRegion(sr1,sr2,r) GrUnionRegion(r,sr1,sr2)
#define XIntersectRegion(sr1,sr2,r) GrIntersectRegion(r,sr1,sr2) #define XIntersectRegion(sr1,sr2,r) GrIntersectRegion(r,sr1,sr2)
#define XEqualRegion(r1, r2) GrEqualRegion(r1, r2) #define XEqualRegion(r1, r2) GrEqualRegion(r1, r2)
#define XEmptyRegion(r) GrEmptyRegion(r) #define XEmptyRegion(r) GrEmptyRegion(r)
#define XOffsetRegion(r, x, y) GrOffsetRegion(r, x, y) #define XOffsetRegion(r, x, y) GrOffsetRegion(r, x, y)
@@ -144,7 +144,7 @@ typedef struct {
/* TODO: Cannot find equivalent for this. */ /* TODO: Cannot find equivalent for this. */
#define XIconifyWindow(d, w, s) 0 #define XIconifyWindow(d, w, s) 0
#define XCreateWindowWithColor(d,p,x,y,w,h,bw,depth,cl,vis,backColor,foreColor) \ #define XCreateWindowWithColor(d,p,x,y,w,h,bw,depth,cl,vis,backColor,foreColor) \
GrNewWindow(p,x,y,w,h,bw,backColor,foreColor) GrNewWindow(p,x,y,w,h,bw,backColor,foreColor)
#define XLookupString(event, buf, len, sym, status) (*sym = (event)->scancode) #define XLookupString(event, buf, len, sym, status) (*sym = (event)->scancode)
#define XBell(a, b) GrBell() #define XBell(a, b) GrBell()
#define DisplayWidthMM(d, s) 100 #define DisplayWidthMM(d, s) 100
@@ -163,45 +163,45 @@ typedef struct {
* Data structure used by color operations * Data structure used by color operations
*/ */
typedef struct { typedef struct {
unsigned long pixel; unsigned long pixel;
unsigned short red, green, blue; unsigned short red, green, blue;
char flags; /* do_red, do_green, do_blue */ char flags; /* do_red, do_green, do_blue */
char pad; char pad;
} XColor; } XColor;
typedef struct { typedef struct {
int type; int type;
Display *display; /* Display the event was read from */ Display *display; /* Display the event was read from */
XID resourceid; /* resource id */ XID resourceid; /* resource id */
unsigned long serial; /* serial number of failed request */ unsigned long serial; /* serial number of failed request */
unsigned char error_code; /* error code of failed request */ unsigned char error_code; /* error code of failed request */
unsigned char request_code; /* Major op-code of failed request */ unsigned char request_code; /* Major op-code of failed request */
unsigned char minor_code; /* Minor op-code of failed request */ unsigned char minor_code; /* Minor op-code of failed request */
} XErrorEvent; } XErrorEvent;
/* /*
* Visual structure; contains information about colormapping possible. * Visual structure; contains information about colormapping possible.
*/ */
typedef struct { typedef struct {
void *ext_data; /* hook for extension to hang data */ void *ext_data; /* hook for extension to hang data */
VisualID visualid; /* visual id of this visual */ VisualID visualid; /* visual id of this visual */
#if defined(__cplusplus) || defined(c_plusplus) #if defined(__cplusplus) || defined(c_plusplus)
int c_class; /* C++ class of screen (monochrome, etc.) */ int c_class; /* C++ class of screen (monochrome, etc.) */
#else #else
int class; /* class of screen (monochrome, etc.) */ int class; /* class of screen (monochrome, etc.) */
#endif #endif
unsigned long red_mask, green_mask, blue_mask; /* mask values */ unsigned long red_mask, green_mask, blue_mask; /* mask values */
int bits_per_rgb; /* log base 2 of distinct color values */ int bits_per_rgb; /* log base 2 of distinct color values */
int map_entries; /* color map entries */ int map_entries; /* color map entries */
} Visual; } Visual;
/* /*
* Depth structure; contains information for each possible depth. * Depth structure; contains information for each possible depth.
*/ */
typedef struct { typedef struct {
int depth; /* this depth (Z) of the depth */ int depth; /* this depth (Z) of the depth */
int nvisuals; /* number of Visual types at this depth */ int nvisuals; /* number of Visual types at this depth */
Visual *visuals; /* list of visuals possible at this depth */ Visual *visuals; /* list of visuals possible at this depth */
} Depth; } Depth;
/* /*
@@ -210,56 +210,56 @@ typedef struct {
* by application code. * by application code.
*/ */
struct _XDisplay; /* Forward declare before use for C++ */ struct _XDisplay; /* Forward declare before use for C++ */
typedef struct { typedef struct {
void *ext_data; /* hook for extension to hang data */ void *ext_data; /* hook for extension to hang data */
struct _XDisplay *display;/* back pointer to display structure */ struct _XDisplay *display; /* back pointer to display structure */
Window root; /* Root window id. */ Window root; /* Root window id. */
int width, height; /* width and height of screen */ int width, height; /* width and height of screen */
int mwidth, mheight; /* width and height of in millimeters */ int mwidth, mheight; /* width and height of in millimeters */
int ndepths; /* number of depths possible */ int ndepths; /* number of depths possible */
Depth *depths; /* list of allowable depths on the screen */ Depth *depths; /* list of allowable depths on the screen */
int root_depth; /* bits per pixel */ int root_depth; /* bits per pixel */
Visual *root_visual; /* root visual */ Visual *root_visual; /* root visual */
GC default_gc; /* GC for the root root visual */ GC default_gc; /* GC for the root root visual */
Colormap cmap; /* default color map */ Colormap cmap; /* default color map */
unsigned long white_pixel; unsigned long white_pixel;
unsigned long black_pixel; /* White and Black pixel values */ unsigned long black_pixel; /* White and Black pixel values */
int max_maps, min_maps; /* max and min color maps */ int max_maps, min_maps; /* max and min color maps */
int backing_store; /* Never, WhenMapped, Always */ int backing_store; /* Never, WhenMapped, Always */
Bool save_unders; Bool save_unders;
long root_input_mask; /* initial root input mask */ long root_input_mask; /* initial root input mask */
} Screen; } Screen;
typedef struct { typedef struct {
int x, y; /* location of window */ int x, y; /* location of window */
int width, height; /* width and height of window */ int width, height; /* width and height of window */
int border_width; /* border width of window */ int border_width; /* border width of window */
int depth; /* depth of window */ int depth; /* depth of window */
Visual *visual; /* the associated visual structure */ Visual *visual; /* the associated visual structure */
Window root; /* root of screen containing window */ Window root; /* root of screen containing window */
int _class; /* InputOutput, InputOnly*/ int _class; /* InputOutput, InputOnly*/
int bit_gravity; /* one of the bit gravity values */ int bit_gravity; /* one of the bit gravity values */
int win_gravity; /* one of the window gravity values */ int win_gravity; /* one of the window gravity values */
int backing_store; /* NotUseful, WhenMapped, Always */ int backing_store; /* NotUseful, WhenMapped, Always */
unsigned long backing_planes;/* planes to be preserved if possible */ unsigned long backing_planes;/* planes to be preserved if possible */
unsigned long backing_pixel;/* value to be used when restoring planes */ unsigned long backing_pixel;/* value to be used when restoring planes */
Bool save_under; /* boolean, should bits under be saved? */ Bool save_under; /* boolean, should bits under be saved? */
Colormap colormap; /* color map to be associated with window */ Colormap colormap; /* color map to be associated with window */
Bool map_installed; /* boolean, is color map currently installed*/ Bool map_installed; /* boolean, is color map currently installed*/
int map_state; /* IsUnmapped, IsUnviewable, IsViewable */ int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
long all_event_masks; /* set of events all people have interest in*/ long all_event_masks; /* set of events all people have interest in*/
long your_event_mask; /* my event mask */ long your_event_mask; /* my event mask */
long do_not_propagate_mask;/* set of events that should not propagate */ long do_not_propagate_mask;/* set of events that should not propagate */
Bool override_redirect; /* boolean value for override-redirect */ Bool override_redirect; /* boolean value for override-redirect */
Screen *screen; /* back pointer to correct screen */ Screen *screen; /* back pointer to correct screen */
} XWindowAttributes; } XWindowAttributes;
typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ typedef int (*XErrorHandler) (/* WARNING, this type not in Xlib spec */
Display* /* display */, Display* /* display */,
XErrorEvent* /* error_event */ XErrorEvent* /* error_event */
); );
/* events*/ /* events*/

View File

@@ -1281,7 +1281,7 @@ void MyFrame::OnDropPossible( wxDataViewEvent &event )
if (event.GetDataFormat() != wxDF_UNICODETEXT) if (event.GetDataFormat() != wxDF_UNICODETEXT)
event.Veto(); event.Veto();
else else
event.SetDropEffect(wxDragMove); // check 'move' drop effect event.SetDropEffect(wxDragMove); // check 'move' drop effect
} }
void MyFrame::OnDrop( wxDataViewEvent &event ) void MyFrame::OnDrop( wxDataViewEvent &event )

View File

@@ -1,9 +1,9 @@
#include "../sample.rc" #include "../sample.rc"
app_icon ICON "registry.ico" app_icon ICON "registry.ico"
icon_key1 ICON "key1.ico" icon_key1 ICON "key1.ico"
icon_key2 ICON "key2.ico" icon_key2 ICON "key2.ico"
icon_key3 ICON "key3.ico" icon_key3 ICON "key3.ico"
icon_value1 ICON "value1.ico" icon_value1 ICON "value1.ico"
icon_value2 ICON "value2.ico" icon_value2 ICON "value2.ico"

View File

@@ -1,3 +1,3 @@
FromResource WAVE "cuckoo.wav" FromResource WAVE "cuckoo.wav"
#include "../sample.rc" #include "../sample.rc"

View File

@@ -52,8 +52,8 @@ const int ANNOTATION_STYLE = wxSTC_STYLE_LASTPREDEFINED + 1;
// A small image of a hashtag symbol used in the autocompletion window. // A small image of a hashtag symbol used in the autocompletion window.
const char* hashtag_xpm[] = { const char* hashtag_xpm[] = {
"10 10 2 1", "10 10 2 1",
" c None", " c None",
". c #BD08F9", ". c #BD08F9",
" .. .. ", " .. .. ",
" .. .. ", " .. .. ",
"..........", "..........",

View File

@@ -222,16 +222,16 @@ bool wxMask::Create( const wxBitmap& bitmap )
wxBitmap wxMask::GetBitmap() const wxBitmap wxMask::GetBitmap() const
{ {
wxBitmap bitmap; wxBitmap bitmap;
if (m_bitmap) if (m_bitmap)
{ {
bitmap.SetBitmap( m_bitmap ); bitmap.SetBitmap( m_bitmap );
bitmap.SetWidth( m_width ); bitmap.SetWidth( m_width );
bitmap.SetHeight( m_height ); bitmap.SetHeight( m_height );
} }
return bitmap; return bitmap;
} }

View File

@@ -34,11 +34,11 @@
bool wxUxThemeIsActive() bool wxUxThemeIsActive()
{ {
return ::IsAppThemed() && ::IsThemeActive(); return ::IsAppThemed() && ::IsThemeActive();
} }
#else #else
bool wxUxThemeIsActive() bool wxUxThemeIsActive()
{ {
return false; return false;
} }
#endif // wxUSE_UXTHEME #endif // wxUSE_UXTHEME

View File

@@ -138,7 +138,7 @@ int wxColourDialog::ShowModal()
[theColorPanel setDelegate:theCPDelegate]; [theColorPanel setDelegate:theCPDelegate];
// //
// Start the color panel modal loop // Start the color panel modal loop
// //
OSXBeginModalDialog(); OSXBeginModalDialog();
NSModalSession session = [NSApp beginModalSessionForWindow:theColorPanel]; NSModalSession session = [NSApp beginModalSessionForWindow:theColorPanel];

View File

@@ -116,16 +116,16 @@ public:
} }
size_t GetNumberOfItems() const wxOVERRIDE size_t GetNumberOfItems() const wxOVERRIDE
{ {
return m_popUpMenu->GetMenuItemCount(); return m_popUpMenu->GetMenuItemCount();
} }
void RemoveItem( size_t pos ) wxOVERRIDE void RemoveItem( size_t pos ) wxOVERRIDE
{ {
m_popUpMenu->Delete( m_popUpMenu->FindItemByPosition( pos ) ); m_popUpMenu->Delete( m_popUpMenu->FindItemByPosition( pos ) );
} }
void SetItem(int pos, const wxString& s) wxOVERRIDE void SetItem(int pos, const wxString& s) wxOVERRIDE
{ {
m_popUpMenu->FindItemByPosition( pos )->SetItemLabel( s ) ; m_popUpMenu->FindItemByPosition( pos )->SetItemLabel( s ) ;
} }

View File

@@ -69,7 +69,7 @@ static NSUInteger CalculateNSEventMaskFromEventCategory(wxEventCategory cat)
if ( cat | wxEVT_CATEGORY_USER_INPUT ) if ( cat | wxEVT_CATEGORY_USER_INPUT )
{ {
mask |= mask |=
NSLeftMouseDownMask | NSLeftMouseDownMask |
NSLeftMouseUpMask | NSLeftMouseUpMask |
NSRightMouseDownMask | NSRightMouseDownMask |
NSRightMouseUpMask | NSRightMouseUpMask |

View File

@@ -65,7 +65,7 @@ public :
{ {
} }
void SetLabel( const wxString& WXUNUSED(title), wxFontEncoding WXUNUSED(encoding) ) wxOVERRIDE void SetLabel( const wxString& WXUNUSED(title), wxFontEncoding WXUNUSED(encoding) ) wxOVERRIDE
{ {
// although NSControl has this method, NSImageView throws an exception if it is called // although NSControl has this method, NSImageView throws an exception if it is called
} }

View File

@@ -364,7 +364,7 @@ void wxBell()
/* This is needed because otherwise we don't receive any key-up events for command-key /* This is needed because otherwise we don't receive any key-up events for command-key
combinations (an AppKit bug, apparently) */ combinations (an AppKit bug, apparently) */
- (void)sendEvent:(NSEvent *)anEvent - (void)sendEvent:(NSEvent *)anEvent
{ {
if ([anEvent type] == NSKeyUp && ([anEvent modifierFlags] & NSCommandKeyMask)) if ([anEvent type] == NSKeyUp && ([anEvent modifierFlags] & NSCommandKeyMask))

View File

@@ -41,35 +41,33 @@
/* /*
static int CalculateUIEventMaskFromEventCategory(wxEventCategory cat) static int CalculateUIEventMaskFromEventCategory(wxEventCategory cat)
{ {
NSLeftMouseDownMask | NSLeftMouseDownMask |
NSLeftMouseUpMask | NSLeftMouseUpMask |
NSRightMouseDownMask | NSRightMouseDownMask |
NSRightMouseUpMask = 1 << NSRightMouseUp, NSRightMouseUpMask = 1 << NSRightMouseUp,
NSMouseMovedMask = 1 << NSMouseMoved, NSMouseMovedMask = 1 << NSMouseMoved,
NSLeftMouseDraggedMask = 1 << NSLeftMouseDragged, NSLeftMouseDraggedMask = 1 << NSLeftMouseDragged,
NSRightMouseDraggedMask = 1 << NSRightMouseDragged, NSRightMouseDraggedMask = 1 << NSRightMouseDragged,
NSMouseEnteredMask = 1 << NSMouseEntered, NSMouseEnteredMask = 1 << NSMouseEntered,
NSMouseExitedMask = 1 << NSMouseExited, NSMouseExitedMask = 1 << NSMouseExited,
NSScrollWheelMask = 1 << NSScrollWheel, NSScrollWheelMask = 1 << NSScrollWheel,
NSTabletPointMask = 1 << NSTabletPoint, NSTabletPointMask = 1 << NSTabletPoint,
NSTabletProximityMask = 1 << NSTabletProximity, NSTabletProximityMask = 1 << NSTabletProximity,
NSOtherMouseDownMask = 1 << NSOtherMouseDown, NSOtherMouseDownMask = 1 << NSOtherMouseDown,
NSOtherMouseUpMask = 1 << NSOtherMouseUp, NSOtherMouseUpMask = 1 << NSOtherMouseUp,
NSOtherMouseDraggedMask = 1 << NSOtherMouseDragged, NSOtherMouseDraggedMask = 1 << NSOtherMouseDragged,
NSKeyDownMask = 1 << NSKeyDown,
NSKeyUpMask = 1 << NSKeyUp,
NSFlagsChangedMask = 1 << NSFlagsChanged,
NSAppKitDefinedMask = 1 << NSAppKitDefined,
NSSystemDefinedMask = 1 << NSSystemDefined,
UIApplicationDefinedMask = 1 << UIApplicationDefined,
NSPeriodicMask = 1 << NSPeriodic,
NSCursorUpdateMask = 1 << NSCursorUpdate,
NSKeyDownMask = 1 << NSKeyDown, NSAnyEventMask = 0xffffffffU
NSKeyUpMask = 1 << NSKeyUp,
NSFlagsChangedMask = 1 << NSFlagsChanged,
NSAppKitDefinedMask = 1 << NSAppKitDefined,
NSSystemDefinedMask = 1 << NSSystemDefined,
UIApplicationDefinedMask = 1 << UIApplicationDefined,
NSPeriodicMask = 1 << NSPeriodic,
NSCursorUpdateMask = 1 << NSCursorUpdate,
NSAnyEventMask = 0xffffffffU
} }
*/ */

View File

@@ -41,7 +41,7 @@ public :
{ {
} }
void SetLabel( const wxString& title, wxFontEncoding encoding ) wxOVERRIDE void SetLabel( const wxString& title, wxFontEncoding encoding ) wxOVERRIDE
{ {
// although NSControl has this method, NSImageView throws an exception if it is called // although NSControl has this method, NSImageView throws an exception if it is called
} }

View File

@@ -58,7 +58,7 @@
return YES; return YES;
} }
- (void)applicationDidFinishLaunching:(UIApplication *)application { - (void)applicationDidFinishLaunching:(UIApplication *)application {
wxTheApp->OSXOnDidFinishLaunching(); wxTheApp->OSXOnDidFinishLaunching();
} }

View File

@@ -72,7 +72,7 @@
#endif #endif
"</string> "</string>
<string name="cpp_function_declaration_comment">" /// %BODY% <string name="cpp_function_declaration_comment">" /// %BODY%
"</string> "</string>
<string name="cpp_function_implementation_comment">" <string name="cpp_function_implementation_comment">"
/*! /*!

View File

@@ -1505,7 +1505,7 @@ void ScintillaWX::ImeStartComposition() {
const int styleHere = pdoc->StyleIndexAt(sel.MainCaret()); const int styleHere = pdoc->StyleIndexAt(sel.MainCaret());
LOGFONTW lf = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, L"" }; LOGFONTW lf = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, L"" };
int sizeZoomed = vs.styles[styleHere].size + vs.zoomLevel * SC_FONT_SIZE_MULTIPLIER; int sizeZoomed = vs.styles[styleHere].size + vs.zoomLevel * SC_FONT_SIZE_MULTIPLIER;
if (sizeZoomed <= 2 * SC_FONT_SIZE_MULTIPLIER) // Hangs if sizeZoomed <= 1 if (sizeZoomed <= 2 * SC_FONT_SIZE_MULTIPLIER) // Hangs if sizeZoomed <= 1
sizeZoomed = 2 * SC_FONT_SIZE_MULTIPLIER; sizeZoomed = 2 * SC_FONT_SIZE_MULTIPLIER;
// The negative is to allow for leading // The negative is to allow for leading
lf.lfHeight = -::MulDiv(sizeZoomed, stc->GetDPI().y, 72 * SC_FONT_SIZE_MULTIPLIER); lf.lfHeight = -::MulDiv(sizeZoomed, stc->GetDPI().y, 72 * SC_FONT_SIZE_MULTIPLIER);

View File

@@ -1004,8 +1004,8 @@ void wxGTKRenderer::DrawRadioButtonBitmap(wxDC& dc,
dc.SetPen(m_penDarkGrey); dc.SetPen(m_penDarkGrey);
dc.SetBrush(wxSCHEME_COLOUR(m_scheme, CONTROL_CURRENT)); dc.SetBrush(wxSCHEME_COLOUR(m_scheme, CONTROL_CURRENT));
// draw the normal border // draw the normal border
dc.DrawCircle(xRight/2,yBottom/2,yMid); dc.DrawCircle(xRight/2,yBottom/2,yMid);
wxColor checkedCol, uncheckedCol; wxColor checkedCol, uncheckedCol;
checkedCol = wxSCHEME_COLOUR(m_scheme, SHADOW_DARK); checkedCol = wxSCHEME_COLOUR(m_scheme, SHADOW_DARK);

View File

@@ -479,7 +479,7 @@ bool wxGLCanvasEGL::CreateSurface()
wl_registry_add_listener(registry, &wl_registry_listener, this); wl_registry_add_listener(registry, &wl_registry_listener, this);
wl_display_roundtrip(display); wl_display_roundtrip(display);
if ( !m_wlCompositor || !m_wlSubcompositor ) if ( !m_wlCompositor || !m_wlSubcompositor )
{ {
wxFAIL_MSG("Invalid Wayland compositor or subcompositor"); wxFAIL_MSG("Invalid Wayland compositor or subcompositor");
return false; return false;
} }

View File

@@ -84,8 +84,8 @@ int XCopyArea(Display* display, Drawable src, Drawable dest, GC gc,
int dest_x, int dest_y) int dest_x, int dest_y)
{ {
GrCopyArea(dest, gc, dest_x, dest_y, GrCopyArea(dest, gc, dest_x, dest_y,
width, height, src, width, height, src,
src_x, src_y, 0); src_x, src_y, 0);
return Success; return Success;
} }
@@ -94,55 +94,55 @@ int XCopyPlane(Display* display, Drawable src, Drawable dest, GC gc,
int dest_x, int dest_y, unsigned long plane) int dest_x, int dest_y, unsigned long plane)
{ {
GrCopyArea(dest, gc, dest_x, dest_y, GrCopyArea(dest, gc, dest_x, dest_y,
width, height, src, width, height, src,
src_x, src_y, 0); src_x, src_y, 0);
return Success; return Success;
} }
#if 0 #if 0
typedef struct { typedef struct {
GR_WINDOW_ID wid; /* window id (or 0 if no such window) */ GR_WINDOW_ID wid; /* window id (or 0 if no such window) */
GR_WINDOW_ID parent; /* parent window id */ GR_WINDOW_ID parent; /* parent window id */
GR_WINDOW_ID child; /* first child window id (or 0) */ GR_WINDOW_ID child; /* first child window id (or 0) */
GR_WINDOW_ID sibling; /* next sibling window id (or 0) */ GR_WINDOW_ID sibling; /* next sibling window id (or 0) */
GR_BOOL inputonly; /* TRUE if window is input only */ GR_BOOL inputonly; /* TRUE if window is input only */
GR_BOOL mapped; /* TRUE if window is mapped */ GR_BOOL mapped; /* TRUE if window is mapped */
GR_COUNT unmapcount; /* reasons why window is unmapped */ GR_COUNT unmapcount; /* reasons why window is unmapped */
GR_COORD x; /* absolute x position of window */ GR_COORD x; /* absolute x position of window */
GR_COORD y; /* absolute y position of window */ GR_COORD y; /* absolute y position of window */
GR_SIZE width; /* width of window */ GR_SIZE width; /* width of window */
GR_SIZE height; /* height of window */ GR_SIZE height; /* height of window */
GR_SIZE bordersize; /* size of border */ GR_SIZE bordersize; /* size of border */
GR_COLOR bordercolor; /* color of border */ GR_COLOR bordercolor; /* color of border */
GR_COLOR background; /* background color */ GR_COLOR background; /* background color */
GR_EVENT_MASK eventmask; /* current event mask for this client */ GR_EVENT_MASK eventmask; /* current event mask for this client */
GR_WM_PROPS props; /* window properties */ GR_WM_PROPS props; /* window properties */
GR_CURSOR_ID cursor; /* cursor id*/ GR_CURSOR_ID cursor; /* cursor id*/
unsigned long processid; /* process id of owner*/ unsigned long processid; /* process id of owner*/
} GR_WINDOW_INFO; } GR_WINDOW_INFO;
typedef struct { typedef struct {
int x, y; /* location of window */ int x, y; /* location of window */
int width, height; /* width and height of window */ int width, height; /* width and height of window */
int border_width; /* border width of window */ int border_width; /* border width of window */
int depth; /* depth of window */ int depth; /* depth of window */
Visual *visual; /* the associated visual structure */ Visual *visual; /* the associated visual structure */
Window root; /* root of screen containing window */ Window root; /* root of screen containing window */
int class; /* InputOutput, InputOnly*/ int class; /* InputOutput, InputOnly*/
int bit_gravity; /* one of the bit gravity values */ int bit_gravity; /* one of the bit gravity values */
int win_gravity; /* one of the window gravity values */ int win_gravity; /* one of the window gravity values */
int backing_store; /* NotUseful, WhenMapped, Always */ int backing_store; /* NotUseful, WhenMapped, Always */
unsigned long backing_planes;/* planes to be preserved if possible */ unsigned long backing_planes;/* planes to be preserved if possible */
unsigned long backing_pixel;/* value to be used when restoring planes */ unsigned long backing_pixel;/* value to be used when restoring planes */
Bool save_under; /* boolean, should bits under be saved? */ Bool save_under; /* boolean, should bits under be saved? */
Colormap colormap; /* color map to be associated with window */ Colormap colormap; /* color map to be associated with window */
Bool map_installed; /* boolean, is color map currently installed*/ Bool map_installed; /* boolean, is color map currently installed*/
int map_state; /* IsUnmapped, IsUnviewable, IsViewable */ int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
long all_event_masks; /* set of events all people have interest in*/ long all_event_masks; /* set of events all people have interest in*/
long your_event_mask; /* my event mask */ long your_event_mask; /* my event mask */
long do_not_propagate_mask;/* set of events that should not propagate */ long do_not_propagate_mask;/* set of events that should not propagate */
Bool override_redirect; /* boolean value for override-redirect */ Bool override_redirect; /* boolean value for override-redirect */
Screen *screen; /* back pointer to correct screen */ Screen *screen; /* back pointer to correct screen */
} XWindowAttributes; } XWindowAttributes;
#endif #endif
@@ -222,7 +222,7 @@ XErrorHandler XSetErrorHandler (XErrorHandler handler)
} }
static Screen s_screen; static Screen s_screen;
Screen *XScreenOfDisplay(Display* display, Screen *XScreenOfDisplay(Display* display,
int screen_number) int screen_number)
{ {
/* TODO: fill in the members. See Xlib.h */ /* TODO: fill in the members. See Xlib.h */

View File

@@ -342,7 +342,7 @@ void TextCtrlTestCase::Redirector()
void TextCtrlTestCase::HitTestSingleLine() void TextCtrlTestCase::HitTestSingleLine()
{ {
#ifdef __WXQT__ #ifdef __WXQT__
WARN("Does not work under WxQt"); WARN("Does not work under WxQt");
#else #else
m_text->ChangeValue("Hit me"); m_text->ChangeValue("Hit me");
@@ -513,7 +513,7 @@ void TextCtrlTestCase::Style()
CHECK( style.GetTextColour() == *wxRED ); CHECK( style.GetTextColour() == *wxRED );
CHECK( style.GetBackgroundColour() == *wxWHITE ); CHECK( style.GetBackgroundColour() == *wxWHITE );
#else #else
WARN("Does not work under WxQt or OSX"); WARN("Does not work under WxQt or OSX");
#endif #endif
} }