~ubuntu-branches/ubuntu/trusty/kvirc/trusty

« back to all changes in this revision

Viewing changes to src/kvirc/ui/kvi_historywin.h

  • Committer: Bazaar Package Importer
  • Author(s): Kai Wasserbäch, Kai Wasserbäch, Raúl Sánchez Siles
  • Date: 2011-02-12 10:40:21 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212104021-5mh4f75jlku20mnt
The combined "Twisted Experiment" and "Nocturnal Raid" release.

[ Kai Wasserbäch ]
* Synced to upstream's SVN revision 5467.
* debian/rules:
  - Added .PHONY line.
  - Resurrect -DMANUAL_REVISION, got lost somewhere and we build SVN
    revisions again.
  - Replace "-DWITH_NO_EMBEDDED_CODE=YES" with "-DWANT_CRYPTOPP=YES".
  - Change the remaining -DWITH/-DWITHOUT to the new -DWANT syntax.
* debian/control:
  - Removed DMUA, I'm a DD now.
  - Changed my e-mail address.
  - Removed unneeded relationships (no upgrades over two releases are
    supported).
  - Fix Suggests for kvirc-dbg.
  - kvirc-data: Make the "Suggests: kvirc" a Recommends, doesn't make much
    sense to install the -data package without the program.
* debian/source/local-options: Added with "unapply-patches".
* debian/kvirc.lintian-overrides: Updated to work for 4.1.1.
* debian/patches/21_make_shared-mime-info_B-D_superfluous.patch: Updated.
* debian/kvirc-data.install: Added .notifyrc.

[ Raúl Sánchez Siles ]
* Stating the right version where kvirc-data break and replace should happen.
* Fixing link to license file.
* Added French and Portuguese man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _KVI_HISTORYWIN_H_
2
 
#define _KVI_HISTORYWIN_H_
3
 
//=============================================================================
4
 
//
5
 
//   File : kvi_historywin.h
6
 
//   Creation date : Mon Aug 19 01:34:46 2002 GMT by Szymon Stefanek
7
 
//
8
 
//   This file is part of the KVirc irc client distribution
9
 
//   Copyright (C) 2002-2008 Szymon Stefanek (pragma at kvirc dot net)
10
 
//
11
 
//   This program is FREE software. You can redistribute it and/or
12
 
//   modify it under the terms of the GNU General Public License
13
 
//   as published by the Free Software Foundation; either version 2
14
 
//   of the License, or (at your opinion) any later version.
15
 
//
16
 
//   This program is distributed in the HOPE that it will be USEFUL,
17
 
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
 
//   See the GNU General Public License for more details.
20
 
//
21
 
//   You should have received a copy of the GNU General Public License
22
 
//   along with this program. If not, write to the Free Software Foundation,
23
 
//   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
 
//
25
 
//=============================================================================
26
 
 
27
 
/**
28
 
* \file kvi_historywin.h
29
 
* \author Szymon Stefanek
30
 
* \brief History window management
31
 
*
32
 
* \def KVI_HISTORY_WIN_HEIGHT The height of the history window
33
 
*/
34
 
 
35
 
#include "kvi_settings.h"
36
 
#include "kvi_string.h"
37
 
 
38
 
#include <QListWidget>
39
 
 
40
 
class KviInput;
41
 
 
42
 
#define KVI_HISTORY_WIN_HEIGHT 130
43
 
 
44
 
/**
45
 
* \class KviHistoryWindow
46
 
* \brief History window class
47
 
*/
48
 
class KVIRC_API KviHistoryWindow : public QListWidget
49
 
{
50
 
        Q_OBJECT
51
 
public:
52
 
        /**
53
 
        * \brief Constructs the history window object
54
 
        * \param pParent The parent widget
55
 
        * \return KviHistoryWindow
56
 
        */
57
 
        KviHistoryWindow(QWidget * pParent);
58
 
 
59
 
        /**
60
 
        * \brief Destroys the history window object
61
 
        */
62
 
        ~KviHistoryWindow();
63
 
private:
64
 
        KviInput * m_pOwner;
65
 
        int        m_iTimerId;
66
 
        QWidget  * m_pParent;
67
 
public:
68
 
        /**
69
 
        * \brief Shows the popup
70
 
        * \param pOwner The owner of the popup
71
 
        * \return void
72
 
        */
73
 
        void popup(KviInput * pOwner);
74
 
 
75
 
        //KviInput * owner(){ return m_pOwner; };
76
 
 
77
 
        /**
78
 
        * \brief Hides the parent and set the focus to the owner
79
 
        * \return void
80
 
        */
81
 
        void doHide();
82
 
private:
83
 
        /**
84
 
        * \brief Shows the widget
85
 
        * \return void
86
 
        */
87
 
        virtual void show();
88
 
 
89
 
        /**
90
 
        * \brief Fills in the window with strings from input history
91
 
        * \return void
92
 
        */
93
 
        void fill();
94
 
 
95
 
        //bool findTypedSeq(); // returns true if it is a complete word
96
 
        virtual void keyPressEvent(QKeyEvent * e);
97
 
        virtual void mousePressEvent(QMouseEvent * e);
98
 
        virtual void timerEvent(QTimerEvent * e);
99
 
        virtual void hideEvent(QHideEvent * e);
100
 
public slots:
101
 
        /**
102
 
        * \brief Called when the owner is dead
103
 
        * \return void
104
 
        */
105
 
        void ownerDead();
106
 
 
107
 
        /**
108
 
        * \brief Called when an item is selected
109
 
        * \param pItem The selected item
110
 
        * \return void
111
 
        */
112
 
        void itemSelected(QListWidgetItem * pItem);
113
 
};
114
 
 
115
 
/**
116
 
* \class KviHistoryWindowWidget
117
 
* \brief History window widget class
118
 
*/
119
 
class KVIRC_API KviHistoryWindowWidget : public QWidget
120
 
{
121
 
        Q_OBJECT
122
 
public:
123
 
        KviHistoryWindow * m_pWindow;
124
 
public:
125
 
        /**
126
 
        * \brief Constructs the history window widget object
127
 
        * \return KviHistoryWindowWidget
128
 
        */
129
 
        KviHistoryWindowWidget();
130
 
 
131
 
        /**
132
 
        * \brief Destroys the history window widget object
133
 
        */
134
 
        ~KviHistoryWindowWidget();
135
 
public:
136
 
        /**
137
 
        * \brief Shows the popup
138
 
        * \param pOwner The owner of the popup
139
 
        * \return void
140
 
        */
141
 
        void popup(KviInput * pOwner);
142
 
};
143
 
 
144
 
#endif //_KVI_HISTORYWIN_H_