ViewManager/ViewManager.py

changeset 4896
5ace700023de
parent 4891
d6e8171d2c02
child 4913
e16573640cb8
equal deleted inserted replaced
4892:64fc1deaeadb 4896:5ace700023de
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import os 12 import os
13 13
14 from PyQt5.QtCore import pyqtSignal, pyqtSlot, QSignalMapper, QTimer, \ 14 from PyQt5.QtCore import pyqtSignal, pyqtSlot, QSignalMapper, QTimer, \
15 QFileInfo, QRegExp, QObject, Qt, QCoreApplication 15 QFileInfo, QRegExp, Qt, QCoreApplication
16 from PyQt5.QtGui import QColor, QKeySequence, QPalette, QPixmap 16 from PyQt5.QtGui import QColor, QKeySequence, QPalette, QPixmap
17 from PyQt5.QtWidgets import QLineEdit, QToolBar, QWidgetAction, QDialog, \ 17 from PyQt5.QtWidgets import QLineEdit, QToolBar, QWidgetAction, QDialog, \
18 QApplication, QMenu, QComboBox 18 QApplication, QMenu, QComboBox, QWidget
19 from PyQt5.Qsci import QsciScintilla 19 from PyQt5.Qsci import QsciScintilla
20 20
21 from E5Gui.E5Application import e5App 21 from E5Gui.E5Application import e5App
22 from E5Gui import E5FileDialog, E5MessageBox 22 from E5Gui import E5FileDialog, E5MessageBox
23 23
83 """ 83 """
84 self.gotFocus.emit() 84 self.gotFocus.emit()
85 super(QuickSearchLineEdit, self).focusInEvent(evt) # pass it on 85 super(QuickSearchLineEdit, self).focusInEvent(evt) # pass it on
86 86
87 87
88 class ViewManager(QObject): 88 class ViewManager(QWidget):##QObject):
89 """ 89 """
90 Base class inherited by all specific viewmanager classes. 90 Base class inherited by all specific viewmanager classes.
91 91
92 It defines the interface to be implemented by specific 92 It defines the interface to be implemented by specific
93 viewmanager classes and all common methods. 93 viewmanager classes and all common methods.
439 """ 439 """
440 Protected slot to handle the modificationStatusChanged signal. 440 Protected slot to handle the modificationStatusChanged signal.
441 441
442 @param m flag indicating the modification status (boolean) 442 @param m flag indicating the modification status (boolean)
443 @param editor editor window changed 443 @param editor editor window changed
444 @exception RuntimeError Not implemented
445 """
446 raise RuntimeError('Not implemented')
447
448 def mainWidget(self):
449 """
450 Public method to return a reference to the main Widget of a
451 specific view manager subclass.
452
453 @return reference to the main widget
454 @rtype QWidget
444 @exception RuntimeError Not implemented 455 @exception RuntimeError Not implemented
445 """ 456 """
446 raise RuntimeError('Not implemented') 457 raise RuntimeError('Not implemented')
447 458
448 ##################################################################### 459 #####################################################################

eric ide

mercurial