1997-08-05 09:24:21 +00:00
|
|
|
#include <confapp.h>
|
1997-08-18 14:20:21 +00:00
|
|
|
#include <execp.h>
|
1997-08-05 09:24:21 +00:00
|
|
|
|
|
|
|
#include "sv0400a.h"
|
|
|
|
|
1997-08-18 14:20:21 +00:00
|
|
|
class TParametri_stat : public TConfig_application
|
1997-08-05 09:24:21 +00:00
|
|
|
{
|
2003-09-22 14:19:52 +00:00
|
|
|
bool _recalc_needed;
|
2003-05-29 08:05:53 +00:00
|
|
|
|
1997-08-18 14:20:21 +00:00
|
|
|
protected:
|
2003-05-29 08:05:53 +00:00
|
|
|
virtual const char* get_mask_name() const { return "sv0400a"; }
|
1997-08-26 13:40:34 +00:00
|
|
|
virtual bool postprocess_config_changed (const char*, const char*, const char*, const char*);
|
2003-09-22 14:19:52 +00:00
|
|
|
virtual bool user_destroy() ;
|
1997-08-18 14:20:21 +00:00
|
|
|
|
1997-08-05 09:24:21 +00:00
|
|
|
public:
|
1997-08-18 14:20:21 +00:00
|
|
|
TParametri_stat();
|
1997-08-05 09:24:21 +00:00
|
|
|
};
|
|
|
|
|
1997-08-18 14:20:21 +00:00
|
|
|
bool TParametri_stat::postprocess_config_changed (const char*, const char*, const char*, const char*)
|
|
|
|
{
|
2003-09-22 14:19:52 +00:00
|
|
|
_recalc_needed = TRUE;
|
1998-11-04 18:04:26 +00:00
|
|
|
return TRUE;
|
1997-08-18 14:20:21 +00:00
|
|
|
}
|
|
|
|
|
2003-09-22 14:19:52 +00:00
|
|
|
bool TParametri_stat::user_destroy()
|
|
|
|
{
|
|
|
|
const bool ok = TConfig_application::user_destroy();
|
|
|
|
if (ok)
|
|
|
|
{
|
|
|
|
if (_recalc_needed && yesno_box("Si desidera ricalcolare le statistiche ora?"))
|
|
|
|
{
|
|
|
|
TExternal_app app("sv2 -0");
|
|
|
|
app.run();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ok;
|
|
|
|
}
|
|
|
|
|
1997-08-18 14:20:21 +00:00
|
|
|
TParametri_stat::TParametri_stat()
|
2003-09-22 14:19:52 +00:00
|
|
|
: TConfig_application(CONFIG_DITTA), _recalc_needed(FALSE)
|
1997-08-18 14:20:21 +00:00
|
|
|
{ }
|
|
|
|
|
1997-08-26 13:40:34 +00:00
|
|
|
int sv0400(int argc, char* argv[])
|
1997-08-05 09:24:21 +00:00
|
|
|
{
|
1997-08-18 14:20:21 +00:00
|
|
|
TParametri_stat app;
|
1997-08-05 09:24:21 +00:00
|
|
|
app.run(argc, argv, "Parametri statistiche");
|
|
|
|
return 0;
|
1998-11-04 18:04:26 +00:00
|
|
|
}
|