KVIrc
4.9.2
DeveloperAPIs
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
kvirc
ui
KviTextIconWindow.h
Go to the documentation of this file.
1
#ifndef _KVI_TEXTICONWIN_H_
2
#define _KVI_TEXTICONWIN_H_
3
//=============================================================================
4
//
5
// File : KviTextIconWindow.h
6
// Creation date : Fri May 17 2002 02:33:45 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
36
#include "
kvi_settings.h
"
37
#include "
KviCString.h
"
38
#include "
KviIconManager.h
"
39
40
#include <QPainter>
41
#include <QTableWidget>
42
43
#define KVI_TEXTICON_WIN_WIDTH 230
44
#define KVI_TEXTICON_WIN_HEIGHT 200
45
#define KVI_TEXTICON_COLUMNS 6
46
50
class
KVIRC_API
KviTextIconWindow
:
public
QWidget
51
{
52
Q_OBJECT
53
public
:
58
KviTextIconWindow
();
59
63
~
KviTextIconWindow
();
64
65
private
:
66
QWidget *
m_pOwner
;
67
QTableWidget *
m_pTable
;
68
bool
m_bAltMode
;
// in alt mode the inserted string will contains also the Ctrl+I escape code
69
public
:
76
void
popup(QWidget * pOwner,
bool
bAltMode);
77
78
private
:
83
void
doHide();
84
85
private
:
86
virtual
bool
eventFilter(QObject *
o
, QEvent *
e
);
87
void
autoSelectBestMatchBasedOnOwnerText();
88
89
public
slots:
94
void
fill();
95
100
void
ownerDead();
101
108
void
cellSelected(
int
row,
int
column);
109
};
110
111
#endif //_KVI_TEXTICONWIN_H_
KVIRC_API
#define KVIRC_API
Definition:
kvi_settings.h:128
KviTextIconWindow::m_pOwner
QWidget * m_pOwner
Definition:
KviTextIconWindow.h:66
e
#define e
Definition:
detector.cpp:69
KviIconManager.h
Icon manager.
KviTextIconWindow::m_pTable
QTableWidget * m_pTable
Definition:
KviTextIconWindow.h:67
KviTextIconWindow
Text icon window class.
Definition:
KviTextIconWindow.h:50
o
#define o
Definition:
detector.cpp:79
KviCString.h
KviTextIconWindow::m_bAltMode
bool m_bAltMode
Definition:
KviTextIconWindow.h:68
kvi_settings.h
This file contains compile time settings.
Generated on Mon May 16 2016 22:48:44 for KVIrc by
1.8.7