|
14 | 14 | --> |
15 | 15 | <Grid> |
16 | 16 | <Grid.RowDefinitions> |
17 | | - <RowDefinition Height="50*" /> |
18 | | - <RowDefinition Height="Auto" /> |
19 | | - <RowDefinition Height="30*" /> |
| 17 | + <RowDefinition Height="30" /> |
| 18 | + <RowDefinition Height="20*" /> |
| 19 | + <RowDefinition Height="10" /> |
| 20 | + <RowDefinition Height="12*" /> |
20 | 21 | </Grid.RowDefinitions> |
21 | 22 | <Grid.ColumnDefinitions> |
22 | 23 | <ColumnDefinition Width="1*" /> |
23 | 24 | <ColumnDefinition Width="Auto" /> |
24 | 25 | </Grid.ColumnDefinitions> |
25 | | - <Grid Grid.Column="0" Grid.Row="0"> |
26 | | - <console:IronPythonConsoleControl Name="consoleControl" /> |
27 | | - </Grid> |
28 | | - <GridSplitter |
29 | | - Grid.Row="1" |
30 | | - Height="10" |
31 | | - HorizontalAlignment="Stretch" |
32 | | - VerticalAlignment="Center" /> |
33 | | - <DockPanel Grid.Column="0" Grid.Row="2"> |
| 26 | + <DockPanel Grid.Column="0" Grid.Row="0"> |
34 | 27 | <ToolBar DockPanel.Dock="Top"> |
35 | 28 | <ToolBar.Resources> |
36 | 29 | <Style TargetType="{x:Type Image}"> |
|
43 | 36 | </ToolBar.Resources> |
44 | 37 | <Button Click="openFileClick"> |
45 | 38 | <Image |
46 | | - Height="16" |
47 | | - SnapsToDevicePixels="True" |
48 | | - Source="/RevitPythonShell;component/Resources/Theme/Open.png" |
49 | | - ToolTip="Open Python Script" /> |
| 39 | + Height="16" |
| 40 | + SnapsToDevicePixels="True" |
| 41 | + Source="/RevitPythonShell;component/Resources/Theme/Open.png" |
| 42 | + ToolTip="Open Python Script" /> |
50 | 43 | </Button> |
51 | 44 | <Button Click="saveFileClick"> |
52 | 45 | <Image |
53 | | - Height="16" |
54 | | - SnapsToDevicePixels="True" |
55 | | - Source="/RevitPythonShell;component/Resources/Theme/Save.png" |
56 | | - ToolTip="Save This Script Into File" /> |
| 46 | + Height="16" |
| 47 | + SnapsToDevicePixels="True" |
| 48 | + Source="/RevitPythonShell;component/Resources/Theme/Save.png" |
| 49 | + ToolTip="Save This Script Into File" /> |
57 | 50 | </Button> |
58 | 51 | <Separator /> |
59 | 52 | <Button Command="Cut"> |
60 | 53 | <Image |
61 | | - Height="16" |
62 | | - SnapsToDevicePixels="True" |
63 | | - Source="/RevitPythonShell;component/Resources/Theme/Cut.png" |
64 | | - ToolTip="Cut Selected" /> |
| 54 | + Height="16" |
| 55 | + SnapsToDevicePixels="True" |
| 56 | + Source="/RevitPythonShell;component/Resources/Theme/Cut.png" |
| 57 | + ToolTip="Cut Selected" /> |
65 | 58 | </Button> |
66 | 59 | <Button Command="Copy"> |
67 | 60 | <Image |
68 | | - Height="16" |
69 | | - SnapsToDevicePixels="True" |
70 | | - Source="/RevitPythonShell;component/Resources/Theme/Copy.png" |
71 | | - ToolTip="Copy Selected" /> |
| 61 | + Height="16" |
| 62 | + SnapsToDevicePixels="True" |
| 63 | + Source="/RevitPythonShell;component/Resources/Theme/Copy.png" |
| 64 | + ToolTip="Copy Selected" /> |
72 | 65 | </Button> |
73 | 66 | <Button Command="Paste"> |
74 | 67 | <Image |
75 | | - Height="16" |
76 | | - SnapsToDevicePixels="True" |
77 | | - Source="/RevitPythonShell;component/Resources/Theme/Paste.png" |
78 | | - ToolTip="Paste Into Script Editor" /> |
| 68 | + Height="16" |
| 69 | + SnapsToDevicePixels="True" |
| 70 | + Source="/RevitPythonShell;component/Resources/Theme/Paste.png" |
| 71 | + ToolTip="Paste Into Script Editor" /> |
79 | 72 | </Button> |
80 | 73 | <Button Command="Delete"> |
81 | 74 | <Image |
82 | | - Height="16" |
83 | | - SnapsToDevicePixels="True" |
84 | | - Source="/RevitPythonShell;component/Resources/Theme/Delete.png" |
85 | | - ToolTip="Delete Selected" /> |
| 75 | + Height="16" |
| 76 | + SnapsToDevicePixels="True" |
| 77 | + Source="/RevitPythonShell;component/Resources/Theme/Delete.png" |
| 78 | + ToolTip="Delete Selected" /> |
86 | 79 | </Button> |
87 | 80 | <Separator /> |
88 | 81 | <Button Command="Undo"> |
89 | 82 | <Image |
90 | | - Height="16" |
91 | | - SnapsToDevicePixels="True" |
92 | | - Source="/RevitPythonShell;component/Resources/Theme/Undo.png" |
93 | | - ToolTip="Undo" /> |
| 83 | + Height="16" |
| 84 | + SnapsToDevicePixels="True" |
| 85 | + Source="/RevitPythonShell;component/Resources/Theme/Undo.png" |
| 86 | + ToolTip="Undo" /> |
94 | 87 | </Button> |
95 | 88 | <Button Command="Redo"> |
96 | 89 | <Image |
97 | | - Height="16" |
98 | | - SnapsToDevicePixels="True" |
99 | | - Source="/RevitPythonShell;component/Resources/Theme/Redo.png" |
100 | | - ToolTip="Redo" /> |
| 90 | + Height="16" |
| 91 | + SnapsToDevicePixels="True" |
| 92 | + Source="/RevitPythonShell;component/Resources/Theme/Redo.png" |
| 93 | + ToolTip="Redo" /> |
101 | 94 | </Button> |
102 | 95 | <Separator /> |
103 | 96 | <CheckBox IsChecked="{Binding ElementName=textEditor, Path=WordWrap}"> |
104 | 97 | <Image |
105 | | - Height="16" |
106 | | - SnapsToDevicePixels="True" |
107 | | - Source="/RevitPythonShell;component/Resources/Theme/WordWrap.png" |
108 | | - ToolTip="Toggle Word Wrap" /> |
| 98 | + Height="16" |
| 99 | + SnapsToDevicePixels="True" |
| 100 | + Source="/RevitPythonShell;component/Resources/Theme/WordWrap.png" |
| 101 | + ToolTip="Toggle Word Wrap" /> |
109 | 102 | </CheckBox> |
110 | 103 | <CheckBox IsChecked="{Binding ElementName=textEditor, Path=ShowLineNumbers}"> |
111 | 104 | <Image |
112 | | - Height="16" |
113 | | - SnapsToDevicePixels="True" |
114 | | - Source="/RevitPythonShell;component/Resources/Theme/Number.png" |
115 | | - ToolTip="Toggle Line Numbers" /> |
| 105 | + Height="16" |
| 106 | + SnapsToDevicePixels="True" |
| 107 | + Source="/RevitPythonShell;component/Resources/Theme/Number.png" |
| 108 | + ToolTip="Toggle Line Numbers" /> |
116 | 109 | </CheckBox> |
117 | 110 | <CheckBox IsChecked="{Binding ElementName=textEditor, Path=Options.ShowEndOfLine}"> |
118 | 111 | <Image |
119 | | - Height="16" |
120 | | - SnapsToDevicePixels="True" |
121 | | - Source="/RevitPythonShell;component/Resources/Theme/Paragraph.png" |
122 | | - ToolTip="Toggle Show End of Line" /> |
| 112 | + Height="16" |
| 113 | + SnapsToDevicePixels="True" |
| 114 | + Source="/RevitPythonShell;component/Resources/Theme/Paragraph.png" |
| 115 | + ToolTip="Toggle Show End of Line" /> |
123 | 116 | </CheckBox> |
124 | 117 | <Separator /> |
125 | 118 | <Button Click="runClick"> |
126 | 119 | <Image |
127 | | - Height="16" |
128 | | - SnapsToDevicePixels="True" |
129 | | - Source="/RevitPythonShell;component/Resources/Theme/Run.png" |
130 | | - ToolTip="Run Script. Results will be displayed in the IronPython prompt." /> |
| 120 | + Height="16" |
| 121 | + SnapsToDevicePixels="True" |
| 122 | + Source="/RevitPythonShell;component/Resources/Theme/Run.png" |
| 123 | + ToolTip="Run Script. Results will be displayed in the IronPython prompt." /> |
131 | 124 | </Button> |
132 | 125 | </ToolBar> |
133 | | - <Grid DockPanel.Dock="Bottom"> |
134 | | - <avalonEdit:TextEditor |
135 | | - FontFamily="Consolas" |
136 | | - FontSize="10pt" |
137 | | - GotFocus="textEditor_GotFocus" |
138 | | - Name="textEditor"> |
139 | | - # IronPython Pad. Write code snippets here and F5 to run. |
140 | | - </avalonEdit:TextEditor> |
141 | | - </Grid> |
142 | 126 | </DockPanel> |
| 127 | + <Grid Grid.Column="0" Grid.Row="1"> |
| 128 | + <avalonEdit:TextEditor |
| 129 | + FontFamily="Consolas" |
| 130 | + FontSize="10pt" |
| 131 | + GotFocus="textEditor_GotFocus" |
| 132 | + Name="textEditor"> |
| 133 | + # IronPython Pad. Write code snippets here and F5 to run. |
| 134 | + </avalonEdit:TextEditor> |
| 135 | + </Grid> |
| 136 | + <GridSplitter |
| 137 | + Grid.Row="2" |
| 138 | + Height="10" |
| 139 | + HorizontalAlignment="Stretch" |
| 140 | + VerticalAlignment="Center" /> |
| 141 | + |
| 142 | + <Grid Grid.Row="3" MinHeight="20"> |
| 143 | + <console:IronPythonConsoleControl Name="consoleControl" /> |
| 144 | + </Grid> |
143 | 145 |
|
144 | 146 | </Grid> |
145 | 147 | </Window> |
0 commit comments