/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see .
*/
using System;
namespace dnSpy.Contracts.Bookmarks.Navigator {
///
/// Selects the next or previous bookmark
///
public abstract class BookmarkNavigator {
///
/// Current active bookmark. It's null if there are no bookmarks or no bookmarks are visible in the UI
///
public abstract Bookmark? ActiveBookmark { get; set; }
///
/// Raised when is changed
///
public abstract event EventHandler? ActiveBookmarkChanged;
///
/// true if can be called
///
public abstract bool CanSelectPreviousBookmark { get; }
///
/// Select the previous bookmark
///
public abstract void SelectPreviousBookmark();
///
/// true if can be called
///
public abstract bool CanSelectNextBookmark { get; }
///
/// Select the next bookmark
///
public abstract void SelectNextBookmark();
///
/// true if can be called
///
public abstract bool CanSelectPreviousBookmarkInDocument { get; }
///
/// Select the previous bookmark in the document
///
public abstract void SelectPreviousBookmarkInDocument();
///
/// true if can be called
///
public abstract bool CanSelectNextBookmarkInDocument { get; }
///
/// Select the next bookmark in the document
///
public abstract void SelectNextBookmarkInDocument();
///
/// true if can be called
///
public abstract bool CanSelectPreviousBookmarkWithSameLabel { get; }
///
/// Select the previous bookmark with the same label
///
public abstract void SelectPreviousBookmarkWithSameLabel();
///
/// true if can be called
///
public abstract bool CanSelectNextBookmarkWithSameLabel { get; }
///
/// Select the next bookmark with the same label
///
public abstract void SelectNextBookmarkWithSameLabel();
}
}