2026-05-05 07:29:32 +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-05 18:02:02 +10:00
|
|
|
#ifndef IFCINTERFACE_SHELL_MAINWINDOW_H
|
|
|
|
|
#define IFCINTERFACE_SHELL_MAINWINDOW_H
|
2026-05-05 07:29:32 +10:00
|
|
|
|
2026-05-07 12:21:55 +10:00
|
|
|
#include <QHash>
|
2026-05-05 07:29:32 +10:00
|
|
|
#include <QMainWindow>
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
|
|
class QLabel;
|
|
|
|
|
class QDockWidget;
|
2026-05-14 10:29:26 +10:00
|
|
|
class QProgressBar;
|
2026-05-05 07:29:32 +10:00
|
|
|
class QStackedWidget;
|
|
|
|
|
class QToolButton;
|
2026-05-07 12:21:55 +10:00
|
|
|
class Federation;
|
2026-05-05 07:29:32 +10:00
|
|
|
class SceneLoader;
|
2026-05-06 10:47:03 +10:00
|
|
|
namespace ifcinterface { class ElementRegistry; }
|
2026-05-07 17:10:04 +10:00
|
|
|
namespace ifcinterface { class SessionState; }
|
2026-05-07 12:21:55 +10:00
|
|
|
namespace ifcinterface::components { class TabBar; }
|
2026-05-09 19:43:26 +10:00
|
|
|
namespace ifcinterface::modules::models { class ModelsPanelController; }
|
|
|
|
|
namespace ifcinterface::modules::models { class ModelsPanel; }
|
|
|
|
|
namespace ifcinterface::modules::models { class ModelsPanelView; }
|
|
|
|
|
namespace ifcinterface::modules::project { class ProjectController; }
|
|
|
|
|
namespace ifcinterface::modules::spatial_hierarchy { class SpatialHierarchyPanel; }
|
|
|
|
|
namespace ifcinterface::modules::spatial_hierarchy { class SpatialHierarchyPanelView; }
|
|
|
|
|
namespace ifcinterface::modules::properties { class PropertiesPanel; }
|
|
|
|
|
namespace ifcinterface::modules::properties { class PropertiesPanelView; }
|
|
|
|
|
namespace ifcinterface::modules::viewport { class ViewportController; }
|
|
|
|
|
namespace ifcinterface::modules::viewport { class ViewportPanel; }
|
2026-05-05 07:29:32 +10:00
|
|
|
|
2026-05-05 18:02:02 +10:00
|
|
|
namespace ifcinterface::shell {
|
|
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow {
|
2026-05-05 07:29:32 +10:00
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2026-05-05 18:02:02 +10:00
|
|
|
explicit MainWindow(QWidget* parent = nullptr);
|
2026-05-05 07:29:32 +10:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void setupChrome();
|
|
|
|
|
void setupRibbon();
|
|
|
|
|
void setupViewport();
|
2026-05-06 10:47:03 +10:00
|
|
|
void setupPanels();
|
2026-05-05 07:29:32 +10:00
|
|
|
void setupStatus();
|
|
|
|
|
void setupLoader();
|
|
|
|
|
QWidget* buildHomeRibbonPage();
|
|
|
|
|
QWidget* buildNavigateRibbonPage();
|
|
|
|
|
QWidget* buildInspectRibbonPage();
|
|
|
|
|
QWidget* buildPanelsRibbonPage();
|
2026-05-07 12:21:55 +10:00
|
|
|
void updateWindowTitle();
|
2026-05-05 07:29:32 +10:00
|
|
|
QToolButton* makePanelToggle(const QString& text, QDockWidget* dock);
|
|
|
|
|
|
|
|
|
|
private:
|
2026-05-07 12:21:55 +10:00
|
|
|
Federation* federation_ = nullptr;
|
2026-05-05 07:29:32 +10:00
|
|
|
QLabel* status_mode_label_ = nullptr;
|
|
|
|
|
QLabel* status_selection_label_ = nullptr;
|
|
|
|
|
QLabel* status_perf_label_ = nullptr;
|
2026-05-14 10:29:26 +10:00
|
|
|
QProgressBar* status_progress_bar_ = nullptr;
|
2026-05-07 12:21:55 +10:00
|
|
|
ifcinterface::components::TabBar* ribbon_tabs_ = nullptr;
|
2026-05-05 07:29:32 +10:00
|
|
|
QStackedWidget* ribbon_pages_ = nullptr;
|
2026-05-09 19:43:26 +10:00
|
|
|
ifcinterface::modules::viewport::ViewportPanel* viewport_widget_ = nullptr;
|
|
|
|
|
ifcinterface::modules::viewport::ViewportController* viewport_controller_ = nullptr;
|
2026-05-05 07:29:32 +10:00
|
|
|
SceneLoader* loader_ = nullptr;
|
2026-05-06 10:47:03 +10:00
|
|
|
ifcinterface::ElementRegistry* element_registry_ = nullptr;
|
2026-05-07 17:10:04 +10:00
|
|
|
ifcinterface::SessionState* session_state_ = nullptr;
|
2026-05-09 19:43:26 +10:00
|
|
|
ifcinterface::modules::models::ModelsPanel* models_panel_ = nullptr;
|
|
|
|
|
ifcinterface::modules::spatial_hierarchy::SpatialHierarchyPanel* spatial_panel_ = nullptr;
|
2026-05-06 10:47:03 +10:00
|
|
|
QDockWidget* layers_panel_ = nullptr;
|
2026-05-09 19:43:26 +10:00
|
|
|
ifcinterface::modules::properties::PropertiesPanel* properties_panel_ = nullptr;
|
2026-05-06 10:47:03 +10:00
|
|
|
QDockWidget* stored_views_panel_ = nullptr;
|
|
|
|
|
QDockWidget* search_panel_ = nullptr;
|
|
|
|
|
QDockWidget* spreadsheet_panel_ = nullptr;
|
|
|
|
|
QDockWidget* audit_panel_ = nullptr;
|
|
|
|
|
QDockWidget* clash_panel_ = nullptr;
|
|
|
|
|
QDockWidget* issues_panel_ = nullptr;
|
2026-05-09 19:43:26 +10:00
|
|
|
ifcinterface::modules::models::ModelsPanelController* models_controller_ = nullptr;
|
|
|
|
|
ifcinterface::modules::models::ModelsPanelView* models_view_ = nullptr;
|
|
|
|
|
ifcinterface::modules::project::ProjectController* project_controller_ = nullptr;
|
|
|
|
|
ifcinterface::modules::spatial_hierarchy::SpatialHierarchyPanelView* spatial_view_ = nullptr;
|
|
|
|
|
ifcinterface::modules::properties::PropertiesPanelView* properties_view_ = nullptr;
|
2026-05-05 07:29:32 +10:00
|
|
|
};
|
|
|
|
|
|
2026-05-05 18:02:02 +10:00
|
|
|
} // namespace ifcinterface::shell
|
|
|
|
|
|
2026-05-05 07:29:32 +10:00
|
|
|
#endif
|