huge BSlider cleanup, it doesn't use an offscreen bitmap anymore by default (compile time switch), updated drawing for Haiku features and disabled look, work in progress
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12948 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -54,6 +54,7 @@ enum thumb_style {
|
|||||||
|
|
||||||
// Globals ---------------------------------------------------------------------
|
// Globals ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
#define USE_OFF_SCREEN_VIEW 0
|
||||||
|
|
||||||
// BSlider class ---------------------------------------------------------------
|
// BSlider class ---------------------------------------------------------------
|
||||||
class BSlider : public BControl {
|
class BSlider : public BControl {
|
||||||
@@ -190,7 +191,7 @@ private:
|
|||||||
|
|
||||||
float _MinPosition() const;
|
float _MinPosition() const;
|
||||||
float _MaxPosition() const;
|
float _MaxPosition() const;
|
||||||
|
|
||||||
//virtual void _ReservedSlider1();
|
//virtual void _ReservedSlider1();
|
||||||
//virtual void _ReservedSlider2();
|
//virtual void _ReservedSlider2();
|
||||||
//virtual void _ReservedSlider3();
|
//virtual void _ReservedSlider3();
|
||||||
@@ -207,36 +208,42 @@ virtual void _ReservedSlider12();
|
|||||||
BSlider &operator=(const BSlider &);
|
BSlider &operator=(const BSlider &);
|
||||||
|
|
||||||
void _InitObject();
|
void _InitObject();
|
||||||
|
|
||||||
BMessage* fModificationMessage;
|
BMessage* fModificationMessage;
|
||||||
int32 fSnoozeAmount;
|
int32 fSnoozeAmount;
|
||||||
|
|
||||||
rgb_color fBarColor;
|
rgb_color fBarColor;
|
||||||
rgb_color fFillColor;
|
rgb_color fFillColor;
|
||||||
bool fUseFillColor;
|
bool fUseFillColor;
|
||||||
|
|
||||||
char* fMinLimitStr;
|
char* fMinLimitStr;
|
||||||
char* fMaxLimitStr;
|
char* fMaxLimitStr;
|
||||||
|
|
||||||
int32 fMinValue;
|
int32 fMinValue;
|
||||||
int32 fMaxValue;
|
int32 fMaxValue;
|
||||||
int32 fKeyIncrementValue;
|
int32 fKeyIncrementValue;
|
||||||
|
|
||||||
int32 fHashMarkCount;
|
int32 fHashMarkCount;
|
||||||
hash_mark_location fHashMarks;
|
hash_mark_location fHashMarks;
|
||||||
|
|
||||||
|
#if USE_OFF_SCREEN_VIEW
|
||||||
BBitmap* fOffScreenBits;
|
BBitmap* fOffScreenBits;
|
||||||
BView* fOffScreenView;
|
BView* fOffScreenView;
|
||||||
|
#endif
|
||||||
|
|
||||||
thumb_style fStyle;
|
thumb_style fStyle;
|
||||||
|
|
||||||
BPoint fLocation;
|
BPoint fLocation;
|
||||||
BPoint fInitialLocation;
|
BPoint fInitialLocation;
|
||||||
|
|
||||||
orientation fOrientation;
|
orientation fOrientation;
|
||||||
float fBarThickness;
|
float fBarThickness;
|
||||||
|
|
||||||
|
#if USE_OFF_SCREEN_VIEW
|
||||||
uint32 _reserved[8];
|
uint32 _reserved[8];
|
||||||
|
#else
|
||||||
|
uint32 _reserved[10];
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
+518
-374
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user