diff --git a/src/include/ivaliq.h b/src/include/ivaliq.h new file mode 100644 index 000000000..11f35243e --- /dev/null +++ b/src/include/ivaliq.h @@ -0,0 +1,63 @@ +#define IVAL_ANNO "ANNO" +#define IVAL_MESE "MESE" +#define IVAL_TRIMESTRE "TRIMESTRE" +#define IVAL_GENERATA "GENERATA" +#define IVAL_SUBFOR "SUBFOR" +#define IVAL_EVECC "EVECC" +#define IVAL_TOTOPATT "TOTOPATT" +#define IVAL_TOTOPATTXC "TOTOPATTXC" +#define IVAL_TOTOPPAS "TOTOPPAS" +#define IVAL_TOTOPPASXC "TOTOPPASXC" +#define IVAL_IVAES "IVAES" +#define IVAL_IVAESXC "IVAESXC" +#define IVAL_IVAESDIFF "IVAESDIFF" +#define IVAL_IVADET "IVADET" +#define IVAL_IVADETXC "IVADETXC" +#define IVAL_IVADETDIFF "IVADETDIFF" +#define IVAL_IVADOV "IVADOV" +#define IVAL_IVADOVC "IVADOVC" +#define IVAL_DEBPREC "DEBPREC" +#define IVAL_CREPREC "CREPREC" +#define IVAL_CREAPREC "CREAPREC" +#define IVAL_VEAUE "VEAUE" +#define IVAL_CREIMP "CREIMP" +#define IVAL_INTLIQTRI "INTLIQTRI" +#define IVAL_ACCDOV "ACCDOV" +#define IVAL_IVAVER "IVAVER" +#define IVAL_IVAVERC "IVAVERC" +#define IVAL_RETTIFICHE "RETTIFICHE" +#define IVAL_VARIMP "VARIMP" +#define IVAL_RIMBORSI "RIMBORSI" +#define IVAL_IMPNOVER "IMPNOVER" +#define IVAL_CRESPEC "CRESPEC" +#define IVAL_VEREFF "VEREFF" +#define IVAL_BTOTOPATT "BTOTOPATT" +#define IVAL_BTOTOPATTX "BTOTOPATTX" +#define IVAL_BTOTOPPAS "BTOTOPPAS" +#define IVAL_BTOTOPPASX "BTOTOPPASX" +#define IVAL_BIVAES "BIVAES" +#define IVAL_BIVAESXC "BIVAESXC" +#define IVAL_BIVAESDIFF "BIVAESDIFF" +#define IVAL_BIVADET "BIVADET" +#define IVAL_BIVADETXC "BIVADETXC" +#define IVAL_BIVADETDIF "BIVADETDIF" +#define IVAL_BIVADOV "BIVADOV" +#define IVAL_BIVADOVC "BIVADOVC" +#define IVAL_BDEBPREC "BDEBPREC" +#define IVAL_BCREPREC "BCREPREC" +#define IVAL_BCREAPREC "BCREAPREC" +#define IVAL_BVEAUE "BVEAUE" +#define IVAL_BCREIMP "BCREIMP" +#define IVAL_BINTLIQTRI "BINTLIQTRI" +#define IVAL_BACCDOV "BACCDOV" +#define IVAL_BIVAVER "BIVAVER" +#define IVAL_BIVAVERC "BIVAVERC" +#define IVAL_BRETTIFICH "BRETTIFICH" +#define IVAL_BVARIMP "BVARIMP" +#define IVAL_BRIMBORSI "BRIMBORSI" +#define IVAL_BIMPNOVER "BIMPNOVER" +#define IVAL_BCRESPEC "BCRESPEC" +#define IVAL_BVEREFF "BVEREFF" +#define IVAL_METODO "METODO" +#define IVAL_OPSTRA "OPSTRA" + \ No newline at end of file diff --git a/src/include/mask.cpp b/src/include/mask.cpp index 8d089d57b..90548bb1e 100755 --- a/src/include/mask.cpp +++ b/src/include/mask.cpp @@ -482,15 +482,29 @@ void TMask::close() short TMask::dirty() const { const int max = fields(); + for (int i = 0; i < max; i++) { const TMask_field& f = fld(i); + if (f.dirty() && f.active()) return f.dlg(); } return 0; } +void TMask::reset_dirty() +{ + const int max = fields(); + + for (int i = 0; i < max; i++) + { + TMask_field& f = fld(i); + + f.set_dirty(false); + } +} + void TMask::load_checks() const { const int max = fields(); @@ -2613,7 +2627,7 @@ void TMask::add_item(TMask_field & fld, const char * item) // @flag false | Se non si riesce a creare il file di salvataggio bool TMask::save(const TFilename & fname, // @parm nome del file, se vuoto usa _workfile bool append, // @parm Indica se creare il file o appendere (true) le informazioni - bool save_sheets) const // @parm Indica se creare il file o appendere (true) le informazioni + bool save_sheets) const // @parm se salvare gli sheet // ad uno gia' esistente (false, default). { diff --git a/src/include/mask.h b/src/include/mask.h index 1b6e9137f..fb8fcca85 100755 --- a/src/include/mask.h +++ b/src/include/mask.h @@ -360,8 +360,8 @@ public: // (chiama ) int get_int(short fld_id) const { return (int)get_long(fld_id); } - // @cmember Ritorna il contenuto del campo

sotto forma di bool - bool get_bool(short fld_id) const; + // @cmember Ritorna il contenuto del campo

sotto forma di bool + bool get_bool(short fld_id) const; // @cmember Ritorna il contenuto del campo

sotto forma di real real get_real(short fld_id) const; // @cmember Ritorna il contenuto del campo

sotto forma di data @@ -477,8 +477,11 @@ public: // @cmember Carica il defaults dei campi virtual void load_defaults(); - // @cmember Ritorna il primo campo dirty - short dirty() const; + // @cmember Ritorna il primo campo dirty + short dirty() const; + + // @cmember azzera il flag dirty dei campi + void reset_dirty(); // @cmember Setta lo sheet di cui la maschera gestisce le righe void set_sheet(TSheet_field* s) { _sheet = s; }