d0ab8cc457
Files correlati : Ricompilazione Demo : [ ] Commento : riportata la versione 98.01.05 patch 34 git-svn-id: svn://10.65.10.50/trunk@7409 c028cbd2-c16b-5b4b-a496-9718f37d4682
52 lines
1.1 KiB
C++
Executable File
52 lines
1.1 KiB
C++
Executable File
#include <confapp.h>
|
|
#include <execp.h>
|
|
|
|
#include "sv0400a.h"
|
|
|
|
class TParametri_stat : public TConfig_application
|
|
{
|
|
protected:
|
|
virtual bool postprocess_config_changed (const char*, const char*, const char*, const char*);
|
|
virtual bool user_create();
|
|
virtual bool user_destroy();
|
|
|
|
public:
|
|
TParametri_stat();
|
|
virtual ~TParametri_stat() { }
|
|
};
|
|
|
|
bool TParametri_stat::postprocess_config_changed (const char*, const char*, const char*, const char*)
|
|
{
|
|
bool recalc = yesno_box("Si desidera ricalcolare le statistiche ora?");
|
|
if (recalc)
|
|
{
|
|
TExternal_app app("sv2 -0");
|
|
app.run();
|
|
}
|
|
return TRUE;
|
|
}
|
|
|
|
bool TParametri_stat::user_create()
|
|
{
|
|
TConfig cd(CONFIG_DITTA,"sv");
|
|
if (cd.get("EdMask").empty())
|
|
cd.set("EdMask","sv0400a","sv");
|
|
return TRUE;
|
|
}
|
|
|
|
bool TParametri_stat::user_destroy()
|
|
{
|
|
return TConfig_application::user_destroy();
|
|
}
|
|
|
|
TParametri_stat::TParametri_stat()
|
|
: TConfig_application(CONFIG_DITTA)
|
|
{ }
|
|
|
|
int sv0400(int argc, char* argv[])
|
|
{
|
|
TParametri_stat app;
|
|
app.run(argc, argv, "Parametri statistiche");
|
|
return 0;
|
|
}
|