summaryrefslogtreecommitdiffstats
path: root/parts/outputviews/appoutputwidget.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch)
treeacaf47eb0fa12142d3896416a69e74cbf5a72242 /parts/outputviews/appoutputwidget.h
downloadtdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz
tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/outputviews/appoutputwidget.h')
-rw-r--r--parts/outputviews/appoutputwidget.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/parts/outputviews/appoutputwidget.h b/parts/outputviews/appoutputwidget.h
new file mode 100644
index 00000000..9a0d1e71
--- /dev/null
+++ b/parts/outputviews/appoutputwidget.h
@@ -0,0 +1,69 @@
+/***************************************************************************
+ * Copyright (C) 1999-2001 by Bernd Gehrmann *
+ * bernd@kdevelop.org *
+ * *
+ * 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 _APPOUTPUTWIDGET_H_
+#define _APPOUTPUTWIDGET_H_
+
+#include <qstringlist.h>
+#include <kregexp.h>
+
+#include "processwidget.h"
+
+class AppOutputViewPart;
+
+class AppOutputWidget : public ProcessWidget
+{
+ Q_OBJECT
+friend class AppOutputViewPart;
+public:
+ AppOutputWidget(AppOutputViewPart* part);
+ ~AppOutputWidget();
+ // clears our own store and the one of our base ProcessWidget
+
+public slots:
+ void slotRowSelected(QListBoxItem* row);
+ void insertStdoutLine(const QCString &line);
+ void insertStderrLine(const QCString &line);
+ void addPartialStdoutLine(const QCString &line);
+ void addPartialStderrLine(const QCString &line);
+ void slotContextMenu(QListBoxItem *, const QPoint &);
+ void hideView();
+ void clearViewAndContents();
+ void clearFilter();
+ void editFilter();
+ void saveAll();
+ void saveFiltered();
+ void copySelected();
+
+private:
+ virtual void childFinished(bool normal, int status);
+ void saveOutputToFile( bool useFilter );
+ void reinsertAndFilter();
+ bool filterSingleLine( const QString & line );
+
+ QStringList m_contentList;
+
+ struct OutputFilter
+ {
+ OutputFilter() : m_isActive(false), m_isRegExp(false), m_caseSensitive(false) {}
+ bool m_isActive;
+ bool m_isRegExp;
+ bool m_caseSensitive;
+ QString m_filterString;
+ };
+
+ AppOutputViewPart* m_part;
+ OutputFilter m_filter;
+ QCString stdoutbuf;
+ QCString stderrbuf;
+};
+
+#endif