Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
ThreadSearch - sort in the list control
oBFusCATed:
Hello,
I have a little feature request for this great plugin:
Sort the list control, when the user clicks on the header (the 'buttons' for Directory, File, Line, Text).
Is that possible? I've read part of the source and I think it will require knowledge of the internals.
Can someone do it or give me some hint how to do it efficiently?
MortenMacFly:
--- Quote from: oBFusCATed on February 16, 2010, 10:12:42 pm ---Can someone do it or give me some hint how to do it efficiently?
--- End quote ---
Have a look at e.g. the symbols tables plugin where the entries are sortable. Basically you'll need to provide (fast!) search sort methods. Doing it the same way for ThreadSearch shouldn't be a problem.
oBFusCATed:
I've looked at the TODO plugin, but the thing is that in the ThreadSearch, there is no user data in the items, so I need to introduce one.
p.s. how do one test changes in a contrib plugin?
MortenMacFly:
--- Quote from: oBFusCATed on February 17, 2010, 08:10:26 am ---I've looked at the TODO plugin, but the thing is that in the ThreadSearch, there is no user data in the items, so I need to introduce one.
--- End quote ---
True.
--- Quote from: oBFusCATed on February 17, 2010, 08:10:26 am ---p.s. how do one test changes in a contrib plugin?
--- End quote ---
Not sure what you mean... provide a patch and... erm... test?!
oBFusCATed:
--- Quote from: MortenMacFly on February 17, 2010, 09:22:49 am ---True.
--- End quote ---
Any suggestions how to do it best?
--- Quote from: MortenMacFly on February 17, 2010, 09:22:49 am ---Not sure what you mean... provide a patch and... erm... test?!
--- End quote ---
To test C::B one needs to open the project file and hit run.
What do I need to do to test changes in a contrib plugin?
I must open the Contrib-unix.workspace, choose the plugin I want to modify and hit run?
Navigation
[0] Message Index
[#] Next page
Go to full version