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
|
|
|
{
|
1997-08-18 14:20:21 +00:00
|
|
|
bool _ask_update;
|
|
|
|
|
|
|
|
protected:
|
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
|
|
|
virtual bool user_destroy();
|
|
|
|
|
1997-08-05 09:24:21 +00:00
|
|
|
public:
|
1997-08-18 14:20:21 +00:00
|
|
|
TParametri_stat();
|
|
|
|
virtual ~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*)
|
|
|
|
{
|
|
|
|
return _ask_update = TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool TParametri_stat::user_destroy()
|
|
|
|
{
|
|
|
|
if (_ask_update)
|
|
|
|
{
|
|
|
|
bool recalc = yesno_box("Si desidera ricalcolare le statistiche ora?");
|
|
|
|
if (recalc)
|
|
|
|
{
|
|
|
|
TExternal_app app("sv2 -0");
|
|
|
|
app.run();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
TParametri_stat::TParametri_stat()
|
|
|
|
: TConfig_application(CONFIG_DITTA), _ask_update(FALSE)
|
|
|
|
{ }
|
|
|
|
|
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;
|
|
|
|
}
|