~ubuntu-branches/ubuntu/karmic/kleansweep/karmic

« back to all changes in this revision

Viewing changes to src/fileviewitem.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-01-20 11:26:41 UTC
  • Revision ID: james.westby@ubuntu.com-20060120112641-xd1rmv568k0vvz3u
Tags: upstream-0.2.5
ImportĀ upstreamĀ versionĀ 0.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is a part of KleanSweep.
 
3
 *
 
4
 * Copyright (C) 2005 Pawel Stolowski <pawel.stolowski@wp.pl>
 
5
 *
 
6
 * KleanSweep is free software; you can redestribute it and/or modify it
 
7
 * under terms of GNU General Public License by Free Software Foundation.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY. See GPL for more details.
 
11
 */
 
12
 
 
13
#ifndef __FILEVIEWITEM_H
 
14
#define __FILEVIEWITEM_H
 
15
 
 
16
#include <qlistview.h>
 
17
 
 
18
class FileListView;
 
19
class SweepFileInfo;
 
20
 
 
21
class FileViewItem: public QCheckListItem
 
22
{
 
23
        protected:
 
24
                static const int ScoreW;
 
25
                static const int ScoreH;
 
26
                static const int ScoreTotalW;
 
27
                SweepFileInfo *finfo;
 
28
                
 
29
                virtual void stateChange(bool);
 
30
        public:
 
31
                FileViewItem(FileListView *parent, SweepFileInfo *f);
 
32
                FileViewItem(FileViewItem *parent, SweepFileInfo *f);
 
33
                virtual ~FileViewItem();
 
34
 
 
35
                virtual void setColumns(int cols);
 
36
                SweepFileInfo* fileItem() const;
 
37
                
 
38
                virtual int compare(QListViewItem *i, int col, bool ascending) const;
 
39
                virtual int width(const QFontMetrics &fm, const QListView *lv, int c) const;
 
40
                virtual void paintCell(QPainter *p, const QColorGroup &cg, int col, int width, int align);
 
41
                virtual void paintFocus(QPainter *p, const QColorGroup &cg, const QRect &r);
 
42
};
 
43
 
 
44
#endif