~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to src/msgmle.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2005-01-10 17:41:43 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050110174143-ltocv5zapl6blf5d
Tags: 0.9.3-1
* New upstream release
* Cleaned up debian/rules (some things are done by upstream Makefiles now)
* Fixed some lintian warnings:
  - removed executable bit from some .png files
  - moved psi.desktop to /usr/share/applications
* Updated menu files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
** msgmle.h - subclass of QTextEdit to handle various hotkeys
3
 
** Copyright (C) 2001, 2002  Justin Karneges
4
 
**
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.
9
 
**
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.
14
 
**
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.
18
 
**
19
 
****************************************************************************/
 
1
/*
 
2
 * msgmle.h - subclass of PsiTextView to handle various hotkeys
 
3
 * Copyright (C) 2001-2003  Justin Karneges, Michail Pishchagin
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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
 
18
 *
 
19
 */
20
20
 
21
21
#ifndef MSGMLE_H
22
22
#define MSGMLE_H
23
23
 
24
 
#include<qtextedit.h>
25
 
 
26
 
class MsgMle : public QTextEdit
27
 
{
28
 
        Q_OBJECT
29
 
public:
30
 
        MsgMle(QWidget *parent=0, const char *name=0);
31
 
 
32
 
signals:
33
 
        void linkClicked(const QString &);
34
 
 
35
 
protected:
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);
41
 
 
42
 
private slots:
43
 
        void menuURL();
44
 
        void menuCopy();
45
 
 
46
 
private:
47
 
        void emitLinkClicked(const QString &);
48
 
 
49
 
        QString lastLink;
50
 
};
51
 
 
52
 
class ChatMle : public QTextEdit
53
 
{
54
 
public:
55
 
        ChatMle(QWidget *parent=0, const char *name=0);
56
 
 
57
 
protected:
58
 
        // override the tab/esc behavior
59
 
        bool focusNextPrevChild(bool next);
60
 
        void keyPressEvent(QKeyEvent *);
61
 
};
 
24
#include"psitextview.h"
 
25
 
 
26
class ChatView : public PsiTextView
 
27
{
 
28
public:
 
29
        ChatView(QWidget *parent, const char *name = 0);
 
30
        ~ChatView();
 
31
 
 
32
protected:
 
33
        // override the tab/esc behavior
 
34
        bool focusNextPrevChild(bool next);
 
35
        void keyPressEvent(QKeyEvent *);
 
36
        void resizeEvent(QResizeEvent *);
 
37
};
 
38
 
 
39
class ChatEdit : public PsiTextView
 
40
{
 
41
public:
 
42
        ChatEdit(QWidget *parent, const char *name = 0);
 
43
        ~ChatEdit();
 
44
 
 
45
protected:
 
46
        // override the tab/esc behavior
 
47
        bool focusNextPrevChild(bool next);
 
48
        void keyPressEvent(QKeyEvent *);
 
49
};
 
50
 
62
51
 
63
52
#endif