Advertisement
Guest User

Untitled

a guest
Sep 12th, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. #ifndef __ZGLOBAL_H__
  2. #define __ZGLOBAL_H__ 1
  3.  
  4. #include <qrect.h>
  5. #include <qwidget.h>
  6. #include <quuid.h>
  7.  
  8. #define ZKB_INPUT_MULTITAP QUuid( 0x637a8c00, 0x1098, 0x42ca, 0x96, 0x9a, 0x2b, 0xf1, 0x63, 0xcd, 0x3c, 0x12) ///< MultiTAP input mode {637a8c00-1098-42ca-969a-2bf163cd3c12}
  9. #define ZKB_INPUT_PREDICTIVE QUuid( 0x637a8c00, 0x1098, 0x42ca, 0x96, 0x9a, 0x2b, 0xf1, 0x63, 0xcd, 0x3c, 0x13) ///< PREDICTIVE input mode {637a8c00-1098-42ca-969a-2bf163cd3c13}
  10. #define ZKB_INPUT_NUMERIC QUuid( 0x637a8c00, 0x1098, 0x42ca, 0x96, 0x9a, 0x2b, 0xf1, 0x63, 0xcd, 0x3c, 0x14) ///< Number input mode {637a8c00-1098-42ca-969a-2bf163cd3c14}
  11. #define ZKB_INPUT_SYMBOL QUuid( 0x637a8c00, 0x1098, 0x42ca, 0x96, 0x9a, 0x2b, 0xf1, 0x63, 0xcd, 0x3c, 0x15) ///< Symbol input mode {637a8c00-1098-42ca-969a-2bf163cd3c15}
  12. #define ZKB_INPUT_PINYIN QUuid( 0x637a8c00, 0x1098, 0x42ca, 0x96, 0x9a, 0x2b, 0xf1, 0x63, 0xcd, 0x3c, 0x16) ///< Pinyin input mode {637a8c00-1098-42ca-969a-2bf163cd3c16}
  13. #define ZKB_INPUT_BOPOMOFO QUuid( 0x637a8c00, 0x1098, 0x42ca, 0x96, 0x9a, 0x2b, 0xf1, 0x63, 0xcd, 0x3c, 0x17) ///< BOPOMOFO input mode {637a8c00-1098-42ca-969a-2bf163cd3c17}
  14. #define ZKB_INPUT_STROKES QUuid( 0x637a8c00, 0x1098, 0x42ca, 0x96, 0x9a, 0x2b, 0xf1, 0x63, 0xcd, 0x3c, 0x18) ///< Strokes input mode {637a8c00-1098-42ca-969a-2bf163cd3c18}
  15. #define ZKB_INPUT_EMOTICON QUuid( 0x637a8c00, 0x1098, 0x42ca, 0x96, 0x9a, 0x2b, 0xf1, 0x63, 0xcd, 0x3c, 0x19) ///< EMOTICON input mode {637a8c00-1098-42ca-969a-2bf163cd3c19}
  16. #define ZKB_INPUT_TESTPLUGIN QUuid( 0x637a8c00, 0x1098, 0x42ca, 0x96, 0x9a, 0x2b, 0xf1, 0x63, 0xcd, 0x3c, 0xff) ///< EMOTICON input mode {637a8c00-1098-42ca-969a-2bf163cd3c19}
  17. #define IMID_UNDEFINED QUuid() ///< undefined input mode
  18.  
  19. #define ZSetLayout(widgetPtr, globalR) widgetPtr->setGeometry(ZGlobal::mapFromGlobalR(widgetPtr, globalR))
  20.  
  21. enum EZX_FONT_SIZE_T {
  22. };
  23.  
  24. namespace ZGlobal
  25. {
  26. enum PaddingType {
  27. };
  28. enum VSpacingType {
  29. };
  30.  
  31. QRect diffRect(QRect, QRect);
  32. QRect getAIAR();
  33. QRect getContentR( bool hasSecondTitle = FALSE );
  34. QRect getCst1_1R();
  35. QRect getCst2a_1R();
  36. QRect getCst2a_2R();
  37. QRect getCst2b_1R();
  38. QRect getCst2b_2R();
  39. QRect getCst2c_2R();
  40. QRect getCst3_1R();
  41. QRect getCst3_2R();
  42. QRect getCst3_3R();
  43. QRect getCst3a_1R();
  44. QRect getCst3a_2R();
  45. QRect getCst3a_3R();
  46. QRect getCst3b_1R();
  47. QRect getCst3b_2R();
  48. QRect getCst3b_3R();
  49. QRect getCst3c_1R();
  50. QRect getCst3c_2R();
  51. QRect getCst3c_3R();
  52. QRect getCst4a_1R();
  53. QRect getCst4a_2R();
  54. QRect getCst4a_3R();
  55. QRect getCst4a_4R();
  56. QRect getCst4b_1R();
  57. QRect getCst4b_2R();
  58. QRect getCst4b_4R();
  59. QRect getCstR();
  60. QRect getDesktopRect();
  61. QRect getDlgA1_1R();
  62. QRect getDlgA2a_1R();
  63. QRect getDlgA2b_1R();
  64. QRect getDlgA3a_1R();
  65. QRect getDlgA3a_3R();
  66. QRect getDlgA3b_1R();
  67. QRect getDlgA3b_3R();
  68. QRect getDlgA3c_1R();
  69. QRect getDlgA3c_3R();
  70. QRect getDlgB1_1R();
  71. QRect getDlgB2_1R();
  72. QRect getDlgCstLR();
  73. QRect getDlgCstMR();
  74. QRect getDlgCstSR();
  75. QRect getDlgLargeConR();
  76. QRect getDlgLargeR();
  77. QRect getDlgMiddleConR();
  78. QRect getDlgSmallConR();
  79. QRect getDlgSmallR();
  80. QRect getDlgTitleLR();
  81. QRect getDlgTitleMR();
  82. QRect getDlgTitleSR();
  83. QRect getFontSize(EZX_FONT_SIZE_T);
  84. QRect getGNBRect();
  85. QRect getHeaderR( bool hasSecondTitle = FALSE );
  86. QRect getHomeR( bool hasSecondTitle = FALSE );
  87. QRect getLineHeight();
  88. QRect getLineSpace();
  89. QRect getMainWidgetRect();
  90. QRect getPadding(PaddingType);
  91. QRect getScreenR();
  92. QRect getStatusBarR();
  93. QRect getSubContentR();
  94. QRect getVSpacing(VSpacingType);
  95. void hideInputWidget(QWidget*);
  96. QRect mapFromGlobalR(QWidget*, QRect);
  97. void setInputMethod(QUuid const&, int);
  98. void showInputWidget(int, int, bool, QUuid const&);
  99. };
  100.  
  101. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement