Closed ivoflipse closed 10 years ago
I ended up simply adding the buttons for now and changing their icons (which make no sense, but heey) to have a red X on it, though perhaps a trashcan would be better...
Anyway, I can now delete subjects, sessions and measurements. I probably should do the same for Contacts, but I don't have a use-case for that right now.
The good thing about being able to delete is that I don't have to throw away my database every time I screw something up, which broke just one entry in my database, because I didn't have a way to repair it. Perhaps that's also a sign that I should add some update/repair/edit function where you can change something that's already saved to PyTables, instead of being the rather binary choice: add or delete.
Currently you can only add things, I haven't decided how to delete stuff. Off course its just a matter of adding a button, but that means I would need at least 3 additional buttons. Buttons that have to make some sense for people to know what they mean, since they're in the ribbon they lack the normal context.
Perhaps I should admit defeat and simple place the buttons closer to the GUI elements they affect, instead of having one general toolbar for everything...
Thoughts anyone?