Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : mask.* Aggiunto metodo tfield per gestire meglio le piante maskfld.cpp Corretta gestione campi per selezione files rdoc.h Aggiunto campo RDOC_DATACONS git-svn-id: svn://10.65.10.50/trunk@6852 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
6aad57da86
commit
1a08111fb5
@ -569,6 +569,12 @@ TSheet_field& TMask::sfield(short id) const
|
|||||||
return (TSheet_field&)f;
|
return (TSheet_field&)f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TTree_field& TMask::tfield(short id) const
|
||||||
|
{
|
||||||
|
TMask_field& f = field(id);
|
||||||
|
CHECKD(f.is_kind_of(CLASS_TREE_FIELD), "Impossibile trattare come albero il campo ", id);
|
||||||
|
return (TTree_field&)f;
|
||||||
|
}
|
||||||
|
|
||||||
// @doc EXTERNAL
|
// @doc EXTERNAL
|
||||||
|
|
||||||
|
@ -259,6 +259,8 @@ public:
|
|||||||
TEdit_field& efield(short id) const;
|
TEdit_field& efield(short id) const;
|
||||||
// @cmember Ritorna il campo sheet contraddistinto dall'identificatore passato
|
// @cmember Ritorna il campo sheet contraddistinto dall'identificatore passato
|
||||||
TSheet_field& sfield(short id) const;
|
TSheet_field& sfield(short id) const;
|
||||||
|
// @cmember Ritorna il campo tree contraddistinto dall'identificatore passato
|
||||||
|
TTree_field& tfield(short id) const;
|
||||||
|
|
||||||
// @cmember Setta il campo con una stringa
|
// @cmember Setta il campo con una stringa
|
||||||
virtual void set(short fld_id, const char* str, bool hit=FALSE);
|
virtual void set(short fld_id, const char* str, bool hit=FALSE);
|
||||||
|
@ -2546,6 +2546,8 @@ KEY TFile_select::run()
|
|||||||
good = _filter.not_empty() && str.match(_filter);
|
good = _filter.not_empty() && str.match(_filter);
|
||||||
if (good)
|
if (good)
|
||||||
field().set(str);
|
field().set(str);
|
||||||
|
else
|
||||||
|
field().error_box("Il nome del file non corrisponde alla maschera %s", _filter.get_buffer());
|
||||||
}
|
}
|
||||||
return good ? K_ENTER : K_ESC;
|
return good ? K_ENTER : K_ESC;
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#define RDOC_CAUSMAG "CAUSMAG"
|
#define RDOC_CAUSMAG "CAUSMAG"
|
||||||
#define RDOC_MOVMAG "MOVMAG"
|
#define RDOC_MOVMAG "MOVMAG"
|
||||||
#define RDOC_CODMAGC "CODMAGC"
|
#define RDOC_CODMAGC "CODMAGC"
|
||||||
|
#define RDOC_DATACONS "DATACONS"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user