ba0.cpp Corretta gestione immagini lunghe

bafax.cpp    Corretta inizializzazione del server nella pre-create


git-svn-id: svn://10.65.10.50/trunk@3326 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-08-05 09:28:10 +00:00
parent 11cf62090e
commit b6cded076b
2 changed files with 12 additions and 2 deletions

View File

@ -1045,6 +1045,7 @@ bool TMenu_application::main_loop()
bool TMenu_application::choose_colors() bool TMenu_application::choose_colors()
{ {
disable_menu_item(M_FONT);
TColor_mask cm; TColor_mask cm;
if (cm.run() == K_ENTER) if (cm.run() == K_ENTER)
{ {
@ -1061,6 +1062,7 @@ bool TMenu_application::choose_colors()
if (_mask != NULL) if (_mask != NULL)
_mask->stop_run(K_CTRL + 'R'); _mask->stop_run(K_CTRL + 'R');
} }
enable_menu_item(M_FONT);
return TRUE; return TRUE;
} }
@ -1089,6 +1091,7 @@ HIDDEN bool browse_file_handler(TMask_field& f, KEY k)
bool TMenu_application::choose_editors() bool TMenu_application::choose_editors()
{ {
disable_menu_item(M_FONT);
TConfig link(CONFIG_USER, "Link"); TConfig link(CONFIG_USER, "Link");
TMask editor("ba0300a"); TMask editor("ba0300a");
@ -1099,6 +1102,7 @@ bool TMenu_application::choose_editors()
{ {
link.set("Editor", editor.get(101)); link.set("Editor", editor.get(101));
} }
enable_menu_item(M_FONT);
return TRUE; return TRUE;
} }

View File

@ -1199,6 +1199,7 @@ class TFax_server : public TApplication
TDDE_fax* _fax; TDDE_fax* _fax;
protected: protected:
virtual bool pre_create();
virtual bool create(); virtual bool create();
virtual bool destroy(); virtual bool destroy();
@ -1209,10 +1210,15 @@ public:
virtual ~TFax_server() { } virtual ~TFax_server() { }
}; };
bool TFax_server::create() bool TFax_server::pre_create()
{ {
CHECK(_fax == NULL, "Double fax creation"); CHECK(_fax == NULL, "Double fax creation");
_fax = new TDDE_fax; _fax = new TDDE_fax;
return _fax->ok();
}
bool TFax_server::create()
{
const bool ok = _fax->ok(); const bool ok = _fax->ok();
if (ok) if (ok)
{ {