137 : base(handle)
138 {
139 _builder = builder;
140 builder.Autoconnect(this);
141 xBox.ValueChanged += xBox_ValueChanged;
142 yBox.ValueChanged += yBox_ValueChanged;
143 wBox.ValueChanged += wBox_ValueChanged;
144 hBox.ValueChanged += hBox_ValueChanged;
145 rBox.ValueChanged += rBox_ValueChanged;
146 gBox.ValueChanged += gBox_ValueChanged;
147 bBox.ValueChanged += bBox_ValueChanged;
148 zBox.ValueChanged += zBox_ValueChanged;
149 cBox.ValueChanged += cBox_ValueChanged;
150 tBox.ValueChanged += tBox_ValueChanged;
151 widthBox.ValueChanged += strokeWBox_ValueChanged;
152 pointXBox.ValueChanged += pointXBox_ValueChanged;
153 pointYBox.ValueChanged += pointYBox_ValueChanged;
154 pointBox.ValueChanged += pointBox_ValueChanged;
155 selBox.ValueChanged += selectBoxSize_ValueChanged;
156 widthBox.ValueChanged += strokeWBox_ValueChanged;
157 textBox.Changed += textBox_TextChanged;
158 idBox.Changed += idBox_TextChanged;
159 boundsBox.Clicked += showBoundsBox_ActiveChanged;
160 showTextBox.Clicked += showTextBox_ActiveChanged;
161 showRBox.Clicked += showRBox_ActiveChanged;
162 showGBox.Clicked += showGBox_ActiveChanged;
163 showBBox.Clicked += showBBox_ActiveChanged;
164 showMasksBox.Clicked += ShowMasksBox_Clicked;
165 this.DeleteEvent += ROIManager_DeleteEvent;
166 menuDelete.ButtonPressEvent += MenuDelete_ButtonPressEvent;
167 menuCopy.ButtonPressEvent += MenuCopy_ButtonPressEvent;
168 menuPaste.ButtonPressEvent += MenuPaste_ButtonPressEvent;
169
170
171 roiView.RowActivated += RoiView_RowActivated;
172 this.FocusInEvent += ROIManager_FocusInEvent;
173 this.FocusActivated += ROIManager_Activated;
174 roiView.ButtonPressEvent += RoiView_ButtonPressEvent;
175
176 xBox.Adjustment.Upper = PointD.MaxX;
177 xBox.Adjustment.StepIncrement= 0.1;
178 xBox.Adjustment.PageIncrement= 1;
179 yBox.Adjustment.Upper = PointD.MaxY;
180 yBox.Adjustment.StepIncrement = 0.1;
181 yBox.Adjustment.PageIncrement = 1;
182 wBox.Adjustment.Upper = PointD.MaxX;
183 wBox.Adjustment.StepIncrement = 0.1;
184 wBox.Adjustment.PageIncrement = 1;
185 hBox.Adjustment.Upper = PointD.MaxY;
186 xBox.Adjustment.StepIncrement = 0.1;
187 xBox.Adjustment.PageIncrement = 1;
188 rBox.Adjustment.Upper = byte.MaxValue;
189 rBox.Adjustment.StepIncrement = 1;
190 rBox.Adjustment.PageIncrement = 1;
191 gBox.Adjustment.Upper = byte.MaxValue;
192 gBox.Adjustment.StepIncrement = 1;
193 gBox.Adjustment.PageIncrement = 1;
194 bBox.Adjustment.Upper = byte.MaxValue;
195 bBox.Adjustment.StepIncrement = 1;
196 bBox.Adjustment.PageIncrement = 1;
197 zBox.Adjustment.Upper = 10000;
198 zBox.Adjustment.StepIncrement = 1;
199 zBox.Adjustment.PageIncrement = 1;
200 cBox.Adjustment.Upper = 10000;
201 cBox.Adjustment.StepIncrement = 1;
202 cBox.Adjustment.PageIncrement = 1;
203 tBox.Adjustment.Upper = 10000;
204 tBox.Adjustment.StepIncrement = 1;
205 tBox.Adjustment.PageIncrement = 1;
206 widthBox.Adjustment.Upper = 100;
207 widthBox.Adjustment.StepIncrement = 1;
208 widthBox.Adjustment.PageIncrement = 1;
209 pointBox.Adjustment.Upper = 100000;
210 pointBox.Adjustment.StepIncrement = 1;
211 pointBox.Adjustment.PageIncrement = 1;
212 pointXBox.Adjustment.Upper = PointD.MaxX;
213 pointXBox.Adjustment.StepIncrement = 0.1;
214 pointXBox.Adjustment.PageIncrement = 1;
215 pointYBox.Adjustment.Upper = PointD.MaxY;
216 pointYBox.Adjustment.StepIncrement = 0.1;
217 pointYBox.Adjustment.PageIncrement = 1;
218 selBox.Value = ROI.selectBoxSize;
219 selBox.Adjustment.Upper = 100;
220 selBox.Adjustment.StepIncrement = 1;
221 roiView.ActivateOnSingleClick = true;
225 App.ApplyStyles(this);
226 }
void UpdateAnnotationList()