00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef MITKPROGRESSBARIMPLEMENTATION_H 00020 #define MITKPROGRESSBARIMPLEMENTATION_H 00021 #include "mitkCommon.h" 00022 00023 namespace mitk 00024 { 00025 00026 //##Documentation 00027 //## @brief GUI indepentent Interface for all Gui depentent implementations of a ProgressBar. 00028 class MITK_CORE_EXPORT ProgressBarImplementation 00029 { 00030 00031 public: 00032 00033 //##Documentation 00034 //## @brief Constructor 00035 ProgressBarImplementation(){}; 00036 00037 //##Documentation 00038 //## @brief Destructor 00039 virtual ~ProgressBarImplementation(){}; 00040 00041 //##Documentation 00042 //## @brief Sets whether the current progress value is displayed. 00043 virtual void SetPercentageVisible (bool visible) =0; 00044 00045 //##Documentation 00046 //## @brief Adds steps to totalSteps. 00047 virtual void AddStepsToDo(unsigned int steps) =0; 00048 00049 //##Documentation 00050 //## @brief Sets the current amount of progress to current progress + steps. 00051 //## @param steps the number of steps done since last Progress(int steps) call. 00052 virtual void Progress(unsigned int steps) =0; 00053 }; 00054 00055 }// end namespace mitk 00056 00057 #endif /* define MITKPROGRESSBARIMPLEMENTATION_H */ 00058