X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Finputwidget.h;h=fae3d7f09bb52f81a13f1ab1894e86d1af9d4a6d;hb=62fc1acc7f17cb2397ba2d7e879a1266c0a7672c;hp=5bffbc7fadb2e177c0d7e15736a27785d015c1f8;hpb=b49131fcb4ec65ead52fc061c5be2f160a8be3cf;p=quassel.git diff --git a/src/qtui/inputwidget.h b/src/qtui/inputwidget.h index 5bffbc7f..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,27 +40,29 @@ 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(); BufferInfo currentBufferInfo() const; -signals: - void userInput(BufferInfo, QString msg) const; - private: Ui::InputWidget ui; - + NetworkId _networkId; IdentityId _identityId; };