• R/O
  • SSH
  • HTTPS

azuki: Commit


Commit MetaInfo

Revisão1057 (tree)
Hora2016-10-21 16:13:50
Autorsgry

Mensagem de Log

[Ann] ファイルメニューから設定ファイルを開く機能を追加

Mudança Sumário

Diff

--- trunk/Ann/Actions.File.cs (revision 1056)
+++ trunk/Ann/Actions.File.cs (revision 1057)
@@ -119,6 +119,14 @@
119119 };
120120
121121 /// <summary>
122+ /// Opens the application's settings file.
123+ /// </summary>
124+ public static void OpenSettingsFile( AppLogic app )
125+ {
126+ app.OpenDocument( AppConfig.IniFilePath );
127+ }
128+
129+ /// <summary>
122130 /// Close all documents and exit application.
123131 /// </summary>
124132 public static AnnAction Exit
--- trunk/Ann/AnnForm.cs (revision 1056)
+++ trunk/Ann/AnnForm.cs (revision 1057)
@@ -313,6 +313,7 @@
313313 _MenuMap[ _MI_File_Encoding_UTF16BEB ] = Actions.ChangeEncoding_UTF16BEB;
314314 _MenuMap[ _MI_File_Close ] = Actions.CloseDocument;
315315 _MenuMap[ _MI_File_ReadOnly ] = Actions.ToggleReadOnlyMode;
316+ _MenuMap[ _MI_File_OpenSettingsFile ] = Actions.OpenSettingsFile;
316317 _MenuMap[ _MI_File_Exit ] = Actions.Exit;
317318
318319 _MenuMap[ _MI_Edit_Undo ] = Actions.Undo;
@@ -696,6 +697,7 @@
696697 _MI_File.MenuItems.Add( _MI_File_ReadOnly );
697698 _MI_File.MenuItems.Add( _MI_File_Sep2 );
698699 _MI_File.MenuItems.Add( _MI_File_Mru );
700+ _MI_File.MenuItems.Add( _MI_File_OpenSettingsFile );
699701 _MI_File.MenuItems.Add( _MI_File_Sep3 );
700702 _MI_File.MenuItems.Add( _MI_File_Exit );
701703
@@ -769,6 +771,7 @@
769771 _MI_File_ReadOnly.Text = "Read onl&y";
770772 _MI_File_Sep2.Text = "-";
771773 _MI_File_Mru.Text = "Recent &files";
774+ _MI_File_OpenSettingsFile.Text = "Open Se&ttings File";
772775 _MI_File_Sep3.Text = "-";
773776 _MI_File_Exit.Text = "E&xit";
774777 _MI_Edit.Text = "&Edit";
@@ -904,6 +907,7 @@
904907 MenuItem _MI_File_Close = new MenuItem();
905908 MenuItem _MI_File_Sep1 = new MenuItem();
906909 MenuItem _MI_File_ReadOnly = new MenuItem();
910+ MenuItem _MI_File_OpenSettingsFile = new MenuItem();
907911 MenuItem _MI_File_Sep2 = new MenuItem();
908912 MenuItem _MI_File_Mru = new MenuItem();
909913 MenuItem _MI_File_Sep3 = new MenuItem();
--- trunk/package/history.ja.txt (revision 1056)
+++ trunk/package/history.ja.txt (revision 1057)
@@ -1,4 +1,5 @@
11 == 1.8.0 (201x-xx-xx) ==
2+ * add: [Ann] ファイルメニューから設定ファイルを開く機能を追加
23 * mod: [!] SearchResult構造体の名前をTextSegmentに変更
34 * mod: [!] Documentだけを引数に受け取るIHighlighter.Highlightメソッドを廃止
45 * mod: 標準の配色テーマを変更
--- trunk/package/history.txt (revision 1056)
+++ trunk/package/history.txt (revision 1057)
@@ -1,4 +1,5 @@
11 == 1.8.0 (201x-xx-xx) ==
2+ * add: [Ann] New menu item to open configuration file
23 * mod: [!] Renamed SearchResult to TextSegment
34 * mod: [!] Removed IHighlighter.Highlight method which only takes Document
45 * mod: Changed default color scheme
Show on old repository browser