2026-05-09 07:11:58 +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/>. *
|
|
|
|
|
* *
|
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
2026-05-16 17:04:23 +10:00
|
|
|
#ifndef IFCINTERFACE_MODULES_PROJECT_COMMANDS_H
|
|
|
|
|
#define IFCINTERFACE_MODULES_PROJECT_COMMANDS_H
|
2026-05-09 07:11:58 +10:00
|
|
|
|
2026-05-16 17:04:23 +10:00
|
|
|
#include <QString>
|
2026-05-09 07:11:58 +10:00
|
|
|
|
|
|
|
|
class QWidget;
|
|
|
|
|
class ViewportWindow;
|
2026-05-15 07:22:31 +10:00
|
|
|
namespace ifcviewerfull { class SessionState; }
|
2026-05-09 07:11:58 +10:00
|
|
|
|
2026-05-16 17:04:23 +10:00
|
|
|
namespace ifcviewerfull::modules::project::commands {
|
2026-05-09 07:11:58 +10:00
|
|
|
|
2026-05-16 17:04:23 +10:00
|
|
|
// User-facing commands. Each owns its own dialogs and confirmations; each
|
|
|
|
|
// emits exactly one notify() at the end (projectReset / projectOpened /
|
|
|
|
|
// projectSaved) so views refresh once per command.
|
|
|
|
|
bool newProject(SessionState& s, QWidget& host, ViewportWindow& vp);
|
|
|
|
|
bool openProject(SessionState& s, QWidget& host, ViewportWindow& vp);
|
|
|
|
|
bool saveProject(SessionState& s, QWidget& host);
|
|
|
|
|
bool saveProjectAs(SessionState& s, QWidget& host);
|
2026-05-09 07:11:58 +10:00
|
|
|
|
2026-05-16 17:04:23 +10:00
|
|
|
} // namespace ifcviewerfull::modules::project::commands
|
2026-05-09 07:11:58 +10:00
|
|
|
|
|
|
|
|
#endif
|