SIP4 python bindings for TQt
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

qnamespace.sip 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903
  1. // This is the SIP interface definition for the TQt v2+ TQt class.
  2. //
  3. // Copyright (c) 2007
  4. // Riverbank Computing Limited <info@riverbankcomputing.co.uk>
  5. //
  6. // This file is part of PyTQt.
  7. //
  8. // This copy of PyTQt is free software; you can redistribute it and/or modify it
  9. // under the terms of the GNU General Public License as published by the Free
  10. // Software Foundation; either version 2, or (at your option) any later
  11. // version.
  12. //
  13. // PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
  14. // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  16. // details.
  17. //
  18. // You should have received a copy of the GNU General Public License along with
  19. // PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
  20. // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21. %ExportedDoc
  22. <Sect2><Title>TQt (TQt v2+)</Title>
  23. <Para>
  24. <Literal>TQt</Literal> is fully implemented.
  25. </Para>
  26. </Sect2>
  27. %End
  28. %If (TQt_2_00 -)
  29. class TQt
  30. {
  31. %TypeHeaderCode
  32. #include <qnamespace.h>
  33. %End
  34. public:
  35. static const TQColor &color0;
  36. static const TQColor &color1;
  37. static const TQColor &black;
  38. static const TQColor &white;
  39. static const TQColor &darkGray;
  40. static const TQColor &gray;
  41. static const TQColor &lightGray;
  42. static const TQColor &red;
  43. static const TQColor &green;
  44. static const TQColor &blue;
  45. static const TQColor &cyan;
  46. static const TQColor &magenta;
  47. static const TQColor &yellow;
  48. static const TQColor &darkRed;
  49. static const TQColor &darkGreen;
  50. static const TQColor &darkBlue;
  51. static const TQColor &darkCyan;
  52. static const TQColor &darkMagenta;
  53. static const TQColor &darkYellow;
  54. enum ButtonState {
  55. NoButton,
  56. LeftButton,
  57. RightButton,
  58. MidButton,
  59. MouseButtonMask,
  60. ShiftButton,
  61. ControlButton,
  62. AltButton,
  63. %If (TQt_3_0_0 -)
  64. MetaButton,
  65. %End
  66. KeyButtonMask,
  67. %If (TQt_2_2_0 -)
  68. Keypad,
  69. %End
  70. };
  71. enum Orientation {
  72. Horizontal,
  73. Vertical
  74. };
  75. %If (TQt_3_2_0 -)
  76. enum SortOrder {
  77. Ascending,
  78. Descending
  79. };
  80. %End
  81. %If (- TQt_3_0_0)
  82. enum AlignmentFlags {
  83. AlignLeft,
  84. AlignRight,
  85. AlignHCenter,
  86. AlignTop,
  87. AlignBottom,
  88. AlignVCenter,
  89. AlignCenter,
  90. SingleLine,
  91. DontClip,
  92. ExpandTabs,
  93. ShowPrefix,
  94. WordBreak
  95. };
  96. %End
  97. %If (TQt_3_0_0 -)
  98. enum AlignmentFlags {
  99. AlignAuto,
  100. AlignLeft,
  101. AlignRight,
  102. AlignHCenter,
  103. AlignJustify,
  104. AlignHorizontal_Mask,
  105. AlignTop,
  106. AlignBottom,
  107. AlignVCenter,
  108. AlignVertical_Mask,
  109. AlignCenter
  110. };
  111. enum TextFlags {
  112. SingleLine,
  113. DontClip,
  114. ExpandTabs,
  115. ShowPrefix,
  116. WordBreak,
  117. BreakAnywhere,
  118. DontPrint, // Internal
  119. NoAccel
  120. };
  121. typedef uint WState;
  122. // WidgetState isn't part of the public API but is used in code
  123. // generated by uic/pyuic, so we implement the minimum required.
  124. enum WidgetState {
  125. WState_Polished
  126. };
  127. %End
  128. typedef uint WFlags;
  129. enum WidgetFlags {
  130. WType_TopLevel,
  131. %If (- TQt_3_0_0)
  132. WType_Modal,
  133. %End
  134. %If (TQt_3_0_0 -)
  135. WType_Dialog,
  136. %End
  137. WType_Popup,
  138. WType_Desktop,
  139. WType_Mask,
  140. WStyle_Customize,
  141. WStyle_NormalBorder,
  142. WStyle_DialogBorder,
  143. WStyle_NoBorder,
  144. WStyle_Title,
  145. WStyle_SysMenu,
  146. WStyle_Minimize,
  147. WStyle_Maximize,
  148. WStyle_MinMax,
  149. WStyle_Tool,
  150. WStyle_StaysOnTop,
  151. %If (- TQt_3_0_0)
  152. WStyle_Dialog,
  153. %End
  154. %If (- TQt_2_1_0)
  155. WStyle_Reserved2,
  156. WStyle_Reserved3,
  157. %End
  158. %If (TQt_2_1_0 -)
  159. WStyle_ContextHelp,
  160. %End
  161. %If (TQt_2_1_0 - TQt_3_0_0)
  162. WStyle_NoBorderEx,
  163. %End
  164. %If (TQt_3_0_0 -)
  165. WStyle_Reserved,
  166. %End
  167. WStyle_Mask,
  168. WDestructiveClose,
  169. WPaintDesktop,
  170. WPaintUnclipped,
  171. WPaintClever,
  172. WResizeNoErase, // Obsolete
  173. WMouseNoMask,
  174. %If (- TQt_3_0_0)
  175. WNorthWestGravity,
  176. %End
  177. %If (TQt_3_0_0 -)
  178. WStaticContents,
  179. %End
  180. %If (TQt_2_1_0 -)
  181. WRepaintNoErase, // Obsolete
  182. WX11BypassWM,
  183. %End
  184. %If (TQt_3_0_0 -)
  185. WWinOwnDC,
  186. %End
  187. %If (TQt_2_2_0 -)
  188. WGroupLeader,
  189. %End
  190. %If (TQt_3_0_0 -)
  191. WShowModal,
  192. WNoMousePropagation,
  193. WSubWindow,
  194. %End
  195. %If (TQt_3_1_0 -)
  196. WStyle_Splash,
  197. %End
  198. %If (TQt_3_2_0 -)
  199. WNoAutoErase,
  200. %End
  201. };
  202. %If (TQt_3_3_0 -)
  203. enum WindowState {
  204. WindowNoState,
  205. WindowMinimized,
  206. WindowMaximized,
  207. WindowFullScreen,
  208. WindowActive
  209. };
  210. %End
  211. enum ImageConversionFlags {
  212. ColorMode_Mask,
  213. AutoColor,
  214. ColorOnly,
  215. MonoOnly,
  216. AlphaDither_Mask,
  217. ThresholdAlphaDither,
  218. OrderedAlphaDither,
  219. DiffuseAlphaDither,
  220. Dither_Mask,
  221. DiffuseDither,
  222. OrderedDither,
  223. ThresholdDither,
  224. DitherMode_Mask,
  225. AutoDither,
  226. PreferDither,
  227. AvoidDither
  228. };
  229. enum BGMode {
  230. TransparentMode,
  231. OpaqueMode
  232. };
  233. %If (- TQt_3_0_0)
  234. enum PaintUnit {
  235. PixelUnit,
  236. LoMetricUnit,
  237. HiMetricUnit,
  238. LoEnglishUnit,
  239. HiEnglishUnit,
  240. TwipsUnit
  241. };
  242. %End
  243. enum GUIStyle {
  244. %If (- TQt_3_0_0)
  245. MacStyle,
  246. %End
  247. WindowsStyle,
  248. %If (- TQt_3_0_0)
  249. Win3Style,
  250. PMStyle,
  251. %End
  252. MotifStyle
  253. };
  254. %If (TQt_3_1_0 -)
  255. enum SequenceMatch {
  256. NoMatch,
  257. PartialMatch,
  258. Identical
  259. };
  260. %End
  261. enum Modifier {
  262. %If (TQt_3_1_0 -)
  263. META,
  264. %End
  265. SHIFT,
  266. CTRL,
  267. ALT,
  268. MODIFIER_MASK,
  269. UNICODE_ACCEL,
  270. ASCII_ACCEL
  271. };
  272. enum Key {
  273. Key_Escape,
  274. Key_Tab,
  275. Key_Backtab,
  276. Key_BackTab,
  277. Key_Backspace,
  278. Key_BackSpace,
  279. Key_Return,
  280. Key_Enter,
  281. Key_Insert,
  282. Key_Delete,
  283. Key_Pause,
  284. Key_Print,
  285. Key_SysReq,
  286. %If (TQt_3_1_0 -)
  287. Key_Clear,
  288. %End
  289. Key_Home,
  290. Key_End,
  291. Key_Left,
  292. Key_Up,
  293. Key_Right,
  294. Key_Down,
  295. Key_Prior,
  296. Key_PageUp,
  297. Key_Next,
  298. Key_PageDown,
  299. Key_Shift,
  300. Key_Control,
  301. Key_Meta,
  302. Key_Alt,
  303. Key_CapsLock,
  304. Key_NumLock,
  305. Key_ScrollLock,
  306. Key_F1,
  307. Key_F2,
  308. Key_F3,
  309. Key_F4,
  310. Key_F5,
  311. Key_F6,
  312. Key_F7,
  313. Key_F8,
  314. Key_F9,
  315. Key_F10,
  316. Key_F11,
  317. Key_F12,
  318. Key_F13,
  319. Key_F14,
  320. Key_F15,
  321. Key_F16,
  322. Key_F17,
  323. Key_F18,
  324. Key_F19,
  325. Key_F20,
  326. Key_F21,
  327. Key_F22,
  328. Key_F23,
  329. Key_F24,
  330. Key_F25,
  331. Key_F26,
  332. Key_F27,
  333. Key_F28,
  334. Key_F29,
  335. Key_F30,
  336. Key_F31,
  337. Key_F32,
  338. Key_F33,
  339. Key_F34,
  340. Key_F35,
  341. Key_Super_L,
  342. Key_Super_R,
  343. Key_Menu,
  344. Key_Hyper_L,
  345. Key_Hyper_R,
  346. %If (TQt_3_0_0 -)
  347. Key_Help,
  348. Key_Direction_L,
  349. Key_Direction_R,
  350. %End
  351. Key_Space,
  352. Key_Any,
  353. Key_Exclam,
  354. Key_QuoteDbl,
  355. Key_NumberSign,
  356. Key_Dollar,
  357. Key_Percent,
  358. Key_Ampersand,
  359. Key_Apostrophe,
  360. Key_ParenLeft,
  361. Key_ParenRight,
  362. Key_Asterisk,
  363. Key_Plus,
  364. Key_Comma,
  365. Key_Minus,
  366. Key_Period,
  367. Key_Slash,
  368. Key_0,
  369. Key_1,
  370. Key_2,
  371. Key_3,
  372. Key_4,
  373. Key_5,
  374. Key_6,
  375. Key_7,
  376. Key_8,
  377. Key_9,
  378. Key_Colon,
  379. Key_Semicolon,
  380. Key_Less,
  381. Key_Equal,
  382. Key_Greater,
  383. Key_Question,
  384. Key_At,
  385. Key_A,
  386. Key_B,
  387. Key_C,
  388. Key_D,
  389. Key_E,
  390. Key_F,
  391. Key_G,
  392. Key_H,
  393. Key_I,
  394. Key_J,
  395. Key_K,
  396. Key_L,
  397. Key_M,
  398. Key_N,
  399. Key_O,
  400. Key_P,
  401. Key_Q,
  402. Key_R,
  403. Key_S,
  404. Key_T,
  405. Key_U,
  406. Key_V,
  407. Key_W,
  408. Key_X,
  409. Key_Y,
  410. Key_Z,
  411. Key_BracketLeft,
  412. Key_Backslash,
  413. Key_BracketRight,
  414. Key_AsciiCircum,
  415. Key_Underscore,
  416. Key_QuoteLeft,
  417. Key_BraceLeft,
  418. Key_Bar,
  419. Key_BraceRight,
  420. Key_AsciiTilde,
  421. Key_nobreakspace,
  422. Key_exclamdown,
  423. Key_cent,
  424. Key_sterling,
  425. Key_currency,
  426. Key_yen,
  427. Key_brokenbar,
  428. Key_section,
  429. Key_diaeresis,
  430. Key_copyright,
  431. Key_ordfeminine,
  432. Key_guillemotleft,
  433. Key_notsign,
  434. Key_hyphen,
  435. Key_registered,
  436. Key_macron,
  437. Key_degree,
  438. Key_plusminus,
  439. Key_twosuperior,
  440. Key_threesuperior,
  441. Key_acute,
  442. Key_mu,
  443. Key_paragraph,
  444. Key_periodcentered,
  445. Key_cedilla,
  446. Key_onesuperior,
  447. Key_masculine,
  448. Key_guillemotright,
  449. Key_onequarter,
  450. Key_onehalf,
  451. Key_threequarters,
  452. Key_questiondown,
  453. Key_Agrave,
  454. Key_Aacute,
  455. Key_Acircumflex,
  456. Key_Atilde,
  457. Key_Adiaeresis,
  458. Key_Aring,
  459. Key_AE,
  460. Key_Ccedilla,
  461. Key_Egrave,
  462. Key_Eacute,
  463. Key_Ecircumflex,
  464. Key_Ediaeresis,
  465. Key_Igrave,
  466. Key_Iacute,
  467. Key_Icircumflex,
  468. Key_Idiaeresis,
  469. Key_ETH,
  470. Key_Ntilde,
  471. Key_Ograve,
  472. Key_Oacute,
  473. Key_Ocircumflex,
  474. Key_Otilde,
  475. Key_Odiaeresis,
  476. Key_multiply,
  477. Key_Ooblique,
  478. Key_Ugrave,
  479. Key_Uacute,
  480. Key_Ucircumflex,
  481. Key_Udiaeresis,
  482. Key_Yacute,
  483. Key_THORN,
  484. Key_ssharp,
  485. Key_agrave,
  486. Key_aacute,
  487. Key_acircumflex,
  488. Key_atilde,
  489. Key_adiaeresis,
  490. Key_aring,
  491. Key_ae,
  492. Key_ccedilla,
  493. Key_egrave,
  494. Key_eacute,
  495. Key_ecircumflex,
  496. Key_ediaeresis,
  497. Key_igrave,
  498. Key_iacute,
  499. Key_icircumflex,
  500. Key_idiaeresis,
  501. Key_eth,
  502. Key_ntilde,
  503. Key_ograve,
  504. Key_oacute,
  505. Key_ocircumflex,
  506. Key_otilde,
  507. Key_odiaeresis,
  508. Key_division,
  509. Key_oslash,
  510. Key_ugrave,
  511. Key_uacute,
  512. Key_ucircumflex,
  513. Key_udiaeresis,
  514. Key_yacute,
  515. Key_thorn,
  516. Key_ydiaeresis,
  517. %If (TQt_3_1_0 -)
  518. Key_Back,
  519. Key_Forward,
  520. Key_Stop,
  521. Key_Refresh,
  522. Key_VolumeDown,
  523. Key_VolumeMute,
  524. Key_VolumeUp,
  525. Key_BassBoost,
  526. Key_BassUp,
  527. Key_BassDown,
  528. Key_TrebleUp,
  529. Key_TrebleDown,
  530. Key_MediaPlay,
  531. Key_MediaStop,
  532. Key_MediaPrev,
  533. Key_MediaNext,
  534. Key_MediaRecord,
  535. Key_HomePage,
  536. Key_Favorites,
  537. Key_Search,
  538. Key_Standby,
  539. Key_OpenUrl,
  540. Key_LaunchMail,
  541. Key_LaunchMedia,
  542. Key_Launch0,
  543. Key_Launch1,
  544. Key_Launch2,
  545. Key_Launch3,
  546. Key_Launch4,
  547. Key_Launch5,
  548. Key_Launch6,
  549. Key_Launch7,
  550. Key_Launch8,
  551. Key_Launch9,
  552. Key_LaunchA,
  553. Key_LaunchB,
  554. Key_LaunchC,
  555. Key_LaunchD,
  556. Key_LaunchE,
  557. Key_LaunchF,
  558. Key_MediaLast,
  559. %End
  560. Key_unknown
  561. };
  562. enum ArrowType {
  563. UpArrow,
  564. DownArrow,
  565. LeftArrow,
  566. RightArrow
  567. };
  568. enum RasterOp {
  569. CopyROP,
  570. OrROP,
  571. XorROP,
  572. NotAndROP,
  573. EraseROP,
  574. NotCopyROP,
  575. NotOrROP,
  576. NotXorROP,
  577. AndROP,
  578. NotEraseROP,
  579. NotROP,
  580. ClearROP,
  581. SetROP,
  582. NopROP,
  583. AndNotROP,
  584. OrNotROP,
  585. NandROP,
  586. NorROP,
  587. LastROP
  588. };
  589. enum PenStyle {
  590. NoPen,
  591. SolidLine,
  592. DashLine,
  593. DotLine,
  594. DashDotLine,
  595. DashDotDotLine,
  596. %If (TQt_2_1_0 -)
  597. MPenStyle
  598. %End
  599. };
  600. %If (TQt_2_1_0 -)
  601. enum PenCapStyle {
  602. FlatCap,
  603. SquareCap,
  604. RoundCap,
  605. MPenCapStyle
  606. };
  607. enum PenJoinStyle {
  608. MiterJoin,
  609. BevelJoin,
  610. RoundJoin,
  611. MPenJoinStyle
  612. };
  613. %End
  614. enum BrushStyle {
  615. NoBrush,
  616. SolidPattern,
  617. Dense1Pattern,
  618. Dense2Pattern,
  619. Dense3Pattern,
  620. Dense4Pattern,
  621. Dense5Pattern,
  622. Dense6Pattern,
  623. Dense7Pattern,
  624. HorPattern,
  625. VerPattern,
  626. CrossPattern,
  627. BDiagPattern,
  628. FDiagPattern,
  629. DiagCrossPattern,
  630. CustomPattern
  631. };
  632. %If (TQt_3_1_0 -)
  633. enum MacintoshVersion {
  634. MV_Unknown,
  635. MV_9,
  636. %If (TQt_3_2_0 -)
  637. MV_10_DOT_0,
  638. %End
  639. MV_10_DOT_1,
  640. MV_10_DOT_2,
  641. %If (TQt_3_2_0 -)
  642. MV_10_DOT_3,
  643. %End
  644. %If (TQt_3_3_5 -)
  645. MV_10_DOT_4,
  646. %End
  647. %If (TQt_3_2_0 -)
  648. MV_CHEETAH,
  649. MV_PUMA,
  650. %End
  651. MV_JAGUAR,
  652. %If (TQt_3_2_0 -)
  653. MV_PANTHER,
  654. %End
  655. %If (TQt_3_3_5 -)
  656. MV_TIGER,
  657. %End
  658. };
  659. %End
  660. enum WindowsVersion {
  661. WV_32s,
  662. WV_95,
  663. WV_98,
  664. %If (TQt_3_0_0 -)
  665. WV_Me,
  666. %End
  667. %If (TQt_2_1_0 -)
  668. WV_DOS_based,
  669. %End
  670. WV_NT,
  671. %If (TQt_2_1_0 -)
  672. WV_2000,
  673. %End
  674. %If (TQt_3_0_0 -)
  675. WV_XP,
  676. %End
  677. %If (TQt_3_3_0 -)
  678. WV_2003,
  679. %End
  680. %If (TQt_3_3_6 -)
  681. WV_VISTA,
  682. %End
  683. %If (TQt_2_1_0 -)
  684. WV_NT_based,
  685. %End
  686. %If (TQt_3_3_0 -)
  687. WV_CE,
  688. WV_CENET,
  689. WV_CE_based,
  690. %End
  691. };
  692. %If (TQt_2_2_0 -)
  693. enum UIEffect {
  694. UI_General,
  695. UI_AnimateMenu,
  696. UI_FadeMenu,
  697. UI_AnimateCombo,
  698. UI_AnimateTooltip,
  699. UI_FadeTooltip,
  700. %If (TQt_3_2_0 -)
  701. UI_AnimateToolBox,
  702. %End
  703. };
  704. %End
  705. %If (TQt_3_0_0 -)
  706. enum CursorShape {
  707. ArrowCursor,
  708. UpArrowCursor,
  709. CrossCursor,
  710. WaitCursor,
  711. IbeamCursor,
  712. SizeVerCursor,
  713. SizeHorCursor,
  714. SizeBDiagCursor,
  715. SizeFDiagCursor,
  716. SizeAllCursor,
  717. BlankCursor,
  718. SplitVCursor,
  719. SplitHCursor,
  720. PointingHandCursor,
  721. ForbiddenCursor,
  722. WhatsThisCursor,
  723. %If (TQt_3_3_0 -)
  724. BusyCursor,
  725. %End
  726. LastCursor,
  727. BitmapCursor
  728. };
  729. %End
  730. static const TQCursor &arrowCursor;
  731. static const TQCursor &upArrowCursor;
  732. static const TQCursor &crossCursor;
  733. static const TQCursor &waitCursor;
  734. static const TQCursor &ibeamCursor;
  735. static const TQCursor &sizeVerCursor;
  736. static const TQCursor &sizeHorCursor;
  737. static const TQCursor &sizeBDiagCursor;
  738. static const TQCursor &sizeFDiagCursor;
  739. static const TQCursor &sizeAllCursor;
  740. static const TQCursor &blankCursor;
  741. static const TQCursor &splitVCursor;
  742. static const TQCursor &splitHCursor;
  743. static const TQCursor &pointingHandCursor;
  744. %If (TQt_2_1_0 -)
  745. static const TQCursor &forbiddenCursor;
  746. %End
  747. %If (TQt_3_0_0 -)
  748. static const TQCursor &whatsThisCursor;
  749. %End
  750. %If (TQt_3_3_0 -)
  751. static const TQCursor &busyCursor;
  752. %End
  753. enum TextFormat {
  754. PlainText,
  755. RichText,
  756. AutoText,
  757. %If (TQt_3_1_0 -)
  758. LogText,
  759. %End
  760. };
  761. %If (TQt_3_1_0 -)
  762. enum AnchorAttribute {
  763. AnchorName,
  764. AnchorHref
  765. };
  766. %End
  767. %If (TQt_3_0_0 -)
  768. enum Dock {
  769. DockUnmanaged,
  770. DockTornOff,
  771. DockTop,
  772. DockBottom,
  773. DockRight,
  774. DockLeft,
  775. DockMinimized
  776. };
  777. enum DateFormat {
  778. TextDate,
  779. ISODate,
  780. LocalDate
  781. };
  782. %If (TQt_3_1_0 -)
  783. enum TimeSpec {
  784. LocalTime,
  785. UTC
  786. };
  787. %End
  788. enum BackgroundMode {
  789. FixedColor,
  790. FixedPixmap,
  791. NoBackground,
  792. PaletteForeground,
  793. PaletteButton,
  794. PaletteLight,
  795. PaletteMidlight,
  796. PaletteDark,
  797. PaletteMid,
  798. PaletteText,
  799. PaletteBrightText,
  800. PaletteBase,
  801. PaletteBackground,
  802. PaletteShadow,
  803. PaletteHighlight,
  804. PaletteHighlightedText,
  805. PaletteButtonText,
  806. PaletteLink,
  807. PaletteLinkVisited,
  808. X11ParentRelative
  809. };
  810. typedef uint ComparisonFlags;
  811. enum StringComparisonMode {
  812. CaseSensitive,
  813. BeginsWith,
  814. EndsWith,
  815. Contains,
  816. ExactMatch
  817. };
  818. %If (TQt_3_2_0 -)
  819. enum Corner {
  820. TopLeft,
  821. TopRight,
  822. BottomLeft,
  823. BottomRight
  824. };
  825. %End
  826. %If (WS_X11)
  827. typedef unsigned long HANDLE;
  828. %End
  829. %End
  830. };
  831. %End