66 self.__targetSearchExpr = "" |
66 self.__targetSearchExpr = "" |
67 self.__targetSearchStart = 0 |
67 self.__targetSearchStart = 0 |
68 self.__targetSearchEnd = -1 |
68 self.__targetSearchEnd = -1 |
69 self.__targetSearchActive = False |
69 self.__targetSearchActive = False |
70 |
70 |
|
71 self.__modified = False |
|
72 |
71 self.userListActivated.connect(self.__completionListSelected) |
73 self.userListActivated.connect(self.__completionListSelected) |
|
74 self.modificationChanged.connect(self.__modificationChanged) |
|
75 |
|
76 def __modificationChanged(self, m): |
|
77 """ |
|
78 Private slot to handle the modificationChanged signal. |
|
79 |
|
80 @param m modification status (boolean) |
|
81 """ |
|
82 self.__modified = m |
|
83 |
|
84 def isModified(self): |
|
85 """ |
|
86 Public method to return the modification status. |
|
87 |
|
88 @return flag indicating the modification status (boolean) |
|
89 """ |
|
90 return self.__modified |
|
91 |
|
92 def setModified(self, m): |
|
93 """ |
|
94 Public slot to set the modification status. |
|
95 |
|
96 @param m new modification status (boolean) |
|
97 """ |
|
98 self.__modified = m |
|
99 super().setModified(m) |
|
100 self.modificationChanged.emit(m) |
72 |
101 |
73 def setLexer(self, lex=None): |
102 def setLexer(self, lex=None): |
74 """ |
103 """ |
75 Public method to set the lexer. |
104 Public method to set the lexer. |
76 |
105 |