Patch level : 2.0 504

Files correlati     : cg1.exe
Ricompilazione Demo : [ ]
Commento            :
Eliminate traduzioni stringhe statiche


git-svn-id: svn://10.65.10.50/trunk@11245 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2003-06-19 09:49:16 +00:00
parent ce973f8eab
commit 4b1708962b

@ -24,8 +24,6 @@ for (int _e##isamfile = isamfile.first(); \
#endif
const char* const APPNAME = TR("Righe prima nota errate");
class TElimina_zoppi : public TSkeleton_application
{
// TArray _files;
@ -43,8 +41,8 @@ protected:
static bool firm_handler(TMask_field& f, KEY k);
static bool select_handler(TMask_field& f, KEY k);
protected:
public:
const char* app_name() const {return TR("Righe prima nota errate");}
const char* decode(int num, const char* key, const char* field);
virtual void main_loop();
};
@ -461,7 +459,7 @@ bool TElimina_zoppi::select_handler(TMask_field& f, KEY k)
bool ok = TRUE;
if (k == K_SPACE)
{
TArray_sheet sheet(-1, -1, 76, 20, APPNAME, HR("@1|Codice@6|Riga@5|Anno@R|Importo@20R|Grp@R|Cnt@R|Sottoc@R|Descrizione@50"));
TArray_sheet sheet(-1, -1, 76, 20, app().app_name(), HR("@1|Codice@6|Riga@5|Anno@R|Importo@20R|Grp@R|Cnt@R|Sottoc@R|Descrizione@50"));
TString_array& arr = sheet.rows_array();
ok = test_row_file(LF_RMOV, arr);
if (ok)
@ -508,7 +506,7 @@ void TElimina_zoppi::main_loop()
{
open_files(LF_CLIFO, LF_NDITTE, LF_PCON, LF_MOV, LF_RMOV, LF_RMOVIVA, LF_PARTITE, LF_SCADENZE, LF_PAGSCA, 0);
TMask m(APPNAME, 1, 30, 5);
TMask m(app_name(), 1, 30, 5);
m.add_number(DLG_USER, 0, TR("Codice ditta "), 1, 1, 5, "BUF");
m.add_button(DLG_SELECT, 0, "", -12, -1, 10, 2);
m.add_button(DLG_QUIT, 0, "", -22, -1, 10, 2);
@ -521,6 +519,6 @@ void TElimina_zoppi::main_loop()
int elimina_zoppi(int argc, char* argv[])
{
TElimina_zoppi ez;
ez.run(argc, argv, APPNAME);
ez.run(argc, argv, ez.app_name());
return 0;
}