1
/****************************************************************************
2
** msgmle.h - subclass of QTextEdit to handle various hotkeys
3
** Copyright (C) 2001, 2002 Justin Karneges
5
** This program is free software; you can redistribute it and/or
6
** modify it under the terms of the GNU General Public License
7
** as published by the Free Software Foundation; either version 2
8
** of the License, or (at your option) any later version.
10
** This program is distributed in the hope that it will be useful,
11
** but WITHOUT ANY WARRANTY; without even the implied warranty of
12
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
** GNU General Public License for more details.
15
** You should have received a copy of the GNU General Public License
16
** along with this program; if not, write to the Free Software
17
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
19
****************************************************************************/
2
* msgmle.h - subclass of PsiTextView to handle various hotkeys
3
* Copyright (C) 2001-2003 Justin Karneges, Michail Pishchagin
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this library; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
class MsgMle : public QTextEdit
30
MsgMle(QWidget *parent=0, const char *name=0);
33
void linkClicked(const QString &);
36
// override the tab/esc behavior
37
bool focusNextPrevChild(bool next);
38
void keyPressEvent(QKeyEvent *);
39
bool linksEnabled() const { return TRUE; }
40
QPopupMenu *createPopupMenu(const QPoint& pos);
47
void emitLinkClicked(const QString &);
52
class ChatMle : public QTextEdit
55
ChatMle(QWidget *parent=0, const char *name=0);
58
// override the tab/esc behavior
59
bool focusNextPrevChild(bool next);
60
void keyPressEvent(QKeyEvent *);
24
#include"psitextview.h"
26
class ChatView : public PsiTextView
29
ChatView(QWidget *parent, const char *name = 0);
33
// override the tab/esc behavior
34
bool focusNextPrevChild(bool next);
35
void keyPressEvent(QKeyEvent *);
36
void resizeEvent(QResizeEvent *);
39
class ChatEdit : public PsiTextView
42
ChatEdit(QWidget *parent, const char *name = 0);
46
// override the tab/esc behavior
47
bool focusNextPrevChild(bool next);
48
void keyPressEvent(QKeyEvent *);