~ubuntu-branches/ubuntu/natty/kdenetwork/natty-proposed

« back to all changes in this revision

Viewing changes to .pc/kubuntu_05_samba_sharing.diff/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-02-21 14:26:58 UTC
  • Revision ID: package-import@ubuntu.com-20110221142658-mzt9flk82tzdunxj
Tags: 4:4.6.0-0ubuntu4
Update kubuntu_05_samba_sharing.diff to match master

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          qextendedchecklistitem.h  -  description
 
3
                             -------------------
 
4
    begin                : Sun Jan 26 2003
 
5
    copyright            : (C) 2003 by Jan Schäfer
 
6
    email                : janschaefer@users.sourceforge.net
 
7
 ***************************************************************************/
 
8
 
 
9
/******************************************************************************
 
10
 *                                                                            *
 
11
 *  This file is part of KSambaPlugin.                                        *
 
12
 *                                                                            *
 
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.                                       *
 
17
 *                                                                            *
 
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.                              *
 
22
 *                                                                            *
 
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  *
 
26
 *                                                                            *
 
27
 ******************************************************************************/
 
28
  
 
29
#ifndef _QMULTICHECKLISTITEM_H_
 
30
#define _QMULTICHECKLISTITEM_H_
 
31
 
 
32
#include <q3listview.h>
 
33
 
 
34
#include <qbitarray.h>
 
35
 
 
36
class QMultiCheckListItem : public QObject, public Q3ListViewItem {
 
37
Q_OBJECT
 
38
 
 
39
  public:
 
40
    QMultiCheckListItem( Q3ListView *parent=0);
 
41
    ~QMultiCheckListItem() {}
 
42
    
 
43
    virtual bool isOn(int column);
 
44
    virtual bool isDisabled(int column);
 
45
      
 
46
    
 
47
  protected:
 
48
    /* reimp */
 
49
    virtual void paintCell(QPainter *, const QColorGroup &, int, int, int);
 
50
    
 
51
  public slots:
 
52
    virtual void setOn(int, bool);
 
53
    virtual void toggle(int);  
 
54
    virtual void setDisabled(int, bool);
 
55
    
 
56
  signals:
 
57
    void stateChanged(int, bool);    
 
58
  private:
 
59
    QBitArray checkStates;
 
60
    QBitArray checkBoxColumns;
 
61
    QBitArray disableStates;
 
62
    void resize(int column);
 
63
};
 
64
 
 
65
#endif