⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fixx11h.h

📁 konqueror3 embedded版本, KDE环境下的当家浏览器的嵌入式版本源码包.
💻 H
字号:
//#ifdef    don't do this, this file is supposed to be included//#define   multiple times/* Usage: If you get compile errors caused by X11 includes (the line where first error appears contains word like None, Unsorted, Below, etc.), put #include <fixx11h.h> in the .cpp file  (not .h file!) between the place where X11 headers are included and the place where the file with compile error is included (or the place where the compile error in the .cpp file occurs).  This file remaps X11 #defines to const variables or inline functions. The side effect may be that these symbols may now refer to different variables (e.g. if X11 #defined NoButton, after this file is included NoButton would no longer be X11's NoButton, but Qt::NoButton instead). At this time, there's no conflict known that could cause problems. The original X11 symbols are still accessible (e.g. for None) as X::None, XNone, and also still None, unless name lookup finds different None first (in the current class, etc.) Use 'Unsorted', 'Bool' and 'index' as templates.*/namespace X{// template --->// Affects: Should be without side effects.#ifdef Unsorted#ifndef FIXX11H_Unsorted#define FIXX11H_Unsortedconst int XUnsorted = Unsorted;#undef Unsortedconst int Unsorted = XUnsorted;#endif#undef Unsorted#endif// template <---// Affects: Should be without side effects.#ifdef None#ifndef FIXX11H_None#define FIXX11H_Noneconst XID XNone = None;#undef Noneconst XID None = XNone;#endif#undef None#endif// template --->// Affects: Should be without side effects.#ifdef Bool#ifndef FIXX11H_Bool#define FIXX11H_Booltypedef Bool XBool;#undef Booltypedef XBool Bool;#endif#undef Bool#endif// template <---// Affects: Should be without side effects.#ifdef KeyPress#ifndef FIXX11H_KeyPress#define FIXX11H_KeyPressconst int XKeyPress = KeyPress;#undef KeyPressconst int KeyPress = XKeyPress;#endif#undef KeyPress#endif// Affects: Should be without side effects.#ifdef KeyRelease#ifndef FIXX11H_KeyRelease#define FIXX11H_KeyReleaseconst int XKeyRelease = KeyRelease;#undef KeyReleaseconst int KeyRelease = XKeyRelease;#endif#undef KeyRelease#endif// Affects: Should be without side effects.#ifdef Above#ifndef FIXX11H_Above#define FIXX11H_Aboveconst int XAbove = Above;#undef Aboveconst int Above = XAbove;#endif#undef Above#endif// Affects: Should be without side effects.#ifdef Below#ifndef FIXX11H_Below#define FIXX11H_Belowconst int XBelow = Below;#undef Belowconst int Below = XBelow;#endif#undef Below#endif// Affects: Should be without side effects.#ifdef FocusIn#ifndef FIXX11H_FocusIn#define FIXX11H_FocusInconst int XFocusIn = FocusIn;#undef FocusInconst int FocusIn = XFocusIn;#endif#undef FocusIn#endif// Affects: Should be without side effects.#ifdef FocusOut#ifndef FIXX11H_FocusOut#define FIXX11H_FocusOutconst int XFocusOut = FocusOut;#undef FocusOutconst int FocusOut = XFocusOut;#endif#undef FocusOut#endif// Affects: Should be without side effects.#ifdef Always#ifndef FIXX11H_Always#define FIXX11H_Alwaysconst int XAlways = Always;#undef Alwaysconst int Always = XAlways;#endif#undef Always#endif// Affects: Should be without side effects.#ifdef Success#ifndef FIXX11H_Success#define FIXX11H_Successconst int XSuccess = Success;#undef Successconst int Success = XSuccess;#endif#undef Success#endif// Affects: Should be without side effects.#ifdef GrayScale#ifndef FIXX11H_GrayScale#define FIXX11H_GrayScaleconst int XGrayScale = GrayScale;#undef GrayScaleconst int GrayScale = XGrayScale;#endif#undef GrayScale#endif// Affects: Should be without side effects.#ifdef Status#ifndef FIXX11H_Status#define FIXX11H_Statustypedef Status XStatus;#undef Statustypedef XStatus Status;#endif#undef Status#endif// Affects: Should be without side effects.#ifdef CursorShape#ifndef FIXX11H_CursorShape#define FIXX11H_CursorShapeconst int XCursorShape = CursorShape;#undef CursorShapeconst int CursorShape = CursorShape;#endif#undef CursorShape#endif// template --->// Affects: Should be without side effects.#ifdef index#ifndef FIXX11H_index#define FIXX11H_indexinlinechar* Xindex( const char* s, int c )    {    return index( s, c );    }#undef indexinlinechar* index( const char* s, int c )    {    return Xindex( s, c );    }#endif#undef index#endif// template <---#ifdef rindex// Affects: Should be without side effects.#ifndef FIXX11H_rindex#define FIXX11H_rindexinlinechar* Xrindex( const char* s, int c )    {    return rindex( s, c );    }#undef rindexinlinechar* rindex( const char* s, int c )    {    return Xrindex( s, c );    }#endif#undef rindex#endif}using namespace X;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -