2002-7-7 DennisHayes <dennish@raytek.com>
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / ColorDialog.cs
1 //\r
2 // System.Windows.Forms.ColorDialog.cs\r
3 //\r
4 // Author:\r
5 //   stubbed out by Jaak Simm (jaaksimm@firm.ee)\r
6 //\r
7 // (C) Ximian, Inc., 2002\r
8 //\r
9 \r
10 using System.Drawing;\r
11 \r
12 namespace System.Windows.Forms\r
13 {\r
14         /// <summary>\r
15         /// Represents a common dialog box that displays available colors along with controls that allow the user to define custom colors.\r
16         ///\r
17         /// ToDo note:\r
18         ///  - nothing is implemented\r
19         /// </summary>\r
20 \r
21         [MonoTODO]\r
22         public class ColorDialog : CommonDialog\r
23         {\r
24                 // private fields\r
25                 bool allowFullOpen;\r
26                 bool anyColor;\r
27                 Color color;\r
28                 int[] customColors;\r
29                 bool fullOpen;\r
30                 bool showHelp;\r
31                 bool solidColorOnly;\r
32 \r
33                 /// --- Constructor ---\r
34                 protected ColorDialog() : base() {\r
35                         allowFullOpen = true;\r
36                         anyColor = false;\r
37                         color = Color.Black;\r
38                         customColors = null;\r
39                         fullOpen = false;\r
40                         showHelp = false;\r
41                         solidColorOnly = false;\r
42                 }\r
43                 \r
44                 \r
45                 \r
46                 \r
47                 /// --- Properties ---\r
48                 /// following properties are not stubbed out, because they only support .NET framework\r
49                 /// - protected virtual IntPtr Instance {get;}\r
50                 /// - protected virtual int Options {get;}\r
51                 public virtual bool AllowFullOpen {\r
52                         get { return allowFullOpen; }\r
53                         set { allowFullOpen=value; }\r
54                 }\r
55                 \r
56                 public virtual bool AnyColor {\r
57                         get { return anyColor; }\r
58                         set { anyColor=value; }\r
59                 }\r
60                 \r
61                 public Color Color {\r
62                         get { return color; }\r
63                         set { color=value; }\r
64                 }\r
65                 \r
66                 public int[] CustomColors {\r
67                         get { return customColors; }\r
68                         set { customColors=value; }\r
69                 }\r
70                 \r
71                 public virtual bool FullOpen {\r
72                         get { return fullOpen; }\r
73                         set { fullOpen=value; }\r
74                 }\r
75                 \r
76                 public virtual bool ShowHelp {\r
77                         get { return showHelp; }\r
78                         set { showHelp=value; }\r
79                 }\r
80                 \r
81                 public virtual bool SolidColorOnly {\r
82                         get { return solidColorOnly; }\r
83                         set { solidColorOnly=value; }\r
84                 }\r
85                 \r
86                 \r
87                 \r
88                 \r
89                 /// --- ColorDialog methods ---\r
90                 [MonoTODO]\r
91                 public override void Reset() {\r
92                         throw new NotImplementedException ();\r
93                 }\r
94                 \r
95                 [MonoTODO]\r
96                 protected override bool RunDialog(IntPtr hwndOwner) {\r
97                         throw new NotImplementedException ();\r
98                 }\r
99                 \r
100                 [MonoTODO]\r
101                 public override string ToString() {\r
102                         throw new NotImplementedException ();\r
103                 }\r
104                 \r
105         }\r
106 }\r