~ubuntu-branches/ubuntu/feisty/digikam/feisty

« back to all changes in this revision

Viewing changes to digikam/digikam/busyprogressbar.h

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2005-03-10 02:39:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050310023902-023nymfst5mg696c
Tags: 0.7.2-2
* debian/TODO: clean
* digikam manpage: better --detect-camera description

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
3
 * Date  : 2004-08-31
 
4
 * Description : 
 
5
 * 
 
6
 * Copyright 2004 by Renchi Raju
 
7
 
 
8
 * This program is free software; you can redistribute it
 
9
 * and/or modify it under the terms of the GNU General
 
10
 * Public License as published by the Free Software Foundation;
 
11
 * either version 2, or (at your option)
 
12
 * any later version.
 
13
 * 
 
14
 * This program is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU General Public License for more details.
 
18
 * 
 
19
 * ============================================================ */
 
20
 
 
21
#ifndef BUSYPROGRESSBAR_H
 
22
#define BUSYPROGRESSBAR_H
 
23
 
 
24
#include <qprogressbar.h>
 
25
 
 
26
class QPainter;
 
27
class QTimer;
 
28
class QPixmap;
 
29
 
 
30
class BusyProgressBar : public QProgressBar
 
31
{
 
32
    Q_OBJECT
 
33
 
 
34
public:
 
35
 
 
36
    BusyProgressBar(QWidget* parent);
 
37
    ~BusyProgressBar();
 
38
 
 
39
    void styleChange(QStyle& old);
 
40
    
 
41
protected:
 
42
 
 
43
    void drawContents(QPainter* p);
 
44
    void resizeEvent(QResizeEvent* e);
 
45
 
 
46
private:
 
47
 
 
48
    QTimer*  m_timer;
 
49
    int      m_pos;
 
50
    int      m_dir;
 
51
    QPixmap* m_pix;
 
52
 
 
53
private slots:
 
54
 
 
55
    void slotMove();
 
56
};
 
57
    
 
58
#endif /* BUSYPROGRESSBAR_H */