Uso della fantasitca TSkeleton_app!
git-svn-id: svn://10.65.10.50/trunk@5445 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0a9bb6fcfd
commit
4d9444eccd
@ -1,4 +1,4 @@
|
||||
#include <relapp.h>
|
||||
#include <applicat.h>
|
||||
#include <utility.h>
|
||||
#include <tabutil.h>
|
||||
#include <msksheet.h>
|
||||
@ -8,6 +8,7 @@
|
||||
#include <defmask.h>
|
||||
#include "mg1200.h"
|
||||
#include "mglib.h"
|
||||
#include "..\cg\cglib01.h"
|
||||
|
||||
|
||||
class TMask_buildmov: public TMask {
|
||||
@ -50,15 +51,18 @@ bool TMask_buildmov::handle_annoes(TMask_field &fld, KEY k)
|
||||
|
||||
|
||||
|
||||
class TApp_rebuildbalances: public TApplication {
|
||||
class TApp_rebuildbalances: public TSkeleton_application {
|
||||
TArray * used_files;
|
||||
TRelation * _rel; // relazione
|
||||
TCursor * _cur; // cursore
|
||||
TString16 _annoes;
|
||||
bool _reset_giac ;
|
||||
|
||||
protected:
|
||||
virtual bool create();
|
||||
virtual bool destroy();
|
||||
virtual void main_loop();
|
||||
|
||||
public:
|
||||
TApp_rebuildbalances() {};
|
||||
virtual ~TApp_rebuildbalances() {};
|
||||
@ -67,6 +71,8 @@ public:
|
||||
|
||||
//inline TApp_rebuildbalances& app() { return (TApp_rebuildbalances&) main_app(); }
|
||||
|
||||
|
||||
|
||||
bool TApp_rebuildbalances::create()
|
||||
{
|
||||
used_files= new TArray;
|
||||
@ -75,7 +81,19 @@ bool TApp_rebuildbalances::create()
|
||||
used_files->add(new TLocalisamfile(LF_MAG));
|
||||
used_files->add(new TLocalisamfile(LF_MOVMAG));
|
||||
used_files->add(new TLocalisamfile(LF_RMOVMAG));
|
||||
TApplication::create();
|
||||
TSkeleton_application::create();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool TApp_rebuildbalances::destroy()
|
||||
{
|
||||
delete used_files;
|
||||
TSkeleton_application::destroy();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void TApp_rebuildbalances::main_loop()
|
||||
{
|
||||
/*if (argc()>2)
|
||||
_annoes=argv(2);
|
||||
else
|
||||
@ -89,14 +107,6 @@ bool TApp_rebuildbalances::create()
|
||||
if (!rebuild_balances(m.get(F_ANNOES), TRUE))
|
||||
error_box("Ricostruzione saldi incompleta o errata. Ripetere");
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool TApp_rebuildbalances::destroy()
|
||||
{
|
||||
delete used_files;
|
||||
TApplication::destroy();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int mg1200(int argc, char* argv[])
|
||||
|
Loading…
x
Reference in New Issue
Block a user