@@ -38,42 +38,43 @@ class QRGUI_TEXT_EDITOR_EXPORT TextManager : public TextManagerInterface
3838 TextManager (SystemEvents &systemEvents, gui::MainWindowInterpretersInterface &mainWindow);
3939
4040 // / Reads code source file and create new QScintillaTextEdit associated with this file (rather with filepath)
41- bool openFile (const QString &filePath, const QString &genName, const LanguageInfo &language);
41+ bool openFile (const QString &filePath, const QString &genName, const LanguageInfo &language) override ;
4242
4343 // / Remove all info about filePath (including QScintillaTextEdit associated with it)
44- bool closeFile (const QString &filePath);
44+ bool closeFile (const QString &filePath) override ;
4545
46- void changeFilePath (const QString &from, const QString &to);
46+ void changeFilePath (const QString &from, const QString &to) override ;
4747
4848 // / Binds diagram with another code source file.
49- bool bindCode (const Id &diagram, const QString &filePath);
50-
51- bool unbindCode (const QString &filePath);
52- bool unbindCode (text::QScintillaTextEdit *code);
53- text::QScintillaTextEdit *code (const QString &filePath) const ;
54- QList<text::QScintillaTextEdit *> code (const Id &diagram) const ;
55- bool contains (const QString &filePath) const ;
49+ bool bindCode (const Id &diagram, const QString &filePath) override ;
50+
51+ bool unbindCode (const QString &filePath) override ;
52+ bool unbindCode (text::QScintillaTextEdit *code) override ;
53+ bool suggestToSaveCode (text::QScintillaTextEdit *code);
54+ text::QScintillaTextEdit *code (const QString &filePath) const override ;
55+ QList<text::QScintillaTextEdit *> code (const Id &diagram) const override ;
56+ bool contains (const QString &filePath) const override ;
5657 bool removeDiagram (const Id &diagram);
57- Id diagram (text::QScintillaTextEdit *code) const ;
58- QString path (text::QScintillaTextEdit *code) const ;
59- bool isDefaultPath (const QString &path) const ;
60- bool isModified (const QString &path) const ;
61- bool isModifiedEver (const QString &path) const ;
58+ Id diagram (text::QScintillaTextEdit *code) const override ;
59+ QString path (text::QScintillaTextEdit *code) const override ;
60+ bool isDefaultPath (const QString &path) const override ;
61+ bool isModified (const QString &path) const override ;
62+ bool isModifiedEver (const QString &path) const override ;
6263
6364 // / Opens new tab with file created by some generator in text editor and shows a text in it
6465 // / @param fileInfo A filepath to file with text
6566 // / @param genName A name of generator which created this file
66- void showInTextEditor (const QFileInfo &fileInfo, const QString &genName, const LanguageInfo &language);
67+ void showInTextEditor (const QFileInfo &fileInfo, const QString &genName, const LanguageInfo &language) override ;
6768
6869 // / Opens new tab with file
6970 // / @param fileInfo A filepath to file with text
70- void showInTextEditor (const QFileInfo &fileInfo, const LanguageInfo &language);
71+ void showInTextEditor (const QFileInfo &fileInfo, const LanguageInfo &language) override ;
7172
7273 // / Saves text from tab to another or same file
7374 // / @param saveAs Defines what to do: save to the same file or in another
74- bool saveText (bool saveAs);
75+ bool saveText (bool saveAs) override ;
7576
76- QString generatorName (const QString &filepath) const ;
77+ QString generatorName (const QString &filepath) const override ;
7778 CodeBlockManager &codeBlockManager ();
7879
7980private slots:
0 commit comments