~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/samples/Preferences/Preferences/PreferenceTabs/GeneralViewController.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using MonoMac.Foundation;
 
3
using MonoMac.AppKit;
 
4
 
 
5
namespace Preferences
 
6
{
 
7
        public partial class GeneralViewController : NSViewController, IPreferencesTab
 
8
        {
 
9
                #region Constructors
 
10
                
 
11
                // Called when created from unmanaged code
 
12
                public GeneralViewController (IntPtr handle) : base (handle)
 
13
                {
 
14
                        Initialize ();
 
15
                }
 
16
                
 
17
                // Called when created directly from a XIB file
 
18
                [Export ("initWithCoder:")]
 
19
                public GeneralViewController (NSCoder coder) : base (coder)
 
20
                {
 
21
                        Initialize ();
 
22
                }
 
23
                
 
24
                // Call to load from the XIB/NIB file
 
25
                public GeneralViewController () : base ("GeneralView", NSBundle.MainBundle)
 
26
                {
 
27
                        Initialize ();
 
28
                }
 
29
                
 
30
                // Shared initialization code
 
31
                void Initialize ()
 
32
                {
 
33
                }
 
34
                
 
35
                #endregion
 
36
 
 
37
                #region IPreferencesTab implementation
 
38
                
 
39
                public string Name {
 
40
                        get {
 
41
                                return "General";
 
42
                        }
 
43
                }
 
44
                
 
45
                public NSImage Icon {
 
46
                        get {
 
47
                                return NSImage.ImageNamed("NSGeneralPreferences");
 
48
                        }
 
49
                }
 
50
                
 
51
                #endregion
 
52
        }
 
53
}
 
54