forked from PintaProject/Pinta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DialogAttributes.cs
101 lines (84 loc) · 2.21 KB
/
DialogAttributes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
//
// DialogAttributes.cs
//
// Initial version from:
// http://github.com/migueldeicaza/MonoTouch.Dialog/blob/master/MonoTouch.Dialog/Reflect.cs
//
// Author:
// Miguel de Icaza ([email protected])
//
// Copyright 2010, Novell, Inc.
//
// Code licensed under the MIT X11 license
using System;
using System.Collections.Generic;
namespace Pinta.Gui.Widgets
{
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class SkipAttribute : Attribute
{
}
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class CaptionAttribute : Attribute
{
public CaptionAttribute (string caption)
{
Caption = caption;
}
public string Caption;
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class DigitsValueAttribute : Attribute
{
public DigitsValueAttribute(int value)
{
Value = value;
}
public int Value;
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class IncrementValueAttribute : Attribute
{
public IncrementValueAttribute(double value)
{
Value = value;
}
public double Value;
}
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class MinimumValueAttribute : Attribute
{
public MinimumValueAttribute (int value)
{
Value = value;
}
public int Value;
}
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class MaximumValueAttribute : Attribute
{
public MaximumValueAttribute (int value)
{
Value = value;
}
public int Value;
}
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class HintAttribute : Attribute
{
public HintAttribute (string caption)
{
Hint = caption;
}
public string Hint;
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class StaticListAttribute : Attribute
{
public StaticListAttribute (string dict)
{
this.dictionaryName = dict;
}
public string dictionaryName;
}
}