33 This is the base class of help viewer implementations and defines the |
33 This is the base class of help viewer implementations and defines the |
34 interface. Als subclasses must implement the these methods. |
34 interface. Als subclasses must implement the these methods. |
35 """ |
35 """ |
36 titleChanged = pyqtSignal() |
36 titleChanged = pyqtSignal() |
37 loadFinished = pyqtSignal(bool) |
37 loadFinished = pyqtSignal(bool) |
|
38 zoomChanged = pyqtSignal() |
38 |
39 |
39 def __init__(self, engine): |
40 def __init__(self, engine): |
40 """ |
41 """ |
41 Constructor |
42 Constructor |
42 |
43 |
108 @param index history index (<0 backward, >0 forward) |
109 @param index history index (<0 backward, >0 forward) |
109 @type int |
110 @type int |
110 @exception RuntimeError raised when not implemented |
111 @exception RuntimeError raised when not implemented |
111 """ |
112 """ |
112 raise RuntimeError("Not implemented") |
113 raise RuntimeError("Not implemented") |
|
114 |
|
115 def scaleUp(self): |
|
116 """ |
|
117 Public method to zoom in. |
|
118 |
|
119 @exception RuntimeError raised when not implemented |
|
120 """ |
|
121 raise RuntimeError("Not implemented") |
|
122 |
|
123 def scaleDown(self): |
|
124 """ |
|
125 Public method to zoom out. |
|
126 |
|
127 @exception RuntimeError raised when not implemented |
|
128 """ |
|
129 raise RuntimeError("Not implemented") |
|
130 |
|
131 def resetScale(self): |
|
132 """ |
|
133 Public method to reset the zoom level. |
|
134 |
|
135 @exception RuntimeError raised when not implemented |
|
136 """ |
|
137 raise RuntimeError("Not implemented") |
|
138 |
|
139 def scale(self): |
|
140 """ |
|
141 Public method to get the zoom level. |
|
142 |
|
143 @return current zoom level |
|
144 @rtype int |
|
145 @exception RuntimeError raised when not implemented |
|
146 """ |
|
147 raise RuntimeError("Not implemented") |
|
148 return 0 |
|
149 |
|
150 def isScaleUpAvailable(self): |
|
151 """ |
|
152 Public method to check, if the max. zoom level is reached. |
|
153 |
|
154 @return flag indicating scale up is available |
|
155 @rtype bool |
|
156 @exception RuntimeError raised when not implemented |
|
157 """ |
|
158 raise RuntimeError("Not implemented") |
|
159 return False |
|
160 |
|
161 def isScaleDownAvailable(self): |
|
162 """ |
|
163 Public method to check, if the min. zoom level is reached. |
|
164 |
|
165 @return flag indicating scale down is available |
|
166 @rtype bool |
|
167 @exception RuntimeError raised when not implemented |
|
168 """ |
|
169 raise RuntimeError("Not implemented") |
|
170 return False |