aboutsummaryrefslogtreecommitdiff
path: root/src/BarDisplay.h
blob: 27b4d2a57f70c5f74125511f740f6eed45307a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef BarDisplay_h
#define BarDisplay_h

#include <QPixmap>

class BarDisplay : public QPixmap
{
public:
    BarDisplay(int w = 250, int h = 40);
    virtual ~BarDisplay();

    void initShape();

    void collected(int);
    void consumed(int);
    void setDisplayColor(QColor col);
    
signals:
    
public slots:

private:
    int m_partCount;
    int m_value;
    int m_maxValue;
    QColor m_displayColor;

    void updateDisplay();
    
};

#endif // BarDisplay_h