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-05-29 08:05:53 +00:00
|
|
|
bool _recalculated;
|
|
|
|
|
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*);
|
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-05-29 08:05:53 +00:00
|
|
|
bool recalc = !_recalculated && yesno_box("Si desidera ricalcolare le statistiche ora?");
|
1998-11-04 18:04:26 +00:00
|
|
|
if (recalc)
|
|
|
|
{
|
|
|
|
TExternal_app app("sv2 -0");
|
2003-05-29 08:05:53 +00:00
|
|
|
_recalculated = app.run() == 0;
|
1998-11-04 18:04:26 +00:00
|
|
|
}
|
|
|
|
return TRUE;
|
1997-08-18 14:20:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TParametri_stat::TParametri_stat()
|
2003-05-29 08:05:53 +00:00
|
|
|
: TConfig_application(CONFIG_DITTA), _recalculated(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
|
|
|
}
|