00001 #ifndef KDE__GLOBAL_H
00002 #define KDE__GLOBAL_H
00003
00004 namespace Faith
00005 {
00006
00010 enum ButtonState
00011 {
00012 NoButton=0,
00013 LeftButton=1,
00014 RightButton=2,
00015 MidButton=4,
00016 ShiftButton=8,
00017 ControlButton=16,
00018 AltButton=32,
00019 MetaButton=64,
00020 Keypad=128,
00021 KeyButtonMask = ShiftButton|ControlButton|AltButton,
00022 MouseButtonMask = LeftButton|RightButton|MidButton
00023 };
00024
00028 enum AlignmentFlags
00029 {
00030 AlignAuto=1|2,
00031 AlignLeft=1,
00032 AlignRight=2,
00033 AlignCenter=4,
00034 AlignHLeft=AlignLeft,
00035 AlignHRight=AlignRight,
00036 AlignHCenter=AlignCenter,
00037
00038 AlignVTop=8,
00039 AlignVCenter=16,
00040 AlignVBottom=32
00041 };
00042
00047 enum Orientation
00048 {
00049 Horizontal = 1,
00050 Vertical = 2
00051
00052 };
00053
00057 enum TextFlags
00058 {
00059 SingleLine =64,
00060 ShowPrefix = 128,
00061 DontClip = 256
00062 };
00063
00067 enum Key
00068 {
00069 Key_Unknown = 0,
00070 Key_F1 = 0x1011,
00071 Key_F2 = 0x1012,
00072 Key_F3 = 0x1013,
00073 Key_F4 = 0x1014,
00074 Key_F5 = 0x1015,
00075 Key_F6 = 0x1016,
00076 Key_F7 = 0x1017,
00077 Key_F8 = 0x1018,
00078 Key_F9 = 0x1019,
00079 Key_F10 = 0x101a,
00080 Key_F11 = 0x101b,
00081 Key_F12 = 0x101c,
00082 Key_F13 = 0x101d,
00083 Key_F14 = 0x101e,
00084 Key_F15 = 0x101f,
00085
00086 Key_Home = 0x10a0,
00087 Key_Left = 0x10a1,
00088 Key_Up = 0x10a2,
00089 Key_Right = 0x10a3,
00090 Key_Down = 0x10a4,
00091 Key_PageUp = 0x10a5,
00092 Key_PageDown = 0x10a6,
00093 Key_End = 0x10a7,
00094
00095
00096 Key_Backspace = 0x08,
00097 Key_Tab = 0x09,
00098 Key_Return = 0x0d,
00099 Key_Delete = 0x10,
00100 Key_Escape = 0x1b,
00101
00102 Key_Space = 0x20,
00103 Key_Exclam = 0x21,
00104 Key_Quotes = 0x22,
00105 Key_Hash = 0x23,
00106 Key_Dollar = 0x24,
00107 Key_Percent = 0x25,
00108 Key_Ampersand = 0x26,
00109 Key_SingleQuote = 0x27,
00110 Key_OpenParen = 0x28,
00111 Key_CloseParen = 0x29,
00112 Key_Star = 0x2A,
00113 Key_Plus = 0x2B,
00114 Key_Comma = 0x2C,
00115 Key_Minus = 0x2D,
00116 Key_Period = 0x2E,
00117 Key_ForwardSlash = 0x2F,
00118 Key_0 = 0x30,
00119 Key_1 = 0x31,
00120 Key_2 = 0x32,
00121 Key_3 = 0x33,
00122 Key_4 = 0x34,
00123 Key_5 = 0x35,
00124 Key_6 = 0x36,
00125 Key_7 = 0x37,
00126 Key_8 = 0x38,
00127 Key_9 = 0x39,
00128 Key_Colon = 0x3a,
00129 Key_Semicolon = 0x3b,
00130 Key_OpenAngle = 0x3c,
00131 Key_Equals = 0x3d,
00132 Key_CloseAngle = 0x3e,
00133 Key_Question = 0x3f,
00134 Key_At = 0x40,
00135 Key_A = 0x41,
00136 Key_B = 0x42,
00137 Key_C = 0x43,
00138 Key_D = 0x44,
00139 Key_E = 0x45,
00140 Key_F = 0x46,
00141 Key_G = 0x47,
00142 Key_H = 0x48,
00143 Key_I = 0x49,
00144 Key_J = 0x4a,
00145 Key_K = 0x4b,
00146 Key_L = 0x4c,
00147 Key_M = 0x4d,
00148 Key_N = 0x4e,
00149 Key_O = 0x4f,
00150 Key_P = 0x50,
00151 Key_Q = 0x51,
00152 Key_R = 0x52,
00153 Key_S = 0x53,
00154 Key_T = 0x54,
00155 Key_U = 0x55,
00156 Key_V = 0x56,
00157 Key_W = 0x57,
00158 Key_X = 0x58,
00159 Key_Y = 0x59,
00160 Key_Z = 0x5a,
00161 Key_OpenSquare = 0x5b,
00162 Key_Backslash = 0x5c,
00163 Key_CloseSquare = 0x5d,
00164 Key_Carat = 0x5e,
00165 Key_Backtick = 0x60,
00166 Key_a = 0x61,
00167 Key_b = 0x62,
00168 Key_c = 0x63,
00169 Key_d = 0x64,
00170 Key_e = 0x65,
00171 Key_f = 0x66,
00172 Key_g = 0x67,
00173 Key_h = 0x68,
00174 Key_i = 0x69,
00175 Key_j = 0x6a,
00176 Key_k = 0x6b,
00177 Key_l = 0x6c,
00178 Key_m = 0x6d,
00179 Key_n = 0x6e,
00180 Key_o = 0x6f,
00181 Key_p = 0x70,
00182 Key_q = 0x71,
00183 Key_r = 0x72,
00184 Key_s = 0x73,
00185 Key_t = 0x74,
00186 Key_u = 0x75,
00187 Key_v = 0x76,
00188 Key_w = 0x77,
00189 Key_x = 0x78,
00190 Key_y = 0x79,
00191 Key_z = 0x7a,
00192
00193 Key_CurlyOpen = 0x7b,
00194 Key_Pipe = 0x7c,
00195 Key_CurlyClose = 0x7d,
00196 Key_Tilde = 0x7e
00197 };
00198
00199
00200 }
00201
00202
00203 #endif
00204