File indexing completed on 2024-04-28 16:26:34

0001 /***************************************************************************
0002     begin                : Tuesday Nov 15 2005
0003     copyright            : (C) 2005 by Holger Danielsson
0004     email                : holger.danielsson@t-online.de
0005  ***************************************************************************/
0006 
0007 /***************************************************************************
0008  *                                                                         *
0009  *   This program is free software; you can redistribute it and/or modify  *
0010  *   it under the terms of the GNU General Public License as published by  *
0011  *   the Free Software Foundation; either version 2 of the License, or     *
0012  *   (at your option) any later version.                                   *
0013  *                                                                         *
0014  ***************************************************************************/
0015 
0016 #ifndef STATISTICSWIDGET_H
0017 #define STATISTICSWIDGET_H
0018 
0019 #include <QGroupBox>
0020 #include <QWidget>
0021 
0022 class QLabel;
0023 class QGridLayout;
0024 
0025 namespace KileDialog {
0026 class StatisticsDialog;
0027 }
0028 
0029 namespace KileWidget {
0030 
0031 class StatisticsWidget : public QWidget
0032 {
0033     friend class KileDialog::StatisticsDialog;
0034     Q_OBJECT
0035 
0036 public:
0037     explicit StatisticsWidget(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags flags = Qt::WindowFlags());
0038     ~StatisticsWidget();
0039 
0040     void updateColumns();
0041 
0042 private:
0043     QLabel* m_commentAboutHelp;
0044     QLabel* m_warning;
0045 
0046     QLabel* m_wordChar;
0047     QLabel* m_commandChar;
0048     QLabel* m_whitespaceChar;
0049     QLabel* m_totalChar;
0050     QLabel* m_wordCharText;
0051     QLabel* m_commandCharText;
0052     QLabel* m_whitespaceCharText;
0053     QLabel* m_totalCharText;
0054 
0055     QLabel* m_wordString;
0056     QLabel* m_environmentString;
0057     QLabel* m_commandString;
0058     QLabel* m_totalString;
0059     QLabel* m_wordStringText;
0060     QLabel* m_environmentStringText;
0061     QLabel* m_commandStringText;
0062     QLabel* m_totalStringText;
0063 
0064     QGroupBox *m_charactersGroup, *m_stringsGroup;
0065 
0066     QGridLayout *chargrouplayout;
0067     QGridLayout *stringgrouplayout;
0068 };
0069 
0070 }
0071 
0072 #endif