KVIrc 5.2.4
Developer APIs
KviHistoryWindow.h
Go to the documentation of this file.
1#ifndef _KVI_HISTORYWIN_H_
2#define _KVI_HISTORYWIN_H_
3//=============================================================================
4//
5// File : KviHistoryWindow.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-2010 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 option) 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
35#include "kvi_settings.h"
36
37#include <QListWidget>
38
39class KviInput;
40
41#define KVI_HISTORY_WIN_HEIGHT 130
42
47class KVIRC_API KviHistoryWindow : public QListWidget
48{
49 Q_OBJECT
50public:
56 KviHistoryWindow(QWidget * pParent);
57
62
63private:
66 QWidget * m_pParent;
67
68public:
74 void popup(KviInput * pOwner);
75
76 //KviInput * owner(){ return m_pOwner; };
77
82 void doHide();
83
84private:
89 virtual void show();
90
95 void fill();
96
97 //bool findTypedSeq(); // returns true if it is a complete word
98 void keyPressEvent(QKeyEvent * e) override;
99 void mousePressEvent(QMouseEvent * e) override;
100 void timerEvent(QTimerEvent * e) override;
101 void hideEvent(QHideEvent * e) override;
102public slots:
107 void ownerDead();
108
114 void itemSelected(QListWidgetItem * pItem);
115};
116
121class KVIRC_API KviHistoryWindowWidget : public QWidget
122{
123 Q_OBJECT
124public:
126
127public:
133
138
139public:
145 void popup(KviInput * pOwner);
146};
147
148#endif //_KVI_HISTORYWIN_H_
History window widget class.
Definition KviHistoryWindow.h:122
~KviHistoryWindowWidget()
Destroys the history window widget object.
KviHistoryWindow * m_pWindow
Definition KviHistoryWindow.h:125
History window class.
Definition KviHistoryWindow.h:48
QWidget * m_pParent
Definition KviHistoryWindow.h:66
int m_iTimerId
Definition KviHistoryWindow.h:65
KviInput * m_pOwner
Definition KviHistoryWindow.h:64
Input handling class.
Definition KviInput.h:54
#define e
Definition detector.cpp:70
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127