Aggiunto metodo per eliminare gli starting check
git-svn-id: svn://10.65.10.50/trunk@1213 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7d6e56859f
commit
3ed9e86ea5
@ -288,8 +288,9 @@ void TMask::add_buttons()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TMask::TMask(const char* maskname, int num, int max)
|
TMask::TMask(const char* maskname, int num, int max) : _should_check(TRUE)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (maskname && *maskname)
|
if (maskname && *maskname)
|
||||||
read_mask(maskname, num, max);
|
read_mask(maskname, num, max);
|
||||||
}
|
}
|
||||||
@ -399,13 +400,16 @@ short TMask::dirty() const
|
|||||||
|
|
||||||
void TMask::load_checks() const
|
void TMask::load_checks() const
|
||||||
{
|
{
|
||||||
const int max = fields();
|
if (_should_check)
|
||||||
for (int i = 0; i < max; i++)
|
|
||||||
{
|
{
|
||||||
TMask_field& f = fld(i);
|
const int max = fields();
|
||||||
if (f.has_check())
|
for (int i = 0; i < max; i++)
|
||||||
f.check(STARTING_CHECK);
|
{
|
||||||
}
|
TMask_field& f = fld(i);
|
||||||
|
if (f.has_check())
|
||||||
|
f.check(STARTING_CHECK);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dis/abilita una pagina e tutte le successive
|
// Dis/abilita una pagina e tutte le successive
|
||||||
@ -441,6 +445,7 @@ void TMask::start_run()
|
|||||||
const long start = clock();
|
const long start = clock();
|
||||||
|
|
||||||
load_checks();
|
load_checks();
|
||||||
|
_should_check = TRUE;
|
||||||
|
|
||||||
const int max = fields();
|
const int max = fields();
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ class TMask : public TWindow
|
|||||||
|
|
||||||
real _exchange; // Current value exhange
|
real _exchange; // Current value exhange
|
||||||
bool _sheetmask; // Mask owned by a sheet
|
bool _sheetmask; // Mask owned by a sheet
|
||||||
|
bool _should_check; // Mask should load checks when starting
|
||||||
|
|
||||||
long _total_time, _build_time, _init_time;
|
long _total_time, _build_time, _init_time;
|
||||||
|
|
||||||
@ -147,7 +148,8 @@ public:
|
|||||||
void set_focus();
|
void set_focus();
|
||||||
void move_focus_field(int num);
|
void move_focus_field(int num);
|
||||||
void set_focus_win(WINDOW win, bool force);
|
void set_focus_win(WINDOW win, bool force);
|
||||||
int focus_field() const { return _focus;}
|
int focus_field() const { return _focus;}
|
||||||
|
void disable_starting_check() { _should_check = FALSE;}
|
||||||
|
|
||||||
virtual bool on_key(KEY key);
|
virtual bool on_key(KEY key);
|
||||||
void on_firm_change();
|
void on_firm_change();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user