KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cpp-qt.php 33KB

11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. <?php
  2. /*************************************************************************************
  3. * cpp.php
  4. * -------
  5. * Author: Iulian M
  6. * Copyright: (c) 2006 Iulian M
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2004/09/27
  9. *
  10. * C++ (with Qt extensions) language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2009/06/28 (1.0.8.4)
  15. * - Updated list of Keywords from Qt 4.5
  16. *
  17. * 2008/05/23 (1.0.7.22)
  18. * - Added description of extra language features (SF#1970248)
  19. *
  20. * TODO
  21. * ----
  22. *
  23. *************************************************************************************
  24. *
  25. * This file is part of GeSHi.
  26. *
  27. * GeSHi is free software; you can redistribute it and/or modify
  28. * it under the terms of the GNU General Public License as published by
  29. * the Free Software Foundation; either version 2 of the License, or
  30. * (at your option) any later version.
  31. *
  32. * GeSHi is distributed in the hope that it will be useful,
  33. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  34. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  35. * GNU General Public License for more details.
  36. *
  37. * You should have received a copy of the GNU General Public License
  38. * along with GeSHi; if not, write to the Free Software
  39. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  40. *
  41. ************************************************************************************/
  42. $language_data = array (
  43. 'LANG_NAME' => 'C++ (Qt)',
  44. 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
  45. 'COMMENT_MULTI' => array('/*' => '*/'),
  46. 'COMMENT_REGEXP' => array(
  47. //Multiline-continued single-line comments
  48. 1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
  49. //Multiline-continued preprocessor define
  50. 2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m'
  51. ),
  52. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  53. 'QUOTEMARKS' => array("'", '"'),
  54. 'ESCAPE_CHAR' => '',
  55. 'ESCAPE_REGEXP' => array(
  56. //Simple Single Char Escapes
  57. 1 => "#\\\\[abfnrtv\\\'\"?\n]#i",
  58. //Hexadecimal Char Specs
  59. 2 => "#\\\\x[\da-fA-F]{2}#",
  60. //Hexadecimal Char Specs
  61. 3 => "#\\\\u[\da-fA-F]{4}#",
  62. //Hexadecimal Char Specs
  63. 4 => "#\\\\U[\da-fA-F]{8}#",
  64. //Octal Char Specs
  65. 5 => "#\\\\[0-7]{1,3}#"
  66. ),
  67. 'NUMBERS' =>
  68. GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
  69. GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
  70. GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
  71. 'KEYWORDS' => array(
  72. 1 => array(
  73. 'case', 'continue', 'default', 'do', 'else', 'for', 'goto', 'if', 'return',
  74. 'switch', 'while', 'delete', 'new', 'this'
  75. ),
  76. 2 => array(
  77. 'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM',
  78. 'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
  79. 'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
  80. 'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
  81. 'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
  82. 'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
  83. 'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
  84. 'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
  85. 'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
  86. 'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam',
  87. 'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
  88. 'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
  89. 'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace',
  90. 'try', 'catch', 'inline', 'dynamic_cast', 'const_cast', 'reinterpret_cast',
  91. 'static_cast', 'explicit', 'friend', 'typename', 'typeid', 'class' ,
  92. 'foreach','connect', 'Q_OBJECT' , 'slots' , 'signals', 'Q_SIGNALS', 'Q_SLOTS',
  93. 'Q_FOREACH', 'QCOMPARE', 'QVERIFY', 'qDebug', 'kDebug', 'QBENCHMARK'
  94. ),
  95. 3 => array(
  96. 'cin', 'cerr', 'clog', 'cout',
  97. 'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
  98. 'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
  99. 'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper',
  100. 'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
  101. 'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
  102. 'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp',
  103. 'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
  104. 'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
  105. 'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
  106. 'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
  107. 'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
  108. 'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
  109. 'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
  110. 'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
  111. 'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
  112. 'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
  113. 'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
  114. 'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
  115. 'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
  116. ),
  117. 4 => array(
  118. 'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint',
  119. 'register', 'short', 'shortint', 'signed', 'static', 'struct',
  120. 'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
  121. 'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
  122. 'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm', 'wchar_t',
  123. 'int8', 'int16', 'int32', 'int64',
  124. 'uint8', 'uint16', 'uint32', 'uint64',
  125. 'int_fast8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t',
  126. 'uint_fast8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t',
  127. 'int_least8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t',
  128. 'uint_least8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t',
  129. 'int8_t', 'int16_t', 'int32_t', 'int64_t',
  130. 'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t',
  131. 'intmax_t', 'uintmax_t', 'intptr_t', 'uintptr_t'
  132. ),
  133. 5 => array(
  134. "Q_UINT16", "Q_UINT32", "Q_UINT64", "Q_UINT8", "Q_ULLONG",
  135. "Q_ULONG", "Q3Accel", "Q3Action", "Q3ActionGroup", "Q3AsciiBucket",
  136. "Q3AsciiCache", "Q3AsciiCacheIterator", "Q3AsciiDict",
  137. "Q3AsciiDictIterator", "Q3BaseBucket", "Q3BoxLayout", "Q3Button",
  138. "Q3ButtonGroup", "Q3Cache", "Q3CacheIterator", "Q3Canvas",
  139. "Q3CanvasEllipse", "Q3CanvasItem", "Q3CanvasItemList",
  140. "Q3CanvasLine", "Q3CanvasPixmap", "Q3CanvasPixmapArray",
  141. "Q3CanvasPolygon", "Q3CanvasPolygonalItem", "Q3CanvasRectangle",
  142. "Q3CanvasSpline", "Q3CanvasSprite", "Q3CanvasText", "Q3CanvasView",
  143. "Q3CheckListItem", "Q3CheckTableItem", "Q3CleanupHandler",
  144. "Q3ColorDrag", "Q3ComboBox", "Q3ComboTableItem", "Q3CString",
  145. "Q3DataBrowser", "Q3DataTable", "Q3DataView", "Q3DateEdit",
  146. "Q3DateTimeEdit", "Q3DateTimeEditBase", "Q3DeepCopy", "Q3Dict",
  147. "Q3DictIterator", "Q3Dns", "Q3DnsSocket", "Q3DockArea",
  148. "Q3DockAreaLayout", "Q3DockWindow", "Q3DragObject", "Q3DropSite",
  149. "Q3EditorFactory", "Q3FileDialog", "Q3FileIconProvider",
  150. "Q3FilePreview", "Q3Frame", "Q3Ftp", "Q3GArray", "Q3GCache",
  151. "Q3GCacheIterator", "Q3GDict", "Q3GDictIterator", "Q3GList",
  152. "Q3GListIterator", "Q3GListStdIterator", "Q3Grid", "Q3GridLayout",
  153. "Q3GridView", "Q3GroupBox", "Q3GVector", "Q3HBox", "Q3HBoxLayout",
  154. "Q3HButtonGroup", "Q3Header", "Q3HGroupBox", "Q3Http",
  155. "Q3HttpHeader", "Q3HttpRequestHeader", "Q3HttpResponseHeader",
  156. "Q3IconDrag", "Q3IconDragItem", "Q3IconView", "Q3IconViewItem",
  157. "Q3ImageDrag", "Q3IntBucket", "Q3IntCache", "Q3IntCacheIterator",
  158. "Q3IntDict", "Q3IntDictIterator", "Q3ListBox", "Q3ListBoxItem",
  159. "Q3ListBoxPixmap", "Q3ListBoxText", "Q3ListView", "Q3ListViewItem",
  160. "Q3ListViewItemIterator", "Q3LNode", "Q3LocalFs", "Q3MainWindow",
  161. "Q3MemArray", "Q3MimeSourceFactory", "Q3MultiLineEdit",
  162. "Q3NetworkOperation", "Q3NetworkProtocol", "Q3NetworkProtocolDict",
  163. "Q3NetworkProtocolFactory", "Q3NetworkProtocolFactoryBase",
  164. "Q3ObjectDictionary", "Q3PaintDeviceMetrics", "Q3Painter",
  165. "Q3Picture", "Q3PointArray", "Q3PolygonScanner", "Q3PopupMenu",
  166. "Q3Process", "Q3ProgressBar", "Q3ProgressDialog", "Q3PtrBucket",
  167. "Q3PtrCollection", "Q3PtrDict", "Q3PtrDictIterator", "Q3PtrList",
  168. "Q3PtrListIterator", "Q3PtrListStdIterator", "Q3PtrQueue",
  169. "Q3PtrStack", "Q3PtrVector", "Q3RangeControl", "Q3ScrollView",
  170. "Q3Semaphore", "Q3ServerSocket", "Q3Shared", "Q3Signal",
  171. "Q3SimpleRichText", "Q3SingleCleanupHandler", "Q3Socket",
  172. "Q3SocketDevice", "Q3SortedList", "Q3SpinWidget", "Q3SqlCursor",
  173. "Q3SqlEditorFactory", "Q3SqlFieldInfo", "Q3SqlFieldInfoList",
  174. "Q3SqlForm", "Q3SqlPropertyMap", "Q3SqlRecordInfo",
  175. "Q3SqlSelectCursor", "Q3StoredDrag", "Q3StrIList", "Q3StringBucket",
  176. "Q3StrIVec", "Q3StrList", "Q3StrListIterator", "Q3StrVec",
  177. "Q3StyleSheet", "Q3StyleSheetItem", "Q3SyntaxHighlighter",
  178. "Q3TabDialog", "Q3Table", "Q3TableItem", "Q3TableSelection",
  179. "Q3TextBrowser", "Q3TextDrag", "Q3TextEdit",
  180. "Q3TextEditOptimPrivate", "Q3TextStream", "Q3TextView",
  181. "Q3TimeEdit", "Q3ToolBar", "Q3TSFUNC", "Q3UriDrag", "Q3Url",
  182. "Q3UrlOperator", "Q3ValueList", "Q3ValueListConstIterator",
  183. "Q3ValueListIterator", "Q3ValueStack", "Q3ValueVector", "Q3VBox",
  184. "Q3VBoxLayout", "Q3VButtonGroup", "Q3VGroupBox", "Q3WhatsThis",
  185. "Q3WidgetStack", "Q3Wizard", "QAbstractButton",
  186. "QAbstractEventDispatcher", "QAbstractExtensionFactory",
  187. "QAbstractExtensionManager", "QAbstractFileEngine",
  188. "QAbstractFileEngineHandler", "QAbstractFileEngineIterator",
  189. "QAbstractFormBuilder", "QAbstractGraphicsShapeItem",
  190. "QAbstractItemDelegate", "QAbstractItemModel", "QAbstractItemView",
  191. "QAbstractListModel", "QAbstractMessageHandler",
  192. "QAbstractNetworkCache", "QAbstractPageSetupDialog",
  193. "QAbstractPrintDialog", "QAbstractProxyModel",
  194. "QAbstractScrollArea", "QAbstractSlider", "QAbstractSocket",
  195. "QAbstractSpinBox", "QAbstractTableModel",
  196. "QAbstractTextDocumentLayout", "QAbstractUndoItem",
  197. "QAbstractUriResolver", "QAbstractXmlNodeModel",
  198. "QAbstractXmlReceiver", "QAccessible", "QAccessible2Interface",
  199. "QAccessibleApplication", "QAccessibleBridge",
  200. "QAccessibleBridgeFactoryInterface", "QAccessibleBridgePlugin",
  201. "QAccessibleEditableTextInterface", "QAccessibleEvent",
  202. "QAccessibleFactoryInterface", "QAccessibleInterface",
  203. "QAccessibleInterfaceEx", "QAccessibleObject",
  204. "QAccessibleObjectEx", "QAccessiblePlugin",
  205. "QAccessibleSimpleEditableTextInterface",
  206. "QAccessibleTableInterface", "QAccessibleTextInterface",
  207. "QAccessibleValueInterface", "QAccessibleWidget",
  208. "QAccessibleWidgetEx", "QAction", "QActionEvent", "QActionGroup",
  209. "QApplication", "QArgument", "QAssistantClient", "QAtomicInt",
  210. "QAtomicPointer", "QAuthenticator", "QBasicAtomicInt",
  211. "QBasicAtomicPointer", "QBasicTimer", "QBitArray", "QBitmap",
  212. "QBitRef", "QBool", "QBoxLayout", "QBrush", "QBrushData", "QBuffer",
  213. "QButtonGroup", "QByteArray", "QByteArrayMatcher", "QByteRef",
  214. "QCache", "QCalendarWidget", "QCDEStyle", "QChar", "QCharRef",
  215. "QCheckBox", "QChildEvent", "QCleanlooksStyle", "QClipboard",
  216. "QClipboardEvent", "QCloseEvent", "QColor", "QColorDialog",
  217. "QColorGroup", "QColormap", "QColumnView", "QComboBox",
  218. "QCommandLinkButton", "QCommonStyle", "QCompleter",
  219. "QConicalGradient", "QConstString", "QContextMenuEvent", "QCOORD",
  220. "QCoreApplication", "QCryptographicHash", "QCursor", "QCursorShape",
  221. "QCustomEvent", "QDataStream", "QDataWidgetMapper", "QDate",
  222. "QDateEdit", "QDateTime", "QDateTimeEdit", "QDB2Driver",
  223. "QDB2Result", "QDBusAbstractAdaptor", "QDBusAbstractInterface",
  224. "QDBusArgument", "QDBusConnection", "QDBusConnectionInterface",
  225. "QDBusContext", "QDBusError", "QDBusInterface", "QDBusMessage",
  226. "QDBusMetaType", "QDBusObjectPath", "QDBusPendingCall",
  227. "QDBusPendingCallWatcher", "QDBusPendingReply",
  228. "QDBusPendingReplyData", "QDBusReply", "QDBusServer",
  229. "QDBusSignature", "QDBusVariant", "QDebug",
  230. "QDesignerActionEditorInterface", "QDesignerBrushManagerInterface",
  231. "QDesignerComponents", "QDesignerContainerExtension",
  232. "QDesignerCustomWidgetCollectionInterface",
  233. "QDesignerCustomWidgetInterface", "QDesignerDnDItemInterface",
  234. "QDesignerDynamicPropertySheetExtension", "QDesignerExportWidget",
  235. "QDesignerExtraInfoExtension", "QDesignerFormEditorInterface",
  236. "QDesignerFormEditorPluginInterface", "QDesignerFormWindowCursorInterface",
  237. "QDesignerFormWindowInterface", "QDesignerFormWindowManagerInterface",
  238. "QDesignerFormWindowToolInterface",
  239. "QDesignerIconCacheInterface", "QDesignerIntegrationInterface",
  240. "QDesignerLanguageExtension", "QDesignerLayoutDecorationExtension",
  241. "QDesignerMemberSheetExtension", "QDesignerMetaDataBaseInterface",
  242. "QDesignerMetaDataBaseItemInterface",
  243. "QDesignerObjectInspectorInterface", "QDesignerPromotionInterface",
  244. "QDesignerPropertyEditorInterface",
  245. "QDesignerPropertySheetExtension", "QDesignerResourceBrowserInterface",
  246. "QDesignerTaskMenuExtension", "QDesignerWidgetBoxInterface",
  247. "QDesignerWidgetDataBaseInterface", "QDesignerWidgetDataBaseItemInterface",
  248. "QDesignerWidgetFactoryInterface", "QDesktopServices",
  249. "QDesktopWidget", "QDial", "QDialog", "QDialogButtonBox", "QDir",
  250. "QDirIterator", "QDirModel", "QDockWidget", "QDomAttr",
  251. "QDomCDATASection", "QDomCharacterData", "QDomComment",
  252. "QDomDocument", "QDomDocumentFragment", "QDomDocumentType",
  253. "QDomElement", "QDomEntity", "QDomEntityReference",
  254. "QDomImplementation", "QDomNamedNodeMap", "QDomNode",
  255. "QDomNodeList", "QDomNotation", "QDomProcessingInstruction",
  256. "QDomText", "QDoubleSpinBox", "QDoubleValidator", "QDrag",
  257. "QDragEnterEvent", "QDragLeaveEvent", "QDragMoveEvent",
  258. "QDragResponseEvent", "QDropEvent", "QDynamicPropertyChangeEvent",
  259. "QErrorMessage", "QEvent", "QEventLoop", "QEventSizeOfChecker",
  260. "QExplicitlySharedDataPointer", "QExtensionFactory",
  261. "QExtensionManager", "QFactoryInterface", "QFile", "QFileDialog",
  262. "QFileIconProvider", "QFileInfo", "QFileInfoList",
  263. "QFileInfoListIterator", "QFileOpenEvent", "QFileSystemModel",
  264. "QFileSystemWatcher", "QFlag", "QFlags", "QFocusEvent",
  265. "QFocusFrame", "QFont", "QFontComboBox", "QFontDatabase",
  266. "QFontDialog", "QFontInfo", "QFontMetrics", "QFontMetricsF",
  267. "QForeachContainer", "QForeachContainerBase", "QFormBuilder",
  268. "QFormLayout", "QFrame", "QFSFileEngine", "QFtp", "QFuture",
  269. "QFutureInterface", "QFutureInterfaceBase", "QFutureIterator",
  270. "QFutureSynchronizer", "QFutureWatcher", "QFutureWatcherBase",
  271. "QGenericArgument", "QGenericReturnArgument", "QGLColormap",
  272. "QGLContext", "QGLFormat", "QGLFramebufferObject", "QGlobalStatic",
  273. "QGlobalStaticDeleter", "QGLPixelBuffer", "QGLWidget", "QGradient",
  274. "QGradientStop", "QGradientStops", "QGraphicsEllipseItem",
  275. "QGraphicsGridLayout", "QGraphicsItem", "QGraphicsItemAnimation",
  276. "QGraphicsItemGroup", "QGraphicsLayout", "QGraphicsLayoutItem",
  277. "QGraphicsLinearLayout", "QGraphicsLineItem", "QGraphicsPathItem",
  278. "QGraphicsPixmapItem", "QGraphicsPolygonItem",
  279. "QGraphicsProxyWidget", "QGraphicsRectItem", "QGraphicsScene",
  280. "QGraphicsSceneContextMenuEvent", "QGraphicsSceneDragDropEvent",
  281. "QGraphicsSceneEvent", "QGraphicsSceneHelpEvent",
  282. "QGraphicsSceneHoverEvent", "QGraphicsSceneMouseEvent",
  283. "QGraphicsSceneMoveEvent", "QGraphicsSceneResizeEvent",
  284. "QGraphicsSceneWheelEvent", "QGraphicsSimpleTextItem",
  285. "QGraphicsSvgItem", "QGraphicsTextItem", "QGraphicsView",
  286. "QGraphicsWidget", "QGridLayout", "QGroupBox", "QGtkStyle", "QHash",
  287. "QHashData", "QHashDummyNode", "QHashDummyValue", "QHashIterator",
  288. "QHashNode", "QHBoxLayout", "QHeaderView", "QHelpContentItem",
  289. "QHelpContentModel", "QHelpContentWidget", "QHelpEngine",
  290. "QHelpEngineCore", "QHelpEvent", "QHelpGlobal", "QHelpIndexModel",
  291. "QHelpIndexWidget", "QHelpSearchEngine", "QHelpSearchQuery",
  292. "QHelpSearchQueryWidget", "QHelpSearchResultWidget", "QHideEvent",
  293. "QHostAddress", "QHostInfo", "QHoverEvent", "QHttp", "QHttpHeader",
  294. "QHttpRequestHeader", "QHttpResponseHeader", "QIBaseDriver",
  295. "QIBaseResult", "QIcon", "QIconDragEvent", "QIconEngine",
  296. "QIconEngineFactoryInterface", "QIconEngineFactoryInterfaceV2",
  297. "QIconEnginePlugin", "QIconEnginePluginV2", "QIconEngineV2",
  298. "QIconSet", "QImage", "QImageIOHandler",
  299. "QImageIOHandlerFactoryInterface", "QImageIOPlugin", "QImageReader",
  300. "QImageTextKeyLang", "QImageWriter", "QIncompatibleFlag",
  301. "QInputContext", "QInputContextFactory",
  302. "QInputContextFactoryInterface", "QInputContextPlugin",
  303. "QInputDialog", "QInputEvent", "QInputMethodEvent", "Q_INT16",
  304. "Q_INT32", "Q_INT64", "Q_INT8", "QInternal", "QIntForSize",
  305. "QIntForType", "QIntValidator", "QIODevice", "Q_IPV6ADDR",
  306. "QIPv6Address", "QItemDelegate", "QItemEditorCreator",
  307. "QItemEditorCreatorBase", "QItemEditorFactory", "QItemSelection",
  308. "QItemSelectionModel", "QItemSelectionRange", "QKeyEvent",
  309. "QKeySequence", "QLabel", "QLatin1Char", "QLatin1String", "QLayout",
  310. "QLayoutItem", "QLayoutIterator", "QLCDNumber", "QLibrary",
  311. "QLibraryInfo", "QLine", "QLinearGradient", "QLineEdit", "QLineF",
  312. "QLinkedList", "QLinkedListData", "QLinkedListIterator",
  313. "QLinkedListNode", "QList", "QListData", "QListIterator",
  314. "QListView", "QListWidget", "QListWidgetItem", "Q_LLONG", "QLocale",
  315. "QLocalServer", "QLocalSocket", "Q_LONG", "QMacCompatGLenum",
  316. "QMacCompatGLint", "QMacCompatGLuint", "QMacGLCompatTypes",
  317. "QMacMime", "QMacPasteboardMime", "QMainWindow", "QMap", "QMapData",
  318. "QMapIterator", "QMapNode", "QMapPayloadNode", "QMatrix",
  319. "QMdiArea", "QMdiSubWindow", "QMenu", "QMenuBar",
  320. "QMenubarUpdatedEvent", "QMenuItem", "QMessageBox",
  321. "QMetaClassInfo", "QMetaEnum", "QMetaMethod", "QMetaObject",
  322. "QMetaObjectExtraData", "QMetaProperty", "QMetaType", "QMetaTypeId",
  323. "QMetaTypeId2", "QMimeData", "QMimeSource", "QModelIndex",
  324. "QModelIndexList", "QMotifStyle", "QMouseEvent", "QMoveEvent",
  325. "QMovie", "QMultiHash", "QMultiMap", "QMutableFutureIterator",
  326. "QMutableHashIterator", "QMutableLinkedListIterator",
  327. "QMutableListIterator", "QMutableMapIterator",
  328. "QMutableSetIterator", "QMutableStringListIterator",
  329. "QMutableVectorIterator", "QMutex", "QMutexLocker", "QMYSQLDriver",
  330. "QMYSQLResult", "QNetworkAccessManager", "QNetworkAddressEntry",
  331. "QNetworkCacheMetaData", "QNetworkCookie", "QNetworkCookieJar",
  332. "QNetworkDiskCache", "QNetworkInterface", "QNetworkProxy",
  333. "QNetworkProxyFactory", "QNetworkProxyQuery", "QNetworkReply",
  334. "QNetworkRequest", "QNoDebug", "QNoImplicitBoolCast", "QObject",
  335. "QObjectCleanupHandler", "QObjectData", "QObjectList",
  336. "QObjectUserData", "QOCIDriver", "QOCIResult", "QODBCDriver",
  337. "QODBCResult", "QPageSetupDialog", "QPaintDevice", "QPaintEngine",
  338. "QPaintEngineState", "QPainter", "QPainterPath",
  339. "QPainterPathPrivate", "QPainterPathStroker", "QPaintEvent",
  340. "QPair", "QPalette", "QPen", "QPersistentModelIndex", "QPicture",
  341. "QPictureFormatInterface", "QPictureFormatPlugin", "QPictureIO",
  342. "Q_PID", "QPixmap", "QPixmapCache", "QPlainTextDocumentLayout",
  343. "QPlainTextEdit", "QPlastiqueStyle", "QPluginLoader", "QPoint",
  344. "QPointer", "QPointF", "QPolygon", "QPolygonF", "QPrintDialog",
  345. "QPrintEngine", "QPrinter", "QPrinterInfo", "QPrintPreviewDialog",
  346. "QPrintPreviewWidget", "QProcess", "QProgressBar",
  347. "QProgressDialog", "QProxyModel", "QPSQLDriver", "QPSQLResult",
  348. "QPushButton", "QQueue", "QRadialGradient", "QRadioButton",
  349. "QReadLocker", "QReadWriteLock", "QRect", "QRectF", "QRegExp",
  350. "QRegExpValidator", "QRegion", "QResizeEvent", "QResource",
  351. "QReturnArgument", "QRgb", "QRubberBand", "QRunnable",
  352. "QScriptable", "QScriptClass", "QScriptClassPropertyIterator",
  353. "QScriptContext", "QScriptContextInfo", "QScriptContextInfoList",
  354. "QScriptEngine", "QScriptEngineAgent", "QScriptEngineDebugger",
  355. "QScriptExtensionInterface", "QScriptExtensionPlugin",
  356. "QScriptString", "QScriptSyntaxCheckResult", "QScriptValue",
  357. "QScriptValueIterator", "QScriptValueList", "QScrollArea",
  358. "QScrollBar", "QSemaphore", "QSessionManager", "QSet",
  359. "QSetIterator", "QSettings", "QSharedData", "QSharedDataPointer",
  360. "QSharedMemory", "QSharedPointer", "QShortcut", "QShortcutEvent",
  361. "QShowEvent", "QSignalMapper", "QSignalSpy", "QSimpleXmlNodeModel",
  362. "QSize", "QSizeF", "QSizeGrip", "QSizePolicy", "QSlider",
  363. "QSocketNotifier", "QSortFilterProxyModel", "QSound",
  364. "QSourceLocation", "QSpacerItem", "QSpinBox", "QSplashScreen",
  365. "QSplitter", "QSplitterHandle", "QSpontaneKeyEvent", "QSqlDatabase",
  366. "QSqlDriver", "QSqlDriverCreator", "QSqlDriverCreatorBase",
  367. "QSqlDriverFactoryInterface", "QSqlDriverPlugin", "QSqlError",
  368. "QSqlField", "QSqlIndex", "QSQLite2Driver", "QSQLite2Result",
  369. "QSQLiteDriver", "QSQLiteResult", "QSqlQuery", "QSqlQueryModel",
  370. "QSqlRecord", "QSqlRelation", "QSqlRelationalDelegate",
  371. "QSqlRelationalTableModel", "QSqlResult", "QSqlTableModel", "QSsl",
  372. "QSslCertificate", "QSslCipher", "QSslConfiguration", "QSslError",
  373. "QSslKey", "QSslSocket", "QStack", "QStackedLayout",
  374. "QStackedWidget", "QStandardItem", "QStandardItemEditorCreator",
  375. "QStandardItemModel", "QStatusBar", "QStatusTipEvent",
  376. "QStdWString", "QString", "QStringList", "QStringListIterator",
  377. "QStringListModel", "QStringMatcher", "QStringRef", "QStyle",
  378. "QStyledItemDelegate", "QStyleFactory", "QStyleFactoryInterface",
  379. "QStyleHintReturn", "QStyleHintReturnMask",
  380. "QStyleHintReturnVariant", "QStyleOption", "QStyleOptionButton",
  381. "QStyleOptionComboBox", "QStyleOptionComplex",
  382. "QStyleOptionDockWidget", "QStyleOptionDockWidgetV2",
  383. "QStyleOptionFocusRect", "QStyleOptionFrame", "QStyleOptionFrameV2",
  384. "QStyleOptionFrameV3", "QStyleOptionGraphicsItem",
  385. "QStyleOptionGroupBox", "QStyleOptionHeader",
  386. "QStyleOptionMenuItem", "QStyleOptionProgressBar",
  387. "QStyleOptionProgressBarV2", "QStyleOptionQ3DockWindow",
  388. "QStyleOptionQ3ListView", "QStyleOptionQ3ListViewItem",
  389. "QStyleOptionRubberBand", "QStyleOptionSizeGrip",
  390. "QStyleOptionSlider", "QStyleOptionSpinBox", "QStyleOptionTab",
  391. "QStyleOptionTabBarBase", "QStyleOptionTabBarBaseV2",
  392. "QStyleOptionTabV2", "QStyleOptionTabV3",
  393. "QStyleOptionTabWidgetFrame", "QStyleOptionTitleBar",
  394. "QStyleOptionToolBar", "QStyleOptionToolBox",
  395. "QStyleOptionToolBoxV2", "QStyleOptionToolButton",
  396. "QStyleOptionViewItem", "QStyleOptionViewItemV2",
  397. "QStyleOptionViewItemV3", "QStyleOptionViewItemV4", "QStylePainter",
  398. "QStylePlugin", "QSvgGenerator", "QSvgRenderer", "QSvgWidget",
  399. "QSyntaxHighlighter", "QSysInfo", "QSystemLocale",
  400. "QSystemSemaphore", "QSystemTrayIcon", "Qt", "Qt3Support",
  401. "QTabBar", "QTabletEvent", "QTableView", "QTableWidget",
  402. "QTableWidgetItem", "QTableWidgetSelectionRange", "QTabWidget",
  403. "QtAlgorithms", "QtAssistant", "QtCleanUpFunction",
  404. "QtConcurrentFilter", "QtConcurrentMap", "QtConcurrentRun",
  405. "QtContainerFwd", "QtCore", "QTcpServer", "QTcpSocket", "QtDBus",
  406. "QtDebug", "QtDesigner", "QTDSDriver", "QTDSResult",
  407. "QTemporaryFile", "QtEndian", "QTest", "QTestAccessibility",
  408. "QTestAccessibilityEvent", "QTestData", "QTestDelayEvent",
  409. "QTestEvent", "QTestEventList", "QTestEventLoop",
  410. "QTestKeyClicksEvent", "QTestKeyEvent", "QTestMouseEvent",
  411. "QtEvents", "QTextBlock", "QTextBlockFormat", "QTextBlockGroup",
  412. "QTextBlockUserData", "QTextBoundaryFinder", "QTextBrowser",
  413. "QTextCharFormat", "QTextCodec", "QTextCodecFactoryInterface",
  414. "QTextCodecPlugin", "QTextCursor", "QTextDecoder", "QTextDocument",
  415. "QTextDocumentFragment", "QTextDocumentWriter", "QTextEdit",
  416. "QTextEncoder", "QTextFormat", "QTextFragment", "QTextFrame",
  417. "QTextFrameFormat", "QTextFrameLayoutData", "QTextImageFormat",
  418. "QTextInlineObject", "QTextIStream", "QTextItem", "QTextLayout",
  419. "QTextLength", "QTextLine", "QTextList", "QTextListFormat",
  420. "QTextObject", "QTextObjectInterface", "QTextOption",
  421. "QTextOStream", "QTextStream", "QTextStreamFunction",
  422. "QTextStreamManipulator", "QTextTable", "QTextTableCell",
  423. "QTextTableCellFormat", "QTextTableFormat", "QtGlobal", "QtGui",
  424. "QtHelp", "QThread", "QThreadPool", "QThreadStorage",
  425. "QThreadStorageData", "QTime", "QTimeEdit", "QTimeLine", "QTimer",
  426. "QTimerEvent", "QtMsgHandler", "QtNetwork", "QToolBar",
  427. "QToolBarChangeEvent", "QToolBox", "QToolButton", "QToolTip",
  428. "QtOpenGL", "QtPlugin", "QtPluginInstanceFunction", "QTransform",
  429. "QTranslator", "QTreeView", "QTreeWidget", "QTreeWidgetItem",
  430. "QTreeWidgetItemIterator", "QTS", "QtScript", "QtScriptTools",
  431. "QtSql", "QtSvg", "QtTest", "QtUiTools", "QtWebKit", "QtXml",
  432. "QtXmlPatterns", "QTypeInfo", "QUdpSocket", "QUiLoader",
  433. "QUintForSize", "QUintForType", "QUndoCommand", "QUndoGroup",
  434. "QUndoStack", "QUndoView", "QUnixPrintWidget", "QUpdateLaterEvent",
  435. "QUrl", "QUrlInfo", "QUuid", "QValidator", "QVariant",
  436. "QVariantComparisonHelper", "QVariantHash", "QVariantList",
  437. "QVariantMap", "QVarLengthArray", "QVBoxLayout", "QVector",
  438. "QVectorData", "QVectorIterator", "QVectorTypedData",
  439. "QWaitCondition", "QWeakPointer", "QWebDatabase", "QWebFrame",
  440. "QWebHistory", "QWebHistoryInterface", "QWebHistoryItem",
  441. "QWebHitTestResult", "QWebPage", "QWebPluginFactory",
  442. "QWebSecurityOrigin", "QWebSettings", "QWebView", "QWhatsThis",
  443. "QWhatsThisClickedEvent", "QWheelEvent", "QWidget", "QWidgetAction",
  444. "QWidgetData", "QWidgetItem", "QWidgetItemV2", "QWidgetList",
  445. "QWidgetMapper", "QWidgetSet", "QWindowsCEStyle", "QWindowsMime",
  446. "QWindowsMobileStyle", "QWindowsStyle", "QWindowStateChangeEvent",
  447. "QWindowsVistaStyle", "QWindowsXPStyle", "QWizard", "QWizardPage",
  448. "QWMatrix", "QWorkspace", "QWriteLocker", "QX11EmbedContainer",
  449. "QX11EmbedWidget", "QX11Info", "QXmlAttributes",
  450. "QXmlContentHandler", "QXmlDeclHandler", "QXmlDefaultHandler",
  451. "QXmlDTDHandler", "QXmlEntityResolver", "QXmlErrorHandler",
  452. "QXmlFormatter", "QXmlInputSource", "QXmlItem",
  453. "QXmlLexicalHandler", "QXmlLocator", "QXmlName", "QXmlNamePool",
  454. "QXmlNamespaceSupport", "QXmlNodeModelIndex", "QXmlParseException",
  455. "QXmlQuery", "QXmlReader", "QXmlResultItems", "QXmlSerializer",
  456. "QXmlSimpleReader", "QXmlStreamAttribute", "QXmlStreamAttributes",
  457. "QXmlStreamEntityDeclaration", "QXmlStreamEntityDeclarations",
  458. "QXmlStreamEntityResolver", "QXmlStreamNamespaceDeclaration",
  459. "QXmlStreamNamespaceDeclarations", "QXmlStreamNotationDeclaration",
  460. "QXmlStreamNotationDeclarations", "QXmlStreamReader",
  461. "QXmlStreamStringRef", "QXmlStreamWriter"
  462. )
  463. ),
  464. 'SYMBOLS' => array(
  465. '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':', ',', ';', '|', '<', '>'
  466. ),
  467. 'CASE_SENSITIVE' => array(
  468. GESHI_COMMENTS => false,
  469. 1 => true,
  470. 2 => true,
  471. 3 => true,
  472. 4 => true,
  473. 5 => true,
  474. ),
  475. 'STYLES' => array(
  476. 'KEYWORDS' => array(
  477. 1 => 'color: #000000; font-weight:bold;',
  478. 2 => 'color: #0057AE;',
  479. 3 => 'color: #2B74C7;',
  480. 4 => 'color: #0057AE;',
  481. 5 => 'color: #22aadd;'
  482. ),
  483. 'COMMENTS' => array(
  484. 1 => 'color: #888888;',
  485. 2 => 'color: #006E28;',
  486. 'MULTI' => 'color: #888888; font-style: italic;'
  487. ),
  488. 'ESCAPE_CHAR' => array(
  489. 0 => 'color: #000099; font-weight: bold;',
  490. 1 => 'color: #000099; font-weight: bold;',
  491. 2 => 'color: #660099; font-weight: bold;',
  492. 3 => 'color: #660099; font-weight: bold;',
  493. 4 => 'color: #660099; font-weight: bold;',
  494. 5 => 'color: #006699; font-weight: bold;',
  495. 'HARD' => '',
  496. ),
  497. 'BRACKETS' => array(
  498. 0 => 'color: #006E28;'
  499. ),
  500. 'STRINGS' => array(
  501. 0 => 'color: #BF0303;'
  502. ),
  503. 'NUMBERS' => array(
  504. 0 => 'color: #B08000;',
  505. GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
  506. GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
  507. GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
  508. GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
  509. GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
  510. GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
  511. GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
  512. ),
  513. 'METHODS' => array(
  514. 1 => 'color: #2B74C7;',
  515. 2 => 'color: #2B74C7;',
  516. 3 => 'color: #2B74C7;'
  517. ),
  518. 'SYMBOLS' => array(
  519. 0 => 'color: #006E28;'
  520. ),
  521. 'REGEXPS' => array(
  522. ),
  523. 'SCRIPT' => array(
  524. )
  525. ),
  526. 'URLS' => array(
  527. 1 => '',
  528. 2 => '',
  529. 3 => '',
  530. 4 => '',
  531. 5 => 'http://doc.trolltech.com/latest/{FNAMEL}.html'
  532. ),
  533. 'OOLANG' => true,
  534. 'OBJECT_SPLITTERS' => array(
  535. 1 => '.',
  536. 2 => '::',
  537. 3 => '-&gt;',
  538. ),
  539. 'REGEXPS' => array(
  540. ),
  541. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  542. 'SCRIPT_DELIMITERS' => array(
  543. ),
  544. 'HIGHLIGHT_STRICT_BLOCK' => array(
  545. ),
  546. 'TAB_WIDTH' => 4,
  547. 'PARSER_CONTROL' => array(
  548. 'KEYWORDS' => array(
  549. 'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
  550. 'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%\\-])"
  551. ),
  552. 'OOLANG' => array(
  553. 'MATCH_AFTER' => '~?[a-zA-Z][a-zA-Z0-9_]*',
  554. )
  555. )
  556. );
  557. ?>