This interface defines how the layout manager manages the layout of GUI elements in a workspace. Such as the display and hiding status of the panel, the configuration of the Panel, the workbench form (view), the activity panel, the display and hiding panel, and the redrawing of the workbench form and the panel.
Define attributes:
Activity workbench form, the view content of the current activity.
Definition method:
Resident in the memory, withdraw from the memory, display the panel, make the Panel active, hide the panel, determine whether the Panel is visible, re-paint all components, import cooperation information, restore configuration information, the active workbench form has changed.
Define events:
Event triggered when the form of the active workbench changes.
1 using System;
2 using System. Collections. Generic;
3 using System. Text;
4
5 namespace MetaApplication
6 {
7/*** // <summary>
8 // The IWorkbenchLayout object is responsible for the layout
9 // the workspace, it shows the contents, chooses the IWorkbenchWindow
10 // implementation etc. it cocould be attached/detached at the runtime
11 // to a workbench.
12 /// </summary>
13 public interface iworkbenchlayout
14 {
15 iworkbenchwindow activeworkbenchwindow
16 {
17 get;
18}
19
20 object activecontent
21 {
22 get;
23}
24
25/*** // <summary>
26 // Attaches this layout manager to a workbench object.
27 /// </summary>
28 void Attach (IWorkbench workbench );
29
30/*** // <summary>
31 // Detaches this layout manager from the current workspace.
32 /// </summary>
33 void Detach ();
34
35/*** // <summary>
36 // Shows a new <see cref = "IPadContent"/>.
37 /// </summary>
38 void ShowPad (IPadContent content );
39
40/** // <summary>
41 // Activates a pad (Show only makes it visible but Activate does
42 // bring it to foreground)
43 // </summary>
44 void ActivatePad (IPadContent content );
45 void activatepad (string fullyqualifiedtypename );
46
47/*** // <summary>
48 // hides a new <see CREF = "ipadcontent"/>.
49 // </Summary>
50 void hidepad (ipadcontent content );
51
52/** // <summary>
53 // returns true, if padcontent is visible;
54 /// </Summary>
55 bool IsVisible (IPadContent padContent );
56
57/** // <summary>
58 // Re-initializes all components of the layout manager.
59 /// </summary>
60 void RedrawAllComponents ();
61
62/*** // <summary>
63 // Shows a new <see cref = "IViewContent"/>.
64 ///????? I don't know what to do and how to use it in the future
65 /// </summary>
66 IWorkbenchWindow ShowView (IViewContent content );
67
68
69 void LoadConfiguration ();
70 void StoreConfiguration ();
71
72/*** // <summary>
73 // Is called, when the workbench window which the user has
74 // the foreground (e.g. editable) changed to a new one.
75 /// </summary>
76 event EventHandler ActiveWorkbenchWindowChanged;
77
78 // only needed in the workspace window when the 'secondary view content' changed
79 // it is somewhat like 'Active workbench window changed'
80 void OnActiveWorkbenchWindowChanged (EventArgs e );
81}
82}
83