ba1100.cpp Salvata la foresta pluviale durante la stampa dei tracciati

ba1101.cpp   Cambiati i nomi dei file di esportazione tracciati
ba1100d.uml  Aumentato il numero di righe del primo sheet a spese del secondo


git-svn-id: svn://10.65.10.50/trunk@4602 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1997-06-12 09:07:13 +00:00
parent f403648d42
commit ba281b7569
3 changed files with 27 additions and 12 deletions

View File

@ -147,11 +147,15 @@ void TManutenzione_app::do_print(TPrinter & p, TRec_sheet & r)
row.put("Nome", 7);
row.put("Tipo", 18);
row.put("Lun.", 38);
row.put(" Dec.", 43);
row.put("Dec.", 44);
row.put("Pos.", 48);
row.put("Descrizione", 53);
p.setheaderline(4, row);
p.setbackground("l[1,6,78,6]");
TString riga(78); riga.fill('-');
row.put(riga, 1);
p.setheaderline(5, row);
for (int i = 0; i < rec.fields(); i ++)
{
row.reset();
@ -186,12 +190,24 @@ void TManutenzione_app::do_print(TPrinter & p, TRec_sheet & r)
wd = d.get();
}
}
}
p.formfeed();
}
row.reset();
p.print(row);
row.put("Espressione chiave", 7);
row.put("Duplicabile", 68);
p.setheaderline(4, row);
if (p.rows_left() < 6)
p.formfeed();
else
{
p.print(row);
row.put(riga, 1);
p.print(row);
}
for (i = 0; i < rec.keys(); i ++)
{
row.reset();

View File

@ -49,7 +49,7 @@ BEGIN
FLAGS "D"
END
SPREADSHEET F_FIELDS 0 8
SPREADSHEET F_FIELDS 0 11
BEGIN
PROMPT 0 4 "Fields"
ITEM "Nome@10"
@ -61,7 +61,7 @@ END
SPREADSHEET F_KEYS
BEGIN
PROMPT 0 13 "Keys"
PROMPT 0 16 "Keys"
ITEM "Espressione@65"
ITEM "Chiavi duplicate"
END

View File

@ -313,14 +313,13 @@ void TRec_sheet::edit()
case K_F6:
{
TMask m("ba1100f");
TFilename nout(_dir->name());
nout.strip("$%");
nout.ext("trr");
m.set(F_NOMEF, nout);
TFilename nf;
nf << 'F' << _dir->num();
nf.ext("trr");
m.set(F_NOMEF, nf);
if (m.run() == K_ENTER)
{
TFilename nf(m.get(F_NOMEF));
nf = m.get(F_NOMEF);
if (nf.not_empty())
{
save_desc();