|
@@ -176,7 +176,6 @@ namespace BeatLyrics.Tool.UserControls
|
|
item.Text = RegRemoveRuby2.Replace(item.Text, "");
|
|
item.Text = RegRemoveRuby2.Replace(item.Text, "");
|
|
item.Text = RegRemoveRuby3.Replace(item.Text, "");
|
|
item.Text = RegRemoveRuby3.Replace(item.Text, "");
|
|
item.Text = RegRubyConvert.Replace(item.Text, match => match.Groups[2].Value);
|
|
item.Text = RegRubyConvert.Replace(item.Text, match => match.Groups[2].Value);
|
|
- item.TextWithRuby = null;
|
|
|
|
LeftLyricsObjectListView.UpdateObject(item);
|
|
LeftLyricsObjectListView.UpdateObject(item);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -187,7 +186,6 @@ namespace BeatLyrics.Tool.UserControls
|
|
{
|
|
{
|
|
var arr = JapanesePhonetic.GetWords(item.Text);
|
|
var arr = JapanesePhonetic.GetWords(item.Text);
|
|
item.Text = string.Join("", arr.Select(p => p.ToString()));
|
|
item.Text = string.Join("", arr.Select(p => p.ToString()));
|
|
- item.TextWithRuby = string.Join("", arr.Select(p => p.ToRubyTmpString()));
|
|
|
|
LeftLyricsObjectListView.UpdateObject(item);
|
|
LeftLyricsObjectListView.UpdateObject(item);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -261,27 +259,15 @@ namespace BeatLyrics.Tool.UserControls
|
|
if (e.KeyCode == Keys.F2 && olv.SelectedObject != null)
|
|
if (e.KeyCode == Keys.F2 && olv.SelectedObject != null)
|
|
{
|
|
{
|
|
var item = (LyricDetailExt)olv.SelectedObject;
|
|
var item = (LyricDetailExt)olv.SelectedObject;
|
|
- if (ModifierKeys == Keys.Shift) //TODO: Double Line Input Box
|
|
|
|
- {
|
|
|
|
- ContextDialog.PopTextBox(MousePosition, item.TextWithRuby, (r, s) =>
|
|
|
|
- {
|
|
|
|
- if (r == DialogResult.OK)
|
|
|
|
- {
|
|
|
|
- item.TextWithRuby = s;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
|
|
+
|
|
|
|
+ ContextDialog.PopTextBox(MousePosition, item.Text, (r, s) =>
|
|
{
|
|
{
|
|
- ContextDialog.PopTextBox(MousePosition, item.Text, (r, s) =>
|
|
|
|
|
|
+ if (r == DialogResult.OK)
|
|
{
|
|
{
|
|
- if (r == DialogResult.OK)
|
|
|
|
- {
|
|
|
|
- item.Text = s;
|
|
|
|
- olv.UpdateObject(item);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ item.Text = s;
|
|
|
|
+ olv.UpdateObject(item);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|