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();
126 bool save(
const QString &path = QString() );
136 void showSearchBar();
144 void hideSearchBar();
153 void setSearchBarVisible(
bool visible );
160 void setReplaceBarVisible(
bool visible );
178 bool loadFile(
const QString &path );
187 void setFilePath(
const QString &path );
202 bool openInExternalEditor(
int line = -1,
int column = -1 );
211 bool shareOnGist(
bool isPublic );
238 void textSearchChanged(
const QString &text );
241 void replaceSelection();
246 void clearSearchHighlights();
247 void addSearchHighlights();
248 int searchFlags()
const;
249 bool findText(
bool forward,
bool findFirst );
250 void updateHighlightController();
251 void searchMatchCountChanged(
int matchCount );
253 enum HighlightCategory
260 QWidget *mFindWidget =
nullptr;
263 QToolButton *mFindPrevButton =
nullptr;
264 QToolButton *mFindNextButton =
nullptr;
265 QToolButton *mCaseSensitiveButton =
nullptr;
266 QToolButton *mWholeWordButton =
nullptr;
267 QToolButton *mRegexButton =
nullptr;
268 QToolButton *mWrapAroundButton =
nullptr;
269 QToolButton *mShowReplaceBarButton =
nullptr;
270 QToolButton *mReplaceButton =
nullptr;
271 QToolButton *mReplaceAllButton =
nullptr;
272 int mBlockSearching = 0;
274 std::unique_ptr< QgsScrollBarHighlightController > mHighlightController;
276 QDateTime mLastModified;