/*****************************************************
**
**   WesternCalculationPanel   ---   setData
**
******************************************************/
void WesternCalculationPanel::setData()
{
	choice_whouse->SetSelection( config->wHouseSystem ? config->wHouseSystem -1 : 0 );
	choice_wnode->SetSelection( config->wLunarNodeMode );
	// Ayanamsa not needed

	choice_yl->SetSelection( config->wYearLength );
	text_custom_yl->SetValue( printfDouble( config->wCustomYearLength ));
	text_custom_yl->Enable( choice_yl->GetSelection() == 4 );
}
Exemplo n.º 2
0
/*****************************************************
**
**   VargaPanel   ---   setData
**
******************************************************/
void VargaPanel::setData()
{
    // Left
    choice_tempfriend->SetSelection( config->tempFriendBasedOnVarga ? 1 : 0 );
    choice_hora->SetSelection( config->vVargaHoraMode );
    choice_drekkana->SetSelection( config->vVargaDrekkanaMode );
    choice_chaturtamsa->SetSelection( config->vVargaChaturtamsaMode );

    // Right
    choice_naks->SetSelection( config->vNakshatraMode28 );
    choice_nakdasa->SetSelection( config->vNakshatraPortionMode );
    choice_kala->SetSelection( config->vKalachakraMode );

    choice_yl->SetSelection( config->vYearLength );
    text_custom_yl->SetValue( printfDouble( config->vCustomYearLength ));
    text_custom_yl->Enable( choice_yl->GetSelection() == 4 );
}
/*****************************************************
**
**   DoubleInputField   ---   setDoubleValue
**
******************************************************/
void DoubleInputField::setDoubleValue( const double &v )
{
	value = v;
	SetValue( printfDouble( value ));
}