added jump to block feature.

This commit is contained in:
2024-12-02 20:05:50 +01:00
parent 532b6f42ff
commit 3004823f36
5 changed files with 101 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ private:
void setupTextActions();
void setupMusrActions();
void setupHelpActions();
void setupJumpToBlock();
void load( const QString &f, const int index=-1 );
PSubTextEdit *currentEditor() const;
void doConnections( PSubTextEdit *e );
@@ -167,6 +168,8 @@ private slots:
void fileChanged(const QString &fileName);
void setFileSystemWatcherActive();
void jumpToBlock(int idx);
private:
bool fDarkMenuIcon; ///< flag indicating if a dark or plain icon shall be used in the menu pull-downs
bool fDarkToolBarIcon; ///< flag indicating if a dark or plain icon shall be used in the toolbar
@@ -187,6 +190,7 @@ private:
std::unique_ptr<QComboBox> fComboFont; ///< combo box for the font selector
std::unique_ptr<QComboBox> fComboSize; ///< combo box for the font size
bool fFontChanging; ///< flag needed to prevent some textChanged feature to occure when only the font changed
std::unique_ptr<QComboBox> fJumpToBlock; ///< combo box used to jump to the msr-file blocks
std::unique_ptr<QTabWidget> fTabWidget; ///< tab widget in which the text editor(s) are placed
QMap<PSubTextEdit*, QString> fFilenames; ///< mapper between tab widget object and filename