summaryrefslogtreecommitdiffstats
path: root/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp')
-rw-r--r--tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp b/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp
index 86037c9dd..b40b778da 100644
--- a/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp
+++ b/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp
@@ -177,26 +177,26 @@ void KDEVDLG2UI::writeColor( const TQString& name, const TQString& value )
void KDEVDLG2UI::writeStyles( const TQStringList styles, bool isFrame )
{
if ( isFrame ) {
- bool defineFrame = FALSE;
+ bool defineFrame = false;
TQString shadow = "NoFrame";
TQString shape = "StyledPanel";
int width = 2;
if ( styles.contains( "WS_EX_STATICEDGE" ) ) {
shadow = "Plain";
width = 1;
- defineFrame = TRUE;
+ defineFrame = true;
}
if ( styles.contains( "WS_EX_CLIENTEDGE" ) ) {
shadow = "Sunken";
- defineFrame = TRUE;
+ defineFrame = true;
}
if ( styles.contains( "WS_EX_DLGMODALFRAME" ) ) {
shadow = "Raised";
- defineFrame = TRUE;
+ defineFrame = true;
}
if ( !styles.contains( "WS_BORDER" ) ) {
shape = "NoFrame";
- defineFrame = TRUE;
+ defineFrame = true;
}
if ( defineFrame ) {
@@ -207,11 +207,11 @@ void KDEVDLG2UI::writeStyles( const TQStringList styles, bool isFrame )
}
if ( styles.contains("WS_DISABLED") )
- writeBool("enabled", FALSE );
+ writeBool("enabled", false );
if ( styles.contains("WS_EX_ACCEPTFILES") )
- writeBool("acceptDrops", TRUE );
+ writeBool("acceptDrops", true );
if ( styles.contains("WS_EX_TRANSPARENT") )
- writeBool("autoMask", TRUE );
+ writeBool("autoMask", true );
if ( !styles.contains("WS_TABSTOP") )
writeEnum("focusPolicy", "NoFocus");
}
@@ -223,7 +223,7 @@ void KDEVDLG2UI::writeStyles( const TQStringList styles, bool isFrame )
KDEVDLG2UI::KDEVDLG2UI( TQTextStream* input, const TQString& name )
{
className = name;
- writeToFile = TRUE;
+ writeToFile = true;
in = input;
indentation = 0;
out = 0;
@@ -263,7 +263,7 @@ bool KDEVDLG2UI::parse()
delete out;
out = 0;
- return TRUE;
+ return true;
}
/*!
@@ -271,7 +271,7 @@ bool KDEVDLG2UI::parse()
*/
bool KDEVDLG2UI::parse( TQStringList& get )
{
- writeToFile = FALSE;
+ writeToFile = false;
bool result = parse();
get = target;
return result;
@@ -322,7 +322,7 @@ bool KDEVDLG2UI::writeDialog( const TQString& name )
TQString family = font.section("\"", 1, 1 );
int pointSize = font.section("\"", 3, 3 ).toInt();
//int weight = font.section("\"", 5, 5 ).toInt();
- //bool italic = ( font.section("\"", 7, 7 ) == "TRUE" );
+ //bool italic = ( font.section("\"", 7, 7 ) == "true" );
writeFont( family, pointSize ); // weight, italic ?
} else if ( line.left( 9 ) == "IsEnabled" ) {
bool isEnabled =
@@ -519,6 +519,6 @@ bool KDEVDLG2UI::writeDialog( const TQString& name )
//}
}
*out << "</UI>" << endl;
- return TRUE;
+ return true;
}