Moving InputLine (ex-ChannelWidgetInput) to uisupport, since we'll need
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 28 Nov 2007 18:02:47 +0000 (18:02 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 28 Nov 2007 18:02:47 +0000 (18:02 +0000)
it in QuasselTopia as well. Oh, and make Quassel compile again.

Quassel.kdevelop.filelist
src/qtui/guisettings.h
src/qtui/qtui.pri
src/qtui/ui/bufferwidget.ui
src/uisupport/inputline.cpp [moved from src/qtui/channelwidgetinput.cpp with 87% similarity]
src/uisupport/inputline.h [moved from src/qtui/channelwidgetinput.h with 91% similarity]
src/uisupport/tabcompleter.cpp [moved from src/qtui/tabcompleter.cpp with 100% similarity]
src/uisupport/tabcompleter.h [moved from src/qtui/tabcompleter.h with 100% similarity]
src/uisupport/uisupport.pri

index 8defbdb..4797cc9 100644 (file)
@@ -197,8 +197,12 @@ src/uisupport/bufferview.cpp
 src/uisupport/bufferview.h
 src/uisupport/bufferviewfilter.cpp
 src/uisupport/bufferviewfilter.h
+src/uisupport/inputline.cpp
+src/uisupport/inputline.h
 src/uisupport/nickview.cpp
 src/uisupport/nickview.h
+src/uisupport/tabcompleter.cpp
+src/uisupport/tabcompleter.h
 src/uisupport/uistyle.cpp
 src/uisupport/uistyle.h
 src/uisupport/uisupport.pri
index a34f57b..ba74115 100644 (file)
@@ -24,7 +24,6 @@
 #include "clientsettings.h"
 
 class GuiSettings : public ClientSettings {
-  Q_OBJECT
 
   public:
     GuiSettings();
@@ -33,7 +32,6 @@ class GuiSettings : public ClientSettings {
 };
 
 class GuiProfile : public ClientSettings {
-  Q_OBJECT
 
   public:
     GuiProfile();
index 4698119..948b237 100644 (file)
@@ -1,14 +1,14 @@
 DEPMOD = uisupport common client
 QT_MOD = core gui network
 
-SRCS += bufferwidget.cpp channelwidgetinput.cpp chatline-old.cpp \
+SRCS += bufferwidget.cpp chatline-old.cpp \
         chatwidget.cpp coreconnectdlg.cpp configwizard.cpp \
         guisettings.cpp identities.cpp mainwin.cpp nicklistwidget.cpp qtui.cpp qtuistyle.cpp serverlist.cpp settingsdlg.cpp \
-        tabcompleter.cpp topicwidget.cpp
+        topicwidget.cpp
 
-HDRS += bufferwidget.h channelwidgetinput.h chatline-old.h chatwidget.h configwizard.h \
+HDRS += bufferwidget.h chatline-old.h chatwidget.h configwizard.h \
         coreconnectdlg.h guisettings.h identities.h mainwin.h nicklistwidget.h qtui.h qtuistyle.h serverlist.h settingsdlg.h \
-        settingspage.h tabcompleter.h topicwidget.h
+        settingspage.h topicwidget.h
 
 FORMNAMES = identitiesdlg.ui identitieseditdlg.ui networkeditdlg.ui mainwin.ui nickeditdlg.ui serverlistdlg.ui \
             servereditdlg.ui coreconnectdlg.ui bufferviewwidget.ui bufferwidget.ui nicklistwidget.ui settingsdlg.ui \
index f62031e..fd14610 100644 (file)
@@ -149,7 +149,7 @@ p, li { white-space: pre-wrap; }
       </widget>
      </item>
      <item>
-      <widget class="ChannelWidgetInput" name="inputEdit" >
+      <widget class="InputLine" name="inputEdit" >
        <property name="sizePolicy" >
         <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
          <horstretch>0</horstretch>
@@ -164,9 +164,9 @@ p, li { white-space: pre-wrap; }
  </widget>
  <customwidgets>
   <customwidget>
-   <class>ChannelWidgetInput</class>
+   <class>InputLine</class>
    <extends>QLineEdit</extends>
-   <header>channelwidgetinput.h</header>
+   <header>inputline.h</header>
   </customwidget>
  </customwidgets>
  <tabstops>
similarity index 87%
rename from src/qtui/channelwidgetinput.cpp
rename to src/uisupport/inputline.cpp
index 5ee0daa..535b3c2 100644 (file)
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
-#include "channelwidgetinput.h"
+#include "inputline.h"
 
 #include "tabcompleter.h"
 
-ChannelWidgetInput::ChannelWidgetInput(QWidget *parent) : QLineEdit(parent) {
+InputLine::InputLine(QWidget *parent) : QLineEdit(parent) {
   idx = 0;
   connect(this, SIGNAL(returnPressed()), this, SLOT(enter()));
   tabComplete = new TabCompleter(this);
   connect(this, SIGNAL(nickListUpdated(QStringList)), tabComplete, SLOT(updateNickList(QStringList)));
 }
 
-ChannelWidgetInput::~ChannelWidgetInput() {
+InputLine::~InputLine() {
   delete tabComplete;
 }
 
-void ChannelWidgetInput::keyPressEvent(QKeyEvent * event) {
+void InputLine::keyPressEvent(QKeyEvent * event) {
   if(event->key() == Qt::Key_Tab) { // Tabcomplete
     tabComplete->complete();
     event->accept();
@@ -53,7 +53,7 @@ void ChannelWidgetInput::keyPressEvent(QKeyEvent * event) {
   }
 }
 
-bool ChannelWidgetInput::event(QEvent *e) {
+bool InputLine::event(QEvent *e) {
   if(e->type() == QEvent::KeyPress) {
     keyPressEvent(dynamic_cast<QKeyEvent*>(e));
     return true;
@@ -61,12 +61,12 @@ bool ChannelWidgetInput::event(QEvent *e) {
   return QLineEdit::event(e);
 }
 
-void ChannelWidgetInput::enter() {
+void InputLine::enter() {
   history << text();
   idx = history.count();
 }
 
-void ChannelWidgetInput::updateNickList(QStringList l) {
+void InputLine::updateNickList(QStringList l) {
   nickList = l;
   emit nickListUpdated(l);
 }
similarity index 91%
rename from src/qtui/channelwidgetinput.h
rename to src/uisupport/inputline.h
index 5efebd8..b0d59bd 100644 (file)
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
-#ifndef _CHANNELWIDGETINPUT_H_
-#define _CHANNELWIDGETINPUT_H_
+#ifndef _INPUTLINE_H_
+#define _INPUTLINE_H_
 
 #include <QtGui>
 
 class TabCompleter;
 
-class ChannelWidgetInput : public QLineEdit {
+class InputLine : public QLineEdit {
   Q_OBJECT
 
   public:
-    ChannelWidgetInput(QWidget *parent = 0);
-    ~ChannelWidgetInput();
+    InputLine(QWidget *parent = 0);
+    ~InputLine();
     
   protected:
     virtual bool event(QEvent *);
index 910bd69..9ed3309 100644 (file)
@@ -1,8 +1,8 @@
 DEPMOD = common client
 QT_MOD = core gui network
 
-SRCS += bufferview.cpp bufferviewfilter.cpp nickview.cpp uistyle.cpp
-HDRS += bufferview.h bufferviewfilter.h nickview.h uistyle.h
+SRCS += bufferview.cpp bufferviewfilter.cpp inputline.cpp nickview.cpp tabcompleter.cpp uistyle.cpp
+HDRS += bufferview.h bufferviewfilter.h inputline.h nickview.h tabcompleter.h uistyle.h
 
 FORMNAMES =