1999-11-26 21:21:34 +00:00
|
|
|
--- fine.C.orig Fri Oct 29 04:02:09 1999
|
|
|
|
+++ fine.C Fri Nov 26 13:12:09 1999
|
|
|
|
@@ -227,7 +227,7 @@
|
1999-08-18 01:01:45 +00:00
|
|
|
|
|
|
|
if (sc == NULL)
|
|
|
|
{ sc = new QBinaryTree<Configuration>(shortcut);
|
|
|
|
- sprintf(s,"%s/.fine/.editor",getenv("HOME"));
|
|
|
|
+ sprintf(s,"%s/editor",FINEDIR);
|
|
|
|
f = fopen(s,"rt");
|
|
|
|
if (f != NULL)
|
|
|
|
{ while (!feof(f))
|
1999-11-26 21:21:34 +00:00
|
|
|
@@ -236,7 +236,7 @@
|
1999-08-18 01:01:45 +00:00
|
|
|
}
|
|
|
|
fclose(f);
|
|
|
|
} else QMessageBox::warning(ed,"Couldn't find main configuration file",
|
|
|
|
- "Couldn't find .editor file in your .fine directory!\nTry to type: make install in the FINE distribution directory.");
|
|
|
|
+ "Couldn't find editor file in your .fine directory!\nTry to type: make install in the FINE distribution directory.");
|
|
|
|
}
|
|
|
|
|
|
|
|
sysmenu = new QMenuBar(this,"Editor System Main Menu");
|
1999-11-26 21:21:34 +00:00
|
|
|
@@ -430,7 +430,7 @@
|
1999-08-18 01:01:45 +00:00
|
|
|
if (ptrsc != NULL)
|
|
|
|
{ sh = ptrsc->Element();
|
|
|
|
s = new char[strlen(getenv("HOME"))+strlen(sh.filename)+200];
|
|
|
|
- sprintf(s,"%s/.fine/%s",getenv("HOME"),sh.filename);
|
|
|
|
+ sprintf(s,"%s/%s",FINEDIR,sh.filename);
|
|
|
|
w->editor()->readConfig(s);
|
|
|
|
delete [] s;
|
|
|
|
}
|
1999-11-26 21:21:34 +00:00
|
|
|
@@ -470,7 +470,7 @@
|
1999-08-18 01:01:45 +00:00
|
|
|
printf("\nTemplate file:%s, Compiler:%s, Previewer:%s",defsc.filename,
|
|
|
|
(defsc.compiler != NULL? defsc.compiler:"(null)"),
|
|
|
|
(defsc.previewer != NULL? defsc.previewer:"(null)"));
|
|
|
|
- sprintf(s,"%s/.fine/%s",getenv("HOME"),defsc.filename);
|
|
|
|
+ sprintf(s,"%s/%s",FINEDIR,defsc.filename);
|
|
|
|
ed->readConfig(s);
|
|
|
|
ed->repaint();
|
|
|
|
fflush(stdout);
|
1999-11-26 21:21:34 +00:00
|
|
|
@@ -517,14 +517,14 @@
|
1999-08-18 01:01:45 +00:00
|
|
|
{ if (ptrsc != NULL) Delete(sc,ptrsc->Element());
|
|
|
|
sc->Insert(*scw);
|
|
|
|
ptrsc = sc->Locate(*scw);
|
|
|
|
- sprintf(fns,"%s/.fine/.editor",getenv("HOME"));
|
|
|
|
+ sprintf(fns,"%s/editor",FINEDIR);
|
|
|
|
f = fopen(fns,"wt");
|
|
|
|
fprintf(f,"# This is file used by FINE editor\n");
|
|
|
|
fprintf(f,"# It contains information about all template files used by FINE\n");
|
|
|
|
saveConfigTree(f,sc->Left());
|
|
|
|
saveConfigTree(f,sc->Right());
|
|
|
|
fclose(f);
|
|
|
|
- sprintf(fns,"%s/.fine/%s",getenv("HOME"),scw->filename);
|
|
|
|
+ sprintf(fns,"%s/%s",FINEDIR,scw->filename);
|
|
|
|
f = fopen(fns,"wt");
|
|
|
|
fprintf(f,"# This is %s template file\n",scw->name);
|
|
|
|
fprintf(f,"\n# screen settings\n");
|