lala missing added files (or something like that)
authorMarcus Eggenberger <egs@quassel-irc.org>
Thu, 30 Oct 2008 19:06:40 +0000 (20:06 +0100)
committerMarcus Eggenberger <egs@quassel-irc.org>
Thu, 30 Oct 2008 19:06:40 +0000 (20:06 +0100)
src/qtui/debuglogwidget.cpp [new file with mode: 0644]
src/qtui/debuglogwidget.h [new file with mode: 0644]
src/qtui/ui/debuglogwidget.ui [new file with mode: 0644]

diff --git a/src/qtui/debuglogwidget.cpp b/src/qtui/debuglogwidget.cpp
new file mode 100644 (file)
index 0000000..15b1c5c
--- /dev/null
@@ -0,0 +1,38 @@
+/***************************************************************************
+ *   Copyright (C) 2005-08 by the Quassel Project                          *
+ *   devel@quassel-irc.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) version 3.                                           *
+ *                                                                         *
+ *   This program is distributed in the hope that it will be useful,       *
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
+ *   GNU General Public License for more details.                          *
+ *                                                                         *
+ *   You should have received a copy of the GNU General Public License     *
+ *   along with this program; if not, write to the                         *
+ *   Free Software Foundation, Inc.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ ***************************************************************************/
+
+#include "debuglogwidget.h"
+
+#include "client.h"
+
+DebugLogWidget::DebugLogWidget(QWidget *parent)
+  : QWidget(parent)
+{
+  ui.setupUi(this);
+  setAttribute(Qt::WA_DeleteOnClose, true);
+  logUpdated();
+  connect(Client::instance(), SIGNAL(logUpdated()), this, SLOT(logUpdated()));
+  ui.textEdit->setReadOnly(true);
+}
+
+void DebugLogWidget::logUpdated() {
+  ui.textEdit->setPlainText(Client::debugLog());
+}
+
diff --git a/src/qtui/debuglogwidget.h b/src/qtui/debuglogwidget.h
new file mode 100644 (file)
index 0000000..476a80a
--- /dev/null
@@ -0,0 +1,39 @@
+/***************************************************************************
+ *   Copyright (C) 2005-08 by the Quassel Project                          *
+ *   devel@quassel-irc.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) version 3.                                           *
+ *                                                                         *
+ *   This program is distributed in the hope that it will be useful,       *
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
+ *   GNU General Public License for more details.                          *
+ *                                                                         *
+ *   You should have received a copy of the GNU General Public License     *
+ *   along with this program; if not, write to the                         *
+ *   Free Software Foundation, Inc.,                                       *
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ ***************************************************************************/
+
+#ifndef DEBUGLOGWIDGET_H
+#define DEBUGLOGWIDGET_H
+
+#include "ui_debuglogwidget.h"
+
+class DebugLogWidget : public QWidget {
+  Q_OBJECT
+
+public:
+  DebugLogWidget(QWidget *parent = 0);
+
+private slots:
+  void logUpdated();
+
+private:
+  Ui::DebugLogWidget ui;
+};
+
+#endif //DEBUGLOGWIDGET_H
diff --git a/src/qtui/ui/debuglogwidget.ui b/src/qtui/ui/debuglogwidget.ui
new file mode 100644 (file)
index 0000000..fc853c5
--- /dev/null
@@ -0,0 +1,83 @@
+<ui version="4.0" >
+ <class>DebugLogWidget</class>
+ <widget class="QWidget" name="DebugLogWidget" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>Debug Log</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout" >
+   <property name="spacing" >
+    <number>0</number>
+   </property>
+   <property name="margin" >
+    <number>0</number>
+   </property>
+   <item>
+    <widget class="QTextEdit" name="textEdit" />
+   </item>
+   <item>
+    <layout class="QHBoxLayout" name="horizontalLayout" >
+     <item>
+      <spacer name="horizontalSpacer" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QPushButton" name="pushButton" >
+       <property name="text" >
+        <string>Close</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <spacer name="horizontalSpacer_2" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+    </layout>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>pushButton</sender>
+   <signal>clicked()</signal>
+   <receiver>DebugLogWidget</receiver>
+   <slot>close()</slot>
+   <hints>
+    <hint type="sourcelabel" >
+     <x>217</x>
+     <y>284</y>
+    </hint>
+    <hint type="destinationlabel" >
+     <x>179</x>
+     <y>-16</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>