Skip to content

Commit

Permalink
* Остатки старых путей
Browse files Browse the repository at this point in the history
  • Loading branch information
zamtmn committed Jan 10, 2025
1 parent 0209f68 commit d47ca47
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cad_source/zcad.pas
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@

//инициализация drawings
FontManager.EnumerateFontFiles;
uzcdrawings.startup('$(RoCfgs)/rtl/dwg/DrawingVars.pas','');
uzcdrawings.startup('$(DistribPath)/rtl/dwg/DrawingVars.pas','');
uzcdevicebase.startup;
{$IF lcl_fullversion>2001200}
{$ELSE}
Expand Down
2 changes: 1 addition & 1 deletion cad_source/zcad/commands/uzccommand_copyclip.pas
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ procedure ReCreateClipboardDWG;
ClipboardDWG.done;
Freemem(ClipboardDWG);
end;
ClipboardDWG:=drawings.CreateDWG('$(RoCfgs)/rtl/dwg/DrawingVars.pas','');
ClipboardDWG:=drawings.CreateDWG('$(DistribPath)/rtl/dwg/DrawingVars.pas','');
//ClipboardDWG.DimStyleTable.AddItem('Standart',pds);
end;

Expand Down
2 changes: 1 addition & 1 deletion cad_source/zcad/commands/uzccommand_dwgnew.pas
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function DWGNew_com(const Context:TZCADCommandContext;operands:TCommandOperands)
FileName:ansistring;
dwgname:ansistring;
begin
PDrawing:=drawings.CreateDWG('$(RoCfgs)/rtl/dwg/DrawingDeviceBase.pas','$(RoCfgs)/rtl/dwg/DrawingVars.pas');
PDrawing:=drawings.CreateDWG('$(DistribPath)/rtl/dwg/DrawingDeviceBase.pas','$(DistribPath)/rtl/dwg/DrawingVars.pas');
drawings.PushBackData(PDrawing);
FileName:=operands;

Expand Down
4 changes: 2 additions & 2 deletions cad_source/zcad/electrotech/uzccomops.pas
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ function GetNumUnit(uname:String):PTUnit;
UManager.init;

defaultunit.init(DefNumMetric);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(RoCfgs)/rtl/objcalc/opsmarkdef.pas'),(@defaultunit));
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(DistribPath)/rtl/objcalc/opsmarkdef.pas'),(@defaultunit));
pcabledesk:=cman.beginiterate(ir);
if pcabledesk<>nil then
repeat
Expand Down Expand Up @@ -804,7 +804,7 @@ function GetNumUnit(uname:String):PTUnit;
//cpGC_HDShortName.ChangedData.StoreUndoData(pvd4^.data.Addr.GetInstance);
end;

units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(RoCfgs)/rtl/objcalc/opsmark.pas'),(currentunit));
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(DistribPath)/rtl/objcalc/opsmark.pas'),(currentunit));

//if pvd1<>nil then begin
// cpGC_NumberInGroup.ChangedData.StoreDoData(pvd1^.data.Addr.GetInstance);;
Expand Down
4 changes: 2 additions & 2 deletions cad_source/zcad/gui/forms/uzcfcommandline.pas
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface
varman,varmandef,
uzegeometry,uzctnrvectorstrings,uzcinterface,uzctreenode,uzclog,strmy,
uzccommandlineutil,uztoolbarsmanager,uzmenusmanager,uzccommandsabstract,gzctnrVectorTypes,
uzcctrlcommandlineprompt,uzeparsercmdprompt,uzbtypes;
uzcctrlcommandlineprompt,uzeparsercmdprompt,uzbtypes,uzcFileStructure;

const
cheight=48;
Expand Down Expand Up @@ -300,7 +300,7 @@ procedure TCLine.FormCreate(Sender: TObject);
//---------------BevelOuter:=bvnone;

aliases.init(100);
aliases.loadfromfile(expandpath('$(RoCfgs)/menu/default.cla'));
aliases.loadfromfile(FindFileInCfgsPaths(CFSmenuDir,CFSdefaultclaFile));

