X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Finputwidget.h;h=fae3d7f09bb52f81a13f1ab1894e86d1af9d4a6d;hp=371d4292d1c91d0944104b4e17eb6bc0f3784203;hb=e049ffc61b5e260a49d73102a74c3821af827e77;hpb=1b2d3ea62867220d7bffc3b23dda1dc14d429007 diff --git a/src/qtui/inputwidget.h b/src/qtui/inputwidget.h index 371d4292..fae3d7f0 100644 --- a/src/qtui/inputwidget.h +++ b/src/qtui/inputwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -29,6 +29,8 @@ #include "identity.h" #include "network.h" +class InputLine; + class InputWidget : public AbstractItemView { Q_OBJECT @@ -38,30 +40,31 @@ public: const Network *currentNetwork() const; + inline InputLine* inputLine() const { return ui.inputEdit; } + protected slots: virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); + virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); private slots: - void sendText(QString text); + void setCustomFont(const QVariant &font); + void sendText(const QString &text) const; void changeNick(const QString &newNick) const; - void setNetwork(const Network *network); - void setIdentity(const IdentityId &identityId); + void setNetwork(NetworkId networkId); + void setIdentity(IdentityId identityId); + void connectMyIrcUser(); void updateNickSelector() const; + void updateEnabledState(); -signals: - void userInput(BufferInfo, QString msg) const; + BufferInfo currentBufferInfo() const; private: Ui::InputWidget ui; - bool validBuffer; - BufferInfo currentBufferInfo; - NetworkId _networkId; IdentityId _identityId; - };