122306bc0e
Files correlati : sv0.exe sv1.exe sv2.exe Ricompilazione Demo : [ ] Commento : Bug 0000138 Implementare la gestione multilingua E' stato anche velocizzato il programma di statistiche personalizzate. Andrebbe testato confrontando i rsultati con la 2.0 git-svn-id: svn://10.65.10.50/trunk@12343 c028cbd2-c16b-5b4b-a496-9718f37d4682
49 lines
1.0 KiB
C++
Executable File
49 lines
1.0 KiB
C++
Executable File
#include <confapp.h>
|
|
#include <execp.h>
|
|
|
|
#include "sv0400a.h"
|
|
|
|
class TParametri_stat : public TConfig_application
|
|
{
|
|
bool _recalc_needed;
|
|
|
|
protected:
|
|
virtual const char* get_mask_name() const { return "sv0400a"; }
|
|
virtual bool postprocess_config_changed (const char*, const char*, const char*, const char*);
|
|
virtual bool user_destroy() ;
|
|
|
|
public:
|
|
TParametri_stat();
|
|
};
|
|
|
|
bool TParametri_stat::postprocess_config_changed (const char*, const char*, const char*, const char*)
|
|
{
|
|
_recalc_needed = TRUE;
|
|
return TRUE;
|
|
}
|
|
|
|
bool TParametri_stat::user_destroy()
|
|
{
|
|
const bool ok = TConfig_application::user_destroy();
|
|
if (ok)
|
|
{
|
|
if (_recalc_needed && yesno_box(TR("Si desidera ricalcolare le statistiche ora?")))
|
|
{
|
|
TExternal_app app("sv2 -0");
|
|
app.run();
|
|
}
|
|
}
|
|
return ok;
|
|
}
|
|
|
|
TParametri_stat::TParametri_stat()
|
|
: TConfig_application(CONFIG_DITTA), _recalc_needed(FALSE)
|
|
{ }
|
|
|
|
int sv0400(int argc, char* argv[])
|
|
{
|
|
TParametri_stat app;
|
|
app.run(argc, argv, TR("Parametri statistiche"));
|
|
return 0;
|
|
}
|