标题显示当前编辑的文件完整路径
This commit is contained in:
parent
0435ad35f1
commit
1131d70b3a
@ -141,6 +141,7 @@ getTxtTableData = function(reference_row = 2){
|
|||||||
|
|
||||||
var writeTxtFile = function(file_path, vlist_data){
|
var writeTxtFile = function(file_path, vlist_data){
|
||||||
var file = ..io.open(file_path,"w");
|
var file = ..io.open(file_path,"w");
|
||||||
|
setCurFilePath(file_path);
|
||||||
for(i=1;#vlist_data;1){
|
for(i=1;#vlist_data;1){
|
||||||
var arrLine = {};
|
var arrLine = {};
|
||||||
for(j=1;#vlist_data.fields;1){
|
for(j=1;#vlist_data.fields;1){
|
||||||
|
@ -80,6 +80,7 @@ g_teMenus.openFile = function(ctrl){
|
|||||||
return function(){
|
return function(){
|
||||||
var t = teUtils.getTxtTableData();
|
var t = teUtils.getTxtTableData();
|
||||||
if(t){
|
if(t){
|
||||||
|
mainForm.text += "[ " + teUtils.getCurFilePath() + " ]";
|
||||||
g_teMenus.newFile();
|
g_teMenus.newFile();
|
||||||
mainForm.g_flexcell.AutoRedraw = false;
|
mainForm.g_flexcell.AutoRedraw = false;
|
||||||
mainForm.g_flexcell.setTable(t,,t.fields);
|
mainForm.g_flexcell.setTable(t,,t.fields);
|
||||||
@ -107,6 +108,7 @@ g_teMenus.saveFile = function(ctrl){
|
|||||||
g_teMenus.saveAsFile = function(ctrl){
|
g_teMenus.saveAsFile = function(ctrl){
|
||||||
return function(){
|
return function(){
|
||||||
teUtils.saveAsTxtTableData(mainForm.g_flexcell.getVlistData());
|
teUtils.saveAsTxtTableData(mainForm.g_flexcell.getVlistData());
|
||||||
|
mainForm.text += "[ " + teUtils.getCurFilePath() + " ]";
|
||||||
showUnmodifyStyle();
|
showUnmodifyStyle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user