Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
863 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef KEYTOGGLECHECKBUTTON_H
  8. #define KEYTOGGLECHECKBUTTON_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/CheckButton.h>
  13. class CKeyToggleCheckButton : public vgui::CheckButton
  14. {
  15. public:
  16. CKeyToggleCheckButton( vgui::Panel *parent, const char *panelName, const char *text,
  17. char const *keyname, char const *cmdname );
  18. ~CKeyToggleCheckButton();
  19. //virtual void SetSelected( bool state );
  20. virtual void Paint();
  21. void Reset();
  22. void ApplyChanges();
  23. bool HasBeenModified();
  24. private:
  25. typedef vgui::CheckButton BaseClass;
  26. char *m_pszKeyName;
  27. char *m_pszCmdName;
  28. bool m_bStartValue;
  29. };
  30. #endif // KEYTOGGLECHECKBUTTON_H