Corretta gestione editor dei campi
git-svn-id: svn://10.65.10.50/trunk@1496 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9e1604c531
commit
6feb6f1afc
@ -317,7 +317,7 @@ public:
|
||||
|
||||
bool in_group(byte g) const { return g == 0 || _group[g]; }
|
||||
const TString& key() const { return _desc; }
|
||||
void print_on(TToken_string& row) const;
|
||||
virtual void print_on(TToken_string& row) const;
|
||||
|
||||
virtual void show(bool on = TRUE) { _flag.shown = on; }
|
||||
void hide() { show(FALSE); }
|
||||
@ -719,7 +719,7 @@ bool TForm_item::edit(TMask& m)
|
||||
m.enable(-7, godmode);
|
||||
m.enable(F_ID, godmode);
|
||||
|
||||
const bool dirty = m.run() == K_ENTER && m.dirty();
|
||||
const bool dirty = m.run() == K_ENTER;
|
||||
if (dirty)
|
||||
{
|
||||
read_from(m);
|
||||
@ -922,6 +922,8 @@ protected:
|
||||
virtual bool read_from(const TRectype& rform);
|
||||
virtual void print_on(TRectype& rform);
|
||||
|
||||
virtual void print_on(TToken_string& row) const;
|
||||
|
||||
virtual bool parse_item(TScanner&);
|
||||
virtual bool read();
|
||||
virtual bool update();
|
||||
@ -980,6 +982,13 @@ bool TForm_string::read_from(const TRectype& prof)
|
||||
return changed;
|
||||
}
|
||||
|
||||
void TForm_string::print_on(TToken_string& row) const
|
||||
{
|
||||
TForm_item::print_on(row);
|
||||
if (_field.items())
|
||||
row << '|' << field(0);
|
||||
}
|
||||
|
||||
void TForm_string::print_on(TRectype& prof)
|
||||
{
|
||||
TForm_item::print_on(prof);
|
||||
@ -1592,7 +1601,7 @@ bool TPrint_section::edit(const char* title)
|
||||
}
|
||||
|
||||
const word flags = 0x08 | (form().edit_level() > 1 ? 0x06 : 0x00);
|
||||
TArray_sheet a(-1, -1, 0, 0, title, "ID@4|Tipo@8|Riga@R|Col.@R|Gr.@R|Descrizione@40", flags);
|
||||
TArray_sheet a(-1, -1, 0, 0, title, "ID@4|Tipo@8|Riga@R|Col.@R|Gr.@R|Descrizione@40|Campo@16", flags);
|
||||
|
||||
for (word i = 0; i < fields(); i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user