Aggiunta la possibilita' di lanciare in automatico la conversione

git-svn-id: svn://10.65.10.50/trunk@219 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1994-09-12 09:31:16 +00:00
parent 1834945432
commit 5053839767
2 changed files with 24 additions and 15 deletions

View File

@ -11,16 +11,17 @@ int main(int argc,char** argv)
{ {
int rt = 0 ; int rt = 0 ;
if (argc == 1) rt = ba1100(argc,argv); if (argc == 1)
rt = ba1100(argc,argv);
else else
if (argc == 2) if (argc >= 2)
{ {
switch (argv[1][1]) switch (argv[1][1])
{ {
case '0': rt = ba1100(argc,argv); break; case '0': rt = ba1100(argc,argv); break;
case '1': rt = ba1200(argc,argv); break; case '1': rt = ba1200(argc,argv); break;
default: fatal_box(usage); break; default : fatal_box(usage); break;
} }
} }
else fatal_box(usage); else fatal_box(usage);
return rt; return rt;

View File

@ -101,14 +101,23 @@ bool BA1100_application::create() // initvar e arrmask
{ {
_firm = get_firm(); _firm = get_firm();
_mask = new TMask ("ba1100a");
set_firm(); if (argc() > 2)
set_printer(new TPrinter()); {
_browse = new TDir_sheet ("Manutenzione file di sistema") ; update();
_browse->add_button(DLG_INSFILE, "Inserisce", K_F4); return FALSE;
_browse->add_button(DLG_CONVERT, "Converte", K_F7); }
_browse->add_button(DLG_ADDFILE, "Aggiunge", K_F8); else
dispatch_e_menu(BAR_ITEM(1)); {
_mask = new TMask ("ba1100a");
set_firm();
set_printer(new TPrinter());
_browse = new TDir_sheet ("Manutenzione file di sistema") ;
_browse->add_button(DLG_INSFILE, "Inserisce", K_F4);
_browse->add_button(DLG_CONVERT, "Converte", K_F7);
_browse->add_button(DLG_ADDFILE, "Aggiunge", K_F8);
dispatch_e_menu(BAR_ITEM(1));
}
return TRUE ; return TRUE ;
} }
@ -472,7 +481,6 @@ bool BA1100_application::menu(MENU_TAG m)
int ba1100(int argc, char** argv) int ba1100(int argc, char** argv)
{ {
BA1100_application a; BA1100_application a;
a.run(argc, argv, "Gestione files"); a.run(argc, argv, "Gestione files");
return 0; return 0;
} }