QTfrontend/ui/widget/chatwidget.h
changeset 6197 4ce7c29799b9
parent 6194 32b7e0ece99a
child 6200 6a4ace88d85a
--- a/QTfrontend/ui/widget/chatwidget.h	Mon Oct 24 06:54:46 2011 +0200
+++ b/QTfrontend/ui/widget/chatwidget.h	Mon Oct 24 10:30:47 2011 +0200
@@ -24,6 +24,7 @@
 #include <QListWidget>
 #include <QString>
 #include <QGridLayout>
+#include <QMutex>
 #include <QRegExp>
 
 #include "SDLInteraction.h"
@@ -78,16 +79,27 @@
   void displayNotice(const QString & message);
   void displayWarning(const QString & message);
 
+protected:
+    virtual void dragEnterEvent(QDragEnterEvent * event);
+    virtual void dropEvent(QDropEvent * event);
+
 private:
   static QString * s_styleSheet;
   static QStringList * s_displayNone;
+  static bool s_isTimeStamped;
+  static QMutex s_styleSheetMutex;
+  static const QRegExp URLREGEXP;
+
+  static void setStyleSheet(const QString & styleSheet = "");
 
   void loadList(QStringList & list, const QString & file);
   void saveList(QStringList & list, const QString & file);
   void updateNickItem(QListWidgetItem *item);
   void updateNickItems();
   void addLine(const QString & cssClass, QString line, bool isHighlight = false);
-  static const QRegExp URLREGEXP;
+  bool parseCommand(const QString & line);
+  void discardStyleSheet();
+  void saveStyleSheet();
 
  public slots:
   void onChatString(const QString& str);