Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
New Plugin: TabVsSpace
MortenMacFly:
Dear community,
it's ready: My first plugin for Code::Blocks :D called "Tabs versus Spaces". Find it attached.
--> What is does
I often get source code files that have mixed tabs and spaces and/or have trailing tabs/spaces on each line. This makes it somethimes hard to compare files since they seem to differ but in fact are basically the same. My plugin provides an easy-to-use interface to convert tabs into spaces and via verca and/or remove trailing tabs/spaces from source code files (in projects).
--> How to compile/install
If this plugin is placed under [CodeBlocks_CVS]\plugins\contrib\TabVsSpace in the source-code distribution of Code::Blocks it should compile fine (relative path's are set). Don't forget to setup "WX_DIR" under custom variables correctly. The update script ([CodeBlocks_CVS]\update*) will autmatically cover TabsVsSpace for distribution.
--> Help wanted
There are 2 known issues where I would like to ask for help:
1.) If a file is opened in the editor that is being changed it should be reloaded automatically. However - I did not found out how a) regognise whether a file is opened in the editor or not b) whether it has pending (unsaved) changes and c) how to force a reload if required.
2.) Unfortunately I have never used the wxWidgets framework before. The settings dialog for the plugin is a bit ugly but I couldn't find out how to place the controls in a way that they are on the same line (especially the statictext and the checkbox control next to it are quite ugly for now.
Comments and help are appreciated.
With regards,
Morten.
Ps.: Is there a common place where to store 3rd party plugins?
Update: An issue has been detected in the intial version. Please read future posting for an updated version.
MortenMacFly:
--- Quote from: MortenMacFly on November 03, 2005, 07:49:35 pm ---it's ready: My first plugin for Code::Blocks :D called "Tabs versus Spaces". Find it attached.
--- End quote ---
...I forgot to add: Allthough I tested the plugin and tried to make it as secure as possible it is still recommended to make a backup of your sources before using TabVsSpace!
Morten.
David Perfors:
--- Quote from: MortenMacFly on November 03, 2005, 07:49:35 pm ---it's ready: My first plugin for Code::Blocks :D called "Tabs versus Spaces". Find it attached.
--- End quote ---
interesting plugin, I also know the problem of tabs/spaces. very frustrating. I am going to look to this plugin.
--- Quote ---2.) Unfortunately I have never used the wxWidgets framework before. The settings dialog for the plugin is a bit ugly but I couldn't find out how to place the controls in a way that they are on the same line (especially the statictext and the checkbox control next to it are quite ugly for now.
--- End quote ---
Perhaps it is usefull for you to try wxSmith plugin. I think it has everything you need.
--- Quote ---Ps.: Is there a common place where to store 3rd party plugins?
--- End quote ---
There is the CVS, but therefore you have to be an official developer on SourceForge.
Urxae:
--- Quote from: mispunt on November 03, 2005, 10:29:59 pm ---
--- Quote ---Ps.: Is there a common place where to store 3rd party plugins?
--- End quote ---
There is the CVS, but therefore you have to be an official developer on SourceForge.
--- End quote ---
Which, judging by precedent, you will be made when your plugin is placed in CVS.
killerbot:
Hi,
tomorrow I will post some code here on how to update a file that is open. I have done the same for my clearcase plug-in which is ready (probably release tomorrow).
Why no post of the code now : it's on my laptop, which is not here for the moment.
kind regards,
Lieven
PS : if your dialog is no to complicated I might get it nicely, I am not experienced yet; but I am experimenting and getting the hang of it.
Feel free to mail me a screenshot of you dialog gui (note : i don't have that much free time for the moment, but as said when it is a simple dialog I can give it a try).
Navigation
[0] Message Index
[#] Next page
Go to full version