Skip to content
Snippets Groups Projects
  1. Feb 09, 2023
    • Tobias Bodmer's avatar
      Many fixes & refactoring & add Quaternions · d7f046dd
      Tobias Bodmer authored
      - add QuaternionWidget
      - remove old modal code
      - remove Copy and clone of AronTreeWidgetItem
      - add recognition of duplicate dict keys
      - add countermeasure to tabbing into unchangeable key fields
      - make aronType const in AronTreeWidget
      - flag tuple code as untested, since aron is currently broken there
      - fix weird std::locals setting in AronTreeWidgetSetter.cpp, which causes floating numbers to print as 12,345 with std::to_string()
      - add usage of std::launder to make reinterpret_cast more save within the usage of NDArray
      d7f046dd
  2. Jan 12, 2023
    • Tobias Bodmer's avatar
      Convert IntEnum && list #elements && list conv fix · 2fec2bd3
      Tobias Bodmer authored
      Implement IntEnum parsing by both value and string name. The String name
      is hadled first.
      Also added a feature which displays the contained number of children at
      the otherwise empty value field for lists.
      
      Fixed a bug, where the converter visitor sometimes didn't get
      called with the visit() method.
      
      Also AronTreeWidgetConverter recursively called itself when listTypes
      were involved.
      2fec2bd3
  3. Dec 20, 2022
  4. Dec 12, 2022
    • Tobias Bodmer's avatar
      Throw out static widget variable · c5744eae
      Tobias Bodmer authored
      - static variable gone
      - replaced by pointer for each element in hierarchy. (Imagine two persistent trees, total chaos otherwise)
      - raw matrix data has column wise sorting. Fix reading and writing code.
      - QLineEdit now focuses start of line after setText.
      c5744eae
  5. Dec 07, 2022
  6. Dec 06, 2022
    • Tobias Bodmer's avatar
      Impl. EditText widget for Matrix · dfb4789a
      Tobias Bodmer authored
      - New Widget which contains an edittext for each matrix element
      - self-contained parsing on changes for error highlighting
      - moved onTreeWidgetItemDoubleClicked and onTreeWidgetItemChanged to AronTreeWidgetController.h, these GUI actions only concern the Tree widget details, not however the full scope in SkillManagerMonitorWidgetController.h
      - in AronTreeWidgetCreator.h: createSimpleTreeViewWidget() now called insertNewTreeViewWidget(). It also directly adds the created widget to the parent, has control flow reasons to add it directly.
       (otherwise we cannot directly overlay custom widgets inside the AronTreeWidgetCreatorVisitor)
       -
      dfb4789a
  7. Nov 14, 2022
  8. Nov 09, 2022
    • Tobias Bodmer's avatar
      clang format & changed callback for checks · 3a5d0a2d
      Tobias Bodmer authored
      - finally got clang-format again. (imo made the documents worse though)
      - implement callback on changed items in the gui. Attempt to convert them
      to aron types. If that fails, the element gets colored red.
      3a5d0a2d
  9. Nov 07, 2022
    • Tobias Bodmer's avatar
      Unique Dict keys, separate edit properties · c32bd844
      Tobias Bodmer authored
      AronTreeWidgetItem now stores two flags, which column should be
      editable. This is necessary, because the parent entry could enable
      editing column 0 whilst the current elment can be edited in its value.
      Only using the flag of QTreeElement is then too messy.
      
      Also added a parent pointer to the CreatorVisitor. This provides enough
      context for a centralized instantiation.
      
      As pointed out: Newly added keys are now unique.
      c32bd844
  10. Oct 11, 2022
    • Tobias Bodmer's avatar
      support list, expandable context menu · 58920b79
      Tobias Bodmer authored
      - list creates a child tree element per item
        - the key is a numerated index
        - context menu on the item deletes this exact item
      - context menu handling now separated on which options are available and
      their execution
      
      Bugs to fix:
      - Type of Dict not correct (see example "cascaded_list")
      - Keys of dict not editable when in list (e.g. type
      List<Dict<something>>)
      
      next things to do:
      - converters for dict, list, intenum (partially just check)
      - tuple & pair
      - sanity checks after checking rest of converters
      58920b79
  11. Oct 10, 2022
    • Tobias Bodmer's avatar
      add context menu && dict keys editable · 0f0d7dbc
      Tobias Bodmer authored
      - make AronTreeWidgetController QObject -> now handles context menu
      actions of the contained treewidgetitems
      - SkillManagerMonitorWidget makes first column editable if the parent is
      a dict
      0f0d7dbc
  12. Sep 28, 2022
    • Tobias Bodmer's avatar
      prevent gui popup for leaf types · 0c03de6f
      Tobias Bodmer authored
      ... except String atm
      0c03de6f
    • Tobias Bodmer's avatar
      Dict entries expanded in DetailedView · cb0636a5
      Tobias Bodmer authored
      Inside the SetterVisitor, the code now generates enough children to view
      all attributes.
      
      Still TODO:
       - adaptively erase children
       - add context menu to add & remove children
       - check that edits persist / are picked up before execution
      
      Dict Unrelated TODOS:
       - make Leaf types editable in GUI
       - do same treatment for lists
      cb0636a5
  13. Sep 08, 2022
  14. Sep 07, 2022
  15. Sep 05, 2022
  16. Sep 04, 2022
  17. Aug 30, 2022
  18. Aug 26, 2022
  19. Aug 24, 2022
  20. Aug 16, 2022
  21. Aug 12, 2022
  22. Aug 08, 2022
  23. Aug 06, 2022
  24. Aug 05, 2022
Loading