Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » TheIde and Delete package file/topic
TheIde and Delete package file/topic [message #26302] Fri, 23 April 2010 00:44 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello all

Now the packages can have files or Topic folders.

By my mistake I have put few times a folder instead of a file and trying to delete it all the folder has been deleted Sad

The code in TheIde is in UppWspc.cpp:

void WorkspaceWork::DelFile()
{
	if(!filelist.IsCursor() || filelist[fileindex[filelist.GetCursor()]].isdir) return;
	String file = GetActiveFilePath();
	if(IsFolder(file)) {
		if(!PromptYesNo("Remove the topic group and discard ALL topics?")) return;
		RemoveFile();
		DeleteFolderDeep(file);
	}
	else {
		if(!PromptYesNo("Remove the file from package and discard it ?")) return;
		RemoveFile();
		::DeleteFile(file);
	}
}


I recognize it has been my fault but could it be possible to soften the Delete instead of using a DeleteFolderDeep()?, like:

- Checking that, if it is a folder, it has to have .tpp extension
- Copying the folder to Recycle Bin



Best regards
Iñaki
Re: TheIde and Delete package file/topic [message #30050 is a reply to message #26302] Sun, 05 December 2010 08:38 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Thu, 22 April 2010 18:44

Hello all

Now the packages can have files or Topic folders.

By my mistake I have put few times a folder instead of a file and trying to delete it all the folder has been deleted Sad



BTW, how have you achieved to put a folder to package? Well, perhaps by editing the .upp, or deleting file and putting a folder with the same name...?

The only folder possible there by theide is AFAIK topic group...

[Updated on: Sun, 05 December 2010 08:39]

Report message to a moderator

Re: TheIde and Delete package file/topic [message #30054 is a reply to message #30050] Sun, 05 December 2010 10:57 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
mirek wrote on Sun, 05 December 2010 08:38

koldo wrote on Thu, 22 April 2010 18:44

Hello all

Now the packages can have files or Topic folders.

By my mistake I have put few times a folder instead of a file and trying to delete it all the folder has been deleted Sad



BTW, how have you achieved to put a folder to package? Well, perhaps by editing the .upp, or deleting file and putting a folder with the same name...?

The only folder possible there by theide is AFAIK topic group...


Sorry Mirek

This post is so old that I do not remember the reasons.


Best regards
Iñaki
Previous Topic: TheIDE hangs on "Show svn history of file"
Next Topic: gcc441 + uldar produces a crashing executable
Goto Forum:
  


Current Time: Fri Mar 29 08:29:23 CET 2024

Total time taken to generate the page: 0.01349 seconds