KVIrc
5.2.6
Developer APIs
src
kvirc
ui
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
39
class
KviInput
;
40
41
#define KVI_HISTORY_WIN_HEIGHT 130
42
47
class
KVIRC_API
KviHistoryWindow
:
public
QListWidget
48
{
49
Q_OBJECT
50
public
:
56
KviHistoryWindow
(QWidget * pParent);
57
61
~KviHistoryWindow
();
62
63
private
:
64
KviInput
*
m_pOwner
;
65
int
m_iTimerId
;
66
QWidget *
m_pParent
;
67
68
public
:
74
void
popup(
KviInput
* pOwner);
75
76
//KviInput * owner(){ return m_pOwner; };
77
82
void
doHide();
83
84
private
:
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
;
102
public
slots:
107
void
ownerDead();
108
114
void
itemSelected(QListWidgetItem * pItem);
115
};
116
121
class
KVIRC_API
KviHistoryWindowWidget
:
public
QWidget
122
{
123
Q_OBJECT
124
public
:
125
KviHistoryWindow
*
m_pWindow
;
126
127
public
:
132
KviHistoryWindowWidget
();
133
137
~KviHistoryWindowWidget
();
138
139
public
:
145
void
popup(
KviInput
* pOwner);
146
};
147
148
#endif
//_KVI_HISTORYWIN_H_
KviHistoryWindowWidget
History window widget class.
Definition
KviHistoryWindow.h:122
KviHistoryWindowWidget::~KviHistoryWindowWidget
~KviHistoryWindowWidget()
Destroys the history window widget object.
KviHistoryWindowWidget::m_pWindow
KviHistoryWindow * m_pWindow
Definition
KviHistoryWindow.h:125
KviHistoryWindow
History window class.
Definition
KviHistoryWindow.h:48
KviHistoryWindow::m_pParent
QWidget * m_pParent
Definition
KviHistoryWindow.h:66
KviHistoryWindow::m_iTimerId
int m_iTimerId
Definition
KviHistoryWindow.h:65
KviHistoryWindow::m_pOwner
KviInput * m_pOwner
Definition
KviHistoryWindow.h:64
KviInput
Input handling class.
Definition
KviInput.h:54
e
#define e
Definition
detector.cpp:70
kvi_settings.h
This file contains compile time settings.
KVIRC_API
#define KVIRC_API
Definition
kvi_settings.h:127
Generated on Mon Nov 18 2024 15:22:29 for KVIrc by
1.12.0