Formatting.
This commit is contained in:
parent
f51d227dc7
commit
53a9bdb3af
|
@ -272,15 +272,10 @@ wxString FP_TEXT_GRID_TABLE::GetValue( int aRow, int aCol )
|
|||
switch( aCol )
|
||||
{
|
||||
case FPT_NAME: return field.GetName();
|
||||
|
||||
case FPT_VALUE: return field.GetText();
|
||||
|
||||
case FPT_WIDTH: return m_frame->StringFromValue( field.GetTextWidth(), true );
|
||||
|
||||
case FPT_HEIGHT: return m_frame->StringFromValue( field.GetTextHeight(), true );
|
||||
|
||||
case FPT_THICKNESS: return m_frame->StringFromValue( field.GetTextThickness(), true );
|
||||
|
||||
case FPT_LAYER: return field.GetLayerName();
|
||||
|
||||
case FPT_ORIENTATION:
|
||||
|
@ -290,7 +285,6 @@ wxString FP_TEXT_GRID_TABLE::GetValue( int aRow, int aCol )
|
|||
}
|
||||
|
||||
case FPT_XOFFSET: return m_frame->StringFromValue( field.GetFPRelativePosition().x, true );
|
||||
|
||||
case FPT_YOFFSET: return m_frame->StringFromValue( field.GetFPRelativePosition().y, true );
|
||||
|
||||
default:
|
||||
|
@ -364,13 +358,9 @@ void FP_TEXT_GRID_TABLE::SetValue( int aRow, int aCol, const wxString &aValue )
|
|||
switch( aCol )
|
||||
{
|
||||
case FPT_NAME: field.SetName( value ); break;
|
||||
|
||||
case FPT_VALUE: field.SetText( value ); break;
|
||||
|
||||
case FPT_WIDTH: field.SetTextWidth( m_frame->ValueFromString( value ) ); break;
|
||||
|
||||
case FPT_HEIGHT: field.SetTextHeight( m_frame->ValueFromString( value ) ); break;
|
||||
|
||||
case FPT_THICKNESS: field.SetTextThickness( m_frame->ValueFromString( value ) ); break;
|
||||
|
||||
case FPT_ORIENTATION:
|
||||
|
@ -406,11 +396,8 @@ void FP_TEXT_GRID_TABLE::SetValueAsBool( int aRow, int aCol, bool aValue )
|
|||
switch( aCol )
|
||||
{
|
||||
case FPT_SHOWN: field.SetVisible( aValue ); break;
|
||||
|
||||
case FPT_ITALIC: field.SetItalic( aValue ); break;
|
||||
|
||||
case FPT_UPRIGHT: field.SetKeepUpright( aValue ); break;
|
||||
|
||||
case FPT_KNOCKOUT: field.SetIsKnockout( aValue ); break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue