Aggiunto un paramentro alla destroy per differire l' update
git-svn-id: svn://10.65.10.50/trunk@2434 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9279f22900
commit
e24e990a50
@ -153,7 +153,7 @@ public:
|
||||
// @cmember Inserisce un record in una posizione stabilita
|
||||
int insert(int rec);
|
||||
// @cmember Elimina il record <p rec>
|
||||
bool destroy(int rec = -1);
|
||||
bool destroy(int rec = -1, bool update_sheet = TRUE);
|
||||
// @cmember Ritorna l'array di tutte le stringhe delle righe
|
||||
TString_array& rows_array()
|
||||
{ return _str; }
|
||||
@ -677,7 +677,8 @@ int TSpreadsheet::insert(
|
||||
// @flag TRUE | Se la riga esisteve e quindi e' stata eliminata
|
||||
// @flag FALSE | Se la riga non esisteve
|
||||
bool TSpreadsheet::destroy(
|
||||
int rec) // @parm Numero della riga da eliminare
|
||||
int rec, // @parm Numero della riga da eliminare
|
||||
bool update_sheet) // @parm Aggiornamento visuale dell sheet
|
||||
|
||||
// @comm Se il parametro <p rec> assume valore -1 vengono eliminate tutte le righe presenti
|
||||
// nello spreadsheet
|
||||
@ -702,7 +703,7 @@ bool TSpreadsheet::destroy(
|
||||
ok = _str.destroy(rec, TRUE); // Destroy line
|
||||
}
|
||||
|
||||
if (ok && mask().is_running())
|
||||
if (ok && mask().is_running() && update_sheet)
|
||||
update(-1);
|
||||
|
||||
indestroy = FALSE;
|
||||
@ -1805,12 +1806,11 @@ void TSheet_field::reset()
|
||||
}
|
||||
|
||||
// Certified 100%
|
||||
void TSheet_field::destroy(int r)
|
||||
void TSheet_field::destroy(int r, bool update_sheet)
|
||||
{
|
||||
_sheet->destroy(r);
|
||||
_sheet->destroy(r, update_sheet);
|
||||
}
|
||||
|
||||
|
||||
void TSheet_field::parse_head(TScanner& scanner)
|
||||
{
|
||||
_width = scanner.integer();
|
||||
|
@ -87,7 +87,7 @@ public:
|
||||
void on_idle();
|
||||
|
||||
// @cmember Elimina una riga
|
||||
void destroy(int r = -1);
|
||||
void destroy(int r = -1, bool update_sheet = TRUE);
|
||||
// @cmember Forza l'aggiornamento dei dati della riga sullo schermo
|
||||
void force_update(int r = -1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user