Skip to content

Fix project file version 1.x compatibility.#120

Open
raspopov wants to merge 1 commit into
sanny32:devfrom
raspopov:i116-old-project
Open

Fix project file version 1.x compatibility.#120
raspopov wants to merge 1 commit into
sanny32:devfrom
raspopov:i116-old-project

Conversation

@raspopov

@raspopov raspopov commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Compatibility with version 1.x project files has been restored.

As it turned out, most of the old code for loading older project versions had never been removed from the codebase, so restoring compatibility turned out to be fairly easy.

Loading of both single-window and multi-window XML project files is supported.

New methods MainWindow::project() and FormDataView::project() have been added, because when loading a data view for an older version, a script view must be created in parallel—and within an independent serialization function—while view creation is only available within the project object. Need to pass a reference to it through the main window and the data view.

The data view serialization functions had to be moved to a C++ file after all, as class definition issues arose.

Places where old code is present are marked with a comment like // Version 1.x ...

Fixes #116.

@raspopov

raspopov commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Did I post this PR in the wrong branch again? 😔 What is the purpose of the two branches, one of which is called “main” and is, in fact, the default branch in Git? BTW I have a ‘dev’ branch too, but I've never pushed it to GitHub.

@sanny32 sanny32 changed the base branch from main to dev July 2, 2026 18:21
@sanny32 sanny32 self-requested a review July 2, 2026 18:22

@sanny32 sanny32 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to resolve conflicts

@raspopov raspopov force-pushed the i116-old-project branch from 1439826 to 60e2f73 Compare July 3, 2026 14:25
@raspopov

raspopov commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

There is no omodsim_tests_projectaddressspacefilter test in dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compatibility of project files from version 1.x

2 participants