Spostata la creazione e la distruzione del TProgind in postprocess_print()
e preprocess_print(). Cosi' nan fa piu' casino nel Window manager. git-svn-id: svn://10.65.10.50/trunk@1893 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8db86bd37d
commit
0f564539f0
@ -38,6 +38,8 @@ protected:
|
||||
|
||||
virtual void set_page (int, int);
|
||||
virtual print_action postprocess_page (int, int);
|
||||
virtual bool preprocess_print(int, int);
|
||||
virtual print_action postprocess_print(int, int);
|
||||
|
||||
public:
|
||||
BA3300_application() : _p(NULL) {}
|
||||
@ -64,6 +66,22 @@ print_action BA3300_application::postprocess_page(int, int counter)
|
||||
return REPEAT_PAGE;
|
||||
}
|
||||
|
||||
bool BA3300_application::preprocess_print(int, int)
|
||||
{
|
||||
_p = new TProgind(_pag_fin - _pag_ini +1, "Preparazione stampa", FALSE, TRUE, 60);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
print_action BA3300_application::postprocess_print(int, int)
|
||||
{
|
||||
if (_p != NULL)
|
||||
{
|
||||
delete _p;
|
||||
_p = NULL;
|
||||
}
|
||||
return NEXT_PAGE;
|
||||
}
|
||||
|
||||
void BA3300_application::set_page(int , int counter)
|
||||
{
|
||||
reset_print();
|
||||
@ -121,11 +139,6 @@ void BA3300_application::set_page(int , int counter)
|
||||
set_row (31, "@50g%-62s", (const char*) s);
|
||||
set_row (33, "@50gCONSTA DI %ld PAGINE UTILI, BOLLATE E NUMERATE", _num_pag - (_inizia_dopo ? 1 : 0));
|
||||
set_row (35, "@50gE VIENE OGGI VIDIMATO, il .........");
|
||||
if (_p != NULL)
|
||||
{
|
||||
delete _p;
|
||||
_p = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -221,7 +234,6 @@ bool BA3300_application::set_print(int)
|
||||
_descr = decodifica_reg();
|
||||
if (_inizia_dopo) _num_pag++;
|
||||
enable_print_menu();
|
||||
_p = new TProgind(_pag_fin - _pag_ini +1, "Preparazione stampa", FALSE, TRUE, 60);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user