mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
cc_timer/cc_frm_clock: allow use of milisecond intervals
Should be easier and more flexible to handle without nano parameter, some reworkes in other classes and thread handlings are required.
This commit is contained in:
@@ -218,14 +218,14 @@ void CHintBox::enableTimeOutBar(bool enable)
|
||||
|
||||
if(timeout_pb){
|
||||
timeout_pb->paint0();
|
||||
timeout_pb->setValues(timeout_pb->getValue()+1, 100*timeout);
|
||||
timeout_pb->setValues(timeout_pb->getValue()+1, 10*timeout);
|
||||
}else{
|
||||
timeout_pb = new CProgressBar();
|
||||
timeout_pb->setType(CProgressBar::PB_TIMESCALE);
|
||||
timeout_pb->setDimensionsAll(ccw_body->getRealXPos(), ccw_body->getRealYPos(), ccw_body->getWidth(), TIMEOUT_BAR_HEIGHT);
|
||||
timeout_pb->setValues(0, 100*timeout);
|
||||
timeout_pb->setValues(0, timeout);
|
||||
if (!timeout_pb_timer) {
|
||||
timeout_pb_timer = new CComponentsTimer(1, true);
|
||||
timeout_pb_timer = new CComponentsTimer(100);
|
||||
const string tn = cc_item_type.name + ":timeout_bar:";
|
||||
timeout_pb_timer->setThreadName(tn);
|
||||
}
|
||||
|
Reference in New Issue
Block a user