summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5d97440)
- Added some notes about the problems of the feature of copying a whole
directory
- Added some notes about my incompetence
- In the edit dialogue, there is a new checkbox allowing to continue editing the
file after saving it
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-07-06
+# Last modified: 2005-08-01
- $output = devedit_reload({command => 'show', file => $dir});
+ $output = ($cgi->param('continue'))
+ ? devedit_reload({command => 'beginedit', file => $virtual})
+ : devedit_reload({command => 'show', file => $dir});
# using only one command
#
# Author: Patrick Canterino <patrick@patshaping.de>
# using only one command
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-07-05
+# Last modified: 2005-08-01
$has_flock = eval { local $SIG{'__DIE__'}; flock(STDOUT,0); 1 };
$has_flock = eval { local $SIG{'__DIE__'}; flock(STDOUT,0); 1 };
+# Predeclaration of dir_copy()
+
+sub dir_copy($$);
+
# dir_copy()
#
# Copy a directory
# dir_copy()
#
# Copy a directory
<p><input type="submit" value="Copy directory!"></p>
</form>
<p><input type="submit" value="Copy directory!"></p>
</form>
-<p><b>Note:</b><br>
-The target you want this directory to copy to must not exist!</p>
+<p><b>Important notes:</b></p>
+
+<ul>
+<li>The target you want this directory to copy to <b>must not</b> exist!</li>
+<li>Please make sure that all your files were copied correctly. Due to problems concerning the architecture of Dev-Editor, a check of this is currently impossible. And by the way, you are absolutely right if you think now that I'm a very lousy and incompetent programmer.</li>
+</ul>
<p><textarea name="filecontent" rows="25" cols="120">{CONTENT}</textarea></p>
<p><textarea name="filecontent" rows="25" cols="120">{CONTENT}</textarea></p>
-<p><input type="checkbox" name="saveas" id="newfile" value="1"><label for="newfile">Save as new file: {DIR} </label><input type="text" name="newfile" value="" onchange="if(this.form.newfile.value != '') this.form.saveas.checked = true; else this.form.saveas.checked = false;"></p>
+<p><input type="checkbox" name="saveas" id="newfile" value="1"><label for="newfile">Save as new file: {DIR} </label><input type="text" name="newfile" value="" onchange="if(this.form.newfile.value != '') this.form.saveas.checked = true; else this.form.saveas.checked = false;"><br>
+<input type="checkbox" name="continue" id="continue" value="1"><label for="continue">Save file and continue editing</label></p>
<p><input type="submit" value="Save file"> <input type="reset" value="Discard changes"></p>
</form>
<p><input type="submit" value="Save file"> <input type="reset" value="Discard changes"></p>
</form>