mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
- hourglass: add defaults for x/y position
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1236,7 +1236,7 @@ int CTestMenu::exec(CMenuTarget *parent, const std::string &actionKey)
|
|||||||
}
|
}
|
||||||
else if (actionKey == "hourglass")
|
else if (actionKey == "hourglass")
|
||||||
{
|
{
|
||||||
CHourGlass hg(20, 20);
|
CHourGlass hg;
|
||||||
hg.paint();
|
hg.paint();
|
||||||
sleep(10);
|
sleep(10);
|
||||||
hg.hide();
|
hg.hide();
|
||||||
|
@@ -28,6 +28,8 @@
|
|||||||
#include <gui/components/cc.h>
|
#include <gui/components/cc.h>
|
||||||
#include <gui/components/cc_timer.h>
|
#include <gui/components/cc_timer.h>
|
||||||
|
|
||||||
|
#include <system/settings.h>
|
||||||
|
|
||||||
//! CHourglass shows a small image chain with timed order to visualize running processes or breaks.
|
//! CHourglass shows a small image chain with timed order to visualize running processes or breaks.
|
||||||
/*!
|
/*!
|
||||||
CHourglass shows only a timer controlled image chain, CHourglassProc will run an additional process.
|
CHourglass shows only a timer controlled image chain, CHourglassProc will run an additional process.
|
||||||
@@ -78,8 +80,8 @@ class CHourGlass : public CComponentsShapeSquare
|
|||||||
|
|
||||||
* @see class CComponentsShapeSquare()
|
* @see class CComponentsShapeSquare()
|
||||||
*/
|
*/
|
||||||
CHourGlass( const int x_pos,
|
CHourGlass( const int x_pos = CFrameBuffer::getInstance()->getScreenX() + OFFSET_INNER_MID,
|
||||||
const int y_pos,
|
const int y_pos = CFrameBuffer::getInstance()->getScreenY() + OFFSET_INNER_MID,
|
||||||
const int w = 48,
|
const int w = 48,
|
||||||
const int h = 48,
|
const int h = 48,
|
||||||
const std::string &image_basename = "hourglass",
|
const std::string &image_basename = "hourglass",
|
||||||
|
Reference in New Issue
Block a user