@ -114,7 +114,7 @@ void CoordinateValidator::fixup( TQString & input ) const
if ( sc = = - 1 )
{
sc = input . length ( ) ;
KLocale * l = K Global: : locale ( ) ;
KLocale * l = TDE Global: : locale ( ) ;
if ( mpolar )
input . append ( TQString : : fromLatin1 ( " ; " ) + l - > positiveSign ( ) +
TQString : : fromLatin1 ( " 0ยฐ " ) ) ;
@ -144,8 +144,8 @@ TQString EuclideanCoords::fromScreen( const Coordinate& p, const KigDocument& d
Rect sr = d . suggestedRect ( ) ;
double m = kigMax ( sr . width ( ) , sr . height ( ) ) ;
int l = kigMax ( 0 , ( int ) ( 3 - log10 ( m ) ) ) ;
TQString xs = K Global: : locale ( ) - > formatNumber ( p . x , l ) ;
TQString ys = K Global: : locale ( ) - > formatNumber ( p . y , l ) ;
TQString xs = TDE Global: : locale ( ) - > formatNumber ( p . x , l ) ;
TQString ys = TDE Global: : locale ( ) - > formatNumber ( p . y , l ) ;
return TQString : : fromLatin1 ( " ( %1; %2 ) " ) . arg ( xs ) . arg ( ys ) ;
}
@ -157,7 +157,7 @@ Coordinate EuclideanCoords::toScreen(const TQString& s, bool& ok) const
{
TQString xs = r . cap ( 1 ) ;
TQString ys = r . cap ( 2 ) ;
KLocale * l = K Global: : locale ( ) ;
KLocale * l = TDE Global: : locale ( ) ;
double x = l - > readNumber ( xs , & ok ) ;
if ( ! ok ) x = xs . toDouble ( & ok ) ;
if ( ! ok ) return Coordinate ( ) ;
@ -272,7 +272,7 @@ void EuclideanCoords::drawGrid( KigPainter& p, bool showgrid, bool showaxes ) co
p . drawText (
Rect ( Coordinate ( i , 0 ) , hd , - 2 * vd ) . normalized ( ) ,
K Global: : locale ( ) - > formatNumber ( i , hnfrac ) ,
TDE Global: : locale ( ) - > formatNumber ( i , hnfrac ) ,
AlignLeft | AlignTop
) ;
} ;
@ -281,7 +281,7 @@ void EuclideanCoords::drawGrid( KigPainter& p, bool showgrid, bool showaxes ) co
{
if ( fabs ( i ) < 1e-8 ) continue ;
p . drawText ( Rect ( Coordinate ( 0 , i ) , 2 * hd , vd ) . normalized ( ) ,
K Global: : locale ( ) - > formatNumber ( i , vnfrac ) ,
TDE Global: : locale ( ) - > formatNumber ( i , vnfrac ) ,
AlignBottom | AlignLeft
) ;
} ;
@ -351,8 +351,8 @@ TQString PolarCoords::fromScreen( const Coordinate& pt, const KigDocument& d ) c
double r = pt . length ( ) ;
double theta = Goniometry : : convert ( atan2 ( pt . y , pt . x ) , Goniometry : : Rad , Goniometry : : Deg ) ;
TQString rs = K Global: : locale ( ) - > formatNumber ( r , l ) ;
TQString ts = K Global: : locale ( ) - > formatNumber ( theta , 0 ) ;
TQString rs = TDE Global: : locale ( ) - > formatNumber ( r , l ) ;
TQString ts = TDE Global: : locale ( ) - > formatNumber ( theta , 0 ) ;
return TQString : : fromLatin1 ( " ( %1; %2ยฐ ) " ) . arg ( rs ) . arg ( ts ) ;
}
@ -378,11 +378,11 @@ Coordinate PolarCoords::toScreen(const TQString& s, bool& ok) const
if ( ok )
{
TQString rs = regexp . cap ( 1 ) ;
double r = K Global: : locale ( ) - > readNumber ( rs , & ok ) ;
double r = TDE Global: : locale ( ) - > readNumber ( rs , & ok ) ;
if ( ! ok ) r = rs . toDouble ( & ok ) ;
if ( ! ok ) return Coordinate ( ) ;
TQString ts = regexp . cap ( 2 ) ;
double theta = K Global: : locale ( ) - > readNumber ( ts , & ok ) ;
double theta = TDE Global: : locale ( ) - > readNumber ( ts , & ok ) ;
if ( ! ok ) theta = ts . toDouble ( & ok ) ;
if ( ! ok ) return Coordinate ( ) ;
theta * = M_PI ;
@ -465,7 +465,7 @@ void PolarCoords::drawGrid( KigPainter& p, bool showgrid, bool showaxes ) const
// through the 0 etc. )
if ( fabs ( i ) < 1e-8 ) continue ;
TQString is = K Global: : locale ( ) - > formatNumber ( fabs ( i ) , nfrac ) ;
TQString is = TDE Global: : locale ( ) - > formatNumber ( fabs ( i ) , nfrac ) ;
p . drawText (
Rect ( Coordinate ( i , 0 ) , hd , - 2 * vd ) . normalized ( ) ,
is , AlignLeft | AlignTop ) ;
@ -475,7 +475,7 @@ void PolarCoords::drawGrid( KigPainter& p, bool showgrid, bool showaxes ) const
{
if ( fabs ( i ) < 1e-8 ) continue ;
TQString is = K Global: : locale ( ) - > formatNumber ( fabs ( i ) , nfrac ) ;
TQString is = TDE Global: : locale ( ) - > formatNumber ( fabs ( i ) , nfrac ) ;
p . drawText ( Rect ( Coordinate ( 0 , i ) , hd , vd ) . normalized ( ) ,
is , AlignBottom | AlignLeft