File indexing completed on 2023-05-30 10:40:03
0001 /* 0002 SPDX-FileCopyrightText: 2005 Albert Astals Cid <aacid@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef BUTTON_H 0008 #define BUTTON_H 0009 0010 #include "blinkengame.h" 0011 0012 class button 0013 { 0014 public: 0015 explicit button(blinkenGame::color c); 0016 ~button(); 0017 0018 void setShortcut(int key); 0019 QString shortcut() const; 0020 int key() const; 0021 void setSelected(bool b); 0022 bool selected() const; 0023 0024 private: 0025 QString getColorString() const; 0026 0027 bool m_selected; 0028 int m_key; 0029 blinkenGame::color m_color; 0030 }; 0031 0032 #endif