it in QuasselTopia as well. Oh, and make Quassel compile again.
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
#include "clientsettings.h"
class GuiSettings : public ClientSettings {
- Q_OBJECT
public:
GuiSettings();
};
class GuiProfile : public ClientSettings {
- Q_OBJECT
public:
GuiProfile();
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 \
</widget>
</item>
<item>
- <widget class="ChannelWidgetInput" name="inputEdit" >
+ <widget class="InputLine" name="inputEdit" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
</widget>
<customwidgets>
<customwidget>
- <class>ChannelWidgetInput</class>
+ <class>InputLine</class>
<extends>QLineEdit</extends>
- <header>channelwidgetinput.h</header>
+ <header>inputline.h</header>
</customwidget>
</customwidgets>
<tabstops>
* 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();
}
}
-bool ChannelWidgetInput::event(QEvent *e) {
+bool InputLine::event(QEvent *e) {
if(e->type() == QEvent::KeyPress) {
keyPressEvent(dynamic_cast<QKeyEvent*>(e));
return true;
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);
}
* 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 *);
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 =