KVIrc 5.2.4
Developer APIs
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
27#include "kvi_settings.h"
28#include "KviIconManager.h"
29
30class QTableWidget;
31
32constexpr int KVI_TEXTICON_WIN_WIDTH = 230;
33constexpr int KVI_TEXTICON_WIN_HEIGHT = 200;
34constexpr int KVI_TEXTICON_COLUMNS = 6;
35
40class KVIRC_API KviTextIconWindow : public QWidget
41{
42 Q_OBJECT
43public:
46
47private:
48 QWidget * m_pOwner = nullptr;
49 QTableWidget * m_pTable;
50 bool m_bAltMode = false; // in alt mode the inserted string will contains also the Alt+E escape code
51public:
58 void popup(QWidget * pOwner, bool bAltMode);
59
60private:
65 void doHide();
66
67private:
68 bool eventFilter(QObject * o, QEvent * e) override;
69 void autoSelectBestMatchBasedOnOwnerText();
70
71public slots:
76 void fill();
77
82 void ownerDead();
83
90 void cellSelected(int row, int column);
91};
92
93#endif //_KVI_TEXTICONWIN_H_
Icon manager.
constexpr int KVI_TEXTICON_COLUMNS
Definition KviTextIconWindow.h:34
constexpr int KVI_TEXTICON_WIN_WIDTH
Definition KviTextIconWindow.h:32
constexpr int KVI_TEXTICON_WIN_HEIGHT
Definition KviTextIconWindow.h:33
Text icon window class.
Definition KviTextIconWindow.h:41
QTableWidget * m_pTable
Definition KviTextIconWindow.h:49
#define e
Definition detector.cpp:70
#define o
Definition detector.cpp:80
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127