Guest User

Untitled

a guest
Sep 12th, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  1. #ifndef _ZAPPINFOAREA_H
  2. #define _ZAPPINFOAREA_H
  3.  
  4. #include <ZWidget.h>
  5.  
  6. class ZFmwItem;
  7. class ZFmwArea;
  8.  
  9. /* Size: 312=78*4 */
  10.  
  11. class ZAppInfoArea : public ZWidget
  12. {
  13. Q_OBJECT
  14.  
  15. unsigned int data[78-sizeof(QWidget)/4];
  16.  
  17. public:
  18. enum AREA_IDX {
  19. input,
  20. activity,
  21. counter,
  22. storage ,
  23. area_num
  24. };
  25. enum ACTIVITY_MODE
  26. {
  27. progress_meter,
  28. no_progress_meter
  29. };
  30. enum COUNTER_MODE {
  31. two_variable_qualifier,
  32. one_variable_qualifier,
  33. one_variable,
  34. free
  35. };
  36. enum COUNTERICON_ALIGN {
  37. left,
  38. right,
  39. invalid_align
  40. };
  41. enum COUNTER_V {
  42. left_v,
  43. right_v
  44. };
  45. enum METER_STYLE {
  46. };
  47.  
  48. ZAppInfoArea(QWidget*, char const* = 0, unsigned int = 0, ZSkinService::WidgetClsID = ZSkinService::clsZAppInfoArea);
  49. ~ZAppInfoArea();
  50.  
  51. void appendAnimation(AREA_IDX, QString const&, QString const&);
  52. void appendIcon(AREA_IDX, QPixmap const&, QString const&);
  53. void appendIcon(AREA_IDX, QString const&, QPixmap const&, QString const&);
  54. void appendIcon(AREA_IDX, QString const&, QString const&);
  55. void appendText(AREA_IDX, QString const&, QString const&);
  56. void appendWidget(AREA_IDX, QWidget*, QString const&);
  57. void createIconItem(QPixmap const&, QString const&);
  58. void createIconItem(QString const&, QString const&);
  59. void createTextItem(QString const&);
  60. void createTextItem(QString const&, QString const&);
  61. void createWidgetItem(QWidget*, QString const&);
  62. void cropWidgetFromArea(AREA_IDX, int&);
  63. void deleteArea(AREA_IDX, int&);
  64. void drawActivityArea(QPainter*);
  65. void drawArea(ZFmwArea*, QPainter*, QRect const&);
  66. void drawCounterArea(QPainter*);
  67. void drawInputArea(QPainter*);
  68. void drawStorageArea(QPainter*);
  69. void enableOutlineText(bool);
  70. void getActMeter();
  71. QSize getAreaHeight(ZFmwArea*) const;
  72. QSize getAreaWidth(ZFmwArea*) const;
  73. void getAreaWidthExceptStorage();
  74. QSize getContentHeight() const;
  75. QSize getInitAreaWidth(ZFmwArea*);
  76. void getInternalSpacing() const;
  77. QSize getItemHeight(ZFmwItem*) const;
  78. void getMeterStyle();
  79. void getOutlineColor() const;
  80. void getPadding(int) const;
  81. QRect getRect();
  82. void getSpacing() const;
  83. void getTotalItemNum();
  84. QSize getWidgetHeight() const;
  85. QRect getWidgetRect();
  86. int getWidth(AREA_IDX);
  87. void insertAnimation(AREA_IDX, int, QString const&, QString const&);
  88. void insertIcon(AREA_IDX, int, QPixmap const&, QString const&);
  89. void insertIcon(AREA_IDX, int, QString const&, QString const&);
  90. void insertText(AREA_IDX, int, QString const&, QString const&);
  91. void insertWidget(AREA_IDX, int, QWidget*, QString const&);
  92. bool isAreaCouldInsertItem(AREA_IDX);
  93. bool isHasNewWordIcon();
  94. bool isOutlineText();
  95. bool isRemoveIconFromArea(AREA_IDX, ZFmwItem*);
  96. bool isRemoveNewWordFromInput(AREA_IDX, ZFmwItem*);
  97. bool isValidArea(AREA_IDX);
  98. bool isZEnable();
  99. void itemNum(int);
  100. void paint(QPainter*);
  101. void paintBackground(QPainter*);
  102. void paintBorder(QPainter*);
  103. void paintEvent(QPaintEvent*);
  104. void paintFrame(QPainter*);
  105. void printArea(AREA_IDX);
  106. void removeArea(AREA_IDX);
  107. void removeCounterIcon();
  108. void removeIconFromArea(AREA_IDX, int&, bool (*)(AREA_IDX, ZFmwItem*));
  109. void removeItem(AREA_IDX, QString const&);
  110. void removeItem(AREA_IDX, int);
  111. void resizeWidget();
  112. void restoreArea();
  113. void scaleArea();
  114. void setActArea(ACTIVITY_MODE);
  115. void setAllAreaWidth();
  116. void setCounterArea(COUNTER_MODE);
  117. void setCounterIcon(COUNTERICON_ALIGN, QPixmap const&);
  118. void setCounterIcon(COUNTERICON_ALIGN, QString const&);
  119. void setCounterIcon(COUNTERICON_ALIGN, QString const&, QPixmap const&);
  120. void setCounterQualifier(QString const&);
  121. void setCounterVariable(COUNTER_V, QString const&);
  122. void setIcon(AREA_IDX, QString const&, QPixmap const&);
  123. void setIcon(AREA_IDX, QString const&, QString const&);
  124. void setIcon(AREA_IDX, int, QPixmap const&);
  125. void setIcon(AREA_IDX, int, QString const&);
  126. void setInputArea();
  127. void setMeterStyle(METER_STYLE);
  128. void setPalette(QPalette const&);
  129. void setStorage(QString const&, QPixmap const&);
  130. void setStorageIcon(QPixmap const&);
  131. void setStorageIcon(QString const&);
  132. void setText(AREA_IDX, QString const&, QString const&);
  133. void setText(AREA_IDX, int, QString const&);
  134. void setWidget(AREA_IDX, QString const&, QWidget*);
  135. void setWidget(AREA_IDX, int, QWidget*);
  136. void truncateTextFromArea(AREA_IDX, int&);
  137.  
  138. public slots:
  139. void slotHideIconOfInputArea();
  140. };
  141.  
  142. #endif
Advertisement
Add Comment
Please, Sign In to add comment