1
#ifndef _KVI_HISTORYWIN_H_
2
#define _KVI_HISTORYWIN_H_
3
//=============================================================================
5
// File : kvi_historywin.h
6
// Creation date : Mon Aug 19 01:34:46 2002 GMT by Szymon Stefanek
8
// This file is part of the KVirc irc client distribution
9
// Copyright (C) 2002-2008 Szymon Stefanek (pragma at kvirc dot net)
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.
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.
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.
25
//=============================================================================
28
* \file kvi_historywin.h
29
* \author Szymon Stefanek
30
* \brief History window management
32
* \def KVI_HISTORY_WIN_HEIGHT The height of the history window
35
#include "kvi_settings.h"
36
#include "kvi_string.h"
38
#include <QListWidget>
42
#define KVI_HISTORY_WIN_HEIGHT 130
45
* \class KviHistoryWindow
46
* \brief History window class
48
class KVIRC_API KviHistoryWindow : public QListWidget
53
* \brief Constructs the history window object
54
* \param pParent The parent widget
55
* \return KviHistoryWindow
57
KviHistoryWindow(QWidget * pParent);
60
* \brief Destroys the history window object
69
* \brief Shows the popup
70
* \param pOwner The owner of the popup
73
void popup(KviInput * pOwner);
75
//KviInput * owner(){ return m_pOwner; };
78
* \brief Hides the parent and set the focus to the owner
84
* \brief Shows the widget
90
* \brief Fills in the window with strings from input history
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);
102
* \brief Called when the owner is dead
108
* \brief Called when an item is selected
109
* \param pItem The selected item
112
void itemSelected(QListWidgetItem * pItem);
116
* \class KviHistoryWindowWidget
117
* \brief History window widget class
119
class KVIRC_API KviHistoryWindowWidget : public QWidget
123
KviHistoryWindow * m_pWindow;
126
* \brief Constructs the history window widget object
127
* \return KviHistoryWindowWidget
129
KviHistoryWindowWidget();
132
* \brief Destroys the history window widget object
134
~KviHistoryWindowWidget();
137
* \brief Shows the popup
138
* \param pOwner The owner of the popup
141
void popup(KviInput * pOwner);
144
#endif //_KVI_HISTORYWIN_H_