mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
Add IFC to RDB conversion in IfcViewerFull
Wire the AddModelDialog "Convert IFC File to Database" button to a new ConvertToDatabase source mode handled by ModelsPanelController, which prompts for an .ifc input and .rdb output then runs the existing document_serializer_registry "rdb" plugin on a background QThread with a modal progress dialog. Build the src/serializers subdir for BUILD_IFCVIEWER so the rdb plugin is produced, and align serializer plugin runtime output with the kernel/mapping plugins by writing them into $<TARGET_FILE_DIR:IfcGeom> so default plugin discovery finds them in both dev and install layouts. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -120,8 +120,9 @@ void AddModelDialog::setupUi() {
|
||||
default_description));
|
||||
|
||||
auto* convert_database = components::buttons::makeButton("Convert IFC File\nto Database", ":/icons/database-restore.svg", choices);
|
||||
connect(convert_database, &QToolButton::clicked, this, [description]() {
|
||||
description->setText("IFC-to-database conversion is coming soon.");
|
||||
connect(convert_database, &QToolButton::clicked, this, [this]() {
|
||||
selected_mode_ = SourceMode::ConvertToDatabase;
|
||||
accept();
|
||||
});
|
||||
convert_database->installEventFilter(new HoverDescriptionFilter(
|
||||
description,
|
||||
|
||||
Reference in New Issue
Block a user