WorkspaceWidgets.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. using Metis.Measuring;
  2. using PaintDotNet.ImageLabel;
  3. using PaintDotNet.Instrument;
  4. using PaintDotNet.Measuring;
  5. namespace PaintDotNet
  6. {
  7. /// <summary>
  8. /// This class is used to hold references to many of the UI elements
  9. /// that are privately encapsulated in various places.
  10. /// This allows other program elements to access these objects while
  11. /// allowing these items to move around, and without breaking OO best
  12. /// practices.
  13. /// </summary>
  14. internal class WorkspaceWidgets
  15. {
  16. private AppWorkspace workspace;
  17. private DocumentStrip documentStrip;
  18. public DocumentStrip DocumentStrip
  19. {
  20. get
  21. {
  22. return this.documentStrip;
  23. }
  24. set
  25. {
  26. this.documentStrip = value;
  27. }
  28. }
  29. private ViewConfigStrip viewConfigStrip;
  30. public ViewConfigStrip ViewConfigStrip
  31. {
  32. get
  33. {
  34. return this.viewConfigStrip;
  35. }
  36. set
  37. {
  38. this.viewConfigStrip = value;
  39. }
  40. }
  41. private CommonActionsStrip commonActionsStrip;
  42. public CommonActionsStrip CommonActionsStrip
  43. {
  44. get
  45. {
  46. return this.commonActionsStrip;
  47. }
  48. set
  49. {
  50. this.commonActionsStrip = value;
  51. }
  52. }
  53. private RuleListForm ruleListForm;
  54. public RuleListForm RuleListForm
  55. {
  56. get
  57. {
  58. return this.ruleListForm;
  59. }
  60. set
  61. {
  62. this.ruleListForm = value;
  63. }
  64. }
  65. private PixelTrackingDialog pixelTrackingDialog;
  66. public PixelTrackingDialog PixelTrackingDialog
  67. {
  68. get
  69. {
  70. return this.pixelTrackingDialog;
  71. }
  72. set
  73. {
  74. this.pixelTrackingDialog = value;
  75. }
  76. }
  77. private ScriptRunningDialog runningDialog;
  78. public ScriptRunningDialog RunningDialog
  79. {
  80. get
  81. {
  82. return this.runningDialog;
  83. }
  84. set
  85. {
  86. this.runningDialog = value;
  87. }
  88. }
  89. private HistogramDialog histogramDialog;
  90. public HistogramDialog HistogramDialog
  91. {
  92. get
  93. {
  94. return this.histogramDialog;
  95. }
  96. set
  97. {
  98. this.histogramDialog = value;
  99. }
  100. }
  101. private ScratchTreatmentDialog scratchTreatmentDialog;
  102. public ScratchTreatmentDialog ScratchTreatmentDialog
  103. {
  104. get
  105. {
  106. return this.scratchTreatmentDialog;
  107. }
  108. set
  109. {
  110. this.scratchTreatmentDialog = value;
  111. }
  112. }
  113. private SmudgeTreatmentDialog smudgeTreatmentDialog;
  114. public SmudgeTreatmentDialog SmudgeTreatmentDialog
  115. {
  116. get
  117. {
  118. return this.smudgeTreatmentDialog;
  119. }
  120. set
  121. {
  122. this.smudgeTreatmentDialog = value;
  123. }
  124. }
  125. private LabelListDialog labelListDialog;
  126. public LabelListDialog LabelListDialog
  127. {
  128. get
  129. {
  130. return this.labelListDialog;
  131. }
  132. set
  133. {
  134. this.labelListDialog = value;
  135. }
  136. }
  137. private MeasureListDialog measureListDialog;
  138. public MeasureListDialog MeasureListDialog
  139. {
  140. get
  141. {
  142. return this.measureListDialog;
  143. }
  144. set
  145. {
  146. this.measureListDialog = value;
  147. }
  148. }
  149. private OpticalDensityDialog opticalDensityDialog;
  150. public OpticalDensityDialog OpticalDensityDialog
  151. {
  152. get
  153. {
  154. return this.opticalDensityDialog;
  155. }
  156. set
  157. {
  158. this.opticalDensityDialog = value;
  159. }
  160. }
  161. private WorkFlowDialog workFlowDialog;
  162. public WorkFlowDialog WorkFlowDialog
  163. {
  164. get
  165. {
  166. return this.workFlowDialog;
  167. }
  168. set
  169. {
  170. this.workFlowDialog = value;
  171. }
  172. }
  173. private ProjectEngineering projectEngineering;
  174. public ProjectEngineering ProjectEngineering
  175. {
  176. get
  177. {
  178. return this.projectEngineering;
  179. }
  180. set
  181. {
  182. this.projectEngineering = value;
  183. }
  184. }
  185. private IStatusBarProgress statusBarProgress;
  186. public IStatusBarProgress StatusBarProgress
  187. {
  188. get
  189. {
  190. return this.statusBarProgress;
  191. }
  192. set
  193. {
  194. this.statusBarProgress = value;
  195. }
  196. }
  197. private ScriptStartRecordingDialog startRecordingDialogs;
  198. public ScriptStartRecordingDialog StartRecordingDialog
  199. {
  200. get
  201. {
  202. return this.startRecordingDialogs;
  203. }
  204. set
  205. {
  206. this.startRecordingDialogs = value;
  207. }
  208. }
  209. private ImageIndexDialog imageIndexDialog;
  210. public ImageIndexDialog ImageIndexDialog
  211. {
  212. get
  213. {
  214. return this.imageIndexDialog;
  215. }
  216. set
  217. {
  218. this.imageIndexDialog = value;
  219. }
  220. }
  221. private GeometryMeasureDialog geometryMeasureDialog;
  222. public GeometryMeasureDialog GeometryMeasureDialog
  223. {
  224. get
  225. {
  226. return this.geometryMeasureDialog;
  227. }
  228. set
  229. {
  230. this.geometryMeasureDialog = value;
  231. }
  232. }
  233. public WorkspaceWidgets(AppWorkspace workspace)
  234. {
  235. this.workspace = workspace;
  236. }
  237. }
  238. }