mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
- slide: formatting code
This commit is contained in:
@@ -143,7 +143,7 @@ bool COSDSlider::SlideDone()
|
|||||||
{
|
{
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
if (slideOut) // disappear
|
if (slideOut) // disappear
|
||||||
{
|
{
|
||||||
slideValue += STEPSIZE;
|
slideValue += STEPSIZE;
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ bool COSDSlider::SlideDone()
|
|||||||
else
|
else
|
||||||
setValue(slideValue);
|
setValue(slideValue);
|
||||||
}
|
}
|
||||||
else // appears
|
else // appear
|
||||||
{
|
{
|
||||||
slideValue -= STEPSIZE;
|
slideValue -= STEPSIZE;
|
||||||
|
|
||||||
@@ -171,8 +171,5 @@ bool COSDSlider::SlideDone()
|
|||||||
setValue(slideValue);
|
setValue(slideValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -27,14 +27,14 @@
|
|||||||
class COSDSlider
|
class COSDSlider
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
uint32_t slideTimer;
|
uint32_t slideTimer;
|
||||||
int slideValue;
|
int slideValue;
|
||||||
bool slideIn;
|
bool slideIn;
|
||||||
bool slideOut;
|
bool slideOut;
|
||||||
int proc_put(const char *path, char *value, int len);
|
int proc_put(const char *path, char *value, int len);
|
||||||
void setValue(int val);
|
void setValue(int val);
|
||||||
int slideMax;
|
int slideMax;
|
||||||
int slideMode;
|
int slideMode;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
COSDSlider(int percent = 100, int mode = BOTTOM2TOP);
|
COSDSlider(int percent = 100, int mode = BOTTOM2TOP);
|
||||||
@@ -46,6 +46,7 @@ class COSDSlider
|
|||||||
bool SlideDone();
|
bool SlideDone();
|
||||||
bool SlideInDone() { return !slideIn && !slideOut; };
|
bool SlideInDone() { return !slideIn && !slideOut; };
|
||||||
uint32_t GetSlideTimer() { return slideTimer; };
|
uint32_t GetSlideTimer() { return slideTimer; };
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
BEFORE_SLIDEIN = 1,
|
BEFORE_SLIDEIN = 1,
|
||||||
@@ -53,6 +54,7 @@ class COSDSlider
|
|||||||
BEFORE_SLIDEOUT = 3,
|
BEFORE_SLIDEOUT = 3,
|
||||||
AFTER_SLIDEOUT = 4
|
AFTER_SLIDEOUT = 4
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
MID2SIDE,
|
MID2SIDE,
|
||||||
|
Reference in New Issue
Block a user