MCPcopy Create free account
hub / github.com/buggins/coolreader / CRNumberEditDialog

Method CRNumberEditDialog

cr3gui/src/numedit.cpp:29–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29CRNumberEditDialog::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}
44bool CRNumberEditDialog::digitEntered( lChar16 c )
45{
46 lString16 v = _value;

Callers

nothing calls this directly

Calls 9

getMenuSkinMethod · 0.80
getWindowSizeMethod · 0.80
getScreenMethod · 0.80
widthMethod · 0.80
heightMethod · 0.80
getSkinMethod · 0.45
getHeightMethod · 0.45
getFontMethod · 0.45
getRectMethod · 0.45

Tested by

no test coverage detected