@@ -7,11 +7,11 @@ public partial class MainWindow
7
7
8
8
private global ::Gtk . Action FileAction ;
9
9
10
- private global ::Gtk . Action OpenPathAction ;
10
+ private global ::Gtk . Action openAction ;
11
11
12
- private global ::Gtk . Action SaveAction ;
12
+ private global ::Gtk . Action saveAction ;
13
13
14
- private global ::Gtk . Action ExitAction ;
14
+ private global ::Gtk . Action stopAction ;
15
15
16
16
private global ::Gtk . Action EnginesAction ;
17
17
@@ -27,7 +27,13 @@ public partial class MainWindow
27
27
28
28
private global ::Gtk . Action HelpAction ;
29
29
30
- private global ::Gtk . Action InfoAction ;
30
+ private global ::Gtk . Action dialogInfoAction ;
31
+
32
+ private global ::Gtk . ToggleAction SmartSearchAction ;
33
+
34
+ private global ::Gtk . RadioAction IndexWLoadAction ;
35
+
36
+ private global ::Gtk . RadioAction IndexOnlyAction ;
31
37
32
38
private global ::Gtk . Table table1 ;
33
39
@@ -52,15 +58,15 @@ protected virtual void Build()
52
58
this . FileAction = new global ::Gtk . Action ( "FileAction" , global ::Mono . Unix . Catalog . GetString ( "File" ) , null , null ) ;
53
59
this . FileAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "File" ) ;
54
60
w1 . Add ( this . FileAction , null ) ;
55
- this . OpenPathAction = new global ::Gtk . Action ( "OpenPathAction " , global ::Mono . Unix . Catalog . GetString ( "Open Path" ) , null , null ) ;
56
- this . OpenPathAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Open Path" ) ;
57
- w1 . Add ( this . OpenPathAction , null ) ;
58
- this . SaveAction = new global ::Gtk . Action ( "SaveAction " , global ::Mono . Unix . Catalog . GetString ( "Save" ) , null , null ) ;
59
- this . SaveAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Save" ) ;
60
- w1 . Add ( this . SaveAction , null ) ;
61
- this . ExitAction = new global ::Gtk . Action ( "ExitAction " , global ::Mono . Unix . Catalog . GetString ( "Exit" ) , null , null ) ;
62
- this . ExitAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Exit" ) ;
63
- w1 . Add ( this . ExitAction , null ) ;
61
+ this . openAction = new global ::Gtk . Action ( "openAction " , global ::Mono . Unix . Catalog . GetString ( "Open Path" ) , null , "gtk-open" ) ;
62
+ this . openAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Open Path" ) ;
63
+ w1 . Add ( this . openAction , null ) ;
64
+ this . saveAction = new global ::Gtk . Action ( "saveAction " , global ::Mono . Unix . Catalog . GetString ( "Save" ) , null , "gtk-save" ) ;
65
+ this . saveAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Save" ) ;
66
+ w1 . Add ( this . saveAction , null ) ;
67
+ this . stopAction = new global ::Gtk . Action ( "stopAction " , global ::Mono . Unix . Catalog . GetString ( "Exit" ) , null , "gtk-stop" ) ;
68
+ this . stopAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Exit" ) ;
69
+ w1 . Add ( this . stopAction , null ) ;
64
70
this . EnginesAction = new global ::Gtk . Action ( "EnginesAction" , global ::Mono . Unix . Catalog . GetString ( "Engines" ) , null , null ) ;
65
71
this . EnginesAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Engines" ) ;
66
72
w1 . Add ( this . EnginesAction , null ) ;
@@ -84,9 +90,20 @@ protected virtual void Build()
84
90
this . HelpAction = new global ::Gtk . Action ( "HelpAction" , global ::Mono . Unix . Catalog . GetString ( "Help" ) , null , null ) ;
85
91
this . HelpAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Help" ) ;
86
92
w1 . Add ( this . HelpAction , null ) ;
87
- this . InfoAction = new global ::Gtk . Action ( "InfoAction" , global ::Mono . Unix . Catalog . GetString ( "Info" ) , null , null ) ;
88
- this . InfoAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Info" ) ;
89
- w1 . Add ( this . InfoAction , null ) ;
93
+ this . dialogInfoAction = new global ::Gtk . Action ( "dialogInfoAction" , global ::Mono . Unix . Catalog . GetString ( "Info" ) , null , "gtk-dialog-info" ) ;
94
+ this . dialogInfoAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Info" ) ;
95
+ w1 . Add ( this . dialogInfoAction , null ) ;
96
+ this . SmartSearchAction = new global ::Gtk . ToggleAction ( "SmartSearchAction" , global ::Mono . Unix . Catalog . GetString ( "Smart Search" ) , null , null ) ;
97
+ this . SmartSearchAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Smart Search" ) ;
98
+ w1 . Add ( this . SmartSearchAction , null ) ;
99
+ this . IndexWLoadAction = new global ::Gtk . RadioAction ( "IndexWLoadAction" , global ::Mono . Unix . Catalog . GetString ( "Index w/ Load" ) , null , null , 0 ) ;
100
+ this . IndexWLoadAction . Group = this . MultiThreadAction . Group ;
101
+ this . IndexWLoadAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Index w/ Load" ) ;
102
+ w1 . Add ( this . IndexWLoadAction , null ) ;
103
+ this . IndexOnlyAction = new global ::Gtk . RadioAction ( "IndexOnlyAction" , global ::Mono . Unix . Catalog . GetString ( "Index Only" ) , null , null , 0 ) ;
104
+ this . IndexOnlyAction . Group = this . IndexWLoadAction . Group ;
105
+ this . IndexOnlyAction . ShortLabel = global ::Mono . Unix . Catalog . GetString ( "Index Only" ) ;
106
+ w1 . Add ( this . IndexOnlyAction , null ) ;
90
107
this . UIManager . InsertActionGroup ( w1 , 0 ) ;
91
108
this . AddAccelGroup ( this . UIManager . AccelGroup ) ;
92
109
this . Name = "MainWindow" ;
@@ -111,7 +128,7 @@ protected virtual void Build()
111
128
w3 . TopAttach = ( ( uint ) ( 2 ) ) ;
112
129
w3 . BottomAttach = ( ( uint ) ( 3 ) ) ;
113
130
// Container child table1.Gtk.Table+TableChild
114
- this . UIManager . AddUiFromString ( @"<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='OpenPathAction ' action='OpenPathAction '/><menuitem name='SaveAction ' action='SaveAction '/><menuitem name='ExitAction ' action='ExitAction '/></menu><menu name='EnginesAction' action='EnginesAction'><menuitem name='MultiThreadAction' action='MultiThreadAction'/><menuitem name='SingleThreadAction' action='SingleThreadAction'/></ menu><menu name='OptionsAction' action='OptionsAction'><menuitem name='RamAction' action='RamAction'/><menuitem name='MultiLineAction' action='MultiLineAction'/></ menu><menu name='HelpAction' action='HelpAction'><menuitem name='InfoAction ' action='InfoAction '/></menu></menubar></ui>" ) ;
131
+ this . UIManager . AddUiFromString ( @"<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='openAction ' action='openAction '/><menuitem name='saveAction ' action='saveAction '/><menuitem name='stopAction ' action='stopAction '/></menu><menu name='EnginesAction' action='EnginesAction'><menuitem name='MultiThreadAction' action='MultiThreadAction'/><menuitem name='SingleThreadAction' action='SingleThreadAction'/><menuitem name='IndexWLoadAction' action='IndexWLoadAction'/><menuitem name='IndexOnlyAction' action='IndexOnlyAction'/></ menu><menu name='OptionsAction' action='OptionsAction'><menuitem name='RamAction' action='RamAction'/><menuitem name='MultiLineAction' action='MultiLineAction'/><menuitem name='SmartSearchAction' action='SmartSearchAction'/></ menu><menu name='HelpAction' action='HelpAction'><menuitem name='dialogInfoAction ' action='dialogInfoAction '/></menu></menubar></ui>" ) ;
115
132
this . menubar1 = ( ( global ::Gtk . MenuBar ) ( this . UIManager . GetWidget ( "/menubar1" ) ) ) ;
116
133
this . menubar1 . Name = "menubar1" ;
117
134
this . table1 . Add ( this . menubar1 ) ;
@@ -157,10 +174,10 @@ protected virtual void Build()
157
174
this . DefaultHeight = 648 ;
158
175
this . Show ( ) ;
159
176
this . DeleteEvent += new global ::Gtk . DeleteEventHandler ( this . OnDeleteEvent ) ;
160
- this . OpenPathAction . Activated += new global ::System . EventHandler ( this . OpenPathEvent ) ;
161
- this . SaveAction . Activated += new global ::System . EventHandler ( this . SaveEvent ) ;
162
- this . ExitAction . Activated += new global ::System . EventHandler ( this . ExitEvent ) ;
163
- this . InfoAction . Activated += new global ::System . EventHandler ( this . InfoActivated ) ;
177
+ this . openAction . Activated += new global ::System . EventHandler ( this . OpenPathEvent ) ;
178
+ this . saveAction . Activated += new global ::System . EventHandler ( this . SaveEvent ) ;
179
+ this . stopAction . Activated += new global ::System . EventHandler ( this . ExitEvent ) ;
180
+ this . dialogInfoAction . Activated += new global ::System . EventHandler ( this . InfoActivated ) ;
164
181
this . button1 . Clicked += new global ::System . EventHandler ( this . searchClick ) ;
165
182
}
166
183
}
0 commit comments