mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
CHintBox: move showTimeOutBar() to protected, add params to enableTimeOutBar()
Explicit call of disableTimeOutBar() after exec() is required to ensure we have no timebar opened objects. I'm not shure, but otherwise crashs could be possible. showTimeOutBar() is required for OnTimer(). It doesn't need any parameter.
This commit is contained in:
@@ -84,6 +84,7 @@ class CHintBox : public CComponentsWindow
|
||||
const int& indent);
|
||||
|
||||
virtual void ReSize();
|
||||
void showTimeOutBar(){enableTimeOutBar();}
|
||||
|
||||
public:
|
||||
/**CHintBox Constructor
|
||||
@@ -186,9 +187,17 @@ class CHintBox : public CComponentsWindow
|
||||
virtual void setTimeOut(const int& Timeout){timeout = Timeout;}
|
||||
|
||||
/**
|
||||
* enable visualized timeout as progressbar under titelbar
|
||||
* enable/disable visualized timeout as progressbar under titlebar
|
||||
* @param[in] enable
|
||||
* @li optional: exepts type bool, default = true
|
||||
*/
|
||||
void showTimeOutBar();
|
||||
void enableTimeOutBar(bool enable = true);
|
||||
|
||||
/**
|
||||
* disable visualized timeout as progressbar
|
||||
* @see enableTimeOutBar
|
||||
*/
|
||||
void disableTimeOutBar(){enableTimeOutBar(false);}
|
||||
|
||||
/**
|
||||
* scroll handler for text objects: NOTE: exec() must be called !
|
||||
|
Reference in New Issue
Block a user