00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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
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
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&);
00129 void operator=(const vtkQtRichTextView&);
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