Patch level : 2.0 nopatch
Files correlati : ba0.exe Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@11517 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
13503adea6
commit
3fc298d5e6
@ -60,6 +60,7 @@ protected: // TApplication
|
||||
virtual bool destroy();
|
||||
virtual bool menu(MENU_TAG m);
|
||||
virtual long handler(WINDOW win, EVENT* ep);
|
||||
virtual void on_firm_change();
|
||||
virtual bool test_assistance_year() const;
|
||||
|
||||
protected:
|
||||
@ -1174,7 +1175,7 @@ bool TMenu_application::choose_study()
|
||||
ok = check_user();
|
||||
if (ok)
|
||||
{
|
||||
set_firm();
|
||||
_menu.set_firm(0);
|
||||
_mask->stop_run(K_F9); // Ricarica maschera
|
||||
}
|
||||
else
|
||||
@ -1608,6 +1609,12 @@ int TMenu_application::do_explore()
|
||||
return key == K_QUIT ? -2 : 0;
|
||||
}
|
||||
|
||||
void TMenu_application::on_firm_change()
|
||||
{
|
||||
TConfig cfgs(CONFIG_STUDIO, "Main"); // Forza creazione STUDIO.INI copiandolo eventulamente da PRASSIS.INI
|
||||
TConfig cfgd(CONFIG_DITTA, "ba"); // Forza creazione DITTA.INI copiandolo eventulamente da PRASSID.INI
|
||||
}
|
||||
|
||||
|
||||
bool TMenu_application::menu(MENU_TAG mt)
|
||||
{
|
||||
|
@ -247,7 +247,7 @@ bool TMenuitem::perform_program() const
|
||||
#ifdef _DEMO_
|
||||
ok = menu().set_firm(1);
|
||||
#else
|
||||
ok = menu().set_firm();
|
||||
ok = menu().set_firm(0);
|
||||
#endif
|
||||
|
||||
if (ok)
|
||||
@ -515,7 +515,7 @@ bool TMenu::jumpto(TSubmenu* next)
|
||||
if (!set_firm(1))
|
||||
next = NULL;
|
||||
#else
|
||||
if (!set_firm())
|
||||
if (!set_firm(0))
|
||||
next = NULL;
|
||||
#endif
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ public:
|
||||
|
||||
TSubmenu& current() const { return *_current; }
|
||||
TSubmenu* find(const char* name) const { return (TSubmenu*)objptr(name); }
|
||||
bool set_firm(long firm = -1) const;
|
||||
bool set_firm(long firm) const;
|
||||
bool jumpto(TSubmenu *next);
|
||||
bool jumpto_root();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user