#include <ProgressBar.h>
|
| void | create (HWND hParent, HINSTANCE hInstance, int x, int y, int width, int cancelId) |
| | Crée les contrôles Win32 (label, barre, bouton Cancel).
|
| |
| void | setProgress (int value) |
| | Met à jour la progression (0-100).
|
| |
| void | setLabel (const std::wstring &text) |
| | Met à jour le label de phase.
|
| |
| void | showCancelButton () |
| | Affiche le bouton Cancel — à appeler au début du parsing.
|
| |
| void | hideCancelButton () |
| | Masque le bouton Cancel — à appeler à la fin / erreur / annulation.
|
| |
| void | reset () |
| | Réinitialise la barre à 0 et vide le label.
|
| |
| void | show (bool visible) |
| | Show or hide the ProgressBar.
|
| |
|
| static constexpr int | totalHeight () |
| | Retourne la hauteur totale du widget en pixels. Utile pour positionner les contrôles voisins dans MainWindow.
|
| |
|
| HWND | m_hLabel = nullptr |
| | Contrôle STATIC — label de phase.
|
| |
| HWND | m_hBar = nullptr |
| | Contrôle PROGRESS_CLASS.
|
| |
| HWND | m_hCancel = nullptr |
| | Contrôle BUTTON "Annuler".
|
| |
◆ create()
| void ProgressBar::create |
( |
HWND |
hParent, |
|
|
HINSTANCE |
hInstance, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
cancelId |
|
) |
| |
Crée les contrôles Win32 (label, barre, bouton Cancel).
- Paramètres
-
| hParent | Fenêtre parente. |
| hInstance | Handle d'instance Win32. |
| x,y | Position dans la fenêtre parente. |
| width | Largeur en pixels. |
| cancelId | Identifiant de commande du bouton Cancel (ex. IDC_CANCEL_PARSING). |
◆ hideCancelButton()
| void ProgressBar::hideCancelButton |
( |
| ) |
|
Masque le bouton Cancel — à appeler à la fin / erreur / annulation.
◆ reset()
| void ProgressBar::reset |
( |
| ) |
|
Réinitialise la barre à 0 et vide le label.
◆ setLabel()
| void ProgressBar::setLabel |
( |
const std::wstring & |
text | ) |
|
Met à jour le label de phase.
- Paramètres
-
| text | Texte affiché (ex. L"Phase 2/9 — Intersections géométriques..."). |
◆ setProgress()
| void ProgressBar::setProgress |
( |
int |
value | ) |
|
Met à jour la progression (0-100).
- Paramètres
-
| value | Valeur de progression. |
◆ show()
| void ProgressBar::show |
( |
bool |
visible | ) |
|
Show or hide the ProgressBar.
- Paramètres
-
| visible | true pour afficher, false pour masquer. |
◆ showCancelButton()
| void ProgressBar::showCancelButton |
( |
| ) |
|
Affiche le bouton Cancel — à appeler au début du parsing.
◆ totalHeight()
| static constexpr int ProgressBar::totalHeight |
( |
| ) |
|
|
inlinestaticconstexpr |
Retourne la hauteur totale du widget en pixels. Utile pour positionner les contrôles voisins dans MainWindow.
◆ m_hBar
| HWND ProgressBar::m_hBar = nullptr |
|
private |
◆ m_hCancel
| HWND ProgressBar::m_hCancel = nullptr |
|
private |
Contrôle BUTTON "Annuler".
◆ m_hLabel
| HWND ProgressBar::m_hLabel = nullptr |
|
private |
Contrôle STATIC — label de phase.
La documentation de cette classe a été générée à partir des fichiers suivants :