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

SVNInside : development of another SVN plugin for CodeBlocks

<< < (3/31) > >>

JGM:
Great job!  :D


--- Quote from: orel on October 08, 2007, 11:58:49 pm ---the only part of it which is non portable for the moment is the class i implement to read console output (under Win32 that's not an easy task). I think reading svn console output under linux (or any other platform) should be easier.

--- End quote ---

You can use a wxWidgets function named wxExecute to execute and read the output of console programs like you said. In that way you don't have to worry about making different code for different platforms.


--- Quote from: wxWidgets Documentation ---long wxExecute(const wxString& command, wxArrayString& output, int flags = 0)

--- End quote ---

Jan van den Borst:

--- Quote from: MortenMacFly on October 09, 2007, 12:01:37 pm ---
--- Quote from: orel on October 09, 2007, 02:16:07 am ---Done !! you can go and get the source code at http://tools.assembla.com/svn/SVNInside.

--- End quote ---
Nice work! The screenshot looks pretty nice, really! I am currently trying to compile. ;-) Hence I have two questions so far:
1.) Why don't you provide the project files?! You stated in the log it's not needed, but why?!

--- End quote ---
Can you provide the project file?

killerbot:
yes; using wxExecute will be better.
I used that one to for my ClearCase and valgrind plug-ins.

Once CB 1.0 is out, we gonna try to create a common interface for version control system in CB (like M$ does).


Since you are calling the command line svn, wxExecute should be fine for the job.

orel:

First of all, thank you for compliments about this plugin.


--- Quote from: Jan van den Borst on October 09, 2007, 08:34:55 pm ---
--- Quote from: MortenMacFly on October 09, 2007, 12:01:37 pm ---
--- Quote from: orel on October 09, 2007, 02:16:07 am ---Done !! you can go and get the source code at http://tools.assembla.com/svn/SVNInside.

--- End quote ---
Nice work! The screenshot looks pretty nice, really! I am currently trying to compile. ;-) Hence I have two questions so far:
1.) Why don't you provide the project files?! You stated in the log it's not needed, but why?!

--- End quote ---
Can you provide the project file?

--- End quote ---

Done !

I added it and also a little windows batch file here to zip and copy files where they are needed to debug the plugin dll.


--- Quote from: MortenMacFly on October 09, 2007, 12:01:37 pm ---1.) Why don't you provide the project files?! You stated in the log it's not needed, but why?!

--- End quote ---

i didn't provide it because i thought it was too messy and too personalized to be useful for others, but you're right : better modifying an existent one, even messy, rather than creating a new one from scratch.


--- Quote from: MortenMacFly on October 09, 2007, 12:01:37 pm ---2.) CSVNcommand.h and CSVNCommand.cpp differ in their case. While this doesn't matter on Windows it might be an ugly thing on Linux.
With regards, Morten.

--- End quote ---

This is also done!


--- Quote from: JGM on October 09, 2007, 02:36:09 pm ---Great job!  :D
You can use a wxWidgets function named wxExecute to execute and read the output of console programs like you said. In that way you don't have to worry about making different code for different platforms.

--- End quote ---

Than you for this hint, didn't knew about that, i'm currently trying to implement it and looking after other 'only windows code', but there is not too much.

Did someone already looked after the code, can you compile and run it under linux or even windows? Please tell me if you encounter some problems.

And i have to reask that question, because i found no answer for the moment, how to undo a file modification after having handled cb_EDITOR_MODIFIED_EVENT?

darthdespotism:
I'll try some Linux builds as soon as you think it'll help ;) but as I never worked with wxWidgets as a Programmer I can't help you with that right away

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version