1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.ActiveRecord
.Generator
.Parts
19 using System
.Collections
;
20 using System
.ComponentModel
;
21 using System
.Windows
.Forms
;
22 using WeifenLuo
.WinFormsUI
;
24 using Castle
.ActiveRecord
.Generator
.Actions
;
25 using Castle
.ActiveRecord
.Generator
.Components
;
26 using Castle
.ActiveRecord
.Generator
.Components
.Database
;
29 /// Summary description for AvailableShapes.
31 public class AvailableShapes
: DockContent
, ISubWorkspace
33 private Netron
.GraphLib
.UI
.GraphShapesView graphShapesView1
;
35 /// Required designer variable.
37 private System
.ComponentModel
.Container components
= null;
39 public AvailableShapes()
42 // Required for Windows Form Designer support
44 InitializeComponent();
47 // TODO: Add any constructor code after InitializeComponent call
50 graphShapesView1
.AddLibrary("Castle.ActiveRecord.Generator.exe");
53 public AvailableShapes(Model _model
) : this()
57 public IWin32Window ActiveWindow
59 get { throw new NotImplementedException(); }
62 public MainMenu MainMenu
64 get { throw new NotImplementedException(); }
67 public ToolBar MainToolBar
69 get { throw new NotImplementedException(); }
72 public StatusBar MainStatusBar
74 get { throw new NotImplementedException(); }
77 public DockPanel MainDockManager
79 get { throw new NotImplementedException(); }
82 public IWorkspace ParentWorkspace
89 /// Clean up any resources being used.
91 protected override void Dispose( bool disposing
)
95 if(components
!= null)
100 base.Dispose( disposing
);
103 #region Windows Form Designer generated code
105 /// Required method for Designer support - do not modify
106 /// the contents of this method with the code editor.
108 private void InitializeComponent()
110 this.graphShapesView1
= new Netron
.GraphLib
.UI
.GraphShapesView();
111 ((System
.ComponentModel
.ISupportInitialize
)(this.graphShapesView1
)).BeginInit();
112 this.SuspendLayout();
116 this.graphShapesView1
.Dock
= System
.Windows
.Forms
.DockStyle
.Fill
;
117 this.graphShapesView1
.Font
= new System
.Drawing
.Font("Tahoma", 8.25F
, System
.Drawing
.FontStyle
.Regular
, System
.Drawing
.GraphicsUnit
.Point
, ((System
.Byte
)(0)));
118 this.graphShapesView1
.Location
= new System
.Drawing
.Point(0, 0);
119 this.graphShapesView1
.Name
= "graphShapesView1";
120 this.graphShapesView1
.Size
= new System
.Drawing
.Size(246, 321);
121 this.graphShapesView1
.TabIndex
= 0;
122 this.graphShapesView1
.View
= System
.Windows
.Forms
.View
.LargeIcon
;
126 this.DockableAreas
= ((WeifenLuo
.WinFormsUI
.DockAreas
)(((((WeifenLuo
.WinFormsUI
.DockAreas
.Float
| WeifenLuo
.WinFormsUI
.DockAreas
.DockLeft
)
127 | WeifenLuo
.WinFormsUI
.DockAreas
.DockRight
)
128 | WeifenLuo
.WinFormsUI
.DockAreas
.DockTop
)
129 | WeifenLuo
.WinFormsUI
.DockAreas
.DockBottom
)));
130 this.AutoScaleBaseSize
= new System
.Drawing
.Size(5, 14);
131 this.ClientSize
= new System
.Drawing
.Size(246, 323);
132 this.Controls
.Add(this.graphShapesView1
);
133 this.DockPadding
.Bottom
= 2;
134 this.Font
= new System
.Drawing
.Font("Tahoma", 8.25F
, System
.Drawing
.FontStyle
.Regular
, System
.Drawing
.GraphicsUnit
.Point
, ((System
.Byte
)(0)));
135 this.HideOnClose
= true;
136 this.Name
= "AvailableShapes";
137 this.ShowHint
= WeifenLuo
.WinFormsUI
.DockState
.DockRight
;
138 this.Text
= "ActiveRecord Components";
139 ((System
.ComponentModel
.ISupportInitialize
)(this.graphShapesView1
)).EndInit();
140 this.ResumeLayout(false);