// Copyright (C) Stichting Deltares 2016. All rights reserved.
//
// This file is part of Ringtoets.
//
// Ringtoets is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see .
//
// All names, logos, and references to "Deltares" are registered trademarks of
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
namespace Core.Common.Gui.Commands
{
///
/// Interface declaring methods related to manipulating views within the application.
///
public interface IViewCommands
{
///
/// Asks the user to select a view for the application's selection.
///
void OpenSelectViewDialog();
///
/// Open the view for the application's selection.
///
/// If multiple views are available, the user is asked which view to use.
///
void OpenViewForSelection();
///
/// Open the view for the given data object.
///
/// The data object for which a view must be opened.
/// If multiple views are available, the user is asked which view to use.
///
void OpenView(object dataObject);
///
/// Removes all document and tool views that are associated to the given data object and/or its children.
///
/// The root data object for which all views must be closed.
void RemoveAllViewsForItem(object dataObject);
///
/// Indicates if a there are any views available for the application's selection.
///
/// The data object to open views for.
/// true if there are any views for , false otherwise.
bool CanOpenViewFor(object dataObject);
///
/// Indicates if a there are any views available for the application's selection.
///
/// True if there are any supported views for the current selection,
/// false otherwise.
bool CanOpenSelectViewDialog();
///
/// Gets the data of current active Document View.
///
/// The view data, or null if there is no active view.
object GetDataOfActiveView();
}
}