KVIrc  4.9.2
DeveloperAPIs
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 #include "KviCString.h"
37 
38 #include <QListWidget>
39 
40 class KviInput;
41 
42 #define KVI_HISTORY_WIN_HEIGHT 130
43 
48 class KVIRC_API KviHistoryWindow : public QListWidget
49 {
50  Q_OBJECT
51 public:
57  KviHistoryWindow(QWidget * pParent);
58 
63 
64 private:
67  QWidget * m_pParent;
68 
69 public:
75  void popup(KviInput * pOwner);
76 
77  //KviInput * owner(){ return m_pOwner; };
78 
83  void doHide();
84 
85 private:
90  virtual void show();
91 
96  void fill();
97 
98  //bool findTypedSeq(); // returns true if it is a complete word
99  virtual void keyPressEvent(QKeyEvent * e);
100  virtual void mousePressEvent(QMouseEvent * e);
101  virtual void timerEvent(QTimerEvent * e);
102  virtual void hideEvent(QHideEvent * e);
103 public slots:
108  void ownerDead();
109 
115  void itemSelected(QListWidgetItem * pItem);
116 };
117 
122 class KVIRC_API KviHistoryWindowWidget : public QWidget
123 {
124  Q_OBJECT
125 public:
127 
128 public:
134 
139 
140 public:
146  void popup(KviInput * pOwner);
147 };
148 
149 #endif //_KVI_HISTORYWIN_H_
History window widget class.
Definition: KviHistoryWindow.h:122
KviHistoryWindow * m_pWindow
Definition: KviHistoryWindow.h:126
#define KVIRC_API
Definition: kvi_settings.h:128
History window class.
Definition: KviHistoryWindow.h:48
#define e
Definition: detector.cpp:69
int m_iTimerId
Definition: KviHistoryWindow.h:66
Input handling class.
Definition: KviInput.h:53
KviInput * m_pOwner
Definition: KviHistoryWindow.h:65
QWidget * m_pParent
Definition: KviHistoryWindow.h:67
This file contains compile time settings.