GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
itkQtProgressBar.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkQtProgressBar.h,v $
5  Language: C++
6  Date: $Date: $
7  Version: $Revision: $
8 
9  Copyright (c) 2002 Insight Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16  =========================================================================*/
17 
18 /*=========================================================================
19  Modifications were made by the GoFigure Dev. Team.
20  while at Megason Lab, Systems biology, Harvard Medical school, 2009-11
21 
22  Copyright (c) 2009-11, President and Fellows of Harvard College.
23  All rights reserved.
24 
25  Redistribution and use in source and binary forms, with or without
26  modification, are permitted provided that the following conditions are met:
27 
28  Redistributions of source code must retain the above copyright notice,
29  this list of conditions and the following disclaimer.
30  Redistributions in binary form must reproduce the above copyright notice,
31  this list of conditions and the following disclaimer in the documentation
32  and/or other materials provided with the distribution.
33  Neither the name of the President and Fellows of Harvard College
34  nor the names of its contributors may be used to endorse or promote
35  products derived from this software without specific prior written
36  permission.
37 
38  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
39  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
40  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
41  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
42  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
43  OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
44  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
45  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
46  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
47  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
48  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
49 
50  =========================================================================*/
51 
52 #ifndef __itkQtProgressBar_h
53 #define __itkQtProgressBar_h
54 
55 #include <QProgressBar>
56 #include "itkCommand.h"
57 
58 #include "itkQtConfigure.h"
59 
60 namespace itk
61 {
62 class IKTQT_EXPORT QtProgressBar : public ::QProgressBar
63 {
64 public:
65 
67  typedef itk::MemberCommand< QtProgressBar > RedrawCommandType;
68 
70  explicit QtProgressBar(QWidget *parent = 0);
71 
73  RedrawCommandType * GetRedrawCommand(void) const;
74 
76  void ProcessEvent(itk::Object *caller, const itk::EventObject & event);
77 
78  void ConstProcessEvent(const itk::Object *caller, const itk::EventObject & event);
79 
81  void Observe(itk::Object *caller);
82 
83 private:
84 
85  RedrawCommandType::Pointer m_RedrawCommand;
86 };
87 } // end of namespace
88 
89 #endif
itk::MemberCommand< QtProgressBar > RedrawCommandType
RedrawCommandType::Pointer m_RedrawCommand