~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to noatun/noatun/modules/liszt/CharlatanItem.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2000 Rik Hemsley (rikkus) <rik@kde.org>. All rights reserved.
 
3
 *
 
4
LICENSE
 
5
 */
 
6
 
 
7
#ifndef ITEM_H
 
8
#define ITEM_H
 
9
 
 
10
#include <qlistview.h>
 
11
#include <qstring.h>
 
12
 
 
13
class CharlatanItem : public QListViewItem
 
14
{
 
15
  public:
 
16
 
 
17
    CharlatanItem(QListView * parent, QString name)
 
18
      : QListViewItem(parent, name),
 
19
        sunken_(-1)
 
20
    {
 
21
    }
 
22
 
 
23
    CharlatanItem(QListViewItem * parent, QString name)
 
24
      : QListViewItem(parent, name),
 
25
        sunken_(-1)
 
26
    {
 
27
    }
 
28
 
 
29
    virtual ~CharlatanItem()
 
30
    {
 
31
    }
 
32
 
 
33
    void setSunken(int i) { sunken_ = i; repaint(); }
 
34
 
 
35
    virtual void increaseScore() = 0;
 
36
    virtual void decreaseScore() = 0;
 
37
 
 
38
    virtual void paintCell(QPainter *, const QColorGroup &, int, int, int a);
 
39
 
 
40
  private:
 
41
 
 
42
    int sunken_;
 
43
};
 
44
 
 
45
#endif