Programmi demo
Inserita maschera di avvertimento Disabilitato il cambio ditta git-svn-id: svn://10.65.10.50/trunk@5686 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
909769349e
commit
202b3aea6c
25
ba/ba0.cpp
25
ba/ba0.cpp
@ -590,7 +590,11 @@ bool TMenuitem::perform_program() const
|
||||
}
|
||||
|
||||
if (_firm && main_app().get_firm() == 0)
|
||||
#ifdef _DEMO_
|
||||
ok = main_app().set_firm(1);
|
||||
#else
|
||||
ok = main_app().set_firm();
|
||||
#endif
|
||||
|
||||
if (ok)
|
||||
{
|
||||
@ -792,8 +796,12 @@ bool TMenu::jumpto(TSubmenu* next)
|
||||
{
|
||||
if (next->query_firm())
|
||||
{
|
||||
#ifdef _DEMO_
|
||||
main_app().set_firm(1);
|
||||
#else
|
||||
if (!main_app().set_firm())
|
||||
next = NULL;
|
||||
#endif
|
||||
}
|
||||
if (next)
|
||||
{
|
||||
@ -946,7 +954,7 @@ protected:
|
||||
bool choose_study();
|
||||
|
||||
public:
|
||||
void reload_images() { _menu.reload_images(); }
|
||||
void reload_images() { _menu.reload_images(); }
|
||||
|
||||
TMenu_application(const char* name) : _name(name), _mask(NULL) { }
|
||||
virtual ~TMenu_application() { }
|
||||
@ -1341,6 +1349,21 @@ bool TMenu_application::create()
|
||||
{
|
||||
TApplication::create();
|
||||
|
||||
#ifdef _DEMO_
|
||||
{
|
||||
TMask w("Attenzione", 1, 80, 14);
|
||||
|
||||
w.add_static(DLG_NULL, 0 ,"@bAttenzione" , 35 , 1);
|
||||
w.add_static(DLG_NULL, 0 ,"@bQuesto programma e' in versione dimostrativa." , 1 , 3);
|
||||
w.add_static(DLG_NULL, 0 ,"@bNon si possono memorizzare date posteriori al 1992" , 1 , 5);
|
||||
w.add_static(DLG_NULL, 0 ,"@bcon mese successivo a Marzo." , 1 , 7);
|
||||
w.add_static(DLG_NULL, 0 ,"@bIl programma funziona per due ore ogni giorno." , 1 , 9);
|
||||
w.add_static(DLG_NULL, 0 ,"@bIl numero di registrazioni e' stato limitato a circa 1000." , 1 , 11);
|
||||
w.add_button(DLG_OK, 0, "", -11, -1, 10, 2);
|
||||
w.run();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!check_user())
|
||||
return FALSE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user