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 
40 class vtkStdString;
41 class QUrl;
42 
43 class VTKGUISUPPORTQTWEBKIT_EXPORT vtkQtRichTextView : public vtkQtView
44 {
45 Q_OBJECT
46 
47 public:
48  static vtkQtRichTextView *New();
49  vtkTypeMacro(vtkQtRichTextView, vtkQtView);
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);
76  int GetFieldType();
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);
111  vtkGetStringMacro(ProxyURL);
113 
115 
118  vtkSetMacro(ProxyPort, int);
119  vtkGetMacro(ProxyPort, int);
121 
125  virtual void Update();
126 
127 protected slots:
128  void onBack();
129  void onForward();
130  void onZoomIn();
131  void onZoomReset();
132  void onZoomOut();
133  void onLoadProgress(int progress);
134  void onLinkClicked(const QUrl &url);
135 
136 protected:
139 
140 private:
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
Superclass for QAbstractItemView-based views.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:47
static vtkView * New()
virtual void Update()
Update the view.
virtual QWidget * GetWidget()=0
Get the main container of this view (a QWidget).
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Superclass for Qt widget-based views.
Definition: vtkQtView.h:31