TreeView.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132
  1. TODO:
  2. - Callback on tree item select
  3. - Context menu with rename/copy/paste/duplicate
  4. - Delete with Undo/Redo support
  5. - Support for icons next to tree elements
  6. - Clicking on an already selectecd element starts rename
  7. - Will likely need some kind of check to ignore double-clicks?
  8. MenuBar problems:
  9. - Clicking the top menu item closes and immediately opens the menu again (it should only close it)
  10. - Something similar probably also happens with ListBox
  11. Other:
  12. - "Ping" effect
  13. - Copy/Paste/Duplicate
  14. - This is more of a problem with actual copying of SceneObjects (It's not implemented). I should be able to serialize, and then de-serialize with a new parent as a form of copy.
  15. --------------------------------------------------
  16. LOW PRIORITY:
  17. Shortcut plan:
  18. Replace all GUICommandEventType with two things:
  19. - Events like CursorMoveUp should just be received a keys + modifiers (shift/ctrl/alt) and the individual element can then decide what to do with them and how to interpret them.
  20. - Events like Rename, Undo, Redo, Copy, Paste, etc. should be globally set shortcut keys
  21. - Shortcut keys are globally registered on program start in ShortcutManager
  22. - Objects can then register callbacks for certain shortcut using mechanism like: addCallback("Undo", onUndo).
  23. - They should also be able to unregister those callbacks.
  24. - GUIElement can choose to listen to certain shortcut keys
  25. - getUsedShortcut is a overridable method that returns a list of shortcuts and callbacks
  26. - When element comes into focus or loses focus GUIManager will register/unregister those shortcuts with ShortcutManager
  27. - I should probably prevent one shortcut from possibly triggering multiple callbacks
  28. - Whenever some key combination or a single key is pressed all elements in focus get send the shortcut key (if that shortcut exists)