| [View Project][View Threads]Title: | Workbench file lister | | Synopsis: Create a replacement file lister that resembles the ones used in Diropus and Diropus Magellan. | Navigate: 1-5
orgin | Re: Work on column sorting | 20090213 20:21 | | @orgin
Added an enum for sort modes and a new uint32 parameter to ExDir() for sort order.
My idea is to let ExDir() sort the files/dirs directly when adding them to the file list. I changed the function to add directories at the start of the list and files at the end of it.
The Filer should probably have a prefs setting for "Directories first" later on. | | |
|
orgin | Re: Work on column sorting | 20090218 19:42 | | @orgin
Added some help files for this task.
Util.c/h - utility functions
FileItemList.c/h - implements a dynamic, double linked list for holding file data | | |
|
orgin | Re: Work on column sorting | 20090219 21:17 | | @orgin
Just finished the sorting functions. ExDir() now automatically sorts the files/dirs it finds by the specified sort order.
Shouldn't be too hard to add sorting to the root view as well, but that's a job for another time.
Currently the sort order is hard coded to filename ascending.
Next up is to figure out how to listen to events triggered by clicking the column headers so that you can actually select sort order.
| | |
|
orgin | Re: Work on column sorting | 20090221 13:24 | | @orgin
Columns sorting is now possible in directory views.
You can sort on filename, date, size and comment. | | |
|
orgin | Re: Work on column sorting | 20090221 17:14 | | @orgin
And now it's possible to sort the root view as well. | | |
| Navigate: 1-5
|
|