OSDN Git Service

WPF版でタブが表示されないバグを修正した
[fooeditengine/FooEditEngine.git] / WPF / FooEditEngine / FooTextBoxCommands.cs
1 /*
2  * Copyright (C) 2013 FooProject
3  * * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
5
6  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 
7  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
9 You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
10  */
11 using System;
12 using System.Windows.Input;
13
14 namespace FooEditEngine.WPF
15 {
16     /// <summary>
17     /// FooTextBox固有のコマンド
18     /// </summary>
19     public static class FooTextBoxCommands
20     {
21         /// <summary>
22         /// 選択モードの切り替えを行います
23         /// </summary>
24         public static RoutedUICommand ToggleRectSelectMode = new RoutedUICommand("Toggle Rect Selection",
25             "ToggleRectSelect", 
26             typeof(FooTextBox),
27             new InputGestureCollection(){new KeyGesture(Key.B,ModifierKeys.Control)});
28         /// <summary>
29         /// 表示方向の切り替えを行います
30         /// </summary>
31         public static RoutedUICommand ToggleFlowDirection = new RoutedUICommand("Toggle Flow Direction",
32             "ToggleFlowDirection",
33             typeof(FooTextBox),
34             null);
35         /// <summary>
36         /// コードポイントと文字を相互変換します
37         /// </summary>
38         public static RoutedUICommand ToggleCodePoint = new RoutedUICommand("Toggle ToggleCodePoint",
39             "ToggleCodePoint",
40             typeof(FooTextBox),
41             null);
42     }
43 }