VTK
vtkQtRichTextView.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkQtRichTextView.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2008 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19-------------------------------------------------------------------------*/
34#ifndef vtkQtRichTextView_h
35#define vtkQtRichTextView_h
36
37#include "vtkGUISupportQtWebkitModule.h" // For export macro
38#include "vtkQtView.h"
39
40class vtkStdString;
41class QUrl;
42
43class VTKGUISUPPORTQTWEBKIT_EXPORT vtkQtRichTextView : public vtkQtView
44{
45Q_OBJECT
46
47public:
50 void PrintSelf(ostream& os, vtkIndent indent);
51
58 virtual QWidget* GetWidget();
59
60 enum
61 {
62 FIELD_DATA = 0,
63 POINT_DATA = 1,
64 CELL_DATA = 2,
65 VERTEX_DATA = 3,
66 EDGE_DATA = 4,
67 ROW_DATA = 5,
68 };
69
71
75 void SetFieldType(int);
78
80
84 vtkSetStringMacro(ContentColumnName);
85 vtkGetStringMacro(ContentColumnName);
87
89
93 vtkSetStringMacro(PreviewColumnName);
94 vtkGetStringMacro(PreviewColumnName);
96
98
102 vtkSetStringMacro(TitleColumnName);
103 vtkGetStringMacro(TitleColumnName);
105
107
110 vtkSetStringMacro(ProxyURL);
113
115
118 vtkSetMacro(ProxyPort, int);
119 vtkGetMacro(ProxyPort, int);
121
125 virtual void Update();
126
127protected slots:
128 void onBack();
129 void onForward();
130 void onZoomIn();
132 void onZoomOut();
134 void onLinkClicked(const QUrl &url);
135
136protected:
139
140private:
141 vtkQtRichTextView(const vtkQtRichTextView&) VTK_DELETE_FUNCTION;
142 void operator=(const vtkQtRichTextView&) VTK_DELETE_FUNCTION;
143
144 char* ContentColumnName;
145 char* PreviewColumnName;
146 char* TitleColumnName;
147 char* ProxyURL;
148 int ProxyPort;
149
150 class Implementation;
151 Implementation* Internal;
152};
153
154#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Superclass for QAbstractItemView-based views.
void SetFieldType(int)
The field type to copy into the output table.
virtual QWidget * GetWidget()
Get the main container of this view (a QWidget).
static vtkQtRichTextView * New()
void onLinkClicked(const QUrl &url)
void onLoadProgress(int progress)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void Update()
Updates the view.
Superclass for Qt widget-based views.
Definition: vtkQtView.h:32
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
@ url
Definition: vtkX3D.h:233
@ progress
Definition: vtkX3D.h:452
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.