KWWidgets
vtkKWLogDialog.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWLogDialog.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 vtkKWLogDialog - a log dialog.
00015 // .SECTION Description
00016 // This widget can be used to display various types of records/events in the
00017 // form of a multicolumn log. Each record is timestamped automatically, and 
00019 // description.
00020 // This dialog is a standalone toplevel, but uses a vtkKWLogWidget internally.
00021 // The vtkKWLogWidget class can be inserted in any widget hierarchy.
00022 // .SECTION Thanks
00023 // This work is part of the National Alliance for Medical Image
00024 // Computing (NAMIC), funded by the National Institutes of Health
00025 // through the NIH Roadmap for Medical Research, Grant U54 EB005149.
00026 // Information on the National Centers for Biomedical Computing
00027 // can be obtained from http://nihroadmap.nih.gov/bioinformatics.
00028 // .SECTION See Also
00029 // vtkKWLogWidget
00030 
00031 #ifndef __vtkKWLogDialog_h
00032 #define __vtkKWLogDialog_h
00033 
00034 #include "vtkKWMessageDialog.h"
00035 
00036 class vtkKWApplication;
00037 class vtkKWLogWidget;
00038 class vtkKWPushButton;
00039 
00040 class KWWidgets_EXPORT vtkKWLogDialog : public vtkKWMessageDialog
00041 {
00042 public:
00043   static vtkKWLogDialog* New();
00044   vtkTypeRevisionMacro(vtkKWLogDialog,vtkKWMessageDialog);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00047   // Description:
00048   // Get the internal log widget so that its API will be exposed directly
00049   vtkGetObjectMacro(LogWidget, vtkKWLogWidget);   
00050    
00051 protected:
00052   vtkKWLogDialog();
00053   ~vtkKWLogDialog();
00054 
00055   // Description:
00056   // Create the widget.
00057   virtual void CreateWidget();
00058   
00059   // Description:
00060   // Member variables
00061   vtkKWLogWidget* LogWidget;
00062 
00063 private:
00064   vtkKWLogDialog(const vtkKWLogDialog&); // Not implemented
00065   void operator=(const vtkKWLogDialog&); // Not implemented
00066 };
00067 
00068 #endif