Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create java/scala based editor for adding more xml and images #2

Open
barrybecker4 opened this issue May 26, 2019 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@barrybecker4
Copy link
Member

barrybecker4 commented May 26, 2019

Right now it's complicated to add more techniques and corresponding images.
What would really help is a rich editor that would show the technique hierarchy in collapsible folders and allow editing any row by changing any of the fields or adding images.
It should also be possible to add rows with are references to other branches of the tree (so that nothing is repeated). Changing a node in a reference branch would change it everywhere. The references would just be pointers to the original.

When mousing over a row, you should see all the images from the parent to that node.
You should be able to right click on a row and choose to

  • edit that row (in separate popup editor). If there are other rows that use reference that id, the id needs to change everywhere (if it is changed).
  • add new child row. Editor opens to add the new row.
  • add a new sibling row before or after the current row. The editor opens to add the new row.

The editor:

  • When editing a new row, the id may be selected from a drop list of existing row ids, or be a new row id.
  • The small and large images (if they exist) should be automatically determined by the id.
@barrybecker4 barrybecker4 added the enhancement New feature or request label May 26, 2019
@barrybecker4
Copy link
Member Author

Might consider making the editor in js using Vue.
See https://medium.com/vuetify/building-a-treeview-component-part-i-93d19733682f
Probably it would be better to store the data in JSON instead of XML.

@barrybecker4
Copy link
Member Author

Perhaps the existing Scala-based Adventure editor can be used for these xml files.
The structure of the xml data file is a little different. Adventure is a graph where children are listed explicitly for each node. For the aikido xml, children are implicit according to the hierarchical nesting.
But it seems like the Adventure editor could be easily adapted to read and write the aikido style xml files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant