added zoom feature: "ctrl +" magnifies, "ctrl -" demagnifies and "ctrl 0" normalizes
[quassel.git] / src / qtui / inputwidget.h
index dbf783e..fc358f2 100644 (file)
@@ -29,6 +29,8 @@
 #include "identity.h"
 #include "network.h"
 
 #include "identity.h"
 #include "network.h"
 
+class InputLine;
+
 class InputWidget : public AbstractItemView {
   Q_OBJECT
 
 class InputWidget : public AbstractItemView {
   Q_OBJECT
 
@@ -38,6 +40,8 @@ public:
 
   const Network *currentNetwork() const;
 
 
   const Network *currentNetwork() const;
 
+  inline  InputLine* inputLine() const { return ui.inputEdit; }
+
 protected slots:
   virtual void currentChanged(const QModelIndex &current, const QModelIndex &previous);
   virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
 protected slots:
   virtual void currentChanged(const QModelIndex &current, const QModelIndex &previous);
   virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
@@ -49,6 +53,7 @@ private slots:
   void setNetwork(const Network *network);
   void setIdentity(const IdentityId &identityId);
   void updateNickSelector() const;
   void setNetwork(const Network *network);
   void setIdentity(const IdentityId &identityId);
   void updateNickSelector() const;
+  void updateEnabledState();
 
   BufferInfo currentBufferInfo() const;
 
 
   BufferInfo currentBufferInfo() const;
 
@@ -57,12 +62,9 @@ signals:
 
 private:
   Ui::InputWidget ui;
 
 private:
   Ui::InputWidget ui;
-
-  bool validBuffer;
   
   NetworkId _networkId;
   IdentityId _identityId;
   
   NetworkId _networkId;
   IdentityId _identityId;
-
 };
 
 
 };