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

Add the ability to sort the cavity output table #97

Open
jmaglic opened this issue Jun 29, 2021 · 2 comments
Open

Add the ability to sort the cavity output table #97

jmaglic opened this issue Jun 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@jmaglic
Copy link
Member

jmaglic commented Jun 29, 2021

Current status

The cavity table outputs cavities ordered by volume.

Issue

The user may be interested in features other than the cavity volume, such as surface or what type of cavity it is (after #88 has been implemented).

Proposed change

Add the ability to sort the table by any column, by clicking on the corresponding header cell. Since we have unicode support we can add a symbols ▼ and ▲ to the header cells to give an indication of how the list will be sorted when the header cell is clicked.

@jmaglic jmaglic added the enhancement New feature or request label Jun 29, 2021
@rlavendomme
Copy link
Collaborator

It's a good idea. We should first check if such options are already present in wxWidgets. In such case, it could be very simple to implement this feature.

@jmaglic
Copy link
Member Author

jmaglic commented Jun 29, 2021

There appears to be not built-in way to sort but there is a sorting event thrown by wxGrid. So it would be possible to handle the event and draw up a sorted grid in the event function.
https://stackoverflow.com/questions/14048043/how-do-i-handle-the-wxevt-grid-col-sort-event-to-sort-a-grid

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

2 participants