67 void resizeEvent( QResizeEvent *event )
override;
68 void showEvent( QShowEvent *event )
override;
69 bool eventFilter( QObject *obj, QEvent *event )
override;
79 bool isSearchBarVisible()
const;
100 void addWarning(
int lineNumber,
const QString &warning );
110 void clearWarnings();
128 void showSearchBar();
136 void hideSearchBar();
145 void setSearchBarVisible(
bool visible );
152 void setReplaceBarVisible(
bool visible );
170 bool loadFile(
const QString &path );
179 void setFilePath(
const QString &path );
194 bool openInExternalEditor(
int line = -1,
int column = -1 );
221 void textSearchChanged(
const QString &text );
224 void replaceSelection();
229 void clearSearchHighlights();
230 void addSearchHighlights();
231 int searchFlags()
const;
232 bool findText(
bool forward,
bool findFirst );
233 void updateHighlightController();
234 void searchMatchCountChanged(
int matchCount );
236 enum HighlightCategory
243 QWidget *mFindWidget =
nullptr;
246 QToolButton *mFindPrevButton =
nullptr;
247 QToolButton *mFindNextButton =
nullptr;
248 QToolButton *mCaseSensitiveButton =
nullptr;
249 QToolButton *mWholeWordButton =
nullptr;
250 QToolButton *mRegexButton =
nullptr;
251 QToolButton *mWrapAroundButton =
nullptr;
252 QToolButton *mShowReplaceBarButton =
nullptr;
253 QToolButton *mReplaceButton =
nullptr;
254 QToolButton *mReplaceAllButton =
nullptr;
255 int mBlockSearching = 0;
257 std::unique_ptr< QgsScrollBarHighlightController > mHighlightController;
259 QDateTime mLastModified;