*** empty log message ***
git-svn-id: svn://10.65.10.50/trunk@20 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a0136bf864
commit
3a6fa88f87
@ -23,10 +23,10 @@ class TSpreadsheet:public TWindow
|
|||||||
ITF_CID = 0, LIST_CID = 1
|
ITF_CID = 0, LIST_CID = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
TArray _str; // Array di TToken_strings
|
TArray _str; // Array di TToken_strings
|
||||||
|
|
||||||
TBit_array _column_disabled;
|
TBit_array _column_disabled;
|
||||||
TArray _disabled; // Array di TBit_array
|
TArray _disabled; // Array di TBit_array
|
||||||
|
|
||||||
TMask _mask;
|
TMask _mask;
|
||||||
int _columns;
|
int _columns;
|
||||||
@ -104,7 +104,7 @@ class TSpreadsheet:public TWindow
|
|||||||
}
|
}
|
||||||
|
|
||||||
TSpreadsheet (short x, short y, short dx, short dy, const char *maskname, int maskno,
|
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%
|
// Certified 99%
|
||||||
@ -129,8 +129,8 @@ void TSpreadsheet ::init ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
TSpreadsheet ::TSpreadsheet (short x, short y, short dx, short dy,
|
TSpreadsheet ::TSpreadsheet (short x, short y, short dx, short dy,
|
||||||
const char *maskname, int maskno,
|
const char *maskname, int maskno,
|
||||||
const char *head, WINDOW parent)
|
const char *head, WINDOW parent)
|
||||||
: _mask (maskname, NO_MODE, maskno), _notify (NULL)
|
: _mask (maskname, NO_MODE, maskno), _notify (NULL)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
1533
include/printer.cpp
1533
include/printer.cpp
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@
|
|||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
double pow (double, double);
|
double pow (double, double);
|
||||||
} // Should be #include <math.h>
|
} // Should be #include <math.h>
|
||||||
|
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <real.h>
|
#include <real.h>
|
||||||
@ -26,9 +26,9 @@ real ::real (const real & b)
|
|||||||
|
|
||||||
real ::real (double a)
|
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, '.');
|
char *dot = strchr (s, '.');
|
||||||
if (dot)
|
if (dot)
|
||||||
*dot = ',';
|
*dot = ',';
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
@ -51,18 +51,18 @@ ita2eng (const char *s)
|
|||||||
if (s)
|
if (s)
|
||||||
for (int i = 0; s[i]; i++)
|
for (int i = 0; s[i]; i++)
|
||||||
{
|
{
|
||||||
switch (s[i])
|
switch (s[i])
|
||||||
{
|
{
|
||||||
case ' ':
|
case ' ':
|
||||||
case '.':
|
case '.':
|
||||||
break;
|
break;
|
||||||
case ',':
|
case ',':
|
||||||
__string[j++] = '.';
|
__string[j++] = '.';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
__string[j++] = s[i];
|
__string[j++] = s[i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
__string[j] = '\0';
|
__string[j] = '\0';
|
||||||
return __string;
|
return __string;
|
||||||
@ -75,7 +75,7 @@ is_real (const char *s)
|
|||||||
if (s)
|
if (s)
|
||||||
{
|
{
|
||||||
while (*s == ' ')
|
while (*s == ' ')
|
||||||
s++; // Remove leading spaces before atod
|
s++; // Remove leading spaces before atod
|
||||||
|
|
||||||
ok = atod (__tmp_real.ptr (), (char *) s) != GM_NULL;
|
ok = atod (__tmp_real.ptr (), (char *) s) != GM_NULL;
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ real ::real (const char *s)
|
|||||||
{
|
{
|
||||||
if (s)
|
if (s)
|
||||||
while (*s == ' ')
|
while (*s == ' ')
|
||||||
s++; // Remove leading spaces before atod
|
s++; // Remove leading spaces before atod
|
||||||
|
|
||||||
if (s && *s)
|
if (s && *s)
|
||||||
atod (ptr (), (char *) s);
|
atod (ptr (), (char *) s);
|
||||||
@ -187,9 +187,9 @@ dup ()
|
|||||||
{
|
{
|
||||||
__tmp_real = *this;
|
__tmp_real = *this;
|
||||||
if (dec != UNDEFINED)
|
if (dec != UNDEFINED)
|
||||||
__tmp_real.round (dec);
|
__tmp_real.round (dec);
|
||||||
else
|
else
|
||||||
deltrz (__tmp_real.ptr (), __tmp_real.ptr ());
|
deltrz (__tmp_real.ptr (), __tmp_real.ptr ());
|
||||||
|
|
||||||
// if (len == 0)
|
// if (len == 0)
|
||||||
dtoa (__string, __tmp_real.ptr ());
|
dtoa (__string, __tmp_real.ptr ());
|
||||||
|
@ -115,15 +115,15 @@ check_link (TPoint * p)
|
|||||||
static long y, x1, x2;
|
static long y, x1, x2;
|
||||||
static long py, px1, px2;
|
static long py, px1, px2;
|
||||||
|
|
||||||
if (p == NULL) // erase and go
|
if (p == NULL) // erase and go
|
||||||
|
|
||||||
{
|
{
|
||||||
if (old_id != -1)
|
if (old_id != -1)
|
||||||
{
|
{
|
||||||
erase_link (y, x1, x2);
|
erase_link (y, x1, x2);
|
||||||
old_id = _linkID = plinkID = -1;
|
old_id = _linkID = plinkID = -1;
|
||||||
py = px1 = px2 = x1 = y = x2 = 0l;
|
py = px1 = px2 = x1 = y = x2 = 0l;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user