| 145 | } |
| 146 | |
| 147 | CRControlsMenuItem::CRControlsMenuItem( CRControlsMenu * menu, int id, int key, int flags, const CRGUIAccelerator * defAcc ) |
| 148 | : CRMenuItem(menu, id, getKeyName(key, flags), LVImageSourceRef(), LVFontRef() ), _key( key ), _flags(flags) |
| 149 | { |
| 150 | _defCommand = _defParams = 0; |
| 151 | if ( defAcc ) { |
| 152 | _defCommand = defAcc->commandId; |
| 153 | _defParams = defAcc->commandParam; |
| 154 | } |
| 155 | _controlsMenu = menu; |
| 156 | _settingKey = menu->getSettingKey( key, flags ); |
| 157 | } |
| 158 | |
| 159 | void CRControlsMenuItem::Draw( LVDrawBuf & buf, lvRect & rc, CRRectSkinRef skin, CRRectSkinRef valueSkin, bool selected ) |
| 160 | { |
nothing calls this directly
no test coverage detected