Files
IfcOpenShell/src/ifcviewer-full/modules/models/View.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
2.5 KiB
C++
Raw Normal View History

2026-05-09 22:00:19 +10:00
// This file was generated with the assistance of an AI coding tool.
/********************************************************************************
* *
* This file is part of IfcOpenShell. *
* *
* IfcOpenShell is free software: you can redistribute it and/or modify *
* it under the terms of the Lesser GNU General Public License as published by *
* the Free Software Foundation, either version 3.0 of the License, or *
* (at your option) any later version. *
* *
* IfcOpenShell 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 *
* Lesser GNU General Public License for more details. *
* *
* You should have received a copy of the Lesser GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
********************************************************************************/
#ifndef IFCINTERFACE_PANELS_MODELSPANELVIEW_H
#define IFCINTERFACE_PANELS_MODELSPANELVIEW_H
#include "Types.h"
#include <QObject>
2026-05-15 07:22:31 +10:00
namespace ifcviewerfull { class SessionState; }
2026-05-09 22:00:19 +10:00
2026-05-15 07:22:31 +10:00
namespace ifcviewerfull::modules::models {
2026-05-09 22:00:19 +10:00
class ModelsPanel;
2026-05-15 17:08:08 +10:00
// Subscribes to SessionState and re-derives panel state (tree nodes, valid
// move targets) from the federation. The panel calls commands directly for
// input, so this object is purely state→view; it has no command knowledge.
2026-05-09 22:00:19 +10:00
class ModelsPanelView : public QObject {
Q_OBJECT
public:
explicit ModelsPanelView(ModelsPanel* widget,
2026-05-15 07:22:31 +10:00
ifcviewerfull::SessionState* session_state,
2026-05-09 22:00:19 +10:00
QObject* parent = nullptr);
private:
2026-05-15 17:08:08 +10:00
void refresh();
QList<GroupOption> groupListForMove(const QString& exclude_subtree_root) const;
2026-05-09 22:00:19 +10:00
ModelsPanel* widget_ = nullptr;
2026-05-15 07:22:31 +10:00
ifcviewerfull::SessionState* session_state_ = nullptr;
2026-05-09 22:00:19 +10:00
};
2026-05-15 07:22:31 +10:00
} // namespace ifcviewerfull::modules::models
2026-05-09 22:00:19 +10:00
#endif