File: vtkKWWizardDialog.h

package info (click to toggle)
kwwidgets 1.0.0~cvs20090825-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 14,108 kB
  • ctags: 15,770
  • sloc: cpp: 128,146; ansic: 44,137; tcl: 30,595; python: 2,283; sh: 338; makefile: 69; xml: 10
file content (74 lines) | stat: -rw-r--r-- 2,533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*=========================================================================

  Module:    $RCSfile: vtkKWWizardDialog.h,v $

  Copyright (c) Kitware, Inc.
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
// .NAME vtkKWWizardDialog - a superclass for creating wizards UI.
// .SECTION Description
// This class is the basis for a wizard widget/dialog. This dialog
// is a thin toplevel wrapper embedding a vtkKWWizardWidget.
// .SECTION Thanks
// This work is part of the National Alliance for Medical Image
// Computing (NAMIC), funded by the National Institutes of Health
// through the NIH Roadmap for Medical Research, Grant U54 EB005149.
// Information on the National Centers for Biomedical Computing
// can be obtained from http://nihroadmap.nih.gov/bioinformatics.
// .SECTION See Also
// vtkKWWizardStep vtkKWWizardWorkflow

#ifndef __vtkKWWizardDialog_h
#define __vtkKWWizardDialog_h

#include "vtkKWDialog.h"

class vtkKWWizardWorkflow;
class vtkKWWizardWidget;

class KWWidgets_EXPORT vtkKWWizardDialog : public vtkKWDialog
{
public:
  static vtkKWWizardDialog* New();
  vtkTypeRevisionMacro(vtkKWWizardDialog,vtkKWDialog);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // Get the internal wizard widget.
  vtkGetObjectMacro(WizardWidget, vtkKWWizardWidget);

  // Description:
  // Convenience method to get the wizard widget's wizard workflow.
  virtual vtkKWWizardWorkflow* GetWizardWorkflow();

  // Description:
  // Update the "enable" state of the object and its internal parts.
  // Depending on different Ivars (this->Enabled, the application's 
  // Limited Edition Mode, etc.), the "enable" state of the object is updated
  // and propagated to its internal parts/subwidgets. This will, for example,
  // enable/disable parts of the widget UI, enable/disable the visibility
  // of 3D widgets, etc.
  virtual void UpdateEnableState();

protected:
  vtkKWWizardDialog();
  ~vtkKWWizardDialog();

  // Description:
  // Create the widget
  virtual void CreateWidget();

  vtkKWWizardWidget *WizardWidget;

private:
  vtkKWWizardDialog(const vtkKWWizardDialog&); // Not implemented
  void operator=(const vtkKWWizardDialog&); // Not Implemented
};

#endif