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
|
|
|
protected:
|
1997-08-26 13:40:34 +00:00
|
|
|
virtual bool postprocess_config_changed (const char*, const char*, const char*, const char*);
|
1997-10-31 11:18:18 +00:00
|
|
|
virtual bool user_create();
|
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*)
|
|
|
|
{
|
1998-11-04 18:04:26 +00:00
|
|
|
bool recalc = yesno_box("Si desidera ricalcolare le statistiche ora?");
|
|
|
|
if (recalc)
|
|
|
|
{
|
|
|
|
TExternal_app app("sv2 -0");
|
|
|
|
app.run();
|
|
|
|
}
|
|
|
|
return TRUE;
|
1997-08-18 14:20:21 +00:00
|
|
|
}
|
|
|
|
|
1997-10-31 11:18:18 +00:00
|
|
|
bool TParametri_stat::user_create()
|
|
|
|
{
|
|
|
|
TConfig cd(CONFIG_DITTA,"sv");
|
|
|
|
if (cd.get("EdMask").empty())
|
|
|
|
cd.set("EdMask","sv0400a","sv");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
1997-08-18 14:20:21 +00:00
|
|
|
bool TParametri_stat::user_destroy()
|
|
|
|
{
|
1997-10-31 16:52:32 +00:00
|
|
|
return TConfig_application::user_destroy();
|
1997-08-18 14:20:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TParametri_stat::TParametri_stat()
|
1998-11-04 18:04:26 +00:00
|
|
|
: TConfig_application(CONFIG_DITTA)
|
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
|
|
|
}
|