Patch level : 4.0 486

Files correlati     : ba2.exe
Ricompilazione Demo : [ ]
Commento            :

Evidenziati gli errori nel dizionario
Aggiunta la possibilità di eliminare le label non utilizzate


git-svn-id: svn://10.65.10.50/trunk@14309 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2006-09-11 15:42:26 +00:00
parent 98dd757fb5
commit f22c1a7a52
3 changed files with 31 additions and 4 deletions

View File

@ -754,6 +754,25 @@ bool TDictionary_mask::on_field_event(TOperable_field& o, TField_event e, long j
s.force_update(jolly); s.force_update(jolly);
} }
break; break;
case DLG_USER:
if (e == fe_button)
{
TMask & sms = o.mask();
if (sms.is_running())
sms.set(F_ENG, sms.get(F_ITA));
else
{
TSheet_field* s = (TSheet_field*)sms.get_sheet();
const int nrow = s->selected();
TToken_string& row = s->row(nrow);
const TString ita = row.get(0);
row.add(ita, 1);
s->force_update(nrow);
}
}
break;
default: default:
break; break;
} }

View File

@ -8,7 +8,8 @@
#define F_MODULE 201 #define F_MODULE 201
#define F_DELETE_OBS 202 #define F_DELETE_OBS 202
#define F_ITA 101 #define F_ITA 101
#define F_ENG 102 #define F_ENG 102
#define F_MAX 103 #define F_MAX 103
#define F_SRC 104 #define F_SRC 104

View File

@ -63,6 +63,7 @@ BEGIN
ITEM "Traduzione@50" ITEM "Traduzione@50"
ITEM "Max." ITEM "Max."
ITEM "Sorgente@50" ITEM "Sorgente@50"
FLAGS "|"
END END
ENDPAGE ENDPAGE
@ -75,6 +76,7 @@ MEMO F_ITA 78 5
BEGIN BEGIN
PROMPT 1 0 "@bItaliano" PROMPT 1 0 "@bItaliano"
FLAGS "D" FLAGS "D"
MESSAGE COPY,F_ENG
END END
MEMO F_ENG 78 5 MEMO F_ENG 78 5
@ -96,17 +98,22 @@ END
BUTTON DLG_OK 10 2 BUTTON DLG_OK 10 2
BEGIN BEGIN
PROMPT -13 -1 "" PROMPT -14 -1 ""
END END
BUTTON DLG_DELREC 10 2 BUTTON DLG_DELREC 10 2
BEGIN BEGIN
PROMPT -23 -1 "" PROMPT -24 -1 ""
END
BUTTON DLG_USER 10 2
BEGIN
PROMPT -34 -1 "~Copia"
END END
BUTTON DLG_CANCEL 10 2 BUTTON DLG_CANCEL 10 2
BEGIN BEGIN
PROMPT -33 -1 "" PROMPT -44 -1 ""
END END
ENDPAGE ENDPAGE