void AdaptiveStretchCurveGraphInterface::LoadSettings()
{
   int width = m_width;
   int height = m_height;
   Settings::Read( SettingsKey() + "_GraphWidth", width );
   Settings::Read( SettingsKey() + "_GraphHeight", height );
   if ( width != m_width || height != m_height )
      Resize( width, height );
}
示例#2
0
void AnnotationInterface::SaveSettings() const
{
   Settings::Write( SettingsKey() + "Text", instance.annotationText );
   Settings::Write( SettingsKey() + "ShowLeader", (int)instance.annotationShowLeader );
   Settings::Write( SettingsKey() + "Font", instance.annotationFont );
   Settings::Write( SettingsKey() + "FontSize", (int)instance.annotationFontSize );
   Settings::Write( SettingsKey() + "FontBold", (int)instance.annotationFontBold );
   Settings::Write( SettingsKey() + "FontItalic", (int)instance.annotationFontItalic );
   Settings::Write( SettingsKey() + "FontUnderline", (int)instance.annotationFontUnderline );
   Settings::Write( SettingsKey() + "FontShadow", (int)instance.annotationFontShadow );
   Settings::Write( SettingsKey() + "FontColor", instance.annotationColor );
   Settings::Write( SettingsKey() + "Opacity", instance.annotationOpacity );
}
示例#3
0
void AnnotationInterface::LoadSettings()
{
   Settings::Read( SettingsKey() + "Text", instance.annotationText );

   int boolValue = instance.annotationShowLeader;
   Settings::Read( SettingsKey() + "ShowLeader", boolValue );
   instance.annotationShowLeader = boolValue != 0;

   Settings::Read( SettingsKey() + "Font", instance.annotationFont );

   int fontSize = instance.annotationFontSize;
   Settings::Read( SettingsKey() + "FontSize", fontSize );
   instance.annotationFontSize = (uint8)fontSize;

   boolValue = instance.annotationFontBold;
   Settings::Read( SettingsKey() + "FontBold", boolValue );
   instance.annotationFontBold = boolValue != 0;

   boolValue = instance.annotationFontItalic;
   Settings::Read( SettingsKey() + "FontItalic", boolValue );
   instance.annotationFontItalic = boolValue != 0;

   boolValue = instance.annotationFontUnderline;
   Settings::Read( SettingsKey() + "FontUnderline", boolValue );
   instance.annotationFontUnderline = boolValue != 0;

   boolValue = instance.annotationFontShadow;
   Settings::Read( SettingsKey() + "FontShadow", boolValue );
   instance.annotationFontShadow = boolValue;

   Settings::Read( SettingsKey() + "FontColor", instance.annotationColor );

   int opacity = instance.annotationOpacity;
   Settings::Read( SettingsKey() + "Opacity", opacity );
   instance.annotationOpacity = (uint8)opacity;

   UpdateControls();
}
示例#4
0
unsigned char menuHandler(menuItem* currentMenuItem,unsigned int key)	 //обработка меню
{
	flag_menu_entry=1;
	
	switch (currentMenuItem->Select) 
	{
		case MENU_DEV_SET:
		{	
			SettingsKey(key);
		}
		break; 

		case MENU_CHN1_CAL:
		{
			CalibrationKey(key,0);	
		}
		break;

		case MENU_CHN2_CAL:
		{
			CalibrationKey(key,1);	
		}
		break;

		case MENU_CHN3_CAL:
		{
			CalibrationKey(key,2);	
		}
		break;

		case MENU_CHN4_CAL:
		{
			CalibrationKey(key,3);	
		}
		break;

		case MENU_CHN5_CAL:
		{
			CalibrationKey(key,4);	
		}
		break;

		case MENU_CHN6_CAL:
		{
			CalibrationKey(key,5);	
		}
		break;

		case MENU_CHN7_CAL:
		{
			CalibrationKey(key,6);	
		}
		break;

		case MENU_CHN8_CAL:
		{
			CalibrationKey(key,7);	
		}
		break;

		case MENU_CHN_DOL_CAL:
		{
			CalibrationKey(key,11);	
		}
		break;

		case MENU_CHN_FREQ1_CAL:
		{
			CalibrationKey(key,8);	
		}
		break;

		case MENU_CHN_FREQ2_CAL:
		{
			CalibrationKey(key,9);	
		}
		break;

		case MENU_CHN_FREQ3_CAL:
		{
			CalibrationKey(key,10);	
		}
		break;

		case MENU_CHN_FREQ_HI_CAL:
		{
			CalibrationKey(key,12);	
		}
		break;
	}	
	return 0;
}
void StarGeneratorInterface::LoadSettings()
{
   Settings::Read( SettingsKey() + "StarDatabasePath", instance.starDatabasePath );
   GUI->StarDatabase_Edit.SetText( instance.starDatabasePath );
}
void StarGeneratorInterface::SaveSettings() const
{
   Settings::Write( SettingsKey() + "StarDatabasePath", instance.starDatabasePath );
}
void AdaptiveStretchCurveGraphInterface::SaveSettings() const
{
   Settings::Write( SettingsKey() + "_GraphWidth", m_width );
   Settings::Write( SettingsKey() + "_GraphHeight", m_height );
}