src/eric7/HelpViewer/HelpViewerImpl.py

branch
eric7
changeset 10628
6968d6c31b3e
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10627:40b3df5b933a 10628:6968d6c31b3e
24 24
25 titleChanged = pyqtSignal() 25 titleChanged = pyqtSignal()
26 loadFinished = pyqtSignal(bool) 26 loadFinished = pyqtSignal(bool)
27 zoomChanged = pyqtSignal() 27 zoomChanged = pyqtSignal()
28 28
29 def __init__(self, engine): 29 def __init__(self, engine, viewerType):
30 """ 30 """
31 Constructor 31 Constructor
32 32
33 @param engine reference to the help engine 33 @param engine reference to the help engine
34 @type QHelpEngine 34 @type QHelpEngine
35 @param viewerType help viewer type
36 @type EricTextEditType
35 """ 37 """
36 self._engine = engine 38 self._engine = engine
39
40 self._viewerType = viewerType
37 41
38 def setLink(self, url): 42 def setLink(self, url):
39 """ 43 """
40 Public method to set the URL of the document to be shown. 44 Public method to set the URL of the document to be shown.
41 45
176 @rtype bool 180 @rtype bool
177 @exception NotImplementedError raised when not implemented 181 @exception NotImplementedError raised when not implemented
178 """ 182 """
179 raise NotImplementedError("Not implemented") 183 raise NotImplementedError("Not implemented")
180 return False 184 return False
185
186 def viewerType(self):
187 """
188 Public method to get the type of the help viewer implementation.
189
190 @return type of the help viewer implementation
191 @rtype EricTextEditType
192 """
193 return self._viewerType

eric ide

mercurial