|
|
@ -120,29 +120,29 @@ void StructureWidget::refreshSection( Kudesigner::Band *section, StructureItem *
|
|
|
|
switch ( section->rtti() )
|
|
|
|
switch ( section->rtti() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case Kudesigner::Rtti_ReportHeader:
|
|
|
|
case Kudesigner::Rtti_ReportHeader:
|
|
|
|
name = tqtr( "Report Header" );
|
|
|
|
name = tr( "Report Header" );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_ReportFooter:
|
|
|
|
case Kudesigner::Rtti_ReportFooter:
|
|
|
|
name = tqtr( "Report Footer" );
|
|
|
|
name = tr( "Report Footer" );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_PageFooter:
|
|
|
|
case Kudesigner::Rtti_PageFooter:
|
|
|
|
name = tqtr( "Page Footer" );
|
|
|
|
name = tr( "Page Footer" );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_PageHeader:
|
|
|
|
case Kudesigner::Rtti_PageHeader:
|
|
|
|
name = tqtr( "Page Header" );
|
|
|
|
name = tr( "Page Header" );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_Detail:
|
|
|
|
case Kudesigner::Rtti_Detail:
|
|
|
|
name = tqtr( "Detail" );
|
|
|
|
name = tr( "Detail" );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_DetailHeader:
|
|
|
|
case Kudesigner::Rtti_DetailHeader:
|
|
|
|
name = tqtr( "Detail Header" );
|
|
|
|
name = tr( "Detail Header" );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_DetailFooter:
|
|
|
|
case Kudesigner::Rtti_DetailFooter:
|
|
|
|
name = tqtr( "Detail Footer" );
|
|
|
|
name = tr( "Detail Footer" );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( level > 0 )
|
|
|
|
if ( level > 0 )
|
|
|
|
name += tqtr( " (level %1)" ).arg( level );
|
|
|
|
name += tr( " (level %1)" ).arg( level );
|
|
|
|
StructureItem *item = new StructureItem( root, name );
|
|
|
|
StructureItem *item = new StructureItem( root, name );
|
|
|
|
m_items[ section ] = item;
|
|
|
|
m_items[ section ] = item;
|
|
|
|
|
|
|
|
|
|
|
@ -165,21 +165,21 @@ void StructureWidget::refreshSectionContents( Kudesigner::Band *section, Structu
|
|
|
|
switch ( box->rtti() )
|
|
|
|
switch ( box->rtti() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case Kudesigner::Rtti_Label:
|
|
|
|
case Kudesigner::Rtti_Label:
|
|
|
|
name = tqtr( "Label: %1" ).arg( box->props[ "Text" ].value().toString() );
|
|
|
|
name = tr( "Label: %1" ).arg( box->props[ "Text" ].value().toString() );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_Field:
|
|
|
|
case Kudesigner::Rtti_Field:
|
|
|
|
name = tqtr( "Field: %1" ).arg( box->props[ "Field" ].value().toString() );
|
|
|
|
name = tr( "Field: %1" ).arg( box->props[ "Field" ].value().toString() );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_Calculated:
|
|
|
|
case Kudesigner::Rtti_Calculated:
|
|
|
|
name = tqtr( "Calculated Field: %1" ).arg( box->props[ "Field" ].value().toString() );
|
|
|
|
name = tr( "Calculated Field: %1" ).arg( box->props[ "Field" ].value().toString() );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_Special:
|
|
|
|
case Kudesigner::Rtti_Special:
|
|
|
|
idx = box->props[ "Type" ].listData()->keys.findIndex(
|
|
|
|
idx = box->props[ "Type" ].listData()->keys.findIndex(
|
|
|
|
box->props[ "Type" ].value().toInt() );
|
|
|
|
box->props[ "Type" ].value().toInt() );
|
|
|
|
name = tqtr( "Special Field: %1" ).arg( box->props[ "Type" ].listData()->keys[ idx ].toString() );
|
|
|
|
name = tr( "Special Field: %1" ).arg( box->props[ "Type" ].listData()->keys[ idx ].toString() );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Kudesigner::Rtti_Line:
|
|
|
|
case Kudesigner::Rtti_Line:
|
|
|
|
name = tqtr( "Line" );
|
|
|
|
name = tr( "Line" );
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|