| 27 | } |
| 28 | |
| 29 | CRNumberEditDialog::CRNumberEditDialog( CRGUIWindowManager * wm, lString16 title, lString16 initialValue, int resultCmd, int minvalue, int maxvalue ) |
| 30 | : CRGUIWindowBase( wm ), _title(title), _value(initialValue), _minvalue(minvalue), _maxvalue(maxvalue), _resultCmd(resultCmd) |
| 31 | { |
| 32 | _skin = _wm->getSkin()->getMenuSkin(L"#toc"); |
| 33 | _fullscreen = false; |
| 34 | lvPoint clientSize( 350, _skin->getFont()->getHeight() + 24 ); |
| 35 | lvPoint sz = _skin->getWindowSize( clientSize ); |
| 36 | lvRect rc = _wm->getScreen()->getRect(); |
| 37 | int x = (rc.width() - sz.x) / 2; |
| 38 | int y = (rc.height() - sz.y) / 2; |
| 39 | _rect.left = x; |
| 40 | _rect.top = y; |
| 41 | _rect.right = x + sz.x; |
| 42 | _rect.bottom = y + sz.y; |
| 43 | } |
| 44 | bool CRNumberEditDialog::digitEntered( lChar16 c ) |
| 45 | { |
| 46 | lString16 v = _value; |
nothing calls this directly
no test coverage detected