@@ -98,79 +98,287 @@ public interface IMainForm : IContainerControl, IWin32Window
98
98
{
99
99
#region IMainForm Methods
100
100
101
+ /// <summary>
102
+ /// Refreshes the main form.
103
+ /// </summary>
101
104
void RefreshUI ( ) ;
105
+ /// <summary>
106
+ /// Stop the currently running process.
107
+ /// </summary>
102
108
void KillProcess ( ) ;
109
+ /// <summary>
110
+ /// Refreshes the scintilla configuration.
111
+ /// </summary>
103
112
void RefreshSciConfig ( ) ;
113
+ /// <summary>
114
+ /// Themes the controls from the parent.
115
+ /// </summary>
104
116
void ThemeControls ( Object control ) ;
117
+ /// <summary>
118
+ /// Clears the temporary file from disk.
119
+ /// </summary>
105
120
void ClearTemporaryFiles ( String file ) ;
121
+ /// <summary>
122
+ /// Shows the settings dialog.
123
+ /// </summary>
106
124
void ShowSettingsDialog ( String itemName ) ;
125
+ /// <summary>
126
+ /// Shows the error dialog if the sender is <see cref="Managers.ErrorManager"/>.
127
+ /// </summary>
107
128
void ShowErrorDialog ( Object sender , Exception ex ) ;
129
+ /// <summary>
130
+ /// Shows the settings dialog with a filter.
131
+ /// </summary>
108
132
void ShowSettingsDialog ( String itemName , String filter ) ;
133
+ /// <summary>
134
+ /// Lets you update menu items using the flag functionality.
135
+ /// </summary>
109
136
void AutoUpdateMenuItem ( ToolStripItem item , String action ) ;
137
+ /// <summary>
138
+ /// Registers a new menu item with the shortcut manager.
139
+ /// </summary>
110
140
void RegisterShortcutItem ( String id , Keys keys ) ;
141
+ /// <summary>
142
+ /// Registers a new menu item with the shortcut manager.
143
+ /// </summary>
111
144
void RegisterShortcutItem ( String id , ToolStripMenuItem item ) ;
145
+ /// <summary>
146
+ /// Registers a new secondary menu item with the shortcut manager.
147
+ /// </summary>
112
148
void RegisterSecondaryItem ( String id , ToolStripItem item ) ;
149
+ /// <summary>
150
+ /// Updates a registered secondary menu item in the shortcut manager
151
+ /// - should be called when the tooltip changes.
152
+ /// </summary>
113
153
void ApplySecondaryShortcut ( ToolStripItem item ) ;
154
+ /// <summary>
155
+ /// Create the specified new document from the given template.
156
+ /// </summary>
114
157
void FileFromTemplate ( String templatePath , String newFilePath ) ;
158
+ /// <summary>
159
+ /// Opens an editable document.
160
+ /// </summary>
115
161
DockContent OpenEditableDocument ( String file , Boolean restoreFileState ) ;
162
+ /// <summary>
163
+ /// Opens an editable document.
164
+ /// </summary>
116
165
DockContent OpenEditableDocument ( String file ) ;
166
+ /// <summary>
167
+ /// Creates a new custom document.
168
+ /// </summary>
117
169
DockContent CreateCustomDocument ( Control ctrl ) ;
170
+ /// <summary>
171
+ /// Creates a new empty document.
172
+ /// </summary>
118
173
DockContent CreateEditableDocument ( String file , String text , Int32 codepage ) ;
174
+ /// <summary>
175
+ /// Creates a floating panel for the plugin.
176
+ /// </summary>
119
177
DockContent CreateDockablePanel ( Control form , String guid , Image image , DockState defaultDockState ) ;
178
+ /// <summary>
179
+ /// Calls a normal <see cref="IMainForm"/> method.
180
+ /// </summary>
120
181
Boolean CallCommand ( String command , String arguments ) ;
182
+ /// <summary>
183
+ /// Finds the menu items that have the specified name.
184
+ /// </summary>
121
185
List < ToolStripItem > FindMenuItems ( String name ) ;
186
+ /// <summary>
187
+ /// Finds the specified menu item by name.
188
+ /// </summary>
122
189
ToolStripItem FindMenuItem ( String name ) ;
190
+ /// <summary>
191
+ /// Processes the argument string variables.
192
+ /// </summary>
123
193
String ProcessArgString ( String args ) ;
194
+ /// <summary>
195
+ /// Gets the specified item's shortcut keys.
196
+ /// </summary>
124
197
Keys GetShortcutItemKeys ( String id ) ;
198
+ /// <summary>
199
+ /// Gets the specified item's id.
200
+ /// </summary>
125
201
String GetShortcutItemId ( Keys keys ) ;
202
+ /// <summary>
203
+ /// Gets a theme property value.
204
+ /// </summary>
126
205
String GetThemeValue ( String id ) ;
206
+ /// <summary>
207
+ /// Gets a theme property color.
208
+ /// </summary>
127
209
Color GetThemeColor ( String id ) ;
210
+ /// <summary>
211
+ /// Gets a theme flag value.
212
+ /// </summary>
128
213
Boolean GetThemeFlag ( String id ) ;
214
+ /// <summary>
215
+ /// Gets a theme flag value with a fallback.
216
+ /// </summary>
129
217
Boolean GetThemeFlag ( String id , Boolean fallback ) ;
218
+ /// <summary>
219
+ /// Gets a theme property value with a fallback.
220
+ /// </summary>
130
221
String GetThemeValue ( String id , String fallback ) ;
222
+ /// <summary>
223
+ /// Gets a theme property color with a fallback.
224
+ /// </summary>
131
225
Color GetThemeColor ( String id , Color fallback ) ;
226
+ /// <summary>
227
+ /// Finds the specified plugin.
228
+ /// </summary>
132
229
IPlugin FindPlugin ( String guid ) ;
230
+ /// <summary>
231
+ /// Adjusts the image for different themes.
232
+ /// </summary>
133
233
Image ImageSetAdjust ( Image image ) ;
234
+ /// <summary>
235
+ /// Finds the specified composed/ready image.
236
+ /// </summary>
134
237
Image FindImage ( String data ) ;
135
238
136
239
#endregion
137
240
138
241
#region IMainFrom Properties
139
242
243
+ /// <summary>
244
+ /// Gets the <see cref="ISettings"/> interface.
245
+ /// </summary>
140
246
ISettings Settings { get ; }
247
+ /// <summary>
248
+ /// Gets the tool strip.
249
+ /// </summary>
141
250
ToolStrip ToolStrip { get ; }
251
+ /// <summary>
252
+ /// Gets the menu strip.
253
+ /// </summary>
142
254
MenuStrip MenuStrip { get ; }
255
+ /// <summary>
256
+ /// Gets the <see cref="Scintilla"/> configuration.
257
+ /// </summary>
143
258
Scintilla SciConfig { get ; }
259
+ /// <summary>
260
+ /// Gets the dock panel.
261
+ /// </summary>
144
262
DockPanel DockPanel { get ; }
263
+ /// <summary>
264
+ /// Gets the application start arguments.
265
+ /// </summary>
145
266
String [ ] StartArguments { get ; }
267
+ /// <summary>
268
+ /// Gets the application custom arguments.
269
+ /// </summary>
146
270
List < Argument > CustomArguments { get ; }
271
+ /// <summary>
272
+ /// Gets the status strip.
273
+ /// </summary>
147
274
StatusStrip StatusStrip { get ; }
275
+ /// <summary>
276
+ /// Gets or sets the working directory.
277
+ /// </summary>
148
278
String WorkingDirectory { get ; set ; }
279
+ /// <summary>
280
+ /// Gets the tool strip panel.
281
+ /// </summary>
149
282
ToolStripPanel ToolStripPanel { get ; }
283
+ /// <summary>
284
+ /// Gets the tool strip status label.
285
+ /// </summary>
150
286
ToolStripStatusLabel StatusLabel { get ; }
287
+ /// <summary>
288
+ /// Gets the tool strip progress label.
289
+ /// </summary>
151
290
ToolStripStatusLabel ProgressLabel { get ; }
291
+ /// <summary>
292
+ /// Gets the tool strip progress bar.
293
+ /// </summary>
152
294
ToolStripProgressBar ProgressBar { get ; }
295
+ /// <summary>
296
+ /// Gets the collection of controls contained within this control.
297
+ /// </summary>
153
298
Control . ControlCollection Controls { get ; }
299
+ /// <summary>
300
+ /// Gets the tab menu.
301
+ /// </summary>
154
302
ContextMenuStrip TabMenu { get ; }
303
+ /// <summary>
304
+ /// Gets the editor menu.
305
+ /// </summary>
155
306
ContextMenuStrip EditorMenu { get ; }
307
+ /// <summary>
308
+ /// Gets the current <see cref="ITabbedDocument"/> object.
309
+ /// </summary>
156
310
ITabbedDocument CurrentDocument { get ; }
311
+ /// <summary>
312
+ /// Gets all available documents.
313
+ /// </summary>
157
314
ITabbedDocument [ ] Documents { get ; }
315
+ /// <summary>
316
+ /// Gets whether FlashDevelop holds modified documents.
317
+ /// </summary>
158
318
Boolean HasModifiedDocuments { get ; }
319
+ /// <summary>
320
+ /// Gets whether FlashDevelop is closing.
321
+ /// </summary>
159
322
Boolean ClosingEntirely { get ; }
323
+ /// <summary>
324
+ /// Gets whether a process is running.
325
+ /// </summary>
160
326
Boolean ProcessIsRunning { get ; }
327
+ /// <summary>
328
+ /// Gets whether a document is reloading.
329
+ /// </summary>
161
330
Boolean ReloadingDocument { get ; }
331
+ /// <summary>
332
+ /// Gets whether contents are being processed.
333
+ /// </summary>
162
334
Boolean ProcessingContents { get ; }
335
+ /// <summary>
336
+ /// Gets whether contents are being restored.
337
+ /// </summary>
163
338
Boolean RestoringContents { get ; }
339
+ /// <summary>
340
+ /// Gets saving multiple.
341
+ /// </summary>
164
342
Boolean SavingMultiple { get ; }
343
+ /// <summary>
344
+ /// Gets whether the panel is active.
345
+ /// </summary>
165
346
Boolean PanelIsActive { get ; }
347
+ /// <summary>
348
+ /// Gets whether FlashDevelop is in full screen.
349
+ /// </summary>
166
350
Boolean IsFullScreen { get ; }
351
+ /// <summary>
352
+ /// Gets whether FlashDevelop is in standalone mode.
353
+ /// </summary>
167
354
Boolean StandaloneMode { get ; }
355
+ /// <summary>
356
+ /// Gets whether FlashDevelop is in multi-instance mode.
357
+ /// </summary>
168
358
Boolean MultiInstanceMode { get ; }
359
+ /// <summary>
360
+ /// Gets whether this <see cref="IMainForm"/> is the first instance.
361
+ /// </summary>
169
362
Boolean IsFirstInstance { get ; }
363
+ /// <summary>
364
+ /// Gets whether a restart is required.
365
+ /// </summary>
170
366
Boolean RestartRequested { get ; }
367
+ /// <summary>
368
+ /// Gets whether the config should be refreshed.
369
+ /// </summary>
171
370
Boolean RefreshConfig { get ; }
371
+ /// <summary>
372
+ /// Gets the ignored keys.
373
+ /// </summary>
172
374
List < Keys > IgnoredKeys { get ; }
375
+ /// <summary>
376
+ /// Gets the version of the application.
377
+ /// </summary>
173
378
String ProductVersion { get ; }
379
+ /// <summary>
380
+ /// Gets the full human readable version string.
381
+ /// </summary>
174
382
String ProductName { get ; }
175
383
176
384
#endregion
0 commit comments