|
|
|
@ -114,7 +114,7 @@ void KDStream::flush()
|
|
|
|
|
*/
|
|
|
|
|
KDStream& KDStream::operator<<( bool b )
|
|
|
|
|
{
|
|
|
|
|
_output += ( b ? TQString::tqfromLatin1("true") : TQString::tqfromLatin1("false") );
|
|
|
|
|
_output += ( b ? TQString::fromLatin1("true") : TQString::fromLatin1("false") );
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -123,7 +123,7 @@ KDStream& KDStream::operator<<( bool b )
|
|
|
|
|
*/
|
|
|
|
|
KDStream& KDStream::operator<<( char ch )
|
|
|
|
|
{
|
|
|
|
|
_output += TQString::tqfromLatin1("%1").tqarg( ch );
|
|
|
|
|
_output += TQString::fromLatin1("%1").tqarg( ch );
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -261,7 +261,7 @@ KDStream& KDStream::operator<<( KDSTREAMFUNC func )
|
|
|
|
|
*/
|
|
|
|
|
KDStream& endl( KDStream& stream)
|
|
|
|
|
{
|
|
|
|
|
stream << TQString::tqfromLatin1("\n");
|
|
|
|
|
stream << TQString::fromLatin1("\n");
|
|
|
|
|
stream.flush();
|
|
|
|
|
return stream;
|
|
|
|
|
}
|
|
|
|
@ -302,20 +302,20 @@ KDStream& KDStream::operator<<( const TQColor& col )
|
|
|
|
|
KDStream& KDStream::operator<<( const TQColorGroup& colgrp )
|
|
|
|
|
{
|
|
|
|
|
_output +=
|
|
|
|
|
TQString::tqfromLatin1("foreground: ") + TQColor2Str(colgrp.foreground()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("button: ") + TQColor2Str(colgrp.button()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("light: ") + TQColor2Str(colgrp.light()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("dark: ") + TQColor2Str(colgrp.dark()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("mid: ") + TQColor2Str(colgrp.mid()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("text: ") + TQColor2Str(colgrp.text()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("base: ") + TQColor2Str(colgrp.base()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("background: ") + TQColor2Str(colgrp.background()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("midlight: ") + TQColor2Str(colgrp.midlight()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("brightText: ") + TQColor2Str(colgrp.brightText()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("buttonText: ") + TQColor2Str(colgrp.buttonText()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("shadow: ") + TQColor2Str(colgrp.shadow()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("highlight: ") + TQColor2Str(colgrp.highlight()) + TQString::tqfromLatin1(", ") +
|
|
|
|
|
TQString::tqfromLatin1("highlightedText: ") + TQColor2Str(colgrp.highlightedText());
|
|
|
|
|
TQString::fromLatin1("foreground: ") + TQColor2Str(colgrp.foreground()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("button: ") + TQColor2Str(colgrp.button()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("light: ") + TQColor2Str(colgrp.light()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("dark: ") + TQColor2Str(colgrp.dark()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("mid: ") + TQColor2Str(colgrp.mid()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("text: ") + TQColor2Str(colgrp.text()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("base: ") + TQColor2Str(colgrp.base()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("background: ") + TQColor2Str(colgrp.background()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("midlight: ") + TQColor2Str(colgrp.midlight()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("brightText: ") + TQColor2Str(colgrp.brightText()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("buttonText: ") + TQColor2Str(colgrp.buttonText()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("shadow: ") + TQColor2Str(colgrp.shadow()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("highlight: ") + TQColor2Str(colgrp.highlight()) + TQString::fromLatin1(", ") +
|
|
|
|
|
TQString::fromLatin1("highlightedText: ") + TQColor2Str(colgrp.highlightedText());
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -325,9 +325,9 @@ KDStream& KDStream::operator<<( const TQColorGroup& colgrp )
|
|
|
|
|
*/
|
|
|
|
|
KDStream& KDStream::operator<<( const TQPalette& palette )
|
|
|
|
|
{
|
|
|
|
|
*this << TQString::tqfromLatin1("active: ") << palette.active() << endl
|
|
|
|
|
<< TQString::tqfromLatin1("inactive: ") << palette.inactive() << endl
|
|
|
|
|
<< TQString::tqfromLatin1("diabled: ") << palette.disabled();
|
|
|
|
|
*this << TQString::fromLatin1("active: ") << palette.active() << endl
|
|
|
|
|
<< TQString::fromLatin1("inactive: ") << palette.inactive() << endl
|
|
|
|
|
<< TQString::fromLatin1("diabled: ") << palette.disabled();
|
|
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
@ -341,22 +341,22 @@ KDStream& KDStream::operator<<( const TQCursor& cursor )
|
|
|
|
|
|
|
|
|
|
TQString type;
|
|
|
|
|
switch ( cursor.tqshape() ) {
|
|
|
|
|
case TQt::ArrowCursor: type = TQString::tqfromLatin1("ArrowCursor"); break;
|
|
|
|
|
case TQt::UpArrowCursor: type = TQString::tqfromLatin1("UpArrowCursor"); break;
|
|
|
|
|
case TQt::CrossCursor: type = TQString::tqfromLatin1("CrossCursor"); break;
|
|
|
|
|
case TQt::WaitCursor: type = TQString::tqfromLatin1("WaitCursor"); break;
|
|
|
|
|
case TQt::IbeamCursor: type = TQString::tqfromLatin1("IbeamCursor"); break;
|
|
|
|
|
case TQt::SizeVerCursor: type = TQString::tqfromLatin1("SizeVerCursor"); break;
|
|
|
|
|
case TQt::SizeHorCursor: type = TQString::tqfromLatin1("SizeHorCursor"); break;
|
|
|
|
|
case TQt::SizeBDiagCursor: type = TQString::tqfromLatin1("SizeBDiagCursor"); break;
|
|
|
|
|
case TQt::SizeFDiagCursor: type = TQString::tqfromLatin1("SizeFDiagCursor"); break;
|
|
|
|
|
case TQt::SizeAllCursor: type = TQString::tqfromLatin1("SizeAllCursor"); break;
|
|
|
|
|
case TQt::BlankCursor: type = TQString::tqfromLatin1("BlankCursor"); break;
|
|
|
|
|
case TQt::SplitVCursor: type = TQString::tqfromLatin1("SplitVCursor"); break;
|
|
|
|
|
case TQt::SplitHCursor: type = TQString::tqfromLatin1("SplitHCursor"); break;
|
|
|
|
|
case TQt::PointingHandCursor: type = TQString::tqfromLatin1("PointingHandCursor"); break;
|
|
|
|
|
case TQt::ForbiddenCursor: type = TQString::tqfromLatin1("ForbiddenCursor"); break;
|
|
|
|
|
case TQt::BitmapCursor: type = TQString::tqfromLatin1("BitmapCursor"); break;
|
|
|
|
|
case TQt::ArrowCursor: type = TQString::fromLatin1("ArrowCursor"); break;
|
|
|
|
|
case TQt::UpArrowCursor: type = TQString::fromLatin1("UpArrowCursor"); break;
|
|
|
|
|
case TQt::CrossCursor: type = TQString::fromLatin1("CrossCursor"); break;
|
|
|
|
|
case TQt::WaitCursor: type = TQString::fromLatin1("WaitCursor"); break;
|
|
|
|
|
case TQt::IbeamCursor: type = TQString::fromLatin1("IbeamCursor"); break;
|
|
|
|
|
case TQt::SizeVerCursor: type = TQString::fromLatin1("SizeVerCursor"); break;
|
|
|
|
|
case TQt::SizeHorCursor: type = TQString::fromLatin1("SizeHorCursor"); break;
|
|
|
|
|
case TQt::SizeBDiagCursor: type = TQString::fromLatin1("SizeBDiagCursor"); break;
|
|
|
|
|
case TQt::SizeFDiagCursor: type = TQString::fromLatin1("SizeFDiagCursor"); break;
|
|
|
|
|
case TQt::SizeAllCursor: type = TQString::fromLatin1("SizeAllCursor"); break;
|
|
|
|
|
case TQt::BlankCursor: type = TQString::fromLatin1("BlankCursor"); break;
|
|
|
|
|
case TQt::SplitVCursor: type = TQString::fromLatin1("SplitVCursor"); break;
|
|
|
|
|
case TQt::SplitHCursor: type = TQString::fromLatin1("SplitHCursor"); break;
|
|
|
|
|
case TQt::PointingHandCursor: type = TQString::fromLatin1("PointingHandCursor"); break;
|
|
|
|
|
case TQt::ForbiddenCursor: type = TQString::fromLatin1("ForbiddenCursor"); break;
|
|
|
|
|
case TQt::BitmapCursor: type = TQString::fromLatin1("BitmapCursor"); break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_output += type;
|
|
|
|
@ -412,16 +412,16 @@ KDStream& KDStream::operator<<( const TQPen& pen )
|
|
|
|
|
{
|
|
|
|
|
TQString style;
|
|
|
|
|
switch ( pen.style() ) {
|
|
|
|
|
case TQt::NoPen: style = TQString::tqfromLatin1("NoPen"); break;
|
|
|
|
|
case TQt::SolidLine: style = TQString::tqfromLatin1("SolidLine"); break;
|
|
|
|
|
case TQt::DashLine: style = TQString::tqfromLatin1("DashLine"); break;
|
|
|
|
|
case TQt::DotLine: style = TQString::tqfromLatin1("DotLine"); break;
|
|
|
|
|
case TQt::DashDotLine: style = TQString::tqfromLatin1("DashDotLine"); break;
|
|
|
|
|
case TQt::DashDotDotLine : style = TQString::tqfromLatin1("DashDotDotLine "); break;
|
|
|
|
|
case TQt::NoPen: style = TQString::fromLatin1("NoPen"); break;
|
|
|
|
|
case TQt::SolidLine: style = TQString::fromLatin1("SolidLine"); break;
|
|
|
|
|
case TQt::DashLine: style = TQString::fromLatin1("DashLine"); break;
|
|
|
|
|
case TQt::DotLine: style = TQString::fromLatin1("DotLine"); break;
|
|
|
|
|
case TQt::DashDotLine: style = TQString::fromLatin1("DashDotLine"); break;
|
|
|
|
|
case TQt::DashDotDotLine : style = TQString::fromLatin1("DashDotDotLine "); break;
|
|
|
|
|
case TQt::MPenStyle : break; // ignore
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_output += TQString::tqfromLatin1("TQPen(%1,%2,%3)")
|
|
|
|
|
_output += TQString::fromLatin1("TQPen(%1,%2,%3)")
|
|
|
|
|
.tqarg( pen.width() )
|
|
|
|
|
.tqarg( TQColor2Str( pen.color() ) )
|
|
|
|
|
.tqarg( style );
|
|
|
|
@ -433,7 +433,7 @@ KDStream& KDStream::operator<<( const TQPen& pen )
|
|
|
|
|
*/
|
|
|
|
|
KDStream& KDStream::operator<<( const TQPoint& point )
|
|
|
|
|
{
|
|
|
|
|
_output += TQString::tqfromLatin1("(%1,%2)").tqarg(point.x()).tqarg(point.y() );
|
|
|
|
|
_output += TQString::fromLatin1("(%1,%2)").tqarg(point.x()).tqarg(point.y() );
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -442,7 +442,7 @@ KDStream& KDStream::operator<<( const TQPoint& point )
|
|
|
|
|
*/
|
|
|
|
|
KDStream& KDStream::operator<<( const TQSize& size )
|
|
|
|
|
{
|
|
|
|
|
_output += TQString::tqfromLatin1("%1x%2").tqarg(size.width()).tqarg(size.height());
|
|
|
|
|
_output += TQString::fromLatin1("%1x%2").tqarg(size.width()).tqarg(size.height());
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -452,9 +452,9 @@ KDStream& KDStream::operator<<( const TQSize& size )
|
|
|
|
|
*/
|
|
|
|
|
KDStream& KDStream::operator<<( const TQRect& rect )
|
|
|
|
|
{
|
|
|
|
|
TQString xplus = (rect.x() >= 0) ? TQString::tqfromLatin1("+") : TQString::tqfromLatin1("");
|
|
|
|
|
TQString yplus = (rect.y() >= 0) ? TQString::tqfromLatin1("+") : TQString::tqfromLatin1("");
|
|
|
|
|
_output += TQString::tqfromLatin1("%1x%2%3%4%5%6")
|
|
|
|
|
TQString xplus = (rect.x() >= 0) ? TQString::fromLatin1("+") : TQString::fromLatin1("");
|
|
|
|
|
TQString yplus = (rect.y() >= 0) ? TQString::fromLatin1("+") : TQString::fromLatin1("");
|
|
|
|
|
_output += TQString::fromLatin1("%1x%2%3%4%5%6")
|
|
|
|
|
.tqarg( rect.width() )
|
|
|
|
|
.tqarg( rect.height() )
|
|
|
|
|
.tqarg( xplus )
|
|
|
|
@ -474,43 +474,43 @@ KDStream& KDStream::operator<<( const TQRect& rect )
|
|
|
|
|
TQString KDStream::TQColor2Str( const TQColor& col )
|
|
|
|
|
{
|
|
|
|
|
if ( col == TQt::black )
|
|
|
|
|
return TQString::tqfromLatin1("black");
|
|
|
|
|
return TQString::fromLatin1("black");
|
|
|
|
|
else if ( col == TQt::white )
|
|
|
|
|
return TQString::tqfromLatin1("white");
|
|
|
|
|
return TQString::fromLatin1("white");
|
|
|
|
|
else if ( col == TQt::darkGray )
|
|
|
|
|
return TQString::tqfromLatin1("darkGray");
|
|
|
|
|
return TQString::fromLatin1("darkGray");
|
|
|
|
|
else if ( col == TQt::gray )
|
|
|
|
|
return TQString::tqfromLatin1("gray");
|
|
|
|
|
return TQString::fromLatin1("gray");
|
|
|
|
|
else if ( col == TQt::lightGray )
|
|
|
|
|
return TQString::tqfromLatin1("lightGray");
|
|
|
|
|
return TQString::fromLatin1("lightGray");
|
|
|
|
|
else if ( col == TQt::red )
|
|
|
|
|
return TQString::tqfromLatin1("red");
|
|
|
|
|
return TQString::fromLatin1("red");
|
|
|
|
|
else if ( col == TQt::green )
|
|
|
|
|
return TQString::tqfromLatin1("green");
|
|
|
|
|
return TQString::fromLatin1("green");
|
|
|
|
|
else if ( col == TQt::blue )
|
|
|
|
|
return TQString::tqfromLatin1("blue");
|
|
|
|
|
return TQString::fromLatin1("blue");
|
|
|
|
|
else if ( col == TQt::cyan )
|
|
|
|
|
return TQString::tqfromLatin1("cyan");
|
|
|
|
|
return TQString::fromLatin1("cyan");
|
|
|
|
|
else if ( col == TQt::magenta )
|
|
|
|
|
return TQString::tqfromLatin1("magenta");
|
|
|
|
|
return TQString::fromLatin1("magenta");
|
|
|
|
|
else if ( col == TQt::yellow )
|
|
|
|
|
return TQString::tqfromLatin1("yellow");
|
|
|
|
|
return TQString::fromLatin1("yellow");
|
|
|
|
|
else if ( col == TQt::darkRed )
|
|
|
|
|
return TQString::tqfromLatin1("darkRed");
|
|
|
|
|
return TQString::fromLatin1("darkRed");
|
|
|
|
|
else if ( col == TQt::darkGreen )
|
|
|
|
|
return TQString::tqfromLatin1("darkGreen");
|
|
|
|
|
return TQString::fromLatin1("darkGreen");
|
|
|
|
|
else if ( col == TQt::darkBlue )
|
|
|
|
|
return TQString::tqfromLatin1("darkBlue");
|
|
|
|
|
return TQString::fromLatin1("darkBlue");
|
|
|
|
|
else if ( col == TQt::darkCyan )
|
|
|
|
|
return TQString::tqfromLatin1("darkCyan");
|
|
|
|
|
return TQString::fromLatin1("darkCyan");
|
|
|
|
|
else if ( col == TQt::darkMagenta )
|
|
|
|
|
return TQString::tqfromLatin1("darkMagenta");
|
|
|
|
|
return TQString::fromLatin1("darkMagenta");
|
|
|
|
|
else if ( col == TQt::darkYellow )
|
|
|
|
|
return TQString::tqfromLatin1("darkYellow");
|
|
|
|
|
return TQString::fromLatin1("darkYellow");
|
|
|
|
|
else if ( col == TQt::color0 )
|
|
|
|
|
return TQString::tqfromLatin1("color0");
|
|
|
|
|
return TQString::fromLatin1("color0");
|
|
|
|
|
else if ( col == TQt::color1 )
|
|
|
|
|
return TQString::tqfromLatin1("color1");
|
|
|
|
|
return TQString::fromLatin1("color1");
|
|
|
|
|
else
|
|
|
|
|
return col.name();
|
|
|
|
|
}
|
|
|
|
@ -521,17 +521,17 @@ TQString KDStream::TQColor2Str( const TQColor& col )
|
|
|
|
|
*/
|
|
|
|
|
KDStream& KDStream::operator<<( const TQObject& obj )
|
|
|
|
|
{
|
|
|
|
|
*this << TQString::tqfromLatin1(obj.className()) + TQString::tqfromLatin1("(") + TQString::tqfromLatin1(obj.name()) << TQString::tqfromLatin1("):")<< endl;
|
|
|
|
|
TQMetaObject* meta = obj.tqmetaObject();
|
|
|
|
|
*this << TQString::fromLatin1(obj.className()) + TQString::fromLatin1("(") + TQString::fromLatin1(obj.name()) << TQString::fromLatin1("):")<< endl;
|
|
|
|
|
TQMetaObject* meta = obj.metaObject();
|
|
|
|
|
TQStrList props = meta->propertyNames(true);
|
|
|
|
|
|
|
|
|
|
unsigned int maxWidth = 0;
|
|
|
|
|
for ( TQStrListIterator it(props) ; *it; ++it ) {
|
|
|
|
|
maxWidth = TQMAX( maxWidth, TQString::tqfromLatin1(*it).length() );
|
|
|
|
|
maxWidth = TQMAX( maxWidth, TQString::fromLatin1(*it).length() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for ( TQStrListIterator it2(props) ; *it2; ++it2 ) {
|
|
|
|
|
*this << TQString::tqfromLatin1(" ") << TQString::tqfromLatin1(*it2).leftJustify(maxWidth) << TQString::tqfromLatin1(": [") << obj.property(*it2) << TQString::tqfromLatin1("]") << endl;
|
|
|
|
|
*this << TQString::fromLatin1(" ") << TQString::fromLatin1(*it2).leftJustify(maxWidth) << TQString::fromLatin1(": [") << obj.property(*it2) << TQString::fromLatin1("]") << endl;
|
|
|
|
|
}
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
@ -544,7 +544,7 @@ KDStream& KDStream::operator<<( const TQVariant& var)
|
|
|
|
|
{
|
|
|
|
|
switch (var.type() )
|
|
|
|
|
{
|
|
|
|
|
case TQVariant::Invalid: *this << TQString::tqfromLatin1("*INVALID*"); break;
|
|
|
|
|
case TQVariant::Invalid: *this << TQString::fromLatin1("*INVALID*"); break;
|
|
|
|
|
case TQVariant::Map: *this << var.toMap(); break;
|
|
|
|
|
case TQVariant::List: *this << var.toList(); break;
|
|
|
|
|
case TQVariant::String: *this << var.toString(); break;
|
|
|
|
@ -558,7 +558,7 @@ KDStream& KDStream::operator<<( const TQVariant& var)
|
|
|
|
|
case TQVariant::Color: *this << var.toColor(); break;
|
|
|
|
|
case TQVariant::Palette: *this << var.toPalette(); break;
|
|
|
|
|
case TQVariant::ColorGroup: *this << var.toColorGroup(); break;
|
|
|
|
|
case TQVariant::IconSet: *this << TQString::tqfromLatin1("-"); break;
|
|
|
|
|
case TQVariant::IconSet: *this << TQString::fromLatin1("-"); break;
|
|
|
|
|
case TQVariant::Point: *this << var.toPoint(); break;
|
|
|
|
|
case TQVariant::Image: *this << var.toImage(); break;
|
|
|
|
|
case TQVariant::Int: *this << var.toInt(); break;
|
|
|
|
@ -567,8 +567,8 @@ KDStream& KDStream::operator<<( const TQVariant& var)
|
|
|
|
|
case TQVariant::Double: *this << var.toDouble(); break;
|
|
|
|
|
case TQVariant::CString: *this << var.toCString(); break;
|
|
|
|
|
case TQVariant::PointArray: *this << var.toPointArray(); break;
|
|
|
|
|
case TQVariant::Region: *this << TQString::tqfromLatin1("-"); break;
|
|
|
|
|
case TQVariant::Bitmap: *this << TQString::tqfromLatin1("-"); break;
|
|
|
|
|
case TQVariant::Region: *this << TQString::fromLatin1("-"); break;
|
|
|
|
|
case TQVariant::Bitmap: *this << TQString::fromLatin1("-"); break;
|
|
|
|
|
case TQVariant::Cursor: *this << var.toCursor(); break;
|
|
|
|
|
case TQVariant::SizePolicy: *this << var.toSizePolicy(); break;
|
|
|
|
|
case TQVariant::Date: *this << var.toDate(); break;
|
|
|
|
@ -592,24 +592,24 @@ KDStream& KDStream::operator<<( const TQBrush& brush)
|
|
|
|
|
TQString style;
|
|
|
|
|
switch ( brush.style() )
|
|
|
|
|
{
|
|
|
|
|
case TQt::NoBrush: style = TQString::tqfromLatin1("NoBrush"); break;
|
|
|
|
|
case TQt::SolidPattern: style = TQString::tqfromLatin1("SolidPattern"); break;
|
|
|
|
|
case TQt::Dense1Pattern: style = TQString::tqfromLatin1("Dense1Pattern"); break;
|
|
|
|
|
case TQt::Dense2Pattern: style = TQString::tqfromLatin1("Dense2Pattern"); break;
|
|
|
|
|
case TQt::Dense3Pattern: style = TQString::tqfromLatin1("Dense3Pattern"); break;
|
|
|
|
|
case TQt::Dense4Pattern: style = TQString::tqfromLatin1("Dense4Pattern"); break;
|
|
|
|
|
case TQt::Dense5Pattern: style = TQString::tqfromLatin1("Dense5Pattern"); break;
|
|
|
|
|
case TQt::Dense6Pattern: style = TQString::tqfromLatin1("Dense6Pattern"); break;
|
|
|
|
|
case TQt::Dense7Pattern: style = TQString::tqfromLatin1("Dense7Pattern"); break;
|
|
|
|
|
case TQt::HorPattern: style = TQString::tqfromLatin1("HorPattern"); break;
|
|
|
|
|
case TQt::VerPattern: style = TQString::tqfromLatin1("VerPattern"); break;
|
|
|
|
|
case TQt::CrossPattern: style = TQString::tqfromLatin1("CrossPattern"); break;
|
|
|
|
|
case TQt::BDiagPattern: style = TQString::tqfromLatin1("BDiagPattern"); break;
|
|
|
|
|
case TQt::FDiagPattern: style = TQString::tqfromLatin1("FDiagPattern"); break;
|
|
|
|
|
case TQt::DiagCrossPattern: style = TQString::tqfromLatin1("DiagCrossPattern"); break;
|
|
|
|
|
case TQt::CustomPattern: style = TQString::tqfromLatin1("CustomPattern"); break;
|
|
|
|
|
case TQt::NoBrush: style = TQString::fromLatin1("NoBrush"); break;
|
|
|
|
|
case TQt::SolidPattern: style = TQString::fromLatin1("SolidPattern"); break;
|
|
|
|
|
case TQt::Dense1Pattern: style = TQString::fromLatin1("Dense1Pattern"); break;
|
|
|
|
|
case TQt::Dense2Pattern: style = TQString::fromLatin1("Dense2Pattern"); break;
|
|
|
|
|
case TQt::Dense3Pattern: style = TQString::fromLatin1("Dense3Pattern"); break;
|
|
|
|
|
case TQt::Dense4Pattern: style = TQString::fromLatin1("Dense4Pattern"); break;
|
|
|
|
|
case TQt::Dense5Pattern: style = TQString::fromLatin1("Dense5Pattern"); break;
|
|
|
|
|
case TQt::Dense6Pattern: style = TQString::fromLatin1("Dense6Pattern"); break;
|
|
|
|
|
case TQt::Dense7Pattern: style = TQString::fromLatin1("Dense7Pattern"); break;
|
|
|
|
|
case TQt::HorPattern: style = TQString::fromLatin1("HorPattern"); break;
|
|
|
|
|
case TQt::VerPattern: style = TQString::fromLatin1("VerPattern"); break;
|
|
|
|
|
case TQt::CrossPattern: style = TQString::fromLatin1("CrossPattern"); break;
|
|
|
|
|
case TQt::BDiagPattern: style = TQString::fromLatin1("BDiagPattern"); break;
|
|
|
|
|
case TQt::FDiagPattern: style = TQString::fromLatin1("FDiagPattern"); break;
|
|
|
|
|
case TQt::DiagCrossPattern: style = TQString::fromLatin1("DiagCrossPattern"); break;
|
|
|
|
|
case TQt::CustomPattern: style = TQString::fromLatin1("CustomPattern"); break;
|
|
|
|
|
}
|
|
|
|
|
_output += TQString::tqfromLatin1("TQBrush(%1,%2)").tqarg(style).tqarg(TQColor2Str(brush.color()));
|
|
|
|
|
_output += TQString::fromLatin1("TQBrush(%1,%2)").tqarg(style).tqarg(TQColor2Str(brush.color()));
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -624,26 +624,26 @@ KDStream& KDStream::operator<<( const TQSizePolicy& policy)
|
|
|
|
|
|
|
|
|
|
switch ( policy.horData() )
|
|
|
|
|
{
|
|
|
|
|
case TQSizePolicy::Fixed: hor=TQString::tqfromLatin1("Fixed"); break;
|
|
|
|
|
case TQSizePolicy::Minimum : hor=TQString::tqfromLatin1("Minimum "); break;
|
|
|
|
|
case TQSizePolicy::Maximum: hor=TQString::tqfromLatin1("Maximum"); break;
|
|
|
|
|
case TQSizePolicy::Preferred: hor=TQString::tqfromLatin1("Preferred"); break;
|
|
|
|
|
case TQSizePolicy::MinimumExpanding: hor=TQString::tqfromLatin1("MinimumExpanding"); break;
|
|
|
|
|
case TQSizePolicy::Expanding: hor=TQString::tqfromLatin1("Expanding"); break;
|
|
|
|
|
case TQSizePolicy::Ignored: hor=TQString::tqfromLatin1("Ignored"); break;
|
|
|
|
|
case TQSizePolicy::Fixed: hor=TQString::fromLatin1("Fixed"); break;
|
|
|
|
|
case TQSizePolicy::Minimum : hor=TQString::fromLatin1("Minimum "); break;
|
|
|
|
|
case TQSizePolicy::Maximum: hor=TQString::fromLatin1("Maximum"); break;
|
|
|
|
|
case TQSizePolicy::Preferred: hor=TQString::fromLatin1("Preferred"); break;
|
|
|
|
|
case TQSizePolicy::MinimumExpanding: hor=TQString::fromLatin1("MinimumExpanding"); break;
|
|
|
|
|
case TQSizePolicy::Expanding: hor=TQString::fromLatin1("Expanding"); break;
|
|
|
|
|
case TQSizePolicy::Ignored: hor=TQString::fromLatin1("Ignored"); break;
|
|
|
|
|
}
|
|
|
|
|
switch ( policy.verData() )
|
|
|
|
|
{
|
|
|
|
|
case TQSizePolicy::Fixed: ver=TQString::tqfromLatin1("Fixed"); break;
|
|
|
|
|
case TQSizePolicy::Minimum : ver=TQString::tqfromLatin1("Minimum "); break;
|
|
|
|
|
case TQSizePolicy::Maximum: ver=TQString::tqfromLatin1("Maximum"); break;
|
|
|
|
|
case TQSizePolicy::Preferred: ver=TQString::tqfromLatin1("Preferred"); break;
|
|
|
|
|
case TQSizePolicy::MinimumExpanding: ver=TQString::tqfromLatin1("MinimumExpanding"); break;
|
|
|
|
|
case TQSizePolicy::Expanding: ver=TQString::tqfromLatin1("Expanding"); break;
|
|
|
|
|
case TQSizePolicy::Ignored: ver=TQString::tqfromLatin1("Ignored"); break;
|
|
|
|
|
case TQSizePolicy::Fixed: ver=TQString::fromLatin1("Fixed"); break;
|
|
|
|
|
case TQSizePolicy::Minimum : ver=TQString::fromLatin1("Minimum "); break;
|
|
|
|
|
case TQSizePolicy::Maximum: ver=TQString::fromLatin1("Maximum"); break;
|
|
|
|
|
case TQSizePolicy::Preferred: ver=TQString::fromLatin1("Preferred"); break;
|
|
|
|
|
case TQSizePolicy::MinimumExpanding: ver=TQString::fromLatin1("MinimumExpanding"); break;
|
|
|
|
|
case TQSizePolicy::Expanding: ver=TQString::fromLatin1("Expanding"); break;
|
|
|
|
|
case TQSizePolicy::Ignored: ver=TQString::fromLatin1("Ignored"); break;
|
|
|
|
|
}
|
|
|
|
|
TQString hforw = policy.hasHeightForWidth() ? TQString::tqfromLatin1("true") : TQString::tqfromLatin1("false");
|
|
|
|
|
_output += TQString::tqfromLatin1("TQSizePolicy(hor=%1,ver=%2, hasHeightForWidth=%3)")
|
|
|
|
|
TQString hforw = policy.hasHeightForWidth() ? TQString::fromLatin1("true") : TQString::fromLatin1("false");
|
|
|
|
|
_output += TQString::fromLatin1("TQSizePolicy(hor=%1,ver=%2, hasHeightForWidth=%3)")
|
|
|
|
|
.tqarg(hor).tqarg(ver).tqarg(hforw);
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|