xtd 0.2.0
Loading...
Searching...
No Matches
progress_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "component.hpp"
7#include "iwin32_window.hpp"
8#include <xtd/string>
9
11namespace xtd {
13 namespace forms {
33 struct data;
34 public:
36
41
45
47
51 bool cancelled() const;
52
60
63 const std::vector<xtd::string>& informations() const noexcept;
67 progress_dialog& informations(const std::vector<xtd::string>& informations);
68
71 bool marquee() const noexcept;
75 progress_dialog& marquee(bool marquee);
76
81 size_t marquee_animation_speed() const noexcept;
86 progress_dialog& marquee_animation_speed(size_t marquee_animation_speed);
87
92 int32 maximum() const noexcept;
97 progress_dialog& maximum(int32 maximum);
98
101 const xtd::string& message() const noexcept;
106
110 int32 minimum() const noexcept;
115 progress_dialog& minimum(int32 minimum);
116
119 bool show_cancel_button() const noexcept;
123 progress_dialog& show_cancel_button(bool show_cancel_button);
124
127 bool show_elapsed_time() const noexcept;
131 progress_dialog& show_elapsed_time(bool show_elapsed_time);
132
135 bool show_estimated_time() const noexcept;
139 progress_dialog& show_estimated_time(bool show_estimated_time);
140
143 bool show_remaining_time() const noexcept;
147 progress_dialog& show_remaining_time(bool show_remaining_time);
148
151 bool show_skip_button() const noexcept;
155 progress_dialog& show_skip_button(bool show_skip_button);
156
159 bool skipped() const;
160
164 virtual int32 step() const noexcept;
168 virtual progress_dialog& step(int32 step);
169
172 const xtd::string& text() const noexcept;
176 progress_dialog& text(const xtd::string& text);
177
183 int32 value() const noexcept;
189 progress_dialog& value(int32 value);
191
193
196 void hide();
197
202 void increment(int32 increment);
203
206 void perform_step();
207
209 void reset() noexcept;
210
212 void resume();
213
215 void show();
217 void show(const iwin32_window& owner);
218
220 void show_sheet(const iwin32_window& owner);
221
223 void show_dialog();
225 void show_dialog(const iwin32_window& owner);
227 void show_sheet_dialog(const iwin32_window& owner);
229
230 private:
231 bool get_option(size_t flag) const noexcept;
232 void set_option(size_t flag, bool value);
233 void recreate_dialog();
234
235 xtd::sptr<data> data_;
236 };
237 }
238}
Provides the base implementation and enables object sharing between applications.
Definition component.hpp:25
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
Implements a Windows message.
Definition message.hpp:28
Represents a common dialog box that displays progress dialog.
Definition progress_dialog.hpp:32
xtd::forms::dialog_appearance dialog_appearance() const noexcept
Gets the dialog appearance.
progress_dialog()
Initializes a new instance of the progress_dialog class.
bool cancelled() const
Gets whether user has clicked on cancel button.
Contains xtd::forms::component class.
Contains xtd::forms::dialog_appearance enum class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
control_appearance
Specifies the appearance of a control.
Definition control_appearance.hpp:21
Contains xtd::forms::iwin32_window interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10