Sheepdog wrote:I think the filelist has to be actualized each time the App gets focus again, because otherwise you can get serious trouble by trying to rename a file that has been renamed/deleted/moved by some other Application in the meanwhile.
sheepdog
I think it's not hard to handle. Here is an example solution as i see it.
When a user starts in-place renaming...
1. current name is stored into buffer_1 and FLAG_RENAME is set to TRUE.
When he changes the text...
2. it is stored into buffer_2.
If renaming was successful (ENTER pressed etc)...
3. all buffers are cleared and FLAG_RENAME is set to FALSE.
After actualizing (we know that in-place editor was closed) program checks whether FLAG_RENAME is FALSE. If so - there is nothing to do. Otherwise program checks whether file/folder with name stored in buffer_1 exists. If it not exists then go to step 3. If it exists...
4. program goes to that file/folder position, opens in-place editor, copies text from buffer_2 there and continues its work as it always does. And then step 3 again.
Thanks.