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 );
203 bool shareOnGist(
bool isPublic );
230 void textSearchChanged(
const QString &text );
233 void replaceSelection();
238 void clearSearchHighlights();
239 void addSearchHighlights();
240 int searchFlags()
const;
241 bool findText(
bool forward,
bool findFirst );
242 void updateHighlightController();
243 void searchMatchCountChanged(
int matchCount );
245 enum HighlightCategory
252 QWidget *mFindWidget =
nullptr;
255 QToolButton *mFindPrevButton =
nullptr;
256 QToolButton *mFindNextButton =
nullptr;
257 QToolButton *mCaseSensitiveButton =
nullptr;
258 QToolButton *mWholeWordButton =
nullptr;
259 QToolButton *mRegexButton =
nullptr;
260 QToolButton *mWrapAroundButton =
nullptr;
261 QToolButton *mShowReplaceBarButton =
nullptr;
262 QToolButton *mReplaceButton =
nullptr;
263 QToolButton *mReplaceAllButton =
nullptr;
264 int mBlockSearching = 0;
266 std::unique_ptr< QgsScrollBarHighlightController > mHighlightController;
268 QDateTime mLastModified;