From 74687059d9f0fc128da08f23381b16bec42b3667 Mon Sep 17 00:00:00 2001 From: augusto Date: Mon, 25 Aug 1997 15:29:15 +0000 Subject: [PATCH] Cambiato il nome del metodo code_lenght in code_length git-svn-id: svn://10.65.10.50/trunk@5102 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- mg/mglib.h | 4 ++-- mg/mglib01.cpp | 18 +++++++++--------- ve/ve2400.cpp | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/mg/mglib.h b/mg/mglib.h index 805a7366c..7f7408f1c 100755 --- a/mg/mglib.h +++ b/mg/mglib.h @@ -195,7 +195,7 @@ public: class TCodice_livelli : public TObject { - int _code_lenght[MANY_MAG_LEV]; + int _code_length[MANY_MAG_LEV]; TString _name[MANY_MAG_LEV]; TString _picture[MANY_MAG_LEV]; int _last_level; @@ -222,7 +222,7 @@ public: // Ritorna la stringa di picture per i codici gruppo di quel livello const TString & picture(int levnum) const; // Ritorna la lunghezza dei codici gruppo di quel livello - const int code_lenght(int levnum) const ; + const int code_length(int levnum) const ; // Ritorna la posizione iniziale del codice gruppo di quel livello const int code_start(int levnum) const ; // Ritorna la lunghezza del codice compatto fino a quel livello diff --git a/mg/mglib01.cpp b/mg/mglib01.cpp index dffd2bcd7..4a5a8e2be 100755 --- a/mg/mglib01.cpp +++ b/mg/mglib01.cpp @@ -591,11 +591,11 @@ void TCodice_livelli::load(bool enabled, const char *tabname,const char *tabgrp) if ((e==NOERR) && _lev_enabled) { _name[i]=_tabformato.get("S0"); _picture[i]=_tabformato.get("S1"); - _code_lenght[i]=TMetachar::maxstrlen(_picture[i]); + _code_length[i]=TMetachar::maxstrlen(_picture[i]); _last_level=i+1; } else { _name[i]=""; - _code_lenght[i]=0; + _code_length[i]=0; _picture[i]=""; } e=_tabformato.next(); @@ -650,15 +650,15 @@ const int TCodice_livelli::code_start(int levnum) const } -const int TCodice_livelli::code_lenght(int levnum) const +const int TCodice_livelli::code_length(int levnum) const { /* if (_lev_enabled && levnum <= MANY_MAG_LEV && levnum > 0) - return(_code_lenght[levnum-1]); + return(_code_length[levnum-1]); else return(0); */ - return enabled() ? _code_lenght[levnum-1] : 0; + return enabled() ? _code_length[levnum-1] : 0; } @@ -666,7 +666,7 @@ const int TCodice_livelli::packed_lenght(int levnum) const { int start=0; for (int i=0; _lev_enabled && i=pc.len()) return(""); else { if (levnum < 1 || levnum > _last_level ) return(""); - return(pc.mid(start,levnum == _last_level ? -1 : _code_lenght[levnum-1])); + return(pc.mid(start,levnum == _last_level ? -1 : _code_length[levnum-1])); } } diff --git a/ve/ve2400.cpp b/ve/ve2400.cpp index 3ca5d8e1f..acd2edc00 100755 --- a/ve/ve2400.cpp +++ b/ve/ve2400.cpp @@ -150,7 +150,7 @@ TMask_anamag::TMask_anamag(TRelation * rel,bool mg_autorized) : TMask("ve2400") if (livelli_art->enabled(1+i)) { field(F_LIVART1+i).show(); field(F_LIVART1+livelli_giac->last_level()-1).check_type(1+i==livelli_art->last_level() ? CHECK_NONE : CHECK_REQUIRED); - ((TEdit_field&)field(F_LIVART1+livelli_giac->last_level()-1)).set_width(livelli_art->code_lenght(1+i)); + ((TEdit_field&)field(F_LIVART1+livelli_giac->last_level()-1)).set_width(livelli_art->code_length(1+i)); set_handler(F_LIVART1+i, handle_livart); } else { field(F_LIVART1+i).hide();