diff options
| author | Sebastian | 2010-05-12 19:42:27 +0200 |
|---|---|---|
| committer | Sebastian | 2010-05-12 19:42:27 +0200 |
| commit | ce3329047d378a14006ce74ec273ac59e3375303 (patch) | |
| tree | 782430f270b4c7aca1b35d5b7813518e3797c555 /src/gui/serverChatDialog.h | |
| download | pvs-ce3329047d378a14006ce74ec273ac59e3375303.tar.gz pvs-ce3329047d378a14006ce74ec273ac59e3375303.tar.xz pvs-ce3329047d378a14006ce74ec273ac59e3375303.zip | |
initial import of latest svn version
Diffstat (limited to 'src/gui/serverChatDialog.h')
| -rw-r--r-- | src/gui/serverChatDialog.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/gui/serverChatDialog.h b/src/gui/serverChatDialog.h new file mode 100644 index 0000000..728af05 --- /dev/null +++ b/src/gui/serverChatDialog.h @@ -0,0 +1,67 @@ +#ifndef SERVERCHATDIALOG_H_ +#define SERVERCHATDIALOG_H_ + +#include <QtGui> +#include <src/gui/serverFileTransfert.h> +#include "pvsinterface.h" + +class MainWindow; + +namespace Ui +{ + class ServerChatDialogClass; +} + +class ServerChatDialog: public QDialog +{ + Q_OBJECT + +public: + ServerChatDialog(QWidget *parent = 0); + ~ServerChatDialog(); + void setTrayIcon(QSystemTrayIcon *trayIcon); + void chat_nicklist_update(); + void chat_client_add(QString nick); + void chat_client_remove(QString nick); + +public Q_SLOTS: + void open(); + void chat_receive(QString nick_from, QString nick_to, QString msg); + void chat_send(); + + +private Q_SLOTS: + void addTab(QModelIndex i); + void sendFile(); + void showMenu(QPoint p); + void removeTab(int i); + void removeIcon(int i); + +private: + Ui::ServerChatDialogClass *uichat; + QTextEdit* getTab(QString text); + void showMsg(QString nick_from, QString msg, QTextEdit *t); + void sendFile(QString filename); + void showEvent(QString msg); + + QList<QTextEdit *> _tabList; + + QHash<QString, QTextEdit*> *_hash; + + QString _nickname; + QStringList _nickList; + + QMenu* _menu; + QAction* _sendFileAction; + +protected: + void dragEnterEvent(QDragEnterEvent *event); + void dragMoveEvent(QDragMoveEvent *event); + void dragLeaveEvent(QDragLeaveEvent *event); + void dropEvent(QDropEvent *event); + +}; + + + +#endif /* SERVERCHATDIALOG_H_ */ |
