Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
ThreadSearch plugin is born !
jomeggs:
--- Quote from: dje on March 13, 2007, 09:52:46 pm ---The "ThreadSearch" plugin offers the following features:
* multi-threaded "Search in files"
* preview of the results (left single click on log window)
* file open (left double click on log window)
* check boxes instead of radio boxes to allow searches with both project and directories for example.
* contextual menu "Find occurrences" to start a search in files with the word under cursor (can be activated or not)
--- End quote ---
Looks fine! There is only one feature missed... :D
* group search results by file
Best regards,
jomeggs
dje:
--- Quote ---Please make the mini editors at least read-only
--- End quote ---
That's the case.
For know I use a cbStyledTextCtrl that allows what I use.
To be writable, it would be better to use a cbEditor, what is impossible today due to the several interactions between cbEditor/ProjectManager/wxFlatNotebook.
Make the Code preview writable is not planned for today.
--- Quote ---group search results by file
--- End quote ---
I'm not sure to understand clearly what you mean, make column header clickable to sort the log items ?
Dje
MortenMacFly:
--- Quote from: dje on March 14, 2007, 01:16:33 pm ---
--- Quote ---Please make the mini editors at least read-only
--- End quote ---
That's the case. [...] Make the Code preview writable is not planned for today.
--- End quote ---
Again: Great... keep it that way. ;-)
mandrav:
--- Quote from: dje on March 14, 2007, 01:16:33 pm ---
--- Quote ---Please make the mini editors at least read-only
--- End quote ---
That's the case.
For know I use a cbStyledTextCtrl that allows what I use.
To be writable, it would be better to use a cbEditor, what is impossible today due to the several interactions between cbEditor/ProjectManager/wxFlatNotebook.
Make the Code preview writable is not planned for today.
--- End quote ---
Although I agree that it should be read-only, still you could make it writable if you insisted, with minimal fuss.
The key is to use scintilla's document pointers. It's just one line of code for you to add:
--- Code: ---your_control->SetDocPointer(open_cbeditor->GetDocPointer())
--- End code ---
These are refcounted and should pose no problem. The only issue I see is that if a cbEditor is not open when previewing your search results you should then watch for EDITOR_OPEN events and if you see that an internal editor opens with the same file, then "attach" the docpointer again so that you use the one and same internal buffer.
Once again: I don't think that making it writable is a good idea. I 'm just writing this so you learn something new (if you didn't know already).
Pecan:
I must be overlooking something. I was going to compile ThreadSearch under Linux but cannot find the source.
Could you give us a link to the source, and I'll run it through andLinux.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version