┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/progressindicator.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-20 15:03:14 +0000
committerPeter Penz <[email protected]>2007-01-20 15:03:14 +0000
commit07e07fd522cc278dffccc3b8b6faded0f6f5df20 (patch)
tree6a1188d08fd0d2fd4338bddafee0ff9ae41e0a22 /src/progressindicator.h
parenta376e4d43e7b621f6fe22ca010be25ec90e4ff61 (diff)
Removed helper class ProgressIndicator (not needed anymore because of the use of KonqUndoManager).
svn path=/trunk/playground/utils/dolphin/; revision=625608
Diffstat (limited to 'src/progressindicator.h')
-rw-r--r--src/progressindicator.h83
1 files changed, 0 insertions, 83 deletions
diff --git a/src/progressindicator.h b/src/progressindicator.h
deleted file mode 100644
index 542f776d3..000000000
--- a/src/progressindicator.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2006 by Peter Penz *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
- ***************************************************************************/
-#ifndef PROGRESSINDICATOR_H
-#define PROGRESSINDICATOR_H
-
-#include <qdatetime.h>
-
-class DolphinMainWindow;
-
-/**
- * Allows to show a progress of synchronous operations. Sample code:
- * \code
- * const int operationsCount = 100;
- * ProgressIndicator progressIndicator(i18n("Loading..."),
- * i18n("Loading finished."),
- * operationsCount);
- * for (int i = 0; i < operationsCount; ++i) {
- * progressIndicator.execOperation();
- * // do synchronous operation...
- * }
- * \endcode
- * The progress indicator takes care to show the progress bar only after
- * a delay of around 500 milliseconds. This means if all operations are
- * executing within 500 milliseconds, no progress bar is shown at all.
- * As soon as the progress bar is shown, the application still may process
- * events, but the the Dolphin main widget is disabled.
- *
- * @author Peter Penz <[email protected]>
- */
-class ProgressIndicator
-{
-public:
- /**
- * @param mainWindow The mainwindow this statusbar should operate on
- * @param progressText Text for the progress bar (e. g. "Loading...").
- * @param finishedText Text which is displayed after the operations have been finished
- * (e. g. "Loading finished.").
- * @param operationsCount Number of operations.
- */
- ProgressIndicator(DolphinMainWindow *mainWindow,
- const QString& progressText,
- const QString& finishedText,
- int operationsCount);
-
- /**
- * Sets the progress to 100 % and displays the 'finishedText' property
- * in the status bar.
- */
- ~ProgressIndicator();
-
- /**
- * Increases the progress and should be invoked
- * before each operation.
- */
- void execOperation();
-
-private:
- DolphinMainWindow *m_mainWindow;
- bool m_showProgress;
- int m_operationsCount;
- int m_operationsIndex;
- QTime m_startTime;
- QString m_finishedText;
-};
-
-#endif