Save the mainwindow state properly when exiting the client.
[quassel.git] / src / uisupport / inputline.h
index 802eae2..de4206d 100644 (file)
@@ -28,29 +28,28 @@ class TabCompleter;
 class InputLine : public QLineEdit {
   Q_OBJECT
 
-  public:
-    InputLine(QWidget *parent = 0);
-    ~InputLine();
+public:
+  InputLine(QWidget *parent = 0);
+  ~InputLine();
     
-  protected:
-    virtual bool event(QEvent *);
-    virtual void keyPressEvent(QKeyEvent * event);
+protected:
+  //    virtual bool event(QEvent *);
+  virtual void keyPressEvent(QKeyEvent * event);
 
-  private slots:
-    void enter();
+private slots:
+  void on_returnPressed();
+  void on_textChanged(QString newText);
 
-  public slots:
-    void updateNickList(QStringList);
-    
-  signals:
-    void nickListUpdated(QStringList);
-    
-  private:
-    qint32 idx;
-    QStringList history;
-    QStringList nickList;
+signals:
+  void sendText(QString text);
+
+private:
+  QStringList history;
+  qint32 idx;
+  TabCompleter *tabCompleter;
 
-    TabCompleter *tabComplete;
+  int bindModifier;
+  int jumpModifier;
 };
 
 #endif