author | sandman <sandman> | 2002-11-18 03:48:58 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-11-18 03:48:58 (UTC) |
commit | c2d7749ca68a545b67e1b07ffbb65f08da203702 (patch) (unidiff) | |
tree | b5d867ada033b4c98ffaba8bb1d4cfbb8c0e023a /noncore/styles/liquid/liquid.h | |
parent | ee9696cbb7a39e0f13739ae86cd925b0f675a43c (diff) | |
download | opie-c2d7749ca68a545b67e1b07ffbb65f08da203702.zip opie-c2d7749ca68a545b67e1b07ffbb65f08da203702.tar.gz opie-c2d7749ca68a545b67e1b07ffbb65f08da203702.tar.bz2 |
Optimized Liquid for handhelds:
- removed some dead code from the original liquid
- removed all code related to mouse-hover
- rewrote QToolButton drawing, so navigating toolbars with Menu/Direction
keys looks nicer
- changed the way focus indicators are drawn on many widgets
- support for libqte's with version < 2.3.4
Diffstat (limited to 'noncore/styles/liquid/liquid.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/styles/liquid/liquid.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/noncore/styles/liquid/liquid.h b/noncore/styles/liquid/liquid.h index 00cfb35..0582c9a 100644 --- a/noncore/styles/liquid/liquid.h +++ b/noncore/styles/liquid/liquid.h | |||
@@ -162,54 +162,40 @@ protected: | |||
162 | 162 | ||
163 | void drawRoundButton(QPainter *p, const QColor &c, const QColor &bg, int x, | 163 | void drawRoundButton(QPainter *p, const QColor &c, const QColor &bg, int x, |
164 | int y, int w, int h, bool supportPushDown = false, | 164 | int y, int w, int h, bool supportPushDown = false, |
165 | bool pushedDown = false, bool autoDefault = false, | 165 | bool pushedDown = false, bool autoDefault = false, |
166 | bool isMasked = false); | 166 | bool isMasked = false); |
167 | void drawClearBevel(QPainter *p, int x, int y, int w, int h, | 167 | void drawClearBevel(QPainter *p, int x, int y, int w, int h, |
168 | const QColor &c, const QColor &bg); | 168 | const QColor &c, const QColor &bg); |
169 | void drawSBDeco(QPainter *p, const QRect &r, const QColorGroup &g, | 169 | void drawSBDeco(QPainter *p, const QRect &r, const QColorGroup &g, |
170 | bool horiz); | 170 | bool horiz); |
171 | void drawSBButton(QPainter *p, const QRect &r, const QColorGroup &g, | 171 | void drawSBButton(QPainter *p, const QRect &r, const QColorGroup &g, |
172 | bool down=false, bool fast = true); | 172 | bool down=false, bool fast = true); |
173 | void drawRoundRect(QPainter *p, int x, int y, int w, int h); | 173 | void drawRoundRect(QPainter *p, int x, int y, int w, int h); |
174 | void loadCustomButtons(); | ||
175 | void applyCustomAttributes(QPushButton *btn); | ||
176 | void unapplyCustomAttributes(QPushButton *btn); | ||
177 | QPixmap* getPixmap(BitmapData item); | 174 | QPixmap* getPixmap(BitmapData item); |
178 | QPixmap* processEmbedded(const char *label, int h, int s, int v, bool blend=false); | 175 | QPixmap* processEmbedded(const char *label, int h, int s, int v, bool blend=false); |
179 | private: | 176 | private: |
177 | bool oldqte; | ||
180 | bool flatTBButtons; | 178 | bool flatTBButtons; |
181 | bool highcolor; | ||
182 | QColorGroup radioOnGrp; | ||
183 | QWidget *highlightWidget; | 179 | QWidget *highlightWidget; |
184 | QBrush wallpaper; | ||
185 | QBitmap lightBmp; | ||
186 | QBitmap grayBmp; | ||
187 | QBitmap dgrayBmp; | ||
188 | QBitmap maskBmp; | ||
189 | QBitmap xBmp; | ||
190 | QBitmap btnMaskBmp, htmlBtnMaskBmp; | 180 | QBitmap btnMaskBmp, htmlBtnMaskBmp; |
191 | QPixmap *btnBorderPix, *btnBlendPix, *bevelFillPix, *smallBevelFillPix, *menuPix; | 181 | QPixmap *btnBorderPix, *btnBlendPix, *bevelFillPix, *smallBevelFillPix, *menuPix; |
192 | QBitmap paper1, paper2, paper3; | 182 | QBrush bgBrush, menuBrush; |
193 | QBrush baseBrush, menuBrush, pagerBrush, pagerHoverBrush, bgBrush; | ||
194 | bool menuAni, menuFade; | 183 | bool menuAni, menuFade; |
195 | 184 | ||
196 | QIntDict<QPixmap>btnDict; | 185 | QIntDict<QPixmap>btnDict; |
197 | QIntDict<QPixmap>btnBorderDict; | 186 | QIntDict<QPixmap>btnBorderDict; |
198 | QIntDict<QPixmap>bevelFillDict; | 187 | QIntDict<QPixmap>bevelFillDict; |
199 | QIntDict<QPixmap>smallBevelFillDict; | 188 | QIntDict<QPixmap>smallBevelFillDict; |
200 | 189 | ||
201 | QList<QColor>customBtnColorList; | ||
202 | QList<QPixmap>customBtnIconList; | ||
203 | QStrList customBtnLabelList; | ||
204 | QPixmap *vsbSliderFillPix; | 190 | QPixmap *vsbSliderFillPix; |
205 | TransMenuHandler *menuHandler; | 191 | TransMenuHandler *menuHandler; |
206 | QPixmap *pixmaps[BITMAP_ITEMS]; | 192 | QPixmap *pixmaps[BITMAP_ITEMS]; |
207 | QPixmap sbBuffer; | 193 | QPixmap sbBuffer; |
208 | int oldSliderThickness; | 194 | int oldSliderThickness; |
209 | int lowLightVal; | 195 | int lowLightVal; |
210 | QHeader *currentHeader; | 196 | QHeader *currentHeader; |
211 | int headerHoverID; | 197 | int headerHoverID; |
212 | QWMatrix rMatrix; | 198 | QWMatrix rMatrix; |
213 | int bH, bS, bV; | 199 | int bH, bS, bV; |
214 | int bHoverH, bHoverS, bHoverV; | 200 | int bHoverH, bHoverS, bHoverV; |
215 | int btnH, btnS, btnV; | 201 | int btnH, btnS, btnV; |