1
#ifndef _KVI_MESSAGECOLORVIEW_H_INCLUDED_
2
#define _KVI_MESSAGECOLORVIEW_H_INCLUDED_
4
// =============================================================================
6
// --- kvi_messagecolorview.h ---
8
// This file is part of the KVIrc IRC client distribution
9
// Copyright (C) 1999-2000 Szymon Stefanek (stefanek@tin.it)
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 opinion) any later version.
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.
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, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
// =============================================================================
27
#include <qgridview.h>
29
#include "kvi_defines.h"
34
class KviMessageColorView : public QGridView
38
KviMessageColorView(QWidget *);
39
~KviMessageColorView();
43
void forePopupActivated(int);
44
void backPopupActivated(int);
48
KviPopupMenu *m_pPopup;
49
KviPopupMenu *m_pForePopup;
50
KviPopupMenu *m_pBackPopup;
51
unsigned char m_clrBack[KVI_OUT_NUM_IMAGES + 2];
52
QPixmap *m_pColorPixmap[16];
55
unsigned char m_clrFore[KVI_OUT_NUM_IMAGES + 2];
57
virtual void paintCell(QPainter *, int row, int col);
58
bool eventFilter(QObject *, QEvent *);
59
void resizeEvent(QResizeEvent *);
62
#endif // _KVI_MESSAGECOLORVIEW_H_INCLUDED_