Patch level : 2.0 nopatch
Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento : form.cpp Aggiunto supporto per custom/bitamp realtion.cpp Semplici sostituzioni di cose ripetute n volte con una singola variabile scanner.cpp Aggiunti apici in segnalazione di errore strings.cpp Corretta lettura di una stringa da file ad EOF tree.cpp Corretto disegno linee in presenza di header (Elaborazioni differite) git-svn-id: svn://10.65.10.50/trunk@11226 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f2649c00fc
commit
2b68cb81ae
@ -2000,7 +2000,7 @@ bool TForm_picture::update()
|
||||
}
|
||||
else
|
||||
i = _prompt;
|
||||
|
||||
i.custom_path();
|
||||
bool ok = i.not_empty() && i.exist();
|
||||
if (ok)
|
||||
{
|
||||
@ -4517,7 +4517,7 @@ void TForm::read(
|
||||
TFilename n(_name); n.ext("frm");
|
||||
n.custom_path();
|
||||
if (!n.exist())
|
||||
fatal_box("Il form %s non esiste.",(const char*)n);
|
||||
fatal_box("Il form '%s' non esiste.",(const char*)n);
|
||||
TScanner scanner(n);
|
||||
|
||||
bool ok = TRUE;
|
||||
|
@ -1241,15 +1241,15 @@ bool TCursor::changed()
|
||||
TRecnotype TCursor::update()
|
||||
{
|
||||
TWait_cursor hourglass;
|
||||
TLocalisamfile& f = file();
|
||||
f.setkey(_nkey);
|
||||
if (f.curr().empty())
|
||||
f.curr().zero();
|
||||
f.read(_isgteq);
|
||||
|
||||
file().setkey(_nkey);
|
||||
if (file().curr().empty())
|
||||
file().curr().zero();
|
||||
file().read(_isgteq);
|
||||
_totrec = buildcursor(f.recno());
|
||||
|
||||
_totrec = buildcursor(file().recno());
|
||||
|
||||
const int handle = file().handle();
|
||||
const int handle = f.handle();
|
||||
const TRecnotype eod = DB_reccount(handle);
|
||||
|
||||
_lastrec = eod;
|
||||
|
@ -51,7 +51,7 @@ TString& TScanner::line(
|
||||
{
|
||||
do
|
||||
{
|
||||
if (!_pushed) _token = "";
|
||||
if (!_pushed) _token.cut(0);
|
||||
getline(_tmp.get_buffer(), _tmp.size(), eol);
|
||||
_line++;
|
||||
_token << _tmp;
|
||||
|
@ -295,15 +295,21 @@ TObject* TString::dup() const
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
void TString::read_from(istream& in)
|
||||
{
|
||||
char tmp[256];
|
||||
in >> tmp;
|
||||
set(tmp);
|
||||
if (size() < 256)
|
||||
{
|
||||
char tmp[256] = "";
|
||||
in >> tmp;
|
||||
set(tmp);
|
||||
}
|
||||
else
|
||||
{
|
||||
cut(0);
|
||||
in >> _str;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Certified 100%
|
||||
void TString::print_on(ostream& out) const
|
||||
{ out << _str; }
|
||||
@ -350,8 +356,6 @@ int TString::rfind(
|
||||
return p ? int(p - _str) : -1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#if XVT_OS == XVT_OS_SCOUNIX
|
||||
HIDDEN char* strstr(const char* string1, const char* string2)
|
||||
{
|
||||
|
@ -941,7 +941,7 @@ bool TTree_window::callback_draw_node(TTree& node, void* jolly, word when)
|
||||
xvt_dwin_draw_set_pos(win, q);
|
||||
q.h -= TABX*CHARX - 3*CHARX/2;
|
||||
xvt_dwin_draw_line(win, q);
|
||||
q.v = (by+1)*rh;
|
||||
q.v = (by+1+ui->_headlines)*rh;
|
||||
|
||||
xvt_dwin_draw_line(win, q);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user