File indexing completed on 2024-04-14 03:59:29
0001 /* 0002 SPDX-FileCopyrightText: 2008-2009 Stefan Majewsky <majewsky@gmx.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDIAMOND_INFOBAR_H 0008 #define KDIAMOND_INFOBAR_H 0009 0010 #include <QObject> 0011 class QStatusBar; 0012 class QLabel; 0013 namespace KDiamond 0014 { 0015 0016 class InfoBar : public QObject 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit InfoBar(QStatusBar *bar); 0021 public Q_SLOTS: 0022 void setUntimed(bool untimed); 0023 void updatePoints(int points); 0024 void updateMoves(int moves); 0025 void updateRemainingTime(int remainingSeconds); 0026 private: 0027 bool m_untimed; 0028 QStatusBar *m_bar; 0029 QLabel *mMovement; 0030 QLabel *mPoints; 0031 QLabel *mTime; 0032 0033 }; 0034 0035 } 0036 0037 #endif // KDIAMOND_INFOBAR_H