use clicked() signal instead of toggled()
[quassel.git] / src / qtui / inputwidget.h
index 7d7c053..c29b3ed 100644 (file)
@@ -28,6 +28,7 @@
 #include "bufferinfo.h"
 #include "identity.h"
 #include "network.h"
+#include <action.h>
 
 class MultiLineEdit;
 
@@ -70,11 +71,28 @@ private slots:
 
   BufferInfo currentBufferInfo() const;
 
+  void currentCharFormatChanged(const QTextCharFormat &format);
+  void on_showStyleButton_toggled(bool checked);
+  void on_boldButton_clicked(bool checked);
+  void on_italicButton_clicked(bool checked);
+  void on_underlineButton_clicked(bool checked);
+  void colorChoosen(QAction * action);
+  void colorHighlightChoosen(QAction * action);
+
 private:
   Ui::InputWidget ui;
 
   NetworkId _networkId;
   IdentityId _identityId;
+  QMenu *_colorMenu, *_colorFillMenu;
+
+  void mergeFormatOnWordOrSelection(const QTextCharFormat &format);
+  void fontChanged(const QFont &f);
+  void colorChanged(const QColor &fg);
+  void colorHighlightChanged(const QColor &bg);
+  QIcon createColorToolButtonIcon(const QIcon &icon, QColor color);
+  QTextCharFormat getFormatOfWordOrSelection();
+  void setFormatOnWordOrSelection(const QTextCharFormat &format);
 };