2013-10-28 04:30:11 -05:00
|
|
|
//##################################################################################################
|
|
|
|
//
|
|
|
|
// Custom Visualization Core library
|
2015-07-29 07:19:43 -05:00
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2013-10-28 04:30:11 -05:00
|
|
|
//
|
|
|
|
// This library may be used under the terms of either the GNU General Public License or
|
|
|
|
// the GNU Lesser General Public License as follows:
|
|
|
|
//
|
|
|
|
// GNU General Public License Usage
|
|
|
|
// This library 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.
|
|
|
|
//
|
|
|
|
// This library 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 at <<http://www.gnu.org/licenses/gpl.html>>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
// GNU Lesser General Public License Usage
|
|
|
|
// This library 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 2.1 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library 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 at <<http://www.gnu.org/licenses/lgpl-2.1.html>>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
//##################################################################################################
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-06-27 06:13:24 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
class QVariant;
|
|
|
|
class QMenu;
|
|
|
|
class QString;
|
2019-08-29 04:48:43 -05:00
|
|
|
class QWidget;
|
2013-10-28 04:30:11 -05:00
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
namespace caf
|
2013-10-28 04:30:11 -05:00
|
|
|
{
|
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
class PdmFieldHandle;
|
|
|
|
class PdmUiFieldHandle;
|
|
|
|
|
2013-10-28 04:30:11 -05:00
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
class PdmUiCommandSystemInterface
|
2013-10-28 04:30:11 -05:00
|
|
|
{
|
|
|
|
public:
|
2018-06-27 06:13:24 -05:00
|
|
|
virtual void fieldChangedCommand( const std::vector<PdmFieldHandle*>& fieldsToUpdate, const QVariant& newUiValue) = 0;
|
2019-08-29 04:48:43 -05:00
|
|
|
virtual void setCurrentContextMenuTargetWidget(QWidget* targetWidget) = 0;
|
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
virtual void populateMenuWithDefaultCommands(const QString& uiConfigName, QMenu* menu) = 0;
|
2013-10-28 04:30:11 -05:00
|
|
|
};
|
2015-07-29 07:19:43 -05:00
|
|
|
|
|
|
|
|
2013-10-28 04:30:11 -05:00
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
} // End of namespace caf
|
2013-10-28 04:30:11 -05:00
|
|
|
|