Aggiustamenti dovuti al cambiamento della TSheet_field::set_notify
git-svn-id: svn://10.65.10.50/trunk@1695 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
903d2ce90c
commit
f51bfda33c
@ -371,7 +371,9 @@ void TManutenzione_app::edit_riga (long riga_sel, TToken_string& riga)
|
|||||||
const TRecnotype oldeox = atol(_mask->get(FLD_EOX));
|
const TRecnotype oldeox = atol(_mask->get(FLD_EOX));
|
||||||
const bool com = prefix().is_com() || !*prefix().name();
|
const bool com = prefix().is_com() || !*prefix().name();
|
||||||
const char* name = _mask->get(FLD_NOME);
|
const char* name = _mask->get(FLD_NOME);
|
||||||
const bool enable_extend = (com ? *name != '$' : *name == '$') && (riga_sel > 0) && (_mask->get_int(F_LEN) > 0);
|
const bool enable_extend = (com ? *name != '$' : *name == '$') &&
|
||||||
|
(riga_sel > 0) &&
|
||||||
|
(_mask->get_int(F_LEN) > 0 || oldeox > 0);
|
||||||
|
|
||||||
_mask->show(FLD_EXTEND, enable_extend);
|
_mask->show(FLD_EXTEND, enable_extend);
|
||||||
_mask->show(FLD_EOX, enable_extend);
|
_mask->show(FLD_EOX, enable_extend);
|
||||||
|
@ -55,8 +55,8 @@ class TRec_sheet : public TObject
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool check_key_expr(int key, const char* key_expr);
|
bool check_key_expr(int key, const char* key_expr);
|
||||||
static bool key_notify(int r, KEY k);
|
static bool key_notify(TSheet_field& s, int r, KEY k);
|
||||||
static bool fld_notify(int r, KEY k);
|
static bool fld_notify(TSheet_field& s, int r, KEY k);
|
||||||
void save();
|
void save();
|
||||||
virtual long items() const { return _rec->fields(); }
|
virtual long items() const { return _rec->fields(); }
|
||||||
|
|
||||||
|
@ -187,14 +187,11 @@ HIDDEN bool len_handler(TMask_field& f, KEY key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool TRec_sheet::key_notify(int r, KEY k)
|
bool TRec_sheet::key_notify(TSheet_field& f, int r, KEY k)
|
||||||
{
|
{
|
||||||
TSheet_field& f = (TSheet_field&) _mask->field(F_KEYS);
|
|
||||||
|
|
||||||
if (k == K_INS)
|
if (k == K_INS)
|
||||||
{
|
{
|
||||||
const int items = f.items();
|
const int items = f.items();
|
||||||
|
|
||||||
f.disable_cell(0, 1);
|
f.disable_cell(0, 1);
|
||||||
if (f.items() >= 8) return FALSE;
|
if (f.items() >= 8) return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ protected:
|
|||||||
virtual int read(TMask& m);
|
virtual int read(TMask& m);
|
||||||
|
|
||||||
// notifier
|
// notifier
|
||||||
static bool sheet_action(int r, KEY k);
|
static bool sheet_action(TSheet_field&, int r, KEY k);
|
||||||
|
|
||||||
// handlers
|
// handlers
|
||||||
static bool intervallo_rate (TMask_field& f, KEY k);
|
static bool intervallo_rate (TMask_field& f, KEY k);
|
||||||
@ -334,7 +334,7 @@ bool BA3700_application::ult_class(TMask_field& f, KEY k)
|
|||||||
|
|
||||||
|
|
||||||
// qui viene il belloccio
|
// qui viene il belloccio
|
||||||
bool BA3700_application::sheet_action(int r, KEY k)
|
bool BA3700_application::sheet_action(TSheet_field&, int r, KEY k)
|
||||||
{
|
{
|
||||||
bool doit = TRUE, m_perc = FALSE, m_pag = FALSE;
|
bool doit = TRUE, m_perc = FALSE, m_pag = FALSE;
|
||||||
bool m_scad = FALSE, m_tipo = FALSE, mod = FALSE;
|
bool m_scad = FALSE, m_tipo = FALSE, mod = FALSE;
|
||||||
|
@ -12,7 +12,7 @@ class BA4100_application : public TRelation_application
|
|||||||
TRelation * _rel;
|
TRelation * _rel;
|
||||||
TLocalisamfile * _alici;
|
TLocalisamfile * _alici;
|
||||||
TRecord_array * _alici_rec;
|
TRecord_array * _alici_rec;
|
||||||
static bool fld_notify(int r, KEY k);
|
static bool fld_notify(TSheet_field& s, int r, KEY k);
|
||||||
virtual bool user_create() ;
|
virtual bool user_create() ;
|
||||||
virtual bool user_destroy() ;
|
virtual bool user_destroy() ;
|
||||||
virtual bool changing_mask(int mode) { return FALSE;}
|
virtual bool changing_mask(int mode) { return FALSE;}
|
||||||
@ -31,10 +31,8 @@ public:
|
|||||||
|
|
||||||
BA4100_application & app() { return (BA4100_application &) main_app(); }
|
BA4100_application & app() { return (BA4100_application &) main_app(); }
|
||||||
|
|
||||||
bool BA4100_application::fld_notify(int r, KEY k)
|
bool BA4100_application::fld_notify(TSheet_field& f, int r, KEY k)
|
||||||
{
|
{
|
||||||
TSheet_field& f = (TSheet_field&) app().get_mask(MODE_QUERY)->field(FLD_CM2_ALIQICI);
|
|
||||||
|
|
||||||
if (k == K_INS)
|
if (k == K_INS)
|
||||||
{
|
{
|
||||||
TMask& m = f.sheet_mask();
|
TMask& m = f.sheet_mask();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user