*** empty log message ***

git-svn-id: svn://10.65.10.50/trunk@20 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1994-08-17 09:32:34 +00:00
parent a0136bf864
commit 3a6fa88f87
4 changed files with 31 additions and 1564 deletions

View File

@ -23,10 +23,10 @@ class TSpreadsheet:public TWindow
ITF_CID = 0, LIST_CID = 1
};
TArray _str; // Array di TToken_strings
TArray _str; // Array di TToken_strings
TBit_array _column_disabled;
TArray _disabled; // Array di TBit_array
TArray _disabled; // Array di TBit_array
TMask _mask;
int _columns;
@ -104,7 +104,7 @@ class TSpreadsheet:public TWindow
}
TSpreadsheet (short x, short y, short dx, short dy, const char *maskname, int maskno,
const char *head, WINDOW parent);
const char *head, WINDOW parent);
};
// Certified 99%
@ -129,8 +129,8 @@ void TSpreadsheet ::init ()
}
TSpreadsheet ::TSpreadsheet (short x, short y, short dx, short dy,
const char *maskname, int maskno,
const char *head, WINDOW parent)
const char *maskname, int maskno,
const char *head, WINDOW parent)
: _mask (maskname, NO_MODE, maskno), _notify (NULL)
{

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
extern "C"
{
double pow (double, double);
} // Should be #include <math.h>
} // Should be #include <math.h>
#include <strings.h>
#include <real.h>
@ -26,9 +26,9 @@ real ::real (const real & b)
real ::real (double a)
{
dftodr (ptr (), a, 9); // Round the number (1.0 is NOT 0.999999999)
dftodr (ptr (), a, 9); // Round the number (1.0 is NOT 0.999999999)
deltrz (ptr (), ptr ()); // Delete Trailing zeroes
deltrz (ptr (), ptr ()); // Delete Trailing zeroes
}
@ -39,7 +39,7 @@ eng2ita (char *s)
{
char *dot = strchr (s, '.');
if (dot)
*dot = ',';
*dot = ',';
}
return s;
}
@ -51,18 +51,18 @@ ita2eng (const char *s)
if (s)
for (int i = 0; s[i]; i++)
{
switch (s[i])
{
case ' ':
case '.':
break;
case ',':
__string[j++] = '.';
break;
default:
__string[j++] = s[i];
break;
}
switch (s[i])
{
case ' ':
case '.':
break;
case ',':
__string[j++] = '.';
break;
default:
__string[j++] = s[i];
break;
}
}
__string[j] = '\0';
return __string;
@ -75,7 +75,7 @@ is_real (const char *s)
if (s)
{
while (*s == ' ')
s++; // Remove leading spaces before atod
s++; // Remove leading spaces before atod
ok = atod (__tmp_real.ptr (), (char *) s) != GM_NULL;
}
@ -86,7 +86,7 @@ real ::real (const char *s)
{
if (s)
while (*s == ' ')
s++; // Remove leading spaces before atod
s++; // Remove leading spaces before atod
if (s && *s)
atod (ptr (), (char *) s);
@ -187,9 +187,9 @@ dup ()
{
__tmp_real = *this;
if (dec != UNDEFINED)
__tmp_real.round (dec);
__tmp_real.round (dec);
else
deltrz (__tmp_real.ptr (), __tmp_real.ptr ());
deltrz (__tmp_real.ptr (), __tmp_real.ptr ());
// if (len == 0)
dtoa (__string, __tmp_real.ptr ());

View File

@ -115,15 +115,15 @@ check_link (TPoint * p)
static long y, x1, x2;
static long py, px1, px2;
if (p == NULL) // erase and go
if (p == NULL) // erase and go
{
if (old_id != -1)
{
erase_link (y, x1, x2);
old_id = _linkID = plinkID = -1;
py = px1 = px2 = x1 = y = x2 = 0l;
}
{
erase_link (y, x1, x2);
old_id = _linkID = plinkID = -1;
py = px1 = px2 = x1 = y = x2 = 0l;
}
return FALSE;
}