Correzioni al commit di alex
git-svn-id: svn://10.65.10.50/trunk@3367 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
86cb5ce06d
commit
bf10a72502
@ -575,7 +575,10 @@ void TManutenzione_app::delete_riga ()
|
||||
|
||||
}
|
||||
|
||||
#if XVT_OS == XVT_OS_WIN
|
||||
// Serve per GetFreeSpace
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
void TManutenzione_app::update_dir()
|
||||
{
|
||||
@ -592,14 +595,15 @@ void TManutenzione_app::update_dir()
|
||||
d.get(LF_DIR);
|
||||
const int items = (int)d.eod();
|
||||
|
||||
TString80 s("Aggiornamento direttorio ");
|
||||
if (is_com) s << "comune";
|
||||
else s << " della ditta " << atol (pref) <<".";
|
||||
TString prompt(128);
|
||||
prompt = "Aggiornamento direttorio ";
|
||||
if (is_com) prompt << "comune";
|
||||
else prompt << " della ditta " << atol(pref) <<".";
|
||||
#if XVT_OS == XVT_OS_WIN
|
||||
s << " Memoria libera: " << (long)GetFreeSpace(0)/1024 << " Kbytes.";
|
||||
prompt << " Memoria libera: " << (long)GetFreeSpace(0)/1024 << " Kbytes.";
|
||||
#endif
|
||||
|
||||
TProgind p(items ? items : 1, s, FALSE, TRUE, 70);
|
||||
TProgind p(items ? items : 1, prompt, FALSE, TRUE, 70);
|
||||
p.setstatus(1);
|
||||
|
||||
for (int i = 2; i <= items; i++)
|
||||
@ -753,7 +757,7 @@ void TManutenzione_app::update_dir()
|
||||
ok = FALSE;
|
||||
if (ok)
|
||||
{
|
||||
d.set(s, d.eox(), 0L, ds.des(), d.expr());
|
||||
d.set(ds.name(), d.eox(), 0L, ds.des(), d.expr());
|
||||
towrite = TRUE;
|
||||
}
|
||||
}
|
||||
@ -821,7 +825,7 @@ void TManutenzione_app::convert_dir()
|
||||
{
|
||||
p.addstatus(1);
|
||||
// prefix().set("");
|
||||
const TTrec & rs = (const TTrec &) _recs[i];
|
||||
TTrec & rs = (TTrec &) _recs[i];
|
||||
const TDir & ds = (const TDir &) _dirs[i];
|
||||
// prefix().set(pref);
|
||||
if (ds.len() > 0)
|
||||
|
@ -171,7 +171,7 @@ bool TRec_sheet::fld_notify(TSheet_field& f, int r, KEY k)
|
||||
if (k == K_CTRL + K_INS)
|
||||
{
|
||||
TToken_string & row = f.row(r);
|
||||
row.add("1", f.cid2index(FLD_TIPO));
|
||||
row.add("1", FLD_TIPO - 101);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user