src/eric7/HelpViewer/HelpViewerImpl.py

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
39 """ 39 """
40 Public method to set the URL of the document to be shown. 40 Public method to set the URL of the document to be shown.
41 41
42 @param url URL of the document 42 @param url URL of the document
43 @type QUrl 43 @type QUrl
44 @exception RuntimeError raised when not implemented 44 @exception NotImplementedError raised when not implemented
45 """ 45 """
46 raise RuntimeError("Not implemented") 46 raise NotImplementedError("Not implemented")
47 47
48 def link(self): 48 def link(self):
49 """ 49 """
50 Public method to get the URL of the shown document. 50 Public method to get the URL of the shown document.
51 51
52 @return URL of the document 52 @return URL of the document
53 @rtype QUrl 53 @rtype QUrl
54 @exception RuntimeError raised when not implemented 54 @exception NotImplementedError raised when not implemented
55 """ 55 """
56 raise RuntimeError("Not implemented") 56 raise NotImplementedError("Not implemented")
57 return QUrl() 57 return QUrl()
58 58
59 def pageTitle(self): 59 def pageTitle(self):
60 """ 60 """
61 Public method get the page title. 61 Public method get the page title.
62 62
63 @return page title 63 @return page title
64 @rtype str 64 @rtype str
65 @exception RuntimeError raised when not implemented 65 @exception NotImplementedError raised when not implemented
66 """ 66 """
67 raise RuntimeError("Not implemented") 67 raise NotImplementedError("Not implemented")
68 return "" 68 return ""
69 69
70 def isEmptyPage(self): 70 def isEmptyPage(self):
71 """ 71 """
72 Public method to check, if the current page is the empty page. 72 Public method to check, if the current page is the empty page.
73 73
74 @return flag indicating an empty page is loaded 74 @return flag indicating an empty page is loaded
75 @rtype bool 75 @rtype bool
76 @exception RuntimeError raised when not implemented 76 @exception NotImplementedError raised when not implemented
77 """ 77 """
78 raise RuntimeError("Not implemented") 78 raise NotImplementedError("Not implemented")
79 return False 79 return False
80 80
81 def gotoHistory(self, index): 81 def gotoHistory(self, index):
82 """ 82 """
83 Public method to step through the history. 83 Public method to step through the history.
84 84
85 @param index history index (<0 backward, >0 forward) 85 @param index history index (<0 backward, >0 forward)
86 @type int 86 @type int
87 @exception RuntimeError raised when not implemented 87 @exception NotImplementedError raised when not implemented
88 """ 88 """
89 raise RuntimeError("Not implemented") 89 raise NotImplementedError("Not implemented")
90 90
91 def isBackwardAvailable(self): 91 def isBackwardAvailable(self):
92 """ 92 """
93 Public method to check, if stepping backward through the history is 93 Public method to check, if stepping backward through the history is
94 available. 94 available.
95 95
96 @return flag indicating backward stepping is available 96 @return flag indicating backward stepping is available
97 @rtype bool 97 @rtype bool
98 @exception RuntimeError raised when not implemented 98 @exception NotImplementedError raised when not implemented
99 """ 99 """
100 raise RuntimeError("Not implemented") 100 raise NotImplementedError("Not implemented")
101 return False 101 return False
102 102
103 def isForwardAvailable(self): 103 def isForwardAvailable(self):
104 """ 104 """
105 Public method to check, if stepping forward through the history is 105 Public method to check, if stepping forward through the history is
106 available. 106 available.
107 107
108 @return flag indicating forward stepping is available 108 @return flag indicating forward stepping is available
109 @rtype bool 109 @rtype bool
110 @exception RuntimeError raised when not implemented 110 @exception NotImplementedError raised when not implemented
111 """ 111 """
112 raise RuntimeError("Not implemented") 112 raise NotImplementedError("Not implemented")
113 return False 113 return False
114 114
115 def scaleUp(self): 115 def scaleUp(self):
116 """ 116 """
117 Public method to zoom in. 117 Public method to zoom in.
118 118
119 @exception RuntimeError raised when not implemented 119 @exception NotImplementedError raised when not implemented
120 """ 120 """
121 raise RuntimeError("Not implemented") 121 raise NotImplementedError("Not implemented")
122 122
123 def scaleDown(self): 123 def scaleDown(self):
124 """ 124 """
125 Public method to zoom out. 125 Public method to zoom out.
126 126
127 @exception RuntimeError raised when not implemented 127 @exception NotImplementedError raised when not implemented
128 """ 128 """
129 raise RuntimeError("Not implemented") 129 raise NotImplementedError("Not implemented")
130 130
131 def setScale(self, scale): 131 def setScale(self, scale):
132 """ 132 """
133 Public method to set the zoom level. 133 Public method to set the zoom level.
134 134
135 @param scale zoom level to set 135 @param scale zoom level to set
136 @type int 136 @type int
137 @exception RuntimeError raised when not implemented 137 @exception NotImplementedError raised when not implemented
138 """ 138 """
139 raise RuntimeError("Not implemented") 139 raise NotImplementedError("Not implemented")
140 140
141 def resetScale(self): 141 def resetScale(self):
142 """ 142 """
143 Public method to reset the zoom level. 143 Public method to reset the zoom level.
144 144
145 @exception RuntimeError raised when not implemented 145 @exception NotImplementedError raised when not implemented
146 """ 146 """
147 raise RuntimeError("Not implemented") 147 raise NotImplementedError("Not implemented")
148 148
149 def scale(self): 149 def scale(self):
150 """ 150 """
151 Public method to get the zoom level. 151 Public method to get the zoom level.
152 152
153 @return current zoom level 153 @return current zoom level
154 @rtype int 154 @rtype int
155 @exception RuntimeError raised when not implemented 155 @exception NotImplementedError raised when not implemented
156 """ 156 """
157 raise RuntimeError("Not implemented") 157 raise NotImplementedError("Not implemented")
158 return 0 158 return 0
159 159
160 def isScaleUpAvailable(self): 160 def isScaleUpAvailable(self):
161 """ 161 """
162 Public method to check, if the max. zoom level is reached. 162 Public method to check, if the max. zoom level is reached.
163 163
164 @return flag indicating scale up is available 164 @return flag indicating scale up is available
165 @rtype bool 165 @rtype bool
166 @exception RuntimeError raised when not implemented 166 @exception NotImplementedError raised when not implemented
167 """ 167 """
168 raise RuntimeError("Not implemented") 168 raise NotImplementedError("Not implemented")
169 return False 169 return False
170 170
171 def isScaleDownAvailable(self): 171 def isScaleDownAvailable(self):
172 """ 172 """
173 Public method to check, if the min. zoom level is reached. 173 Public method to check, if the min. zoom level is reached.
174 174
175 @return flag indicating scale down is available 175 @return flag indicating scale down is available
176 @rtype bool 176 @rtype bool
177 @exception RuntimeError raised when not implemented 177 @exception NotImplementedError raised when not implemented
178 """ 178 """
179 raise RuntimeError("Not implemented") 179 raise NotImplementedError("Not implemented")
180 return False 180 return False

eric ide

mercurial