lipsync 

Commit MetaInfo

Revision16 (tree)
Time2009-11-30 20:14:58
Authorkbinani

Log Message

AppManager.SaveData.m_pluginをAppManager.pluginsに移動/bocoree, Boare.Lib.*を最新版に差し替え

Change Summary

Diff

--- trunk/LipSync/LipSync/Editor/AppManager.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/AppManager.cs (revision 16)
@@ -32,6 +32,8 @@
3232 /// </summary>
3333 public static int MaxTelopLanes = 0;
3434 private static bool m_edited;
35+ //[NonSerialized]
36+ public static PluginInfo[] plugins;
3537
3638 /// <summary>
3739 /// Editedプロパティが変更された時発生します
--- trunk/LipSync/LipSync/Editor/EnvConfiguration.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/EnvConfiguration.cs (revision 16)
@@ -33,12 +33,12 @@
3333 m_config = (EnvSettings)config.Clone();
3434 int selected = -1;
3535
36- string[] t_list = Messaging.GetRegisteredLanguage();
36+ string[] t_list = Messaging.getRegisteredLanguage();
3737 comboLanguage.Items.Clear();
3838 comboLanguage.Items.Add( _DEFAULT_LANGUAGE_STRING );
3939 foreach ( string lang in t_list ) {
4040 comboLanguage.Items.Add( lang );
41- if ( lang == Messaging.Language ) {
41+ if ( lang == Messaging.getLanguage() ) {
4242 selected = comboLanguage.Items.Count - 1;
4343 }
4444 }
@@ -93,7 +93,7 @@
9393 public void ApplyFont( Font font ) {
9494 this.Font = font;
9595 foreach ( Control c in this.Controls ) {
96- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
96+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
9797 }
9898 }
9999
@@ -141,7 +141,7 @@
141141 }
142142
143143 public static string _( string s ) {
144- return Messaging.GetMessage( s );
144+ return Messaging.getMessage( s );
145145 }
146146
147147 private Font ScreenFont {
@@ -346,10 +346,10 @@
346346 }
347347
348348 private void btnReloadLanguageConfig_Click( object sender, EventArgs e ) {
349- Messaging.LoadMessages();
349+ Messaging.loadMessages();
350350 string current_lang = m_config.Language;
351351 comboLanguage.Items.Clear();
352- List<string> list = new List<string>( Messaging.GetRegisteredLanguage() );
352+ List<string> list = new List<string>( Messaging.getRegisteredLanguage() );
353353 if ( !list.Contains( current_lang ) ) {
354354 current_lang = _DEFAULT_LANGUAGE_STRING;
355355 }
--- trunk/LipSync/LipSync/Editor/RipSync/RspImporter.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/RipSync/RspImporter.cs (revision 16)
@@ -75,7 +75,7 @@
7575 private static string sound_file;
7676
7777 public static string gettext( string s ) {
78- return Messaging.GetMessage( s );
78+ return Messaging.getMessage( s );
7979 }
8080
8181
--- trunk/LipSync/LipSync/Editor/RipSync/RsiWriter.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/RipSync/RsiWriter.cs (revision 16)
@@ -158,7 +158,7 @@
158158 #endregion
159159
160160 public static string _( string s ) {
161- return Messaging.GetMessage( s );
161+ return Messaging.getMessage( s );
162162 }
163163
164164 /// <summary>
--- trunk/LipSync/LipSync/Editor/FormCommandHistory.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/FormCommandHistory.cs (revision 16)
@@ -55,7 +55,7 @@
5555 public void ApplyFont( Font font ) {
5656 this.Font = font;
5757 foreach ( Control c in this.Controls ) {
58- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
58+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
5959 }
6060 }
6161
@@ -77,7 +77,7 @@
7777 }
7878
7979 private static string _( string id ) {
80- return Messaging.GetMessage( id );
80+ return Messaging.getMessage( id );
8181 }
8282
8383 private void SettingsEx_CommandExecuted( TimeTableType command_target, CommandType command_type ) {
--- trunk/LipSync/LipSync/Editor/TrackSelecter.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/TrackSelecter.cs (revision 16)
@@ -38,7 +38,7 @@
3838 public void ApplyFont( Font font ) {
3939 this.Font = font;
4040 foreach ( Control c in this.Controls ) {
41- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
41+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
4242 }
4343 }
4444
@@ -50,7 +50,7 @@
5050 }
5151
5252 public string _( string s ) {
53- return Messaging.GetMessage( s );
53+ return Messaging.getMessage( s );
5454 }
5555
5656 public bool ImportTempoAndTimesig {
--- trunk/LipSync/LipSync/Editor/VersionBox.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/VersionBox.cs (revision 16)
@@ -29,7 +29,7 @@
2929 public void ApplyFont( Font font ) {
3030 this.Font = font;
3131 foreach ( Control c in this.Controls ) {
32- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
32+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
3333 }
3434 }
3535
--- trunk/LipSync/LipSync/Editor/ZOrder.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/ZOrder.cs (revision 16)
@@ -34,7 +34,7 @@
3434 public void ApplyFont( Font font ) {
3535 this.Font = font;
3636 foreach ( Control c in this.Controls ) {
37- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
37+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
3838 }
3939 }
4040
@@ -48,7 +48,7 @@
4848 }
4949
5050 public static string _( string s ) {
51- return Messaging.GetMessage( s );
51+ return Messaging.getMessage( s );
5252 }
5353
5454 public void itemAdd( ZorderItem item ) {
--- trunk/LipSync/LipSync/Editor/FormSeriesImage.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/FormSeriesImage.cs (revision 16)
@@ -36,7 +36,7 @@
3636 foreach ( PropertyInfo pi in properties ) {
3737 if ( pi.PropertyType.Equals( typeof( System.Drawing.Imaging.ImageFormat ) ) ) {
3838 System.Drawing.Imaging.ImageFormat ifm = (System.Drawing.Imaging.ImageFormat)pi.GetValue( null, null );
39- string ext = Misc.GetExtensionFromImageFormat( ifm );
39+ string ext = Util.GetExtensionFromImageFormat( ifm );
4040 if ( ext.Length > 0 ) {
4141 i++;
4242 comboFormat.Items.Add( pi.Name );
@@ -54,14 +54,14 @@
5454 public void ApplyFont( Font font ) {
5555 this.Font = font;
5656 foreach ( Control c in this.Controls ) {
57- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
57+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
5858 }
5959 }
6060
6161 public string ParserString {
6262 get {
6363 if ( chkAutomaticallyAddExtension.Checked ) {
64- return txtParser.Text + Misc.GetExtensionFromImageFormat( ImageFormat );
64+ return txtParser.Text + Util.GetExtensionFromImageFormat( ImageFormat );
6565 } else {
6666 return txtParser.Text;
6767 }
@@ -112,7 +112,7 @@
112112 }
113113
114114 public static string _( string s ) {
115- return Messaging.GetMessage( s );
115+ return Messaging.getMessage( s );
116116 }
117117
118118 public float Start {
@@ -194,7 +194,7 @@
194194 private void UpdateSampleFileNames() {
195195 string ret = _( "Sample File Name" ) + Environment.NewLine;
196196 System.Drawing.Imaging.ImageFormat ifm = ImageFormat;
197- string ext = Misc.GetExtensionFromImageFormat( ifm );
197+ string ext = Util.GetExtensionFromImageFormat( ifm );
198198 string parser = ParserString;
199199 try {
200200 ret += string.Format( parser, 0 ) + Environment.NewLine;
--- trunk/LipSync/LipSync/Editor/Form1Util.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/Form1Util.cs (revision 16)
@@ -31,7 +31,7 @@
3131 public void ApplyFont( Font font ) {
3232 this.Font = font;
3333 foreach ( Control c in this.Controls ) {
34- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
34+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
3535 }
3636 }
3737
@@ -219,8 +219,8 @@
219219 property.titleLower.Text = _( "Property" );
220220 property.ApplyLanguage();
221221
222- if ( AppManager.SaveData.m_plugins != null ) {
223- foreach ( PluginInfo plugin in AppManager.SaveData.m_plugins ) {
222+ if ( AppManager.plugins != null ) {
223+ foreach ( PluginInfo plugin in AppManager.plugins ) {
224224 plugin.Instance.ApplyLanguage( AppManager.Config.Language );
225225 }
226226 }
@@ -267,7 +267,7 @@
267267 }
268268 AppManager.SaveData.m_totalSec = Math.Max( AppManager.SaveData.m_totalSec, (float)ust.getTotalSec() );
269269 } else {
270- VsqFile vsqFile = new VsqFile( filename, Encoding.GetEncoding( "Shift_JIS" ) );
270+ VsqFile vsqFile = new VsqFile( filename, "Shift_JIS" );
271271 int tracks = vsqFile.Track.Count;
272272 string[] track_names = new string[tracks];
273273 for ( int track = 0; track < tracks; track++ ) {
@@ -545,11 +545,12 @@
545545 BinaryFormatter bf = new BinaryFormatter();
546546 m_skip_paint = true;
547547
548- List<PluginInfo> t_plugin_info = new List<PluginInfo>();
549- foreach ( PluginInfo pinfo in AppManager.SaveData.m_plugins ) {
548+ /*List<PluginInfo> t_plugin_info = new List<PluginInfo>(); // 現在の保存データに入っているプラグイン情報のリスト
549+ foreach ( PluginInfo pinfo in AppManager.plugins ) {
550550 t_plugin_info.Add( (PluginInfo)pinfo.Clone() );
551- }
551+ }*/
552552
553+ //SettingsEx old = AppManager.SaveData;
553554 object tmp = bf.Deserialize( fs );
554555 if ( tmp.GetType() == typeof( LipSync.Settings ) ) {
555556 #if DEBUG
@@ -576,13 +577,13 @@
576577
577578 AppManager.SaveData.m_zorder.Clear();
578579
579- int n_plugin = t_plugin_info.Count;
580+ /*int n_plugin = t_plugin_info.Count;
580581 if ( n_plugin > 0 ) {
581- AppManager.SaveData.m_plugins = new PluginInfo[t_plugin_info.Count];
582+ AppManager.plugins = new PluginInfo[t_plugin_info.Count];
582583 for ( int i = 0; i < t_plugin_info.Count; i++ ) {
583- AppManager.SaveData.m_plugins[i] = (PluginInfo)t_plugin_info[i].Clone();
584+ AppManager.plugins[i] = (PluginInfo)t_plugin_info[i].Clone();
584585 }
585- }
586+ }*/
586587
587588 AppManager.Edited = false;
588589
@@ -594,13 +595,16 @@
594595
595596 List<TimeTable> tmp_ttable = new List<TimeTable>();
596597 List<PluginConfig> tmp_config = new List<PluginConfig>();
598+
599+ List<TimeTable> add_ttable = new List<TimeTable>(); //新しいプラグインが見つかった場合に,後で追加処理をするためのリスト
600+ List<PluginConfig> add_config = new List<PluginConfig>(); //
597601 for ( int i = 0; i < AppManager.SaveData.m_plugins_config.Count; i++ ) {
598602 #if DEBUG
599603 Common.DebugWriteLine( "Form1.read(String); m_plugins_config[]; id=" + AppManager.SaveData.m_plugins_config[i].ID + "; config=" + AppManager.SaveData.m_plugins_config[i].Config );
600604 #endif
601605 bool found = false;
602- for ( int j = 0; j < AppManager.SaveData.m_plugins.Length; j++ ) {
603- if ( AppManager.SaveData.m_plugins_config[i].ID == AppManager.SaveData.m_plugins[j].ID ) {
606+ for ( int j = 0; j < AppManager.plugins.Length; j++ ) {
607+ if ( AppManager.SaveData.m_plugins_config[i].ID == AppManager.plugins[j].ID ) {
604608 found = true;
605609 break;
606610 }
@@ -614,6 +618,28 @@
614618 }
615619 }
616620
621+ // インストールされているプラグイン(AppManager.plugin)と,
622+ // LSEに保存されているプラグインAppManager.SaveData.m_plugins_config
623+ // AppManager.SaveData.m_group_pluginとの整合性をとる
624+ bool[] confirmed = new bool[AppManager.plugins.Length];
625+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
626+ PluginInfo pi = AppManager.plugins[i];
627+ confirmed[i] = false;
628+ foreach ( PluginConfig pc in AppManager.SaveData.m_plugins_config ) {
629+ if ( pi.ID == pc.ID ) {
630+ confirmed[i] = true;
631+ break;
632+ }
633+ }
634+ }
635+ for ( int i = 0; i < confirmed.Length; i++ ) {
636+ if ( confirmed[i] ) {
637+ continue;
638+ }
639+ add_ttable.Add( new TimeTable( AppManager.plugins[i].ID, 0, TimeTableType.plugin, null ) );
640+ add_config.Add( new PluginConfig( AppManager.plugins[i].ID, "" ) );
641+ }
642+
617643 // Settingsに転送
618644 AppManager.SaveData.m_group_plugin.Clear();
619645 AppManager.SaveData.m_plugins_config.Clear();
@@ -621,14 +647,18 @@
621647 AppManager.SaveData.m_group_plugin.Add( (TimeTable)tmp_ttable[i].Clone() );
622648 AppManager.SaveData.m_plugins_config.Add( tmp_config[i].Clone() );
623649 }
650+ for ( int i = 0; i < add_ttable.Count; i++ ) {
651+ AppManager.SaveData.m_group_plugin.Add( add_ttable[i] );
652+ AppManager.SaveData.m_plugins_config.Add( add_config[i] );
653+ }
624654
625655 // プラグインの全体設定を適用
626- for ( int i = 0; i < AppManager.SaveData.m_plugins.Length; i++ ) {
627- string id = AppManager.SaveData.m_plugins[i].ID;
628- AppManager.SaveData.m_plugins[i].Instance.Config = "";
656+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
657+ string id = AppManager.plugins[i].ID;
658+ AppManager.plugins[i].Instance.Config = "";
629659 for ( int j = 0; j < AppManager.SaveData.m_group_plugin.Count; j++ ) {
630660 if ( AppManager.SaveData.m_plugins_config[j].ID == id ) {
631- AppManager.SaveData.m_plugins[i].Instance.Config = AppManager.SaveData.m_plugins_config[j].Config;
661+ AppManager.plugins[i].Instance.Config = AppManager.SaveData.m_plugins_config[j].Config;
632662 break;
633663 }
634664 }
@@ -660,8 +690,8 @@
660690 for ( int i = 0; i < m_not_used_plugin_config.Count; i++ ) {
661691 Common.DebugWriteLine( "Form1.read(String); not registered; id=" + m_not_used_plugin_config[i].ID );
662692 }
663- for ( int i = 0; i < AppManager.SaveData.m_plugins.Length; i++ ) {
664- Common.DebugWriteLine( "Form1.read(String); current plugin; id=" + AppManager.SaveData.m_plugins[i].ID + "; Config=" + AppManager.SaveData.m_plugins[i].Instance.Config );
693+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
694+ Common.DebugWriteLine( "Form1.read(String); current plugin; id=" + AppManager.plugins[i].ID + "; Config=" + AppManager.plugins[i].Instance.Config );
665695 }
666696 #endif
667697 }
@@ -1292,11 +1322,11 @@
12921322 float end = (float)ust_file.getSecFromClock( (int)(count + ue.Length) );
12931323 string phrase = ue.Lyric;
12941324 if ( phrase != "R" ) {
1295- string symbol = "a";
1296- if ( !SymbolTable.attatch( phrase, out symbol ) ) {
1297- symbol = "a";
1325+ bocoree.ByRef<string> symbol = new bocoree.ByRef<string>( "a" );
1326+ if ( !SymbolTable.attatch( phrase, symbol ) ) {
1327+ symbol.value = "a";
12981328 }
1299- temp.Add( new TimeTableEntry( start, end, phrase + "(" + symbol + ")" ) );
1329+ temp.Add( new TimeTableEntry( start, end, phrase + "(" + symbol.value + ")" ) );
13001330 }
13011331 count += (int)ue.Length;
13021332 }
@@ -1413,7 +1443,7 @@
14131443 base.WindowState = FormWindowState.Maximized;
14141444 }
14151445
1416- Messaging.Language = AppManager.Config.Language;
1446+ Messaging.setLanguage( AppManager.Config.Language );
14171447 ApplyLanguage();
14181448
14191449 // 拡張前の設定ファイルに対応
@@ -1628,7 +1658,7 @@
16281658 }
16291659
16301660 public string _( string s ) {
1631- return Messaging.GetMessage( s );
1661+ return Messaging.getMessage( s );
16321662 }
16331663
16341664 private void m_text_TextChanged( object sender, EventArgs e ) {
--- trunk/LipSync/LipSync/Editor/Telop.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/Telop.cs (revision 16)
@@ -116,7 +116,7 @@
116116 int count = 0;
117117 for ( int j = 0; j < i; j++ ) {
118118 if ( list[j].Lane == index ){
119- if ( Boare.Lib.AppUtil.Misc.IsOverwrapped( list[i].Start, list[i].End, list[j].Start, list[j].End ) ) {
119+ if ( Boare.Lib.AppUtil.Util.IsOverwrapped( list[i].Start, list[i].End, list[j].Start, list[j].End ) ) {
120120 count++;
121121 break;
122122 }
@@ -193,7 +193,7 @@
193193 mc_scale.Color = Common.CURVE_SCALE;
194194 mc_alpha.Color = Common.CURVE_ALPHA;
195195 if ( m_font != null ) {
196- m_size = Boare.Lib.AppUtil.Misc.MeasureString( m_text, m_font );
196+ m_size = Boare.Lib.AppUtil.Util.measureString( m_text, m_font );
197197 }
198198 }
199199
@@ -211,7 +211,7 @@
211211 m_default_font = new Font( "MS UI Gothic", 18 );
212212 m_font = (Font)m_default_font.Clone();
213213 }
214- m_size = Boare.Lib.AppUtil.Misc.MeasureString( m_text, m_font );
214+ m_size = Boare.Lib.AppUtil.Util.measureString( m_text, m_font );
215215 m_id = id;
216216 m_fore_color = m_telop_default_color;
217217 }
@@ -357,7 +357,7 @@
357357 set {
358358 m_text = value;
359359 if ( m_font != null ) {
360- m_size = Boare.Lib.AppUtil.Misc.MeasureString( this.m_text, this.m_font );
360+ m_size = Boare.Lib.AppUtil.Util.measureString( this.m_text, this.m_font );
361361 } else {
362362 m_size = new Size();
363363 }
@@ -400,7 +400,7 @@
400400 m_font = value;
401401 m_default_font = (Font)m_font.Clone();
402402 if ( m_font != null ) {
403- m_size = Boare.Lib.AppUtil.Misc.MeasureString( m_text, m_font );
403+ m_size = Boare.Lib.AppUtil.Util.measureString( m_text, m_font );
404404 } else {
405405 m_size = new Size();
406406 }
--- trunk/LipSync/LipSync/Editor/FormObjectList.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/FormObjectList.cs (revision 16)
@@ -21,7 +21,7 @@
2121 ListView m_listview;
2222
2323 public static string _( string s ) {
24- return Messaging.GetMessage( s );
24+ return Messaging.getMessage( s );
2525 }
2626
2727 protected override void WndProc( ref Message m ) {
--- trunk/LipSync/LipSync/Editor/SettingsEx.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/SettingsEx.cs (revision 16)
@@ -57,8 +57,6 @@
5757 public uint m_dwScale = 1;
5858 [NonSerialized]
5959 private float m_fps_buffer = 30f;
60- [NonSerialized]
61- public PluginInfo[] m_plugins;
6260 [OptionalField]
6361 public List<Telop> m_telop_ex2 = new List<Telop>();
6462 [OptionalField]
@@ -74,7 +72,7 @@
7472 public static event CommandExecutedEventHandler CommandExecuted;
7573
7674 private static string _( string s ) {
77- return Messaging.GetMessage( s );
75+ return Messaging.getMessage( s );
7876 }
7977
8078 public void DrawTo( Graphics g, Size mSize, float now, bool is_transparent ) {
@@ -182,7 +180,7 @@
182180 s += "\n" + draw[i];
183181 }
184182 }
185- m_plugins[target_plugin].Instance.Render( g, mSize, now, s, "" );
183+ AppManager.plugins[target_plugin].Instance.Render( g, mSize, now, s, "" );
186184 }
187185 continue;
188186 }
@@ -197,7 +195,7 @@
197195 #endif
198196 tmp = new Bitmap( mSize.Width, mSize.Height );
199197 TimeTableEntry tmptt = m_group_plugin[index][entry];
200- m_plugins[index].Instance.Apply( ref tmp, now, tmptt.begin, tmptt.end, ref tmptt.body );
198+ AppManager.plugins[index].Instance.Apply( ref tmp, now, tmptt.begin, tmptt.end, ref tmptt.body );
201199 m_group_plugin[index][entry] = tmptt;
202200 size = mSize;
203201 position = new PointF( 0f, 0f );
@@ -957,7 +955,7 @@
957955 if ( command.group >= 0 ) {
958956 m_groups_character[command.group].Character.PluginConfig.Config = command.str;
959957 }
960- m_plugins[command.track].Instance.Config = command.str;
958+ AppManager.plugins[command.track].Instance.Config = command.str;
961959 break;
962960 case CommandType.changeFps:
963961 ret = Command.GCommandChangeFps( m_dwRate, m_dwScale );
--- trunk/LipSync/LipSync/Editor/Settings.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/Settings.cs (revision 16)
@@ -80,7 +80,7 @@
8080 public int m_command_position = -1;
8181
8282 public static string _( string s ) {
83- return Messaging.GetMessage( s );
83+ return Messaging.getMessage( s );
8484 }
8585
8686 public Settings() {
--- trunk/LipSync/LipSync/Editor/FormPreview.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/FormPreview.cs (revision 16)
@@ -70,7 +70,7 @@
7070 public void ApplyFont( Font font ) {
7171 this.Font = font;
7272 foreach ( Control c in this.Controls ) {
73- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
73+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
7474 }
7575 }
7676
--- trunk/LipSync/LipSync/Editor/EditEntry.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/EditEntry.cs (revision 16)
@@ -50,7 +50,7 @@
5050 public void ApplyFont( Font font ) {
5151 this.Font = font;
5252 foreach ( Control c in this.Controls ) {
53- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
53+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
5454 }
5555 }
5656
@@ -65,7 +65,7 @@
6565 }
6666
6767 public static string _( string s ) {
68- return Messaging.GetMessage( s );
68+ return Messaging.getMessage( s );
6969 }
7070
7171 public float Start {
--- trunk/LipSync/LipSync/Editor/InputBox.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/InputBox.cs (revision 16)
@@ -28,7 +28,7 @@
2828 public void ApplyFont( Font font ) {
2929 this.Font = font;
3030 foreach ( Control c in this.Controls ) {
31- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
31+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
3232 }
3333 }
3434
--- trunk/LipSync/LipSync/Editor/EnvSettings.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/EnvSettings.cs (revision 16)
@@ -89,7 +89,7 @@
8989 }
9090 set {
9191 m_track_height = value;
92- Size font_size = Misc.MeasureString( "abQBHqj", Font.GetFont() );
92+ Size font_size = Util.measureString( "abQBHqj", Font.GetFont() );
9393 VerticalStringOffset = (m_track_height - font_size.Height) / 2;
9494 }
9595 }
--- trunk/LipSync/LipSync/Editor/Form1.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/Form1.cs (revision 16)
@@ -54,14 +54,14 @@
5454
5555 #region Static Readonly Field
5656 private static readonly AuthorListEntry[] m_credit = new AuthorListEntry[]{
57- new AuthorListEntry( "is developped by:", FontStyle.Italic ),
57+ new AuthorListEntry( "is developped by:", bocoree.java.awt.Font.ITALIC ),
5858 new AuthorListEntry( "kbinani" ),
59- new AuthorListEntry( "and he thanks to:", FontStyle.Italic ),
59+ new AuthorListEntry( "and he thanks to:", bocoree.java.awt.Font.ITALIC ),
6060 new AuthorListEntry(),
61- new AuthorListEntry( "author of embedded character", FontStyle.Italic ),
61+ new AuthorListEntry( "author of embedded character", bocoree.java.awt.Font.ITALIC ),
6262 new AuthorListEntry( "さなり" ),
6363 new AuthorListEntry(),
64- new AuthorListEntry( "contributors", FontStyle.Italic ),
64+ new AuthorListEntry( "contributors", bocoree.java.awt.Font.ITALIC ),
6565 new AuthorListEntry( "evm" ),
6666 new AuthorListEntry( "鈴村優" ),
6767 new AuthorListEntry( "そろそろP" ),
@@ -70,10 +70,10 @@
7070 new AuthorListEntry( "NOIKE" ),
7171 new AuthorListEntry( "逃亡者" ),
7272 new AuthorListEntry(),
73- new AuthorListEntry( "translator", FontStyle.Italic ),
73+ new AuthorListEntry( "translator", bocoree.java.awt.Font.ITALIC ),
7474 new AuthorListEntry( "E-Avalance" ),
7575 new AuthorListEntry(),
76- new AuthorListEntry( "bugs and suggestions reporters", FontStyle.Italic ),
76+ new AuthorListEntry( "bugs and suggestions reporters", bocoree.java.awt.Font.ITALIC ),
7777 new AuthorListEntry( "だんちゃん" ),
7878 new AuthorListEntry( "灰" ),
7979 new AuthorListEntry( "sanryo" ),
@@ -88,7 +88,7 @@
8888 new AuthorListEntry( "IGASIO" ),
8989 new AuthorListEntry( "PEX" ),
9090 new AuthorListEntry(),
91- new AuthorListEntry( "and you.", FontStyle.Bold | FontStyle.Italic ),
91+ new AuthorListEntry( "and you.", bocoree.java.awt.Font.ITALIC | bocoree.java.awt.Font.BOLD ),
9292 };
9393 private static readonly Pen HILIGHT = new Pen( Color.Gray, 2 );
9494 private static readonly Pen HILIGHT_EDIT = new Pen( Color.Red, 2 );
@@ -268,7 +268,7 @@
268268 this.pictureBox1.MouseWheel += new MouseEventHandler( pictureBox1_MouseWheel );
269269 m_player = new MediaPlayer();
270270 previewer.TrackVolumeValue = m_player.Volume;
271- Messaging.LoadMessages();
271+ Messaging.loadMessages();
272272 LoadConfig();
273273 this.SizeChanged += new EventHandler( Form1_LocationOrSizeChanged );
274274 this.LocationChanged += new EventHandler( Form1_LocationOrSizeChanged );
@@ -748,7 +748,7 @@
748748 cmenu.Items.Add( mItemImage );
749749 cmenu.Items.Add( "-" );
750750 } else if ( m_clicked.type == TimeTableType.plugin ) {
751- if ( (AppManager.SaveData.m_plugins[m_clicked.track].Instance.Type & Constants.LS_ENABLES_ENTRY_SETTING) == Constants.LS_ENABLES_ENTRY_SETTING ) {
751+ if ( (AppManager.plugins[m_clicked.track].Instance.Type & Constants.LS_ENABLES_ENTRY_SETTING) == Constants.LS_ENABLES_ENTRY_SETTING ) {
752752 cmenu.Items.Add( _( "Plugin config. of this entry" ), null, new EventHandler( h_entrySetting ) );
753753 cmenu.Items.Add( "-" );
754754 }
@@ -1533,7 +1533,7 @@
15331533 private void menuHelpVersionInfo_Click( object sender, EventArgs e ) {
15341534 if ( m_version_form == null ) {
15351535 string version_str = AppManager.VERSION + "\n\n" +
1536- GetAssemblyNameAndVersion( typeof( Boare.Lib.AppUtil.Misc ) ) + "\n" +
1536+ GetAssemblyNameAndVersion( typeof( Boare.Lib.AppUtil.Util ) ) + "\n" +
15371537 GetAssemblyNameAndVersion( typeof( Boare.Lib.Media.AviWriterVcm ) ) + "\n" +
15381538 GetAssemblyNameAndVersion( typeof( Boare.Lib.Vsq.VsqFile ) ) + "\n" +
15391539 #if DEBUG
@@ -1543,10 +1543,16 @@
15431543 m_version_form = new Boare.Lib.AppUtil.VersionInfo( _( "LipSync" ), version_str );
15441544 m_version_form.Font = AppManager.Config.Font.GetFont();
15451545 m_version_form.AuthorList = m_credit;
1546- m_version_form.AppNameColor = Color.RoyalBlue;
1547- m_version_form.VersionColor = Color.DimGray;
1546+ bocoree.java.awt.Color app_name = new bocoree.java.awt.Color();
1547+ app_name.color = Color.RoyalBlue;
1548+ m_version_form.AppNameColor = app_name;
1549+ bocoree.java.awt.Color vers = new bocoree.java.awt.Color();
1550+ vers.color = Color.DimGray;
1551+ m_version_form.VersionColor = vers;
15481552 #if !DEBUG
1549- m_version_form.Credit = AppManager.author_list;
1553+ bocoree.java.awt.image.BufferedImage img = new bocoree.java.awt.image.BufferedImage( 1, 1, bocoree.java.awt.image.BufferedImage.TYPE_INT_RGB );
1554+ img.m_image = AppManager.author_list;
1555+ m_version_form.Credit = img;
15501556 #endif
15511557 m_version_form.FormClosed += new FormClosedEventHandler( m_version_form_FormClosed );
15521558 m_version_form.Show();
@@ -1575,13 +1581,13 @@
15751581 // プラグインを読み込み
15761582 //インストールされているプラグインを調べる
15771583 //すべてのプラグインクラスのインスタンスを作成する
1578- AppManager.SaveData.m_plugins = PluginInfo.FindPlugins();
1584+ AppManager.plugins = PluginInfo.FindPlugins();
15791585
15801586 AppManager.SaveData.m_group_plugin = new TimeTableGroup( _( "Plugin" ), -1, null );
15811587
15821588 AppManager.SaveData.m_plugins_config = new List<PluginConfig>();
1583- for ( int i = 0; i < AppManager.SaveData.m_plugins.Length; i++ ) {
1584- AppManager.SaveData.m_plugins_config.Add( new PluginConfig( AppManager.SaveData.m_plugins[i].Instance.Name, AppManager.SaveData.m_plugins[i].Instance.Config, Path.GetFileName( AppManager.SaveData.m_plugins[i].Location ) ) );
1589+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
1590+ AppManager.SaveData.m_plugins_config.Add( new PluginConfig( AppManager.plugins[i].Instance.Name, AppManager.plugins[i].Instance.Config, Path.GetFileName( AppManager.plugins[i].Location ) ) );
15851591 AppManager.SaveData.m_group_plugin.Add( new TimeTable( AppManager.SaveData.m_plugins_config[i].ID, 0, TimeTableType.plugin, null ) );
15861592 }
15871593
@@ -1589,9 +1595,9 @@
15891595 * プラグインの種類に応じて、メインメニューを更新
15901596 */
15911597 // プラグイン設定
1592- if ( AppManager.SaveData.m_plugins.Length > 0 ) {
1593- for ( int i = 0; i < AppManager.SaveData.m_plugins.Length; i++ ) {
1594- if ( (AppManager.SaveData.m_plugins[i].Instance.Type & Plugin.Constants.LS_NO_EVENT_HANDLER) != Plugin.Constants.LS_NO_EVENT_HANDLER ) {
1598+ if ( AppManager.plugins.Length > 0 ) {
1599+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
1600+ if ( (AppManager.plugins[i].Instance.Type & Plugin.Constants.LS_NO_EVENT_HANDLER) != Plugin.Constants.LS_NO_EVENT_HANDLER ) {
15951601 menuToolPluginConfig.DropDownItems.Add( AppManager.SaveData.m_plugins_config[i].ID, null, new EventHandler( h_pluginSetting ) );
15961602 }
15971603 }
@@ -1599,8 +1605,8 @@
15991605
16001606 // プラグインの情報
16011607 menuHelpPluginInfo.DropDownItems.Clear();
1602- for ( int i = 0; i < AppManager.SaveData.m_plugins.Length; i++ ) {
1603- menuHelpPluginInfo.DropDownItems.Add( AppManager.SaveData.m_plugins[i].Instance.Name, null, new EventHandler( h_pluginInfo ) );
1608+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
1609+ menuHelpPluginInfo.DropDownItems.Add( AppManager.plugins[i].Instance.Name, null, new EventHandler( h_pluginInfo ) );
16041610 }
16051611
16061612 AppManager.SaveData.m_group_vsq = new TimeTableGroup( _( "VSQ Tracks" ), -1, null );
@@ -1854,7 +1860,7 @@
18541860 if ( args.IsWaveMergeRequired ) {
18551861 #region merge wave file
18561862 if ( File.Exists( audio_file ) && AppManager.Config.PathFFmpeg != "" && File.Exists( AppManager.Config.PathFFmpeg ) ) {
1857- string tmp_avi = Misc.GetTempFileNameIn( Path.GetDirectoryName( args.AviFile ), ".avi" );
1863+ string tmp_avi = Util.GetTempFileNameIn( Path.GetDirectoryName( args.AviFile ), ".avi" );
18581864 File.Move( args.AviFile, tmp_avi );
18591865 // ffmpeg -i movie.mpeg -i audio.wav combined.avi
18601866 long frames = end_frame - start_frame + 1;
@@ -2006,8 +2012,8 @@
20062012
20072013 private void menuEditAddCharacter_Click( object sender, EventArgs e ) {
20082014 List<string> plugins = new List<string>();
2009- for ( int i = 0; i < AppManager.SaveData.m_plugins.Length; i++ ) {
2010- if ( (AppManager.SaveData.m_plugins[i].Instance.Type & Plugin.Constants.LS_TYPE_CHARACTER) == Plugin.Constants.LS_TYPE_CHARACTER ) {
2015+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
2016+ if ( (AppManager.plugins[i].Instance.Type & Plugin.Constants.LS_TYPE_CHARACTER) == Plugin.Constants.LS_TYPE_CHARACTER ) {
20112017 plugins.Add( AppManager.SaveData.m_plugins_config[i].ID );
20122018 }
20132019 }
@@ -2139,7 +2145,7 @@
21392145
21402146 // まず、zオーダーを設定可能なオブジェクトの個数を数える
21412147 // プラグイン
2142- count += AppManager.SaveData.m_plugins.Length;
2148+ count += AppManager.plugins.Length;
21432149 bool[] b_plugins = new bool[AppManager.SaveData.m_group_plugin.Count];
21442150 for ( int i = 0; i < AppManager.SaveData.m_group_plugin.Count; i++ ) {
21452151 b_plugins[i] = false;
@@ -2166,7 +2172,7 @@
21662172 int[] eval = new int[count];
21672173 int[] order = new int[count];
21682174 int index = -1;
2169- for ( int i = 0; i < AppManager.SaveData.m_plugins.Length; i++ ) {
2175+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
21702176 index++;
21712177 list[index] = new ZorderItem( AppManager.SaveData.m_plugins_config[i].ID, ZorderItemType.plugin, i );
21722178 eval[index] = AppManager.SaveData.m_group_plugin[i].ZOrder;
@@ -2344,7 +2350,7 @@
23442350 if ( openVsqDialog.FilterIndex == 0 || Path.GetExtension( openVsqDialog.FileName ).ToLower() == ".vsq" ) {
23452351 // VsqFileを取得
23462352 int most_lyrics_track = 0; // 一番歌詞の文字数が多かったトラックの番号
2347- VsqFile vsqFile = new VsqFile( openVsqDialog.FileName, Encoding.GetEncoding( "Shift_JIS" ) );
2353+ VsqFile vsqFile = new VsqFile( openVsqDialog.FileName, "Shift_JIS" );
23482354 AppManager.SaveData.m_totalSec = (float)vsqFile.getTotalSec();
23492355
23502356 AppManager.SaveData.m_timesig_ex = new List<TimeSigTableEntry>( vsqFile.TimesigTable.ToArray() );
@@ -2386,7 +2392,7 @@
23862392 } else {
23872393 UstFile ust_file = new UstFile( openVsqDialog.FileName );
23882394 for ( int track = 0; track < ust_file.getTrackCount(); track++ ) {
2389- for( Iterator itr = ust_file.getTrack( track ).getNoteEventIterator(); itr.hasNext(); ){
2395+ for( bocoree.java.util.Iterator itr = ust_file.getTrack( track ).getNoteEventIterator(); itr.hasNext(); ){
23902396 UstEvent ue = (UstEvent)itr.next();
23912397 if ( ue.Lyric == "u" ) {
23922398 ue.Lyric = "う";
@@ -3254,19 +3260,19 @@
32543260 }
32553261
32563262 string lang = AppManager.Config.Language;
3257- string[] t_list = Messaging.GetRegisteredLanguage();
3263+ string[] t_list = Messaging.getRegisteredLanguage();
32583264 bool found = false;
32593265 foreach ( string lng in t_list ) {
32603266 if ( lng == lang ) {
32613267 AppManager.Config.Language = lng;
3262- Messaging.Language = lng;
3268+ Messaging.setLanguage( lng );
32633269 found = true;
32643270 break;
32653271 }
32663272 }
32673273 if ( !found ) {
32683274 AppManager.Config.Language = "";
3269- Messaging.Language = "";
3275+ Messaging.setLanguage( "" );
32703276 }
32713277 ApplyLanguage();
32723278 UpdateFormTitle();
--- trunk/LipSync/LipSync/Editor/SetSize.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/SetSize.cs (revision 16)
@@ -72,12 +72,12 @@
7272 public void ApplyFont( Font font ) {
7373 this.Font = font;
7474 foreach ( Control c in this.Controls ) {
75- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
75+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
7676 }
7777 }
7878
7979 public static string _( string s ) {
80- return Messaging.GetMessage( s );
80+ return Messaging.getMessage( s );
8181 }
8282
8383 public T ResultWidth {
--- trunk/LipSync/LipSync/Editor/Winker.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/Winker.cs (revision 16)
@@ -52,7 +52,7 @@
5252 public void ApplyFont( Font font ) {
5353 this.Font = font;
5454 foreach ( Control c in this.Controls ) {
55- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
55+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
5656 }
5757 }
5858
@@ -71,7 +71,7 @@
7171 }
7272
7373 private static string _( string s ) {
74- return Messaging.GetMessage( s );
74+ return Messaging.getMessage( s );
7575 }
7676
7777 public float WinkInterval {
--- trunk/LipSync/LipSync/Editor/GenerateCharacter.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/GenerateCharacter.cs (revision 16)
@@ -129,12 +129,12 @@
129129 public void ApplyFont( Font font ) {
130130 this.Font = font;
131131 foreach ( Control c in this.Controls ) {
132- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
132+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
133133 }
134134 }
135135
136136 public static string _( string s ) {
137- return Messaging.GetMessage( s );
137+ return Messaging.getMessage( s );
138138 }
139139
140140 public TimeTableGroup EditedResult {
--- trunk/LipSync/LipSync/Editor/DisplacementControl.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/DisplacementControl.cs (revision 16)
@@ -102,12 +102,12 @@
102102 public void ApplyFont( Font font ) {
103103 this.Font = font;
104104 foreach ( Control c in this.Controls ) {
105- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
105+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
106106 }
107107 }
108108
109109 public static string _( string s ) {
110- return Messaging.GetMessage( s );
110+ return Messaging.getMessage( s );
111111 }
112112
113113 /// <summary>
--- trunk/LipSync/LipSync/Editor/FormVocalomark.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/FormVocalomark.cs (revision 16)
@@ -72,7 +72,7 @@
7272 }
7373
7474 private static string _( string id ) {
75- return Messaging.GetMessage( id );
75+ return Messaging.getMessage( id );
7676 }
7777
7878 public void ApplyLanguage() {
@@ -90,7 +90,7 @@
9090 }
9191
9292 public void ApplyFont( Font font ) {
93- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( this, font );
93+ Boare.Lib.AppUtil.Util.applyFontRecurse( this, font );
9494 }
9595
9696 public KeyValuePair<string, string>[] Assignment {
--- trunk/LipSync/LipSync/Editor/Form1_EventHandler.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/Form1_EventHandler.cs (revision 16)
@@ -658,14 +658,14 @@
658658 string plugin_name = item.Text;
659659 for ( int i = 0; i < AppManager.SaveData.m_plugins_config.Count; i++ ) {
660660 if ( plugin_name == AppManager.SaveData.m_plugins_config[i].ID ) {
661- string old_config = AppManager.SaveData.m_plugins[i].Instance.Config;
662- if ( AppManager.SaveData.m_plugins[i].Instance.BaseSetting() == DialogResult.OK ) {
663- string new_config = AppManager.SaveData.m_plugins[i].Instance.Config;
664- AppManager.SaveData.m_plugins[i].Instance.Config = old_config; //ちょっとセコイなw
661+ string old_config = AppManager.plugins[i].Instance.Config;
662+ if ( AppManager.plugins[i].Instance.BaseSetting() == DialogResult.OK ) {
663+ string new_config = AppManager.plugins[i].Instance.Config;
664+ AppManager.plugins[i].Instance.Config = old_config; //ちょっとセコイなw
665665 if ( old_config != new_config ) {
666666 Command run = Command.GCommandChangePluginConfig( i, new_config );
667667 AppManager.Register( AppManager.SaveData.Execute( run ) );
668- AppManager.SaveData.m_plugins[i].Instance.Config = new_config;
668+ AppManager.plugins[i].Instance.Config = new_config;
669669 AppManager.Edited = true;
670670 }
671671 }
@@ -678,7 +678,7 @@
678678 int track = m_clicked.track;
679679 int entry = m_clicked.entry;
680680 string current = AppManager.SaveData.m_group_plugin[track][entry].body;
681- if ( AppManager.SaveData.m_plugins[track].Instance.EntrySetting( ref current ) == DialogResult.OK ) {
681+ if ( AppManager.plugins[track].Instance.EntrySetting( ref current ) == DialogResult.OK ) {
682682 using ( TimeTableEntry tmp = new TimeTableEntry( AppManager.SaveData.m_group_plugin[track][entry].begin, AppManager.SaveData.m_group_plugin[track][entry].end, current ) ) {
683683 Command run = Command.GCommandEditTimeTableEntry( TimeTableType.plugin, -1, track, entry, tmp );
684684 AppManager.Register( AppManager.SaveData.Execute( run ) );
@@ -901,8 +901,8 @@
901901 return;
902902 }
903903 List<string> plugins = new List<string>();
904- for ( int i = 0; i < AppManager.SaveData.m_plugins.Length; i++ ) {
905- if ( (AppManager.SaveData.m_plugins[i].Instance.Type & Plugin.Constants.LS_TYPE_CHARACTER) == Plugin.Constants.LS_TYPE_CHARACTER ) {
904+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
905+ if ( (AppManager.plugins[i].Instance.Type & Plugin.Constants.LS_TYPE_CHARACTER) == Plugin.Constants.LS_TYPE_CHARACTER ) {
906906 plugins.Add( AppManager.SaveData.m_plugins_config[i].ID );
907907 }
908908 }
@@ -1044,8 +1044,8 @@
10441044 }
10451045 }
10461046 if ( index >= 0 ) {
1047- if ( AppManager.SaveData.m_plugins[index].Instance.BaseSetting() == DialogResult.OK ) {
1048- Command run = Command.GCommandChangePluginConfig( index, AppManager.SaveData.m_plugins[index].Instance.Config );
1047+ if ( AppManager.plugins[index].Instance.BaseSetting() == DialogResult.OK ) {
1048+ Command run = Command.GCommandChangePluginConfig( index, AppManager.plugins[index].Instance.Config );
10491049 AppManager.Register( AppManager.SaveData.Execute( run ) );
10501050 AppManager.Edited = true;
10511051 }
@@ -1138,14 +1138,14 @@
11381138 private void h_pluginInfo( object sender, EventArgs e ) {
11391139 ToolStripMenuItem c_sender = (ToolStripMenuItem)sender;
11401140 int index = -1;
1141- for ( int i = 0; i < AppManager.SaveData.m_plugins.Length; i++ ) {
1142- if ( AppManager.SaveData.m_plugins[i].Instance.Name == c_sender.Text ) {
1141+ for ( int i = 0; i < AppManager.plugins.Length; i++ ) {
1142+ if ( AppManager.plugins[i].Instance.Name == c_sender.Text ) {
11431143 index = i;
11441144 break;
11451145 }
11461146 }
11471147 if ( index >= 0 ) {
1148- VersionBox info = new VersionBox( AppManager.SaveData.m_plugins[index].Instance.Name, AppManager.SaveData.m_plugins[index].Instance.Abstract );
1148+ VersionBox info = new VersionBox( AppManager.plugins[index].Instance.Name, AppManager.plugins[index].Instance.Abstract );
11491149 info.ShowDialog();
11501150 info.Dispose();
11511151 }
--- trunk/LipSync/LipSync/Editor/Property.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/Property.cs (revision 16)
@@ -82,7 +82,7 @@
8282 }
8383
8484 public static string _( string s ) {
85- return Messaging.GetMessage( s );
85+ return Messaging.getMessage( s );
8686 }
8787
8888 public static Property Instance {
--- trunk/LipSync/LipSync/Editor/SelectCharacter.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/SelectCharacter.cs (revision 16)
@@ -43,7 +43,7 @@
4343 public void ApplyFont( Font font ) {
4444 this.Font = font;
4545 foreach ( Control c in this.Controls ) {
46- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
46+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
4747 }
4848 }
4949
@@ -60,7 +60,7 @@
6060 }
6161
6262 private static string _( string s ) {
63- return Messaging.GetMessage( s );
63+ return Messaging.getMessage( s );
6464 }
6565
6666 public string Path {
--- trunk/LipSync/LipSync/Editor/AviOutput.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/AviOutput.cs (revision 16)
@@ -56,7 +56,7 @@
5656 public void ApplyFont( Font font ) {
5757 this.Font = font;
5858 foreach ( Control c in this.Controls ) {
59- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
59+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
6060 }
6161 }
6262
@@ -90,7 +90,7 @@
9090 }
9191
9292 public static string _( string s ) {
93- return Messaging.GetMessage( s );
93+ return Messaging.getMessage( s );
9494 }
9595
9696 public AviOutputArguments Arguments {
--- trunk/LipSync/LipSync/Editor/PasteModeDialog.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/PasteModeDialog.cs (revision 16)
@@ -37,7 +37,7 @@
3737 public void ApplyFont( Font font ) {
3838 this.Font = font;
3939 foreach ( Control c in this.Controls ) {
40- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
40+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
4141 }
4242 }
4343
@@ -49,7 +49,7 @@
4949 }
5050
5151 public static string gettext( string s ) {
52- return Messaging.GetMessage( s );
52+ return Messaging.getMessage( s );
5353 }
5454
5555 new public PasteModeDialogResult DialogResult {
--- trunk/LipSync/LipSync/Editor/FormSetFrameRate.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/FormSetFrameRate.cs (revision 16)
@@ -51,12 +51,12 @@
5151 public void ApplyFont( Font font ) {
5252 this.Font = font;
5353 foreach ( Control c in this.Controls ) {
54- Boare.Lib.AppUtil.Misc.ApplyFontRecurse( c, font );
54+ Boare.Lib.AppUtil.Util.applyFontRecurse( c, font );
5555 }
5656 }
5757
5858 public static string _( string s ) {
59- return Messaging.GetMessage( s );
59+ return Messaging.getMessage( s );
6060 }
6161
6262 public void ApplyLanguage() {
--- trunk/LipSync/LipSync/Editor/Previewer.cs (revision 15)
+++ trunk/LipSync/LipSync/Editor/Previewer.cs (revision 16)
@@ -48,7 +48,7 @@
4848 }
4949
5050 public static string _( string s ) {
51- return Messaging.GetMessage( s );
51+ return Messaging.getMessage( s );
5252 }
5353
5454 public void ApplyLanguage() {
--- trunk/LipSync/LipSync/Common/CurveEditor.cs (revision 15)
+++ trunk/LipSync/LipSync/Common/CurveEditor.cs (revision 16)
@@ -188,7 +188,7 @@
188188 }
189189
190190 public static string _( string s ) {
191- return Messaging.GetMessage( s );
191+ return Messaging.getMessage( s );
192192 }
193193
194194 public Size GraphSize {
--- trunk/LipSync/lang2po/Program.cs (revision 15)
+++ trunk/LipSync/lang2po/Program.cs (revision 16)
@@ -16,8 +16,8 @@
1616 Console.WriteLine( "error; file \"" + result + "\" already exists." );
1717 return;
1818 }
19- Messaging.AppendFromFile( "template.po" );
20- Messaging.Language = "template";
19+ Messaging.appendFromFile( "template.po" );
20+ Messaging.setLanguage( "template" );
2121 Dictionary<string, string> dict = new Dictionary<string, string>();
2222 using ( StreamReader sr = new StreamReader( name ) ) {
2323 string line;
@@ -61,9 +61,9 @@
6161 sw.WriteLine( "\"X-Poedit-SearchPath-0: Editor\\n\"" );
6262 sw.WriteLine( "\"X-Poedit-SearchPath-1: Common\\n\"" );
6363 sw.WriteLine( "\"X-Poedit-SearchPath-2: AviFile\\n\"" );
64- string[] keys = Messaging.GetKeys( "template" );
64+ string[] keys = Messaging.getKeys( "template" );
6565 foreach ( string key in keys ) {
66- string oldid = Messaging.GetMessage( key );
66+ string oldid = Messaging.getMessage( key );
6767 if ( dict.ContainsKey( oldid ) ) {
6868 string item = dict[oldid];
6969 item = item.Replace( "\"", "\\\"" );
--- trunk/LipSync/OverlayImpeller/OverlayImpeller.cs (revision 15)
+++ trunk/LipSync/OverlayImpeller/OverlayImpeller.cs (revision 16)
@@ -15,10 +15,10 @@
1515 /// <param name="e_body">エントリの終了時刻</param>
1616 /// <param name="e_end">エントリの設定値</param>
1717 public void Apply( ref Bitmap frame, float time, float e_begin, float e_end, ref string e_body ) {
18- double rpm = 11.5821;
19- int centerx = 135;
20- int centery = 135;
21- int impeller_diameter = 153;
18+ double rpm = 12.4;
19+ int centerx = 144;
20+ int centery = 144;
21+ int impeller_diameter = 163;
2222 int impeller_height_half = 12;
2323 double theta0 = 0.0;
2424
旧リポジトリブラウザで表示