Files
IfcOpenShell/src/ifcviewer-full/MainWindow.h
T

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

93 lines
4.3 KiB
C++
Raw Normal View History

2026-05-15 07:18:26 +10:00
// This file was generated with the assistance of an AI coding tool.
2026-04-11 16:30:10 +10:00
/********************************************************************************
* *
* 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-15 07:18:26 +10:00
#ifndef IFCINTERFACE_SHELL_MAINWINDOW_H
#define IFCINTERFACE_SHELL_MAINWINDOW_H
2026-04-11 16:30:10 +10:00
2026-05-15 07:18:26 +10:00
#include <QHash>
2026-04-11 16:30:10 +10:00
#include <QMainWindow>
2026-05-15 07:18:26 +10:00
#include <QStringList>
2026-04-11 16:30:10 +10:00
2026-05-15 07:18:26 +10:00
class QLabel;
class QDockWidget;
class QProgressBar;
class QStackedWidget;
class QToolButton;
2026-05-15 07:22:31 +10:00
namespace ifcviewerfull { class SessionState; }
namespace ifcviewerfull::components { class TabBar; }
namespace ifcviewerfull::modules::models { class ModelsPanel; }
namespace ifcviewerfull::modules::models { class ModelsPanelView; }
namespace ifcviewerfull::modules::spatial_hierarchy { class SpatialHierarchyPanel; }
namespace ifcviewerfull::modules::spatial_hierarchy { class SpatialHierarchyPanelView; }
namespace ifcviewerfull::modules::properties { class PropertiesPanel; }
namespace ifcviewerfull::modules::properties { class PropertiesPanelView; }
2026-05-15 17:08:08 +10:00
namespace ifcviewerfull::modules::viewport { class ViewportView; }
2026-05-15 07:22:31 +10:00
namespace ifcviewerfull::modules::viewport { class ViewportPanel; }
2026-05-15 07:18:26 +10:00
2026-05-15 07:22:31 +10:00
namespace ifcviewerfull::shell {
2026-04-11 16:30:10 +10:00
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget* parent = nullptr);
private:
2026-05-15 07:18:26 +10:00
void setupChrome();
void setupRibbon();
void setupViewport();
void setupPanels();
void setupStatus();
void setupLoader();
QWidget* buildHomeRibbonPage();
QWidget* buildNavigateRibbonPage();
QWidget* buildInspectRibbonPage();
QWidget* buildPanelsRibbonPage();
void updateWindowTitle();
2026-05-15 07:18:26 +10:00
QToolButton* makePanelToggle(const QString& text, QDockWidget* dock);
2026-05-15 07:18:26 +10:00
private:
QLabel* status_mode_label_ = nullptr;
QLabel* status_selection_label_ = nullptr;
QLabel* status_perf_label_ = nullptr;
QProgressBar* status_progress_bar_ = nullptr;
2026-05-15 07:22:31 +10:00
ifcviewerfull::components::TabBar* ribbon_tabs_ = nullptr;
2026-05-15 07:18:26 +10:00
QStackedWidget* ribbon_pages_ = nullptr;
2026-05-15 07:22:31 +10:00
ifcviewerfull::modules::viewport::ViewportPanel* viewport_widget_ = nullptr;
2026-05-15 17:08:08 +10:00
ifcviewerfull::modules::viewport::ViewportView* viewport_view_ = nullptr;
2026-05-15 07:22:31 +10:00
ifcviewerfull::SessionState* session_state_ = nullptr;
ifcviewerfull::modules::models::ModelsPanel* models_panel_ = nullptr;
ifcviewerfull::modules::spatial_hierarchy::SpatialHierarchyPanel* spatial_panel_ = nullptr;
2026-05-15 07:18:26 +10:00
QDockWidget* layers_panel_ = nullptr;
2026-05-15 07:22:31 +10:00
ifcviewerfull::modules::properties::PropertiesPanel* properties_panel_ = nullptr;
2026-05-15 07:18:26 +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-15 07:22:31 +10:00
ifcviewerfull::modules::models::ModelsPanelView* models_view_ = nullptr;
ifcviewerfull::modules::spatial_hierarchy::SpatialHierarchyPanelView* spatial_view_ = nullptr;
ifcviewerfull::modules::properties::PropertiesPanelView* properties_view_ = nullptr;
2026-04-11 16:30:10 +10:00
};
2026-05-15 07:22:31 +10:00
} // namespace ifcviewerfull::shell
2026-05-15 07:18:26 +10:00
#endif