Aspose.Tasks for C++
ProgressLines.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="ProgressLines.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/object.h>
9 #include <system/date_time.h>
10 #include <drawing/color.h>
11 
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Tasks
17 {
18 namespace Visualization
19 {
20 enum class DateLabel;
21 class FontDescriptor;
22 enum class GanttBarEndShape;
23 enum class LinePattern;
24 class RecurringInterval;
25 } // namespace Visualization
26 } // namespace Tasks
27 } // namespace Aspose
28 namespace System
29 {
30 namespace Collections
31 {
32 namespace Generic
33 {
34 template <typename> class List;
35 } // namespace Generic
36 } // namespace Collections
37 } // namespace System
38 
39 namespace Aspose {
40 
41 namespace Tasks {
42 
43 namespace Visualization {
44 
45 /// <summary>
46 /// Represents progress lines in a Gantt Chart view.
47 /// </summary>
48 class ASPOSE_TASKS_SHARED_CLASS ProgressLines : public System::Object
49 {
50  typedef ProgressLines ThisType;
51  typedef System::Object BaseType;
52 
53  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
54  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
55 
56 public:
57 
58  /// <summary>
59  /// Gets a value indicating whether to display progress line at current date.
60  /// </summary>
61  ASPOSE_TASKS_SHARED_API bool get_DisplayAtCurrentDate() const;
62  /// <summary>
63  /// Sets a value indicating whether to display progress line at current date.
64  /// </summary>
65  ASPOSE_TASKS_SHARED_API void set_DisplayAtCurrentDate(bool value);
66  /// <summary>
67  /// Gets a value indicating whether to display progress line at recurring intervals.
68  /// </summary>
69  ASPOSE_TASKS_SHARED_API bool get_DisplayAtRecurringIntervals() const;
70  /// <summary>
71  /// Sets a value indicating whether to display progress line at recurring intervals.
72  /// </summary>
73  ASPOSE_TASKS_SHARED_API void set_DisplayAtRecurringIntervals(bool value);
74  /// <summary>
75  /// Gets the recurring interval.
76  /// <see cref="RecurringInterval"></see>.
77  /// </summary>
78  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Aspose::Tasks::Visualization::RecurringInterval>& get_RecurringInterval() const;
79  /// <summary>
80  /// Sets the recurring interval.
81  /// <see cref="RecurringInterval"></see>.
82  /// </summary>
83  ASPOSE_TASKS_SHARED_API void set_RecurringInterval(const System::SharedPtr<Aspose::Tasks::Visualization::RecurringInterval>& value);
84  /// <summary>
85  /// Gets a value indicating whether to display progress lines from the beginning of the project start date.
86  /// </summary>
87  ASPOSE_TASKS_SHARED_API bool get_BeginAtProjectStart() const;
88  /// <summary>
89  /// Sets a value indicating whether to display progress lines from the beginning of the project start date.
90  /// </summary>
91  ASPOSE_TASKS_SHARED_API void set_BeginAtProjectStart(bool value);
92  /// <summary>
93  /// Gets the date to display progress lines from.
94  /// </summary>
95  ASPOSE_TASKS_SHARED_API System::DateTime get_BeginAtDate() const;
96  /// <summary>
97  /// Sets the date to display progress lines from.
98  /// </summary>
99  ASPOSE_TASKS_SHARED_API void set_BeginAtDate(System::DateTime value);
100  /// <summary>
101  /// Gets a value indicating whether to display progress lines at the selected dates.
102  /// </summary>
103  ASPOSE_TASKS_SHARED_API bool get_DisplaySelected() const;
104  /// <summary>
105  /// Sets a value indicating whether to display progress lines at the selected dates.
106  /// </summary>
107  ASPOSE_TASKS_SHARED_API void set_DisplaySelected(bool value);
108  /// <summary>
109  /// Gets a value indicating whether to display progress lines for baseline plan or actual.
110  /// </summary>
111  ASPOSE_TASKS_SHARED_API bool get_IsBaselinePlan() const;
112  /// <summary>
113  /// Sets a value indicating whether to display progress lines for baseline plan or actual.
114  /// </summary>
115  ASPOSE_TASKS_SHARED_API void set_IsBaselinePlan(bool value);
116  /// <summary>
117  /// Gets a value indicating whether to show date for each progress line.
118  /// </summary>
119  ASPOSE_TASKS_SHARED_API bool get_ShowDate() const;
120  /// <summary>
121  /// Sets a value indicating whether to show date for each progress line.
122  /// </summary>
123  ASPOSE_TASKS_SHARED_API void set_ShowDate(bool value);
124  /// <summary>
125  /// Gets the date format (<see cref="DateLabel"></see>).
126  /// </summary>
127  ASPOSE_TASKS_SHARED_API DateLabel get_DateFormat() const;
128  /// <summary>
129  /// Sets the date format (<see cref="DateLabel"></see>).
130  /// </summary>
131  ASPOSE_TASKS_SHARED_API void set_DateFormat(DateLabel value);
132  /// <summary>
133  /// Gets the font used for progress line label.
134  /// </summary>
135  ASPOSE_TASKS_SHARED_API const System::SharedPtr<FontDescriptor>& get_Font() const;
136  /// <summary>
137  /// Sets the font used for progress line label.
138  /// </summary>
139  ASPOSE_TASKS_SHARED_API void set_Font(const System::SharedPtr<FontDescriptor>& value);
140  /// <summary>
141  /// Gets the line pattern of current progress line.
142  /// <see cref="LinePattern"></see>.
143  /// </summary>
144  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Visualization::LinePattern get_LinePattern() const;
145  /// <summary>
146  /// Sets the line pattern of current progress line.
147  /// <see cref="LinePattern"></see>.
148  /// </summary>
149  ASPOSE_TASKS_SHARED_API void set_LinePattern(Aspose::Tasks::Visualization::LinePattern value);
150  /// <summary>
151  /// Gets the line color for current progress line.
152  /// </summary>
153  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_LineColor() const;
154  /// <summary>
155  /// Sets the line color for current progress line.
156  /// </summary>
157  ASPOSE_TASKS_SHARED_API void set_LineColor(System::Drawing::Color value);
158  /// <summary>
159  /// Gets the progress point shape.
160  /// <see cref="GanttBarEndShape"></see>.
161  /// </summary>
162  ASPOSE_TASKS_SHARED_API GanttBarEndShape get_ProgressPointShape() const;
163  /// <summary>
164  /// Sets the progress point shape.
165  /// <see cref="GanttBarEndShape"></see>.
166  /// </summary>
167  ASPOSE_TASKS_SHARED_API void set_ProgressPointShape(GanttBarEndShape value);
168  /// <summary>
169  /// Gets the color of progress point.
170  /// </summary>
171  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_ProgressPointColor() const;
172  /// <summary>
173  /// Sets the color of progress point.
174  /// </summary>
175  ASPOSE_TASKS_SHARED_API void set_ProgressPointColor(System::Drawing::Color value);
176  /// <summary>
177  /// Gets the line pattern for other progress line.
178  /// </summary>
179  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Visualization::LinePattern get_OtherLinePattern() const;
180  /// <summary>
181  /// Sets the line pattern for other progress line.
182  /// </summary>
183  ASPOSE_TASKS_SHARED_API void set_OtherLinePattern(Aspose::Tasks::Visualization::LinePattern value);
184  /// <summary>
185  /// Gets the color of other progress line.
186  /// </summary>
187  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_OtherLineColor() const;
188  /// <summary>
189  /// Sets the color of other progress line.
190  /// </summary>
191  ASPOSE_TASKS_SHARED_API void set_OtherLineColor(System::Drawing::Color value);
192  /// <summary>
193  /// Gets the progress point shape of other progress line.
194  /// </summary>
195  ASPOSE_TASKS_SHARED_API GanttBarEndShape get_OtherProgressPointShape() const;
196  /// <summary>
197  /// Sets the progress point shape of other progress line.
198  /// </summary>
199  ASPOSE_TASKS_SHARED_API void set_OtherProgressPointShape(GanttBarEndShape value);
200  /// <summary>
201  /// Gets the color of other progress point.
202  /// </summary>
203  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_OtherProgressPointColor() const;
204  /// <summary>
205  /// Sets the color of other progress point.
206  /// </summary>
207  ASPOSE_TASKS_SHARED_API void set_OtherProgressPointColor(System::Drawing::Color value);
208  /// <summary>
209  /// Gets the list of selected dates to display progress lines for.
210  /// </summary>
211  ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::DateTime>> get_SelectedDates() const;
212 
213  ASPOSE_TASKS_SHARED_API ProgressLines();
214 
215 protected:
216 
217  #ifdef ASPOSE_GET_SHARED_MEMBERS
218  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
219  #endif
220 
221 
222 private:
223 
224  System::SharedPtr<System::Collections::Generic::List<System::DateTime>> selectedDates;
225  bool pr_DisplayAtCurrentDate;
226  bool pr_DisplayAtRecurringIntervals;
227  System::SharedPtr<Aspose::Tasks::Visualization::RecurringInterval> pr_RecurringInterval;
228  bool pr_BeginAtProjectStart;
229  System::DateTime pr_BeginAtDate;
230  bool pr_DisplaySelected;
231  bool pr_IsBaselinePlan;
232  bool pr_ShowDate;
233  DateLabel pr_DateFormat;
234  System::SharedPtr<FontDescriptor> pr_Font;
235  Aspose::Tasks::Visualization::LinePattern pr_LinePattern;
236  System::Drawing::Color pr_LineColor;
237  GanttBarEndShape pr_ProgressPointShape;
238  System::Drawing::Color pr_ProgressPointColor;
239  Aspose::Tasks::Visualization::LinePattern pr_OtherLinePattern;
240  System::Drawing::Color pr_OtherLineColor;
241  GanttBarEndShape pr_OtherProgressPointShape;
242  System::Drawing::Color pr_OtherProgressPointColor;
243 
244 };
245 
246 } // namespace Visualization
247 } // namespace Tasks
248 } // namespace Aspose
249 
250 
Represents progress lines in a Gantt Chart view.
Definition: ProgressLines.h:49
void set_Font(const System::SharedPtr< FontDescriptor > &value)
Sets the font used for progress line label.
void set_LineColor(System::Drawing::Color value)
Sets the line color for current progress line.
void set_IsBaselinePlan(bool value)
Sets a value indicating whether to display progress lines for baseline plan or actual.
bool get_ShowDate() const
Gets a value indicating whether to show date for each progress line.
Aspose::Tasks::Visualization::LinePattern get_OtherLinePattern() const
Gets the line pattern for other progress line.
void set_OtherLineColor(System::Drawing::Color value)
Sets the color of other progress line.
bool get_DisplayAtRecurringIntervals() const
Gets a value indicating whether to display progress line at recurring intervals.
void set_DisplaySelected(bool value)
Sets a value indicating whether to display progress lines at the selected dates.
Aspose::Tasks::Visualization::LinePattern get_LinePattern() const
Gets the line pattern of current progress line. LinePattern.
void set_ShowDate(bool value)
Sets a value indicating whether to show date for each progress line.
System::Drawing::Color get_OtherLineColor() const
Gets the color of other progress line.
bool get_IsBaselinePlan() const
Gets a value indicating whether to display progress lines for baseline plan or actual.
DateLabel get_DateFormat() const
Gets the date format (DateLabel).
const System::SharedPtr< Aspose::Tasks::Visualization::RecurringInterval > & get_RecurringInterval() const
Gets the recurring interval. RecurringInterval.
void set_BeginAtDate(System::DateTime value)
Sets the date to display progress lines from.
void set_OtherProgressPointShape(GanttBarEndShape value)
Sets the progress point shape of other progress line.
void set_OtherProgressPointColor(System::Drawing::Color value)
Sets the color of other progress point.
System::Drawing::Color get_OtherProgressPointColor() const
Gets the color of other progress point.
void set_RecurringInterval(const System::SharedPtr< Aspose::Tasks::Visualization::RecurringInterval > &value)
Sets the recurring interval. RecurringInterval.
void set_LinePattern(Aspose::Tasks::Visualization::LinePattern value)
Sets the line pattern of current progress line. LinePattern.
System::SharedPtr< System::Collections::Generic::List< System::DateTime > > get_SelectedDates() const
Gets the list of selected dates to display progress lines for.
void set_ProgressPointColor(System::Drawing::Color value)
Sets the color of progress point.
System::Drawing::Color get_LineColor() const
Gets the line color for current progress line.
GanttBarEndShape get_OtherProgressPointShape() const
Gets the progress point shape of other progress line.
void set_BeginAtProjectStart(bool value)
Sets a value indicating whether to display progress lines from the beginning of the project start dat...
const System::SharedPtr< FontDescriptor > & get_Font() const
Gets the font used for progress line label.
void set_DateFormat(DateLabel value)
Sets the date format (DateLabel).
void set_OtherLinePattern(Aspose::Tasks::Visualization::LinePattern value)
Sets the line pattern for other progress line.
bool get_BeginAtProjectStart() const
Gets a value indicating whether to display progress lines from the beginning of the project start dat...
void set_DisplayAtRecurringIntervals(bool value)
Sets a value indicating whether to display progress line at recurring intervals.
bool get_DisplayAtCurrentDate() const
Gets a value indicating whether to display progress line at current date.
GanttBarEndShape get_ProgressPointShape() const
Gets the progress point shape. GanttBarEndShape.
System::DateTime get_BeginAtDate() const
Gets the date to display progress lines from.
System::Drawing::Color get_ProgressPointColor() const
Gets the color of progress point.
void set_DisplayAtCurrentDate(bool value)
Sets a value indicating whether to display progress line at current date.
void set_ProgressPointShape(GanttBarEndShape value)
Sets the progress point shape. GanttBarEndShape.
bool get_DisplaySelected() const
Gets a value indicating whether to display progress lines at the selected dates.
Definition: Asn.h:13