1 /** @file cvarsliderwidget.h Slider for adjusting a cvar. 2 * 3 * @authors Copyright (c) 2013-2017 Jaakko Keränen <jaakko.keranen@iki.fi> 4 * 5 * @par License 6 * GPL: http://www.gnu.org/licenses/gpl.html 7 * 8 * <small>This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by the 10 * Free Software Foundation; either version 2 of the License, or (at your 11 * option) any later version. This program is distributed in the hope that it 12 * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 14 * Public License for more details. You should have received a copy of the GNU 15 * General Public License along with this program; if not, see: 16 * http://www.gnu.org/licenses</small> 17 */ 18 19 #ifndef DENG_CLIENT_CVARSLIDERWIDGET_H 20 #define DENG_CLIENT_CVARSLIDERWIDGET_H 21 22 #include <de/SliderWidget> 23 #include "icvarwidget.h" 24 25 /** 26 * Console variable slider. 27 */ 28 class CVarSliderWidget : public de::SliderWidget, public ICVarWidget 29 { 30 Q_OBJECT 31 32 public: 33 CVarSliderWidget(char const *cvarPath); 34 35 char const *cvarPath() const; 36 37 public slots: 38 void updateFromCVar(); 39 void setCVarValueFromWidget(); 40 41 private: 42 DENG2_PRIVATE(d) 43 }; 44 45 #endif // DENG_CLIENT_CVARSLIDERWIDGET_H 46