parent
7f58e8db1a
commit
37ff1b871a
|
|
@ -62,6 +62,7 @@ type TEditerForm = class(TVCform) //
|
||||||
FFindhistroypath := basepath+"editer"+sp+"findhistory.tsm";
|
FFindhistroypath := basepath+"editer"+sp+"findhistory.tsm";
|
||||||
FFormatpath := basepath+"editer"+sp+"tslformat.tsm";
|
FFormatpath := basepath+"editer"+sp+"tslformat.tsm";
|
||||||
Fhighlightpath := basepath+"editer"+sp+"highlight.tsm";
|
Fhighlightpath := basepath+"editer"+sp+"highlight.tsm";
|
||||||
|
feditorglobalpath := basepath+"editer"+sp+"feditorglobalpath.tsm";
|
||||||
Fremotepath := basepath+"editer"+sp;
|
Fremotepath := basepath+"editer"+sp;
|
||||||
CreateDirWithFileName(basepath+"editer"+sp+"1.txt");
|
CreateDirWithFileName(basepath+"editer"+sp+"1.txt");
|
||||||
CreateDirWithFileName(basepath+"editer"+sp+"cmpCaches"+sp+"1.txt");
|
CreateDirWithFileName(basepath+"editer"+sp+"cmpCaches"+sp+"1.txt");
|
||||||
|
|
@ -350,6 +351,12 @@ type TEditerForm = class(TVCform) //
|
||||||
FEdter.TslExe := tslexefile;
|
FEdter.TslExe := tslexefile;
|
||||||
FEdter.align := alClient;
|
FEdter.align := alClient;
|
||||||
|
|
||||||
|
if (importfile(ftstream(),"",feditorglobalpath,ginfo)=1) and ifarray(ginfo) then
|
||||||
|
begin
|
||||||
|
global g_editer_font_size := ginfo["font"];
|
||||||
|
FEdter.getpage().font := ginfo["font"];
|
||||||
|
//Fdirview.addrootdirs(dirs);
|
||||||
|
end
|
||||||
if importfile(ftstream(),"",fdirspath,dirs)=1 then
|
if importfile(ftstream(),"",fdirspath,dirs)=1 then
|
||||||
begin
|
begin
|
||||||
Fdirview.addrootdirs(dirs);
|
Fdirview.addrootdirs(dirs);
|
||||||
|
|
@ -599,6 +606,7 @@ type TEditerForm = class(TVCform) //
|
||||||
end
|
end
|
||||||
break;
|
break;
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
d := Fdirview.getrootdirs();
|
d := Fdirview.getrootdirs();
|
||||||
if d and ifarray(d) then
|
if d and ifarray(d) then
|
||||||
|
|
@ -625,6 +633,11 @@ type TEditerForm = class(TVCform) //
|
||||||
begin
|
begin
|
||||||
Exportfile(ftstream(),"",Fhighlightpath,d);
|
Exportfile(ftstream(),"",Fhighlightpath,d);
|
||||||
end
|
end
|
||||||
|
global g_editer_font_size;
|
||||||
|
if ifarray(g_editer_font_size) and g_editer_font_size then
|
||||||
|
begin
|
||||||
|
Exportfile(ftstream(),"",feditorglobalpath,array("font":g_editer_font_size));
|
||||||
|
end
|
||||||
global g_dotsavehistory;
|
global g_dotsavehistory;
|
||||||
if g_dotsavehistory then return ;
|
if g_dotsavehistory then return ;
|
||||||
d := FEdter.GetAllPagesInfo();
|
d := FEdter.GetAllPagesInfo();
|
||||||
|
|
@ -1547,6 +1560,7 @@ end
|
||||||
Fremotepath;
|
Fremotepath;
|
||||||
fdirspath;
|
fdirspath;
|
||||||
Fhighlightpath;
|
Fhighlightpath;
|
||||||
|
feditorglobalpath;
|
||||||
FEdter;
|
FEdter;
|
||||||
FSearchDir;
|
FSearchDir;
|
||||||
FCache;
|
FCache;
|
||||||
|
|
|
||||||
|
|
@ -1089,6 +1089,12 @@ type TFTSLScriptMemo = class(TFTSLScriptcustomMemo)
|
||||||
function create(AOwner);
|
function create(AOwner);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
global g_editer_font_size;
|
||||||
|
if g_editer_font_size and ifarray(g_editer_font_size) then
|
||||||
|
begin
|
||||||
|
ft := array("width":g_editer_font_size["width"]+1,"height":g_editer_font_size["height"]+2);
|
||||||
|
font := ft;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function SetFocus();override;
|
function SetFocus();override;
|
||||||
begin
|
begin
|
||||||
|
|
@ -1762,6 +1768,7 @@ type TEditer=class(TCustomcontrol) //
|
||||||
FInfoShowWnd := new TEditerAuxiliary(self);
|
FInfoShowWnd := new TEditerAuxiliary(self);
|
||||||
FPageEditer := new TPageEditer(self);
|
FPageEditer := new TPageEditer(self);
|
||||||
FPageEditer.onscrollfont := function(o,ft)begin
|
FPageEditer.onscrollfont := function(o,ft)begin
|
||||||
|
global g_editer_font_size := ft;
|
||||||
self.Notification(self,array("font",ft));
|
self.Notification(self,array("font",ft));
|
||||||
FinCodemap.FTree.font := ft;
|
FinCodemap.FTree.font := ft;
|
||||||
FinCodemap.FTree.ItemHeight := ft["height"]+6;
|
FinCodemap.FTree.ItemHeight := ft["height"]+6;
|
||||||
|
|
@ -3758,6 +3765,10 @@ type TEditer=class(TCustomcontrol) //
|
||||||
property TabChar read FTabChar;
|
property TabChar read FTabChar;
|
||||||
property Tslexe read FTslExe write FTslExe;
|
property Tslexe read FTslExe write FTslExe;
|
||||||
property ReadOnlyDirs read FReadDirs write FReadDirs;
|
property ReadOnlyDirs read FReadDirs write FReadDirs;
|
||||||
|
function getpage();
|
||||||
|
begin
|
||||||
|
return FPageEditer;
|
||||||
|
end
|
||||||
protected
|
protected
|
||||||
class function Sinit();override;
|
class function Sinit();override;
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue