construct-editor icon indicating copy to clipboard operation
construct-editor copied to clipboard

How is it possible to define a new structure?

Open eirnym opened this issue 2 years ago • 5 comments

I have a binary file, and I'd like to define a new stucture of it prior coding. How would I do it?

eirnym avatar Jul 09 '23 12:07 eirnym

construct-editor relies on the construct module documented here

Ircama avatar Dec 08 '23 12:12 Ircama

So there's basically no way to download and install the app and just use it to explore other formats.

My proposition is to create a UI to define new formats and use mentioned module for default examples.

eirnym avatar Dec 09 '23 14:12 eirnym

So there's basically no way to download and install the app and just use it to explore other formats.

My proposition is to create a UI to define new formats and use mentioned module for default examples.

One option could be to start from the example.

Alternatively, editing the stand-alone app at the moment involves:

  1. implementing specific construct definitions (construct and GalleryItem), e.g., by adding a module into the gallery or by modifying the gallery itself;
  2. including it in the main import;
  3. adding the samples in the construct_gallery dictionary.

You might also check construct_gallery. A related example of simple stand-alone app is here.

Ircama avatar Dec 12 '23 00:12 Ircama

I still request a way to edit it in application. I accept the current definition as a proof of concept, but not as a production use

eirnym avatar Dec 12 '23 07:12 eirnym

I still request a way to edit it in application. I accept the current definition as a proof of concept, but not as a production use

construct_gallery might offer what you want. There is an example that guides its basic usage. As it is still under development at the time of writing, it has to be installed from GitHub. However, the requested functionalities are already available. It uses construct-editor underneath.

Ircama avatar Jan 06 '24 18:01 Ircama