//DMenu:=TDMenuWnd.Create(self);

Expand Down
4 changes: 2 additions & 2 deletions cad_source/zcad/gui/forms/uzcfprojecttree.pas
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ initialization
ProjectTreeForm:=nil;
BlockCategory.init(100);
EqCategory.init(100);
BlockCategory.loadfromfile(expandpath('$(RoCfgs)/rtl/BlockCategory.cat'));
EqCategory.loadfromfile(expandpath('$(RoCfgs)/rtl/EqCategory.cat'));
BlockCategory.loadfromfile(expandpath('$(DistribPath)/rtl/BlockCategory.cat'));
EqCategory.loadfromfile(expandpath('$(DistribPath)/rtl/EqCategory.cat'));
CreateZCADCommand(@ProjectTree_com,'ProjectTree',CADWG,0);
end;
finalization
Expand Down
10 changes: 5 additions & 5 deletions cad_source/zcad/register/uzcregother.pas
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ implementation
initialization;
units.loadunit(GetSupportPaths,InterfaceTranslate,FindFileInCfgsPaths(CFSconfigsDir,CFSsysvarpasFile),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,FindFileInCfgsPaths(CFSconfigsDir,CFSsavedvarpasFile),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(RoCfgs)/rtl/devicebase.pas'),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(DistribPath)/rtl/devicebase.pas'),nil);

SysVarUnit:=units.findunit(GetSupportPaths,InterfaceTranslate,'sysvar');
SavedUnit:=units.findunit(GetSupportPaths,InterfaceTranslate,'savedvar');
Expand Down Expand Up @@ -203,10 +203,10 @@ initialization;
end;


units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(RoCfgs)/rtl/cables.pas'),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(RoCfgs)/rtl/devices.pas'),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(RoCfgs)/rtl/connectors.pas'),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(RoCfgs)/rtl/styles/styles.pas'),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(DistribPath)/rtl/cables.pas'),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(DistribPath)/rtl/devices.pas'),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(DistribPath)/rtl/connectors.pas'),nil);
units.loadunit(GetSupportPaths,InterfaceTranslate,expandpath('$(DistribPath)/rtl/styles/styles.pas'),nil);

SysVar.debug.memdeb.GetMemCount:=nil;
SysVar.debug.memdeb.FreeMemCount:=nil;
Expand Down
3 changes: 3 additions & 0 deletions cad_source/zcad/uzcfilestructure.pas
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ interface
CFSimagesDir='images';
CFSnavigatorimaFile='navigator.ima';

CFSmenuDir='menu';
CFSdefaultclaFile='default.cla';

CFSexamplesDir='examples';
CFSerrorsDir='errors';
implementation
Expand Down
1 change: 1 addition & 0 deletions cad_source/zcad/uzcsysinfo.pas
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ function DistribFilesExistChec(const ACheckedPath:string):boolean;
programlog.LogOutFormatStr('$(BinaryPath)="%s"',[ExpandPath('$(BinaryPath)')],LM_Necessarily);
programlog.LogOutFormatStr('$(DistribPath)="%s"',[ExpandPath('$(DistribPath)')],LM_Necessarily);
programlog.LogOutFormatStr('$(RoCfgs)="%s"',[ExpandPath('$(RoCfgs)')],LM_Necessarily);
programlog.LogOutFormatStr('$(WrCfgs)="%s"',[ExpandPath('$(WrCfgs)')],LM_Necessarily);
programlog.LogOutFormatStr('$(UserDir)="%s"',[ExpandPath('$(UserDir)')],LM_Necessarily);
programlog.LogOutFormatStr('$(GlobalConfigDir)="%s"',[ExpandPath('$(GlobalConfigDir)')],LM_Necessarily);
programlog.LogOutFormatStr('$(LocalConfigDir)="%s"',[ExpandPath('$(LocalConfigDir)')],LM_Necessarily);
Expand Down

0 comments on commit d47ca47

Please sign in to comment.