Simulateur Ferroviaire
Reconstruction et visualisation d'un réseau ferroviaire à partir de données GeoJSON — Win32 / WebView2 / Leaflet
Chargement...
Recherche...
Aucune correspondance
ProgressBar.h
Aller à la documentation de ce fichier.
1
12#pragma once
13
14#include <string>
15#include <windows.h>
16
18{
19public:
20
30 void create(HWND hParent, HINSTANCE hInstance,
31 int x, int y, int width, int cancelId);
32
38 void setProgress(int value);
39
45 void setLabel(const std::wstring& text);
46
50 void showCancelButton();
51
55 void hideCancelButton();
56
60 void reset();
61
67 void show(bool visible);
68
73 [[nodiscard]] static constexpr int totalHeight() { return 76; }
74 // 20 (label) + 6 (gap) + 20 (barre) + 6 (gap) + 24 (cancel)
75
76private:
77 HWND m_hLabel = nullptr;
78 HWND m_hBar = nullptr;
79 HWND m_hCancel = nullptr;
80};
Definition ProgressBar.h:18
HWND m_hBar
Contrôle PROGRESS_CLASS.
Definition ProgressBar.h:78
void showCancelButton()
Affiche le bouton Cancel — à appeler au début du parsing.
Definition ProgressBar.cpp:57
HWND m_hLabel
Contrôle STATIC — label de phase.
Definition ProgressBar.h:77
HWND m_hCancel
Contrôle BUTTON "Annuler".
Definition ProgressBar.h:79
void hideCancelButton()
Masque le bouton Cancel — à appeler à la fin / erreur / annulation.
Definition ProgressBar.cpp:63
void reset()
Réinitialise la barre à 0 et vide le label.
Definition ProgressBar.cpp:69
static constexpr int totalHeight()
Retourne la hauteur totale du widget en pixels. Utile pour positionner les contrôles voisins dans Mai...
Definition ProgressBar.h:73
void show(bool visible)
Show or hide the ProgressBar.
Definition ProgressBar.cpp:37
void setProgress(int value)
Met à jour la progression (0-100).
Definition ProgressBar.cpp:45
void setLabel(const std::wstring &text)
Met à jour le label de phase.
Definition ProgressBar.cpp:51
void create(HWND hParent, HINSTANCE hInstance, int x, int y, int width, int cancelId)
Crée les contrôles Win32 (label, barre, bouton Cancel).
Definition ProgressBar.cpp:10