Patch level : 12.0 no-patch

Files correlati     : 
Commento            : Aggiunto progress monitor ai TCursor e TSorted_cursor, da approvare.

git-svn-id: svn://10.65.10.50/branches/R_10_00@23318 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
mtollari 2016-09-23 15:41:17 +00:00
parent 0b522db6e5
commit c96a1aefd1

View File

@ -1118,8 +1118,14 @@ TRecnotype TCursor::buildcursor(TRecnotype rp)
const bool filtered = has_filter();
const bool simple_filter = filtered && has_simple_filter();
// Barra di +
TString msg("Elaborazione ");
msg << relation()->lfile().name();
TProgress_monitor pi(_if->lfile().items(), msg);
while (!DB_index_eof(fhnd))
{
{
pi.add_status();
const char *s0 = DB_index_getkey(fhnd);
if (l && (strncmp(to(), s0, l) < 0))
break;
@ -1938,6 +1944,7 @@ TRecnotype TSorted_cursor::buildcursor(TRecnotype rp)
TSort sort(sizeof(El_To_Sort));
_order_expr.restart();
while ((s=_order_expr.get()).not_empty())
{
check_expr(s); // Toglie l'eventuale operatore UPPER(), in modo che l'ultimo carattere
@ -1980,8 +1987,14 @@ TRecnotype TSorted_cursor::buildcursor(TRecnotype rp)
pos = DB_index_recno(handle);
TCursor::pos()=-1;
// Barra di progressione
TString msg("Elaborazione ");
msg << relation()->lfile().name();
TProgress_monitor pi(relation()->lfile().items(), msg);
while (!DB_index_eof(handle))
{
{
pi.add_status();
const char* s0 = DB_index_getkey(handle);
if (l && (strncmp(to(), s0, l) < 0))
break;