~stolowski/kleansweep/trunk

« back to all changes in this revision

Viewing changes to src/summarylabel.h

  • Committer: Pawel Stolowski
  • Date: 2008-09-09 10:49:27 UTC
  • Revision ID: stolowski@gmail.com-20080909104927-sa7hkx4mbc6t8b9x
Inicjalizacja repozytorium - pliki wersji 0.2.9

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 __SUMMARYLABEL_H
 
14
#define __SUMMARYLABEL_H
 
15
 
 
16
/*! \file summarylabel.h */
 
17
 
 
18
#include <qhbox.h>
 
19
#include <qgrid.h>
 
20
 
 
21
class QLabel;
 
22
 
 
23
class SummaryLabel: public QHBox
 
24
{
 
25
        Q_OBJECT
 
26
                
 
27
        protected:
 
28
                int totsize;
 
29
                int totitems;
 
30
                int selitems;
 
31
                int selsize;
 
32
 
 
33
                QLabel *l_totsize;
 
34
                QLabel *l_totitems;
 
35
                QLabel *l_selsize;
 
36
                QLabel *l_selitems;
 
37
 
 
38
                static QString formatSize(int n);
 
39
 
 
40
        public slots:
 
41
                void setTotalItems(int n);
 
42
                void setSelectedItems(int n);
 
43
                void setSelectedSize(int size);
 
44
                void updateSelectedInfo(int d, unsigned int size);
 
45
                void setTotalSize(int size);
 
46
                void setTotals(int n, unsigned int size);
 
47
                void reset();
 
48
                        
 
49
        public:
 
50
                SummaryLabel(QWidget *parent);
 
51
                virtual ~SummaryLabel();
 
52
};
 
53
 
 
54
#endif
 
55