1
/***************************************************************************
2
qextendedchecklistitem.h - description
4
begin : Sun Jan 26 2003
5
copyright : (C) 2003 by Jan Schäfer
6
email : janschaefer@users.sourceforge.net
7
***************************************************************************/
9
/******************************************************************************
11
* This file is part of KSambaPlugin. *
13
* KSambaPlugin is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
18
* KSambaPlugin is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
23
* You should have received a copy of the GNU General Public License *
24
* along with KSambaPlugin; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
27
******************************************************************************/
29
#ifndef _QMULTICHECKLISTITEM_H_
30
#define _QMULTICHECKLISTITEM_H_
32
#include <q3listview.h>
34
#include <qbitarray.h>
36
class QMultiCheckListItem : public QObject, public Q3ListViewItem {
40
QMultiCheckListItem( Q3ListView *parent=0);
41
~QMultiCheckListItem() {}
43
virtual bool isOn(int column);
44
virtual bool isDisabled(int column);
49
virtual void paintCell(QPainter *, const QColorGroup &, int, int, int);
52
virtual void setOn(int, bool);
53
virtual void toggle(int);
54
virtual void setDisabled(int, bool);
57
void stateChanged(int, bool);
59
QBitArray checkStates;
60
QBitArray checkBoxColumns;
61
QBitArray disableStates;
62
void resize(int column);