mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-08 14:22:31 -04:00
added for plugins own dir
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
97d8640f3a
commit
87344de7d4
809 changed files with 790 additions and 722 deletions
55
plugins/i2pmessenger_plugin/gui/form_chatwidget.h
Normal file
55
plugins/i2pmessenger_plugin/gui/form_chatwidget.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
#ifndef FORM_CHATWIDGET_h
|
||||
#define FORM_CHATWIDGET_h
|
||||
|
||||
|
||||
#include "ui_form_chatwidget.h"
|
||||
#include "gui_icons.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <Qt>
|
||||
#include <QClipboard>
|
||||
#include <QKeyEvent>
|
||||
class ChatEventEater : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ChatEventEater(QWidget *parent = 0) : QObject(parent){ }
|
||||
bool m_send_on_enter;
|
||||
|
||||
signals:
|
||||
void sendMessage();
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
|
||||
};
|
||||
|
||||
class cUser;
|
||||
class form_ChatWidget : public QWidget, public Ui::form_chatwidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
form_ChatWidget(cUser* user,QWidget* parent = 0);
|
||||
void closeEvent(QCloseEvent *e);
|
||||
private slots:
|
||||
void sendMessageSignal();
|
||||
void addMessage(QString text);
|
||||
void setTextColor();
|
||||
void newMessageRecived();
|
||||
void setBold(bool t);
|
||||
void setFont();
|
||||
void WorkAround();
|
||||
void changeWindowsTitle();
|
||||
|
||||
|
||||
signals:
|
||||
void sendChatMessage(QString chatMessage);
|
||||
|
||||
private:
|
||||
QColor textColor;
|
||||
QStringList history;
|
||||
cUser* user;
|
||||
QFont mCurrentFont;
|
||||
ChatEventEater *m_event_eater;
|
||||
};
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue