summaryrefslogtreecommitdiffstats
path: root/src/kile/configcheckerdlg.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-10 03:05:17 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-10 03:05:17 +0000
commit2c945cd914550233ed352ff195afeb4dd793f122 (patch)
tree4796bfab5733942b90b5a66bb05655be5fdcca03 /src/kile/configcheckerdlg.h
downloadkile-2c945cd914550233ed352ff195afeb4dd793f122.tar.gz
kile-2c945cd914550233ed352ff195afeb4dd793f122.zip
Added abandoned KDE3 version of Kile
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kile@1088055 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kile/configcheckerdlg.h')
-rw-r--r--src/kile/configcheckerdlg.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/kile/configcheckerdlg.h b/src/kile/configcheckerdlg.h
new file mode 100644
index 0000000..74e8bf0
--- /dev/null
+++ b/src/kile/configcheckerdlg.h
@@ -0,0 +1,75 @@
+/***************************************************************************
+ begin : Fri Jun 4 2004
+ copyright : (C) 2004 by Jeroen Wijnout
+ email : Jeroen.Wijnhout@kdemail.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KILEDIALOG_CONFIGCHECKER_H
+#define KILEDIALOG_CONFIGCHECKER_H
+
+#include <qsimplerichtext.h>
+
+#include <kdialogbase.h>
+
+#include "configtester.h"
+
+class QLabel;
+class QPainter;
+
+class KProgress;
+class KListBox;
+
+class ConfigCheckerWidget;
+
+namespace KileDialog
+{
+ class ResultItem : public QListBoxItem
+ {
+ public:
+ ResultItem(KListBox *lb, const QString &tool, int status, const QValueList<ConfigTest> &tests);
+ int width(const QListBox *) const { return m_richText->widthUsed(); }
+ int height(const QListBox *) const { return m_richText->height(); }
+
+ protected:
+ void paint(QPainter *);
+
+ private:
+ QSimpleRichText *m_richText;
+ };
+
+ class ConfigChecker : public KDialogBase
+ {
+ Q_OBJECT
+
+ public:
+ ConfigChecker(QWidget* parent = 0);
+ ~ConfigChecker();
+
+ public slots:
+ void run();
+ void started();
+ void finished(bool);
+ void setPercentageDone(int);
+ void saveResults();
+ void slotCancel();
+
+ private:
+ KProgress* progressBar();
+ QLabel* label();
+ KListBox* listBox();
+
+ private:
+ ConfigCheckerWidget *m_widget;
+ Tester *m_tester;
+ };
+}
+#endif