00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWKeyBindingsWidget.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 =========================================================================*/ 00023 #ifndef __vtkKWKeyBindingsWidget_h 00024 #define __vtkKWKeyBindingsWidget_h 00025 00026 #include "vtkKWCompositeWidget.h" 00027 00028 class vtkKWMultiColumnListWithScrollbars; 00029 class vtkKWKeyBindingsWidgetInternals; 00030 class vtkKWToolbar; 00031 class vtkKWPushButton; 00032 class vtkKWLoadSaveButton; 00033 class vtkKWTextWithScrollbars; 00034 class vtkKWFrameWithLabel; 00035 class vtkKWKeyBindingsManager; 00036 00037 class KWWidgets_EXPORT vtkKWKeyBindingsWidget : public vtkKWCompositeWidget 00038 { 00039 // @cond section_public 00040 public: 00041 static vtkKWKeyBindingsWidget* New(); 00042 vtkTypeRevisionMacro(vtkKWKeyBindingsWidget,vtkKWCompositeWidget); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00047 vtkGetObjectMacro(KeyBindingsManager,vtkKWKeyBindingsManager); 00048 virtual void SetKeyBindingsManager(vtkKWKeyBindingsManager *mgr); 00050 00052 00054 virtual int WriteKeyBindingsToStream(ostream& os); 00055 virtual int WriteKeyBindingsToFile(const char *filename); 00057 00059 00060 vtkGetObjectMacro(Toolbar, vtkKWToolbar); 00061 vtkGetObjectMacro(SaveButton, vtkKWLoadSaveButton); 00063 00065 00071 virtual void UpdateEnableState(); 00072 virtual void Update(); 00074 00076 00077 virtual void SelectionChangedCallback(); 00078 virtual void WriteKeyBindingsToFileCallback(); 00080 00081 // @endcond 00082 // @cond section_protected 00083 protected: 00084 vtkKWKeyBindingsWidget(); 00085 ~vtkKWKeyBindingsWidget(); 00086 00088 virtual void CreateWidget(); 00089 00091 00092 vtkKWKeyBindingsWidgetInternals *Internals; 00093 vtkKWMultiColumnListWithScrollbars *KeyBindingsList; 00094 vtkKWToolbar *Toolbar; 00095 vtkKWLoadSaveButton *SaveButton; 00096 vtkKWFrameWithLabel *DetailFrame; 00097 vtkKWTextWithScrollbars *DetailText; 00098 vtkKWKeyBindingsManager *KeyBindingsManager; 00100 00101 // @endcond 00102 // @cond section_private 00103 private: 00104 00105 vtkKWKeyBindingsWidget(const vtkKWKeyBindingsWidget&); // Not implemented 00106 void operator=(const vtkKWKeyBindingsWidget&); // Not implemented 00107 }; 00108 #endif 00109 // @endcond
1.6.1