File indexing completed on 2024-04-21 05:46:24
0001 /* 0002 SPDX-FileCopyrightText: 2007 Nicolas Ternisien <nicolas.ternisien@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QStatusBar> 0010 0011 class QString; 0012 class QLabel; 0013 class QComboBox; 0014 class QPushButton; 0015 namespace KSystemLog 0016 { 0017 /** 0018 * Status Bar 0019 */ 0020 class StatusBar : public QStatusBar 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit StatusBar(QWidget *parent); 0026 0027 ~StatusBar() override; 0028 0029 void changeLineCountMessage(const QString &lineCountMessage); 0030 void changeLastModification(QTime lastModification); 0031 0032 void changeMessage(const QString &message); 0033 0034 private Q_SLOTS: 0035 void toggleHistory(); 0036 void selectLastHistory(); 0037 0038 private: 0039 QLabel *mLineCountLabel = nullptr; 0040 QComboBox *mMessageList = nullptr; 0041 QLabel *mLastModificationLabel = nullptr; 0042 QPushButton *mToggleHistory = nullptr; 0043 }; 0044 }