• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

filelight

  • sources
  • kde-4.12
  • kdeutils
  • filelight
  • src
  • part
progressBox.h
Go to the documentation of this file.
1 /***********************************************************************
2 * Copyright 2003-2004 Max Howell <max.howell@methylblue.com>
3 * Copyright 2008-2009 Martin Sandsmark <martin.sandsmark@kde.org>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License or (at your option) version 3 or any later version
9 * accepted by the membership of KDE e.V. (or its successor approved
10 * by the membership of KDE e.V.), which shall act as a proxy
11 * defined in Section 14 of version 3 of the license.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ***********************************************************************/
21 
22 #ifndef PROGRESSBOX_H
23 #define PROGRESSBOX_H
24 
25 #include <QtGui/QLabel>
26 #include <QtCore/QTimer>
27 
28 namespace Filelight {
29 class ScanManager;
30 }
31 
32 class ProgressBox : public QWidget
33 {
34  Q_OBJECT
35 
36 public:
37  ProgressBox(QWidget*, QObject*, Filelight::ScanManager*);
38 
39  void setText(int);
40 
41 public slots:
42  void start();
43  void report();
44  void stop();
45  void halt();
46 
47 protected:
48  void paintEvent(QPaintEvent *event);
49 
50 private:
51  QTimer m_timer;
52  Filelight::ScanManager* m_manager;
53  QString m_text;
54  int m_textWidth;
55  int m_textHeight;
56 };
57 
58 #endif
ProgressBox
Definition: progressBox.h:32
QWidget
ProgressBox::halt
void halt()
Definition: progressBox.cpp:82
ProgressBox::stop
void stop()
Definition: progressBox.cpp:76
QObject
ProgressBox::ProgressBox
ProgressBox(QWidget *, QObject *, Filelight::ScanManager *)
Definition: progressBox.cpp:39
ProgressBox::start
void start()
Definition: progressBox.cpp:61
ProgressBox::paintEvent
void paintEvent(QPaintEvent *event)
Definition: progressBox.cpp:103
Filelight::ScanManager
Definition: scan.h:35
ProgressBox::report
void report()
Definition: progressBox.cpp:69
ProgressBox::setText
void setText(int)
Definition: progressBox.cpp:90
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:08:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

filelight

Skip menu "filelight"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal