Got rid of some gtk+-warnings about str being NULL
[mono.git] / mcs / class / System.Windows.Forms / Gtk / Label.cs
1 //
2 // System.Windows.Forms.Label.cs
3 //
4 // Author:
5 //   stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 //        implemented for Gtk+ by Rachel Hestilow (hestilow@ximian.com)
7 //
8 // (C) 2002 Ximian, Inc
9 //
10
11 namespace System.Windows.Forms {
12         using System.Drawing;
13
14         // <summary>
15         //
16         // </summary>
17         
18         public class Label : Control {
19         
20         public Label () : base ()
21         {
22                 this.Text = " ";
23         }
24                 
25         //public virtual bool AutoSize {
26                 //      get {
27                 //              throw new NotImplementedException ();
28                 //      }
29                 //      set {
30                 //              throw new NotImplementedException ();
31                 //      }
32                 //}
33                 //[MonoTODO]
34                 //public FlatStyle FlatStyle {
35                 //      get {
36                 //              throw new NotImplementedException ();
37                 //      }
38                 //      set {
39                 //              throw new NotImplementedException ();
40                 //      }
41                 //}
42                 //[MonoTODO]
43                 //public Image Image {
44                 //      get {
45                 //              throw new NotImplementedException ();
46                 //      }
47                 //      set {
48                 //              throw new NotImplementedException ();
49                 //      }
50                 //}
51                 //[MonoTODO]
52                 //public ContentAlignment ImageAlign {
53                 //      get {
54                 //              throw new NotImplementedException ();
55                 //      }
56                 //      set {
57                 //              throw new NotImplementedException ();
58                 //      }
59                 //}
60                 //[MonoTODO]
61                 //public int ImageIndex {
62                 //      get {
63                 //              throw new NotImplementedException ();
64                 //      }
65                 //      set {
66                 //              throw new NotImplementedException ();
67                 //      }
68                 //}
69                 //[MonoTODO]
70                 //public ImageList ImageList {
71                 //      get {
72                 //              throw new NotImplementedException ();
73                 //      }
74                 //      set {
75                 //              throw new NotImplementedException ();
76                 //      }
77                 //}
78                 //[MonoTODO]
79                 //public ImeMode ImeMode {
80                 //      get {
81                 //              throw new NotImplementedException ();
82                 //      }
83                 //      set {
84                 //              throw new NotImplementedException ();
85                 //      }
86                 //}
87                 //[MonoTODO]
88                 //public int PreferredHeight {
89                 //      get {
90                 //              throw new NotImplementedException ();
91                 //      }
92                 //}
93                 //[MonoTODO]
94                 //public int PreferredWidth {
95                 //      get {
96                 //              throw new NotImplementedException ();
97                 //      }
98                 //}
99                 //[MonoTODO]
100                 //public bool TabStop {
101                 //      get {
102                 //              throw new NotImplementedException ();
103                 //      }
104                 //      set {
105                 //              throw new NotImplementedException ();
106                 //      }
107                 //}
108                 [MonoTODO]
109                 public virtual ContentAlignment TextAlign {
110                         get {
111                                 throw new NotImplementedException ();
112                         }
113                         set {
114                                 throw new NotImplementedException ();
115                         }
116                 }
117                 //[MonoTODO]
118                 //public bool UseMnemonic {
119                 //      get {
120                 //              throw new NotImplementedException ();
121                 //      }
122                 //      set {
123                 //              throw new NotImplementedException ();
124                 //      }
125                 //}
126
127                 //
128                 //  --- Public Methods
129                 //
130                 //[MonoTODO]
131                 //public virtual bool Equals(object o);
132                 //{
133                 //      throw new NotImplementedException ();
134                 //}
135                 //[MonoTODO]
136                 //public static bool Equals(object o1, object o2);
137                 //{
138                 //      throw new NotImplementedException ();
139                 //}
140                 //[MonoTODO]
141                 //public void Select()
142                 //{
143                 //      throw new NotImplementedException ();
144                 //}
145                 //[MonoTODO]
146                 //public override string ToString()
147                 //{
148                 //      throw new NotImplementedException ();
149                 //}
150
151                 //
152                 //  --- Public Events
153                 // 
154                 //[MonoTODO]
155                 //public event EventHandler AutoSizeChanged {
156                 //      add {
157                 //              throw new NotImplementedException ();
158                 //      }
159                 //      remove {
160                 //              throw new NotImplementedException ();
161                 //      }
162                 //}
163                 //[MonoTODO]
164                 //public event EventHandler TextAlignChanged {
165                 //      add {
166                 //              throw new NotImplementedException ();
167                 //      }
168                 //      remove {
169                 //              throw new NotImplementedException ();
170                 //      }
171                 //}
172
173                 //
174                 //  --- Protected Methods
175                 //
176                 //[MonoTODO]
177                 //protected  Rectangle CalcImageRenderBounds( Image image, Rectangle rect,  ContentAlignment align)
178                 //{
179                 //      throw new NotImplementedException ();
180                 //}
181                 //[MonoTODO]
182                 //protected  override AccessibleObject CreateAccessibilityInstance()
183                 //{
184                 //      throw new NotImplementedException ();
185                 //}
186                 //[MonoTODO]
187                 //protected  void Dispose()
188                 //{
189                 //      throw new NotImplementedException ();
190                 //}
191                 //[MonoTODO]
192                 //protected  override void Dispose(bool val)
193                 //{
194                 //      throw new NotImplementedException ();
195                 //}
196                 //[MonoTODO]
197                 //protected  void DrawImage(  Graphics g,  Image img,  Rectangle r,  ContentAlignment align)
198                 //{
199                 //      throw new NotImplementedException ();
200                 //}
201                 //[MonoTODO]
202                 //protected override void  OnEnabledChanged (EventArgs e)
203                 //{
204                 //      throw new NotImplementedException ();
205                 //}
206                 //[MonoTODO]
207                 //protected override void  OnFontChanged (EventArgs e)
208                 //{
209                 //      throw new NotImplementedException ();
210                 //}
211                 //[MonoTODO]
212                 //protected override void  OnPaint (PaintEventArgs e)
213                 //{
214                 //      throw new NotImplementedException ();
215                 //}
216                 //[MonoTODO]
217                 //protected override void  OnParentChanged (EventArgs e)
218                 //{
219                 //      throw new NotImplementedException ();
220                 //}
221                 //[MonoTODO]
222                 protected override void  OnTextChanged (EventArgs e)
223                 {
224                         ((Gtk.Label) Widget).Text = Text;
225                 }
226
227                 //[MonoTODO]
228                 //protected override void  OnVisibleChanged (EventArgs e)
229                 //{
230                 //      throw new NotImplementedException ();
231                 //}
232                 //[MonoTODO]
233                 //protected override bool ProcessMnemonic(char charCode)
234                 //{
235                 //      throw new NotImplementedException ();
236                 //}
237                 //[MonoTODO]
238                 //protected ContentAlignment RtlTranslateAlignment( ContentAlignment alignment)
239                 //{
240                 //      throw new NotImplementedException ();
241                 //}
242                 //[MonoTODO]
243                 //protected HorizontalAlignment RtlTranslateAlignment( HorizontalAlignment alignment)
244                 //{
245                 //      throw new NotImplementedException ();
246                 //}
247                 //[MonoTODO]
248                 //protected virtual void Select(bool val1, bool val2)
249                 //{
250                 //      throw new NotImplementedException ();
251                 //}
252                 //[MonoTODO]
253                 //protected override void SetBoundsCore(  int x, int y,  int width, int height  BoundsSpecified specified)
254                 //{
255                 //      throw new NotImplementedException ();
256                 //}
257                 //[MonoTODO]
258                 //protected void UpdateBounds()
259                 //{
260                 //      throw new NotImplementedException ();
261                 //}
262                 //[MonoTODO]
263                 //protected void UpdateBounds(int b1, int b2, int b3, int b4)
264                 //{
265                 //      throw new NotImplementedException ();
266                 //}
267                 //[MonoTODO]
268                 //protected override void WndProc(ref Message m)
269                 //{
270                 //      throw new NotImplementedException ();
271                 //}
272
273                 internal override Gtk.Widget CreateWidget () {
274                         return new Gtk.Label (Text);
275                 }
276         }
277 }