Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

ThreadSearch plugin is born !

(1/12) > >>

dje:
Hi all !!

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)
Why ?

* I am working on very big projects (700 Mo of cpp, h files) and text searches take up to 5 minutes. It is very frustrating being blocked because of the search. It is now possible to continue editing code during searches.
* I do not like leaving the editor position to browse 'Search in files' resuts. There is now the 'Code preview' to do this with possibility to open the file at the right position.

Please note :

* The provided dll is release unicode (windows only for now).
* Even if beta version, it is stable (I've been using it for 2 months).
* Tested only on 3 XP SP2 PCs, personal and professional editions.
Installation :
* Download the following files: ThreadSearch-0.3.cbplugin, ThreadSearch.png and ThreadSearch-off.png
* Copy and paste the downloaded pngs in the <...>\CodeBlocks\share\CodeBlocks\images\settings directory
* Click on Plugins/Manage plugins
* Click on Install new and select the downloaded ThreadSearch-0.3.cbplugin
Now a few questions :
I would like to release the source code in the contrib plugins. Do I make a SVN patch?
How do I get rights to modify my code without SVN patching ?

Remarks :

* I duplicated the cbFindReplaceData in my project because it is declared in cbeditor.cpp. Any problem moving it to cbeditor.h ?? Can send the patch ?
* My search strategy is inspired from the find in files one (use of an hidden cbEditor) but is not a raw copy. What do I need to do to comply with GPL licence ?
* You may have noticed there is only Windows XP version. I need help to translate Windows codeblocks project to other platforms and to build the dedicated binaries.
For sure, I am interesting in your opinions concerning this plugin !

Dje

MortenMacFly:
Sorry, no success here:

--- Code: ---[22:04:01.828]: ERROR: E:\Devel\CodeBlocks_Devel/share/codeblocks/plugins/ThreadSearch.dll: not loaded (missing symbols?)
[22:04:01.843]: Failed

--- End code ---
Seems it's build against a non up-to-date SDK. But: Sounds interesting anyway. ;-)
With regards, Morten.

MortenMacFly:
Sorry again, forgotton to answer the second part (which I kind of overlooked):
I'd suggest first posting the plugin sources here for testing and maybe announcing it in the WiKi under plugins section. Once you believe that you have received enough feedback it *could* be added to contrib at C::B SVN (by mandrav). But: You could also create your own SVN repository as it is done with quite some other plugins. You could even use BerliOS as platform if you like. The advantage: You have full control over the sources and the repository itself yourself.
With regards, Morten.

dje:
I updated my environment to SVN 3672 and rebuilt my plugin.

I had problems with install and uninstall. All worked in my development environment but install/uninstall systematically failed when installing in the nightly build the exported plugin.

To solve this, I replaced the static libs (wxScintilla, wxWidgets and CodeBlocks) from my development environment by the corresponding nightly dlls (suggested by Mandrav).

I am using GCC 3.4.5.

I compiled the plugin with several different nightlies and tried it with several ones without rebuilding it. I had no problem.

Did you try with a nightly build or your SVN environment (I saw devel in your log) ?

Could you try with a recent nightly if you tested it on SVN environment ?

Dje

Pecan:

--- Quote from: dje on March 13, 2007, 09:52:46 pm ---You may have noticed there is only Windows XP version. I need help to translate Windows codeblocks project to other platforms and to build the dedicated binaries.

--- End quote ---

You have a good idea going here.

Suggestion:

Support Linux.

Download andLinux. Install it. Install CodeBlocks under andLinux, recompile CB and test your plugin.

When you support Linux,as all the other contribs do, you'll have a better chance of getting it added to the Contribs.

andLinux is a Linux distrubution using coLinux and ubuntu that runs under windows XP. You don't have to reboot or reserve a partition.

http://wiki.gp2x.org/wiki/AndLinux
http://forums.codeblocks.org/index.php/topic,4549.0.html

XP running CB under Linux under Windows with wxWidgets help file and WinExplorer. Linux is running from the E:\andLinux directory.


Navigation

[0] Message Index

[#] Next page

Go to full version