![]() |
Mixxx
|
00001 /*************************************************************************** 00002 controlpushbutton.h - description 00003 ------------------- 00004 begin : Wed Feb 20 2002 00005 copyright : (C) 2002 by Tue and Ken Haste Andersen 00006 email : 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef CONTROLPUSHBUTTON_H 00019 #define CONTROLPUSHBUTTON_H 00020 00021 #include "controlobject.h" 00022 #include "defs.h" 00023 00028 class ControlPushButton : public ControlObject 00029 { 00030 Q_OBJECT 00031 public: 00032 ControlPushButton(ConfigKey key); 00033 ~ControlPushButton(); 00034 void setToggleButton(bool bIsToggleButton); 00035 void setStates(int num_states); 00036 00037 protected: 00038 void setValueFromMidi(MidiCategory c, double v); 00039 00040 private: 00041 bool m_bIsToggleButton; 00042 int m_iNoStates; 00043 }; 00044 00045 #endif