Patch level :10.0 114
Files correlati : Ricompilazione Demo : [ ] Commento :correzioni per selezionare report customizzati nella stampa tabelle git-svn-id: svn://10.65.10.50/trunk@17235 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
474c581215
commit
47eef1988b
@ -3072,8 +3072,8 @@ bool TProfile_select::check(CheckTime ct)
|
|||||||
// TReport_select
|
// TReport_select
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
TReport_select::TReport_select(TEdit_field* ef, const char* library)
|
TReport_select::TReport_select(TEdit_field* ef, const char* classe)
|
||||||
: TBrowse_button(ef), _library(library)
|
: TBrowse_button(ef), _classe(classe)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
void TReport_select::parse_input(TScanner& scanner)
|
void TReport_select::parse_input(TScanner& scanner)
|
||||||
@ -3089,7 +3089,7 @@ void TReport_select::parse_output(TScanner& scanner)
|
|||||||
KEY TReport_select::run()
|
KEY TReport_select::run()
|
||||||
{
|
{
|
||||||
TFilename path = field().get();
|
TFilename path = field().get();
|
||||||
if (select_custom_file(path, "rep", _library))
|
if (select_custom_file(path, "rep", _classe))
|
||||||
{
|
{
|
||||||
path = path.name();
|
path = path.name();
|
||||||
path.ext("");
|
path.ext("");
|
||||||
|
@ -1053,7 +1053,7 @@ public:
|
|||||||
|
|
||||||
class TReport_select : public TBrowse_button
|
class TReport_select : public TBrowse_button
|
||||||
{
|
{
|
||||||
TString _library;
|
TString _classe;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// @cmember Controlla la sintassi della input del campo e ne setta i membri
|
// @cmember Controlla la sintassi della input del campo e ne setta i membri
|
||||||
@ -1069,7 +1069,7 @@ public:
|
|||||||
|
|
||||||
virtual bool is_filesel() const { return true; }
|
virtual bool is_filesel() const { return true; }
|
||||||
|
|
||||||
TReport_select(TEdit_field* ef, const char* library);
|
TReport_select(TEdit_field* ef, const char* classe);
|
||||||
virtual ~TReport_select() { }
|
virtual ~TReport_select() { }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -821,7 +821,7 @@ bool list_custom_files(const char* ext, const char* classe, TString_array& files
|
|||||||
|
|
||||||
bool select_custom_file(TFilename& path, const char* ext, const char* classe)
|
bool select_custom_file(TFilename& path, const char* ext, const char* classe)
|
||||||
{
|
{
|
||||||
TArray_sheet sheet(-1, -1, 78, 20, TR("Selezione"), HR("Nome@8|Classe|Descrizione@50|Custom"));
|
TArray_sheet sheet(-1, -1, 78, 20, TR("Selezione"), HR("Nome@8|Classe@8|Descrizione@50|Custom"));
|
||||||
TString_array& files = sheet.rows_array();
|
TString_array& files = sheet.rows_array();
|
||||||
TFilename first = path.name(); first.ext(""); // Riga su cui posizionarsi
|
TFilename first = path.name(); first.ext(""); // Riga su cui posizionarsi
|
||||||
bool ok = list_custom_files(ext, classe, files);
|
bool ok = list_custom_files(ext, classe, files);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user