1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * RpAbout - Rappture 2.0 About XML object |
---|
4 | * |
---|
5 | * ====================================================================== |
---|
6 | * AUTHOR: Derrick Kearney, Purdue University |
---|
7 | * Copyright (c) 2004-2005 Purdue Research Foundation |
---|
8 | * |
---|
9 | * See the file "license.terms" for information on usage and |
---|
10 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
11 | * ====================================================================== |
---|
12 | */ |
---|
13 | |
---|
14 | #include "RpAbout.h" |
---|
15 | |
---|
16 | /**********************************************************************/ |
---|
17 | // METHOD: setLabel() |
---|
18 | /// Set the label of this object. |
---|
19 | /** |
---|
20 | */ |
---|
21 | |
---|
22 | RpAbout& |
---|
23 | RpAbout::setLabel(std::string newLabel) { |
---|
24 | |
---|
25 | label = newLabel; |
---|
26 | return *this; |
---|
27 | } |
---|
28 | |
---|
29 | /**********************************************************************/ |
---|
30 | // METHOD: setDesc() |
---|
31 | /// Set the description of this object. |
---|
32 | /** |
---|
33 | */ |
---|
34 | |
---|
35 | RpAbout& |
---|
36 | RpAbout::setDesc(std::string newDesc) { |
---|
37 | |
---|
38 | desc = newDesc; |
---|
39 | return *this; |
---|
40 | } |
---|
41 | |
---|
42 | /**********************************************************************/ |
---|
43 | // METHOD: setHints() |
---|
44 | /// Set the hints of this object. |
---|
45 | /** |
---|
46 | */ |
---|
47 | |
---|
48 | RpAbout& |
---|
49 | RpAbout::setHints(std::string newHints) { |
---|
50 | |
---|
51 | hints = newHints; |
---|
52 | return *this; |
---|
53 | } |
---|
54 | |
---|
55 | /**********************************************************************/ |
---|
56 | // METHOD: setColor() |
---|
57 | /// Set the color of this object. |
---|
58 | /** |
---|
59 | */ |
---|
60 | |
---|
61 | RpAbout& |
---|
62 | RpAbout::setColor(std::string newColor) { |
---|
63 | |
---|
64 | color = newColor; |
---|
65 | return *this; |
---|
66 | } |
---|
67 | |
---|
68 | /**********************************************************************/ |
---|
69 | // METHOD: setIcon() |
---|
70 | /// Set the icon of this object. |
---|
71 | /** |
---|
72 | */ |
---|
73 | |
---|
74 | RpAbout& |
---|
75 | RpAbout::setIcon(std::string newIcon) { |
---|
76 | |
---|
77 | icon = newIcon; |
---|
78 | return *this; |
---|
79 | } |
---|
80 | |
---|
81 | |
---|
82 | /**********************************************************************/ |
---|
83 | // METHOD: getLabel() |
---|
84 | /// Report the label of this object. |
---|
85 | /** |
---|
86 | */ |
---|
87 | |
---|
88 | std::string |
---|
89 | RpAbout::getLabel() const { |
---|
90 | |
---|
91 | return label; |
---|
92 | } |
---|
93 | |
---|
94 | /**********************************************************************/ |
---|
95 | // METHOD: getDesc() |
---|
96 | /// Report the description of this object. |
---|
97 | /** |
---|
98 | */ |
---|
99 | |
---|
100 | std::string |
---|
101 | RpAbout::getDesc() const { |
---|
102 | |
---|
103 | return desc; |
---|
104 | } |
---|
105 | |
---|
106 | /**********************************************************************/ |
---|
107 | // METHOD: getHints() |
---|
108 | /// Report the hints of this object. |
---|
109 | /** |
---|
110 | */ |
---|
111 | |
---|
112 | std::string |
---|
113 | RpAbout::getHints() const { |
---|
114 | |
---|
115 | return hints; |
---|
116 | } |
---|
117 | |
---|
118 | /**********************************************************************/ |
---|
119 | // METHOD: getColor() |
---|
120 | /// Report the color of this object. |
---|
121 | /** |
---|
122 | */ |
---|
123 | |
---|
124 | std::string |
---|
125 | RpAbout::getColor() const { |
---|
126 | |
---|
127 | return color; |
---|
128 | } |
---|
129 | |
---|
130 | /**********************************************************************/ |
---|
131 | // METHOD: getIcon() |
---|
132 | /// Report the icon of this object. |
---|
133 | /** |
---|
134 | */ |
---|
135 | |
---|
136 | std::string |
---|
137 | RpAbout::getIcon() const { |
---|
138 | |
---|
139 | return icon; |
---|
140 | } |
---|
141 | |
---|
142 | |
---|
143 | // -------------------------------------------------------------------- // |
---|