KWWidgets
vtkKWSimpleEntryDialog.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWSimpleEntryDialog.h,v $
00004 
00005   Copyright (c) Kitware, Inc.
00006   All rights reserved.
00007   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00014 // .NAME vtkKWSimpleEntryDialog - a message dialog with a single entry superclass
00015 
00016 #ifndef __vtkKWSimpleEntryDialog_h
00017 #define __vtkKWSimpleEntryDialog_h
00018 
00019 #include "vtkKWMessageDialog.h"
00020 
00021 class vtkKWEntryWithLabel;
00022 
00023 class KWWidgets_EXPORT vtkKWSimpleEntryDialog : public vtkKWMessageDialog
00024 {
00025 public:
00026   static vtkKWSimpleEntryDialog* New();
00027   vtkTypeRevisionMacro(vtkKWSimpleEntryDialog, vtkKWMessageDialog);
00028   void PrintSelf(ostream& os, vtkIndent indent);
00029 
00030   // Description:
00031   // Access to the entry
00032   vtkGetObjectMacro(Entry, vtkKWEntryWithLabel);
00033 
00034   // Description:
00035   // Invoke the dialog and display it in a modal manner. 
00036   // This method returns a zero if the dilaog was killed or 
00037   // canceled, nonzero otherwise.
00038   virtual int Invoke();
00039 
00040 protected:
00041   vtkKWSimpleEntryDialog();
00042   ~vtkKWSimpleEntryDialog();
00043 
00044   // Description:
00045   // Create the widget.
00046   virtual void CreateWidget();
00047 
00048   vtkKWEntryWithLabel *Entry;
00049 
00050   // Description:
00051   // Pack.
00052   virtual void Pack();
00053 
00054 private:
00055   vtkKWSimpleEntryDialog(const vtkKWSimpleEntryDialog&); // Not implemented
00056   void operator=(const vtkKWSimpleEntryDialog&); // Not implemented
00057 };
00058 
00059 
00060 #endif
00061 
00062 
00063