// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #pragma once #include namespace Bookmarks::Internal { class BookmarkManager; class Bookmark : public TextEditor::TextMark { public: Bookmark(int lineNumber, BookmarkManager *manager); void updateLineNumber(int lineNumber) override; void move(int line) override; void updateBlock(const QTextBlock &block) override; void updateFileName(const Utils::FilePath &fileName) override; void removedFromEditor() override; bool isDraggable() const override; void dragToLine(int lineNumber) override; void setNote(const QString ¬e); void updateNote(const QString ¬e); QString lineText() const; QString note() const; private: BookmarkManager *m_manager; QString m_lineText; }; } // Bookmarks::Internal