VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQtRichTextView.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00036 #ifndef __vtkQtRichTextView_h 00037 #define __vtkQtRichTextView_h 00038 00039 #include "QVTKWin32Header.h" 00040 #include "vtkQtView.h" 00041 00042 class vtkStdString; 00043 class QUrl; 00044 00045 class QVTK_EXPORT vtkQtRichTextView : public vtkQtView 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 static vtkQtRichTextView *New(); 00051 vtkTypeMacro(vtkQtRichTextView, vtkQtView); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00057 virtual QWidget* GetWidget(); 00058 00059 //BTX 00060 enum 00061 { 00062 FIELD_DATA = 0, 00063 POINT_DATA = 1, 00064 CELL_DATA = 2, 00065 VERTEX_DATA = 3, 00066 EDGE_DATA = 4, 00067 ROW_DATA = 5, 00068 }; 00069 //ETX 00070 00072 00074 void SetFieldType(int); 00075 int GetFieldType(); 00077 00079 00081 vtkSetStringMacro(ContentColumnName); 00082 vtkGetStringMacro(ContentColumnName); 00084 00086 00088 vtkSetStringMacro(PreviewColumnName); 00089 vtkGetStringMacro(PreviewColumnName); 00091 00093 00095 vtkSetStringMacro(TitleColumnName); 00096 vtkGetStringMacro(TitleColumnName); 00098 00100 00101 vtkSetStringMacro(ProxyURL); 00102 vtkGetStringMacro(ProxyURL); 00104 00106 00107 vtkSetMacro(ProxyPort, int); 00108 vtkGetMacro(ProxyPort, int); 00110 00112 virtual void Update(); 00113 00114 protected slots: 00115 void onBack(); 00116 void onForward(); 00117 void onZoomIn(); 00118 void onZoomReset(); 00119 void onZoomOut(); 00120 void onLoadProgress(int progress); 00121 void onLinkClicked(const QUrl &url); 00122 00123 protected: 00124 vtkQtRichTextView(); 00125 ~vtkQtRichTextView(); 00126 00127 private: 00128 vtkQtRichTextView(const vtkQtRichTextView&); // Not implemented. 00129 void operator=(const vtkQtRichTextView&); // Not implemented. 00130 00131 char* ContentColumnName; 00132 char* PreviewColumnName; 00133 char* TitleColumnName; 00134 char* ProxyURL; 00135 int ProxyPort; 00136 00137 class Implementation; 00138 Implementation* Internal; 00139 }; 00140 00141 #endif