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

New Plugin: TabVsSpace

<< < (2/3) > >>

killerbot:
Hi,

No need for the screen shot, I downloaded your sources, had to change the cbp a bit (compiler, linker settings).
I got a bunchof warnings or errors, too much to follow. Got rid of those by removing the
            <Compiler>
               <Add option="-pedantic"/>
               <Add option="-Wall"/>
               <Add option="-g"/>
            </Compiler>
part. Guess it's the pedantic thingy.

Nevertheless, was able to build it then, and run it (well to look at configure).

I'll make a wxSmith for you, then you main cpp file will definetaly become cleaner, but you will end up with 2 more sources (the dialog class implementation) and also a xrc file which you need to put in a zip. You can also work without the xrc file, but that I have not tried out yet.

I could already remove includes of :
//#include <wx/statline.h>
//#include <wx/textctrl.h>
//#include <windows.h>

and still build ok.


Now answering your 1)c) question.

This is how you can 'force' reload the current open editor , ie the editor pane that has the focus :

   cbEditor* Editor = Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor();
   if(Editor)
   {
      Editor->Reload();
   }


kind regards,
Lieven

MortenMacFly:

--- Quote from: mispunt on November 03, 2005, 10:29:59 pm ---Perhaps it is usefull for you to try wxSmith plugin. I think it has everything you need.

--- End quote ---
Thanks for the comments. I first tried wxSmith, indeed. But I have a very basic problem: I am not used to this "grid and sizer based" GUI programming. The GUI's I've developed so far had a discrete resizable grid where I could place my controls. So I am actually a bit lost with StaticSizer, GridSizer, wxExpand and all those things. So I thought it would be better to first understand the basics before starting with a RAD tool. I just haven't found the time yet to read about that. Once I understand the "magic" behind I am going to definetely use a RAD tool -> wxSmith :D.

Morten.

MortenMacFly:

--- Quote from: killerbot on November 04, 2005, 09:12:04 am ---Guess it's the pedantic thingy.

--- End quote ---
Yes, that's it but on my machine there are just 3 warnings about C99 standard and that's it. What else is it on you machine?


--- Quote ---I'll make a wxSmith for you, [...]

--- End quote ---
Thanks a lot. The will help me, for sure. I've explained above why I havent used wxSmith ini the first attempt. No I have had a lok inside a wxSmith and XRC file... I guess that might even help me to understand what's going on...


--- Quote ---Now answering your 1)c) question.

--- End quote ---
Thanks again - I'll give it a try and post an updated version when it's implemented.

With regards,

Morten.

MortenMacFly:
Warning:
I've just used my plugin on a huge project. It seems that there is an issue with the buffer I am using to read from file. It happens that when the file is written sometimes too much data is written thus resulting in a broken output file. The "good news" is: No data can be lost, only buffer characters are written too much to the file. This seems not to happen if the plugin is used on a single file only.

I am going to look what's happening and going to repost this plugin asap.

Big sorry for that!

Morten.

MortenMacFly:
I've just updated the issue that I had discovered. Please find attachedf the new version.
What's new:
- Fixed bug with file buffer
- Warning if files are opened in editor that might be affected by the plugin'S operation
- Automatically triggers check for externally modified files after plugin operation.

Morten.


[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version