Author Topic: [SOLVED]request for a new CodeblocksEvent type : end of a 'multiple files add'  (Read 18619 times)

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
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]
« Last Edit: November 30, 2007, 10:37:17 pm by orel »
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :http://forums.codeblocks.org/index.php/topic,7063.0.html

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
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...

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
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.

@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 :http://forums.codeblocks.org/index.php/topic,7063.0.html

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
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...
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."

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
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 :http://forums.codeblocks.org/index.php/topic,7063.0.html