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 enum
00060 {
00061 FIELD_DATA = 0,
00062 POINT_DATA = 1,
00063 CELL_DATA = 2,
00064 VERTEX_DATA = 3,
00065 EDGE_DATA = 4,
00066 ROW_DATA = 5,
00067 };
00068
00070
00072 void SetFieldType(int);
00073 int GetFieldType();
00075
00077
00079 vtkSetStringMacro(ContentColumnName);
00080 vtkGetStringMacro(ContentColumnName);
00082
00084
00086 vtkSetStringMacro(PreviewColumnName);
00087 vtkGetStringMacro(PreviewColumnName);
00089
00091
00093 vtkSetStringMacro(TitleColumnName);
00094 vtkGetStringMacro(TitleColumnName);
00096
00098
00099 vtkSetStringMacro(ProxyURL);
00100 vtkGetStringMacro(ProxyURL);
00102
00104
00105 vtkSetMacro(ProxyPort, int);
00106 vtkGetMacro(ProxyPort, int);
00108
00110 virtual void Update();
00111
00112 protected slots:
00113 void onBack();
00114 void onForward();
00115 void onZoomIn();
00116 void onZoomReset();
00117 void onZoomOut();
00118 void onLoadProgress(int progress);
00119 void onLinkClicked(const QUrl &url);
00120
00121 protected:
00122 vtkQtRichTextView();
00123 ~vtkQtRichTextView();
00124
00125 private:
00126 vtkQtRichTextView(const vtkQtRichTextView&);
00127 void operator=(const vtkQtRichTextView&);
00128
00129 char* ContentColumnName;
00130 char* PreviewColumnName;
00131 char* TitleColumnName;
00132 char* ProxyURL;
00133 int ProxyPort;
00134
00135 class Implementation;
00136 Implementation* Internal;
00137 };
00138
00139 #endif