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>
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
void TManutenzione_app::update_dir()
|
void TManutenzione_app::update_dir()
|
||||||
{
|
{
|
||||||
@ -592,14 +595,15 @@ void TManutenzione_app::update_dir()
|
|||||||
d.get(LF_DIR);
|
d.get(LF_DIR);
|
||||||
const int items = (int)d.eod();
|
const int items = (int)d.eod();
|
||||||
|
|
||||||
TString80 s("Aggiornamento direttorio ");
|
TString prompt(128);
|
||||||
if (is_com) s << "comune";
|
prompt = "Aggiornamento direttorio ";
|
||||||
else s << " della ditta " << atol (pref) <<".";
|
if (is_com) prompt << "comune";
|
||||||
|
else prompt << " della ditta " << atol(pref) <<".";
|
||||||
#if XVT_OS == XVT_OS_WIN
|
#if XVT_OS == XVT_OS_WIN
|
||||||
s << " Memoria libera: " << (long)GetFreeSpace(0)/1024 << " Kbytes.";
|
prompt << " Memoria libera: " << (long)GetFreeSpace(0)/1024 << " Kbytes.";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TProgind p(items ? items : 1, s, FALSE, TRUE, 70);
|
TProgind p(items ? items : 1, prompt, FALSE, TRUE, 70);
|
||||||
p.setstatus(1);
|
p.setstatus(1);
|
||||||
|
|
||||||
for (int i = 2; i <= items; i++)
|
for (int i = 2; i <= items; i++)
|
||||||
@ -753,7 +757,7 @@ void TManutenzione_app::update_dir()
|
|||||||
ok = FALSE;
|
ok = FALSE;
|
||||||
if (ok)
|
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;
|
towrite = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -821,7 +825,7 @@ void TManutenzione_app::convert_dir()
|
|||||||
{
|
{
|
||||||
p.addstatus(1);
|
p.addstatus(1);
|
||||||
// prefix().set("");
|
// prefix().set("");
|
||||||
const TTrec & rs = (const TTrec &) _recs[i];
|
TTrec & rs = (TTrec &) _recs[i];
|
||||||
const TDir & ds = (const TDir &) _dirs[i];
|
const TDir & ds = (const TDir &) _dirs[i];
|
||||||
// prefix().set(pref);
|
// prefix().set(pref);
|
||||||
if (ds.len() > 0)
|
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)
|
if (k == K_CTRL + K_INS)
|
||||||
{
|
{
|
||||||
TToken_string & row = f.row(r);
|
TToken_string & row = f.row(r);
|
||||||
row.add("1", f.cid2index(FLD_TIPO));
|
row.add("1", FLD_TIPO - 101);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user