News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[SOLVED]request for a new CodeblocksEvent type : end of a 'multiple files add'

Started by orel, November 29, 2007, 09:33:29 PM

Previous topic - Next topic

orel

I made myself a Berlios account in order to submit this patch over there.
This is now done and you can get it : ID 2265
[EDIT : here is the link : http://developer.berlios.de/patch/?func=detailpatch&patch_id=2265&group_id=5358]
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :[url="http://forums.next.codeblocks.org/index.php/topic,7063.0.html"]http://forums.next.codeblocks.org/index.php/topic,7063.0.html[/url]

mandrav

What all of you miss is that adding multiple files can also be done by successively calling AddFile(). In case you wonder, this is already done by the project loader, while opening the project...

@orel: thanks for the patch but it can't be used. We 'll have to come up with something better (yes, I have something in mind).
Be patient!
This bug will be fixed soon...

orel

Quote from: mandrav on November 30, 2007, 11:23:32 PM
What all of you miss is that adding multiple files can also be done by successively calling AddFile(). In case you wonder, this is already done by the project loader, while opening the project...
You are right. But maybe i missed something because when a project is opened, addition of files to it doesn't send cbEVT_PROJECT_FILE_ADDED event, so IMHO it wouldn't be a problem.

Quote from: mandrav on November 30, 2007, 11:23:32 PM
@orel: thanks for the patch but it can't be used. We 'll have to come up with something better (yes, I have something in mind).
You are welcome and so is your better solution :D :D

And thank you all for helping me with SVNInside develoment!!
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :[url="http://forums.next.codeblocks.org/index.php/topic,7063.0.html"]http://forums.next.codeblocks.org/index.php/topic,7063.0.html[/url]

thomas

Quote from: mandrav on November 30, 2007, 11:23:32 PMWhat all of you miss is that adding multiple files can also be done by successively calling AddFile(). In case you wonder, this is already done by the project loader, while opening the project...
This is why I say that the IDE has no way of knowing when adding files is done. The user would have to press a "finish" button or something...

But still, the proposal made by kkez and implemented by orel does not break any existing functionality, and it allows to save a little work, since at least he doesn't call svn 200 times if 200 files are added with "Add recursively...". Thus, while it is no solution, it's maybe still better than nothing.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

orel

Quote from: thomas on December 01, 2007, 01:43:59 PM
But still, the proposal made by kkez and implemented by orel does not break any existing functionality, and it allows to save a little work, since at least he doesn't call svn 200 times if 200 files are added with "Add recursively...". Thus, while it is no solution, it's maybe still better than nothing.
Effectively, this solution would make easy the development of SVNInside functionnality i was talking about : instantly and rapidly refreshing the status of the newly added files. This would be a convenience and it's not stopping me developing the plugin, i could also set the newly added files as 'not-yet-statued' and the user would have to call 'refresh status' on the whole project or on each file to remediate this.

And Mandrav said he has something in mind so... :D

windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :[url="http://forums.next.codeblocks.org/index.php/topic,7063.0.html"]http://forums.next.codeblocks.org/index.php/topic,7063.0.html[/url]