92 : base(handle)
93 {
94 _builder = builder;
95 builder.Autoconnect(this);
96 xBox.ValueChanged += xBox_ValueChanged;
97 yBox.ValueChanged += yBox_ValueChanged;
98 wBox.ValueChanged += wBox_ValueChanged;
99 hBox.ValueChanged += hBox_ValueChanged;
100 rBox.ValueChanged += rBox_ValueChanged;
101 gBox.ValueChanged += gBox_ValueChanged;
102 bBox.ValueChanged += bBox_ValueChanged;
103 zBox.ValueChanged += zBox_ValueChanged;
104 cBox.ValueChanged += cBox_ValueChanged;
105 tBox.ValueChanged += tBox_ValueChanged;
106 widthBox.ValueChanged += strokeWBox_ValueChanged;
107 pointXBox.ValueChanged += pointXBox_ValueChanged;
108 pointYBox.ValueChanged += pointYBox_ValueChanged;
109 pointBox.ValueChanged += pointBox_ValueChanged;
110 selBox.ValueChanged += selectBoxSize_ValueChanged;
111 widthBox.ValueChanged += strokeWBox_ValueChanged;
112 textBox.Changed += textBox_TextChanged;
113 idBox.Changed += idBox_TextChanged;
114 boundsBox.Clicked += showBoundsBox_ActiveChanged;
115 showTextBox.Clicked += showTextBox_ActiveChanged;
116 showRBox.Clicked += showRBox_ActiveChanged;
117 showGBox.Clicked += showGBox_ActiveChanged;
118 showBBox.Clicked += showBBox_ActiveChanged;
119 showMasksBox.Clicked += ShowMasksBox_Clicked;
120 this.DeleteEvent += ROIManager_DeleteEvent;
121
122
123 roiView.RowActivated += RoiView_RowActivated;
124 roiView.ActivateOnSingleClick = true;
125 this.FocusInEvent += ROIManager_FocusInEvent;
126
127 xBox.Adjustment.Upper = PointD.MaxX;
128 xBox.Adjustment.StepIncrement= 0.1;
129 xBox.Adjustment.PageIncrement= 1;
130 yBox.Adjustment.Upper = PointD.MaxY;
131 yBox.Adjustment.StepIncrement = 0.1;
132 yBox.Adjustment.PageIncrement = 1;
133 wBox.Adjustment.Upper = PointD.MaxX;
134 wBox.Adjustment.StepIncrement = 0.1;
135 wBox.Adjustment.PageIncrement = 1;
136 hBox.Adjustment.Upper = PointD.MaxY;
137 xBox.Adjustment.StepIncrement = 0.1;
138 xBox.Adjustment.PageIncrement = 1;
139 rBox.Adjustment.Upper = byte.MaxValue;
140 rBox.Adjustment.StepIncrement = 1;
141 rBox.Adjustment.PageIncrement = 1;
142 gBox.Adjustment.Upper = byte.MaxValue;
143 gBox.Adjustment.StepIncrement = 1;
144 gBox.Adjustment.PageIncrement = 1;
145 bBox.Adjustment.Upper = byte.MaxValue;
146 bBox.Adjustment.StepIncrement = 1;
147 bBox.Adjustment.PageIncrement = 1;
148 zBox.Adjustment.Upper = 10000;
149 zBox.Adjustment.StepIncrement = 1;
150 zBox.Adjustment.PageIncrement = 1;
151 cBox.Adjustment.Upper = 10000;
152 cBox.Adjustment.StepIncrement = 1;
153 cBox.Adjustment.PageIncrement = 1;
154 tBox.Adjustment.Upper = 10000;
155 tBox.Adjustment.StepIncrement = 1;
156 tBox.Adjustment.PageIncrement = 1;
157 widthBox.Adjustment.Upper = 100;
158 widthBox.Adjustment.StepIncrement = 1;
159 widthBox.Adjustment.PageIncrement = 1;
160 pointBox.Adjustment.Upper = 100000;
161 pointBox.Adjustment.StepIncrement = 1;
162 pointBox.Adjustment.PageIncrement = 1;
163 pointXBox.Adjustment.Upper = PointD.MaxX;
164 pointXBox.Adjustment.StepIncrement = 0.1;
165 pointXBox.Adjustment.PageIncrement = 1;
166 pointYBox.Adjustment.Upper = PointD.MaxY;
167 pointYBox.Adjustment.StepIncrement = 0.1;
168 pointYBox.Adjustment.PageIncrement = 1;
169 selBox.Value = ROI.selectBoxSize;
170 selBox.Adjustment.Upper = 100;
171 selBox.Adjustment.StepIncrement = 1;
173 App.ApplyStyles(this);
174 }