#ifndef GWT_DIALOG #define GWT_DIALOG #include #include #include using namespace Wt; /** Créer une fenêtre de dialogue et permet de la paramètres facilement @param titre : titre de la fenêtre @param icon : icone à afficher dans le corps de la boite (Warning, Error, Info, Wait, NoIcon) @param modal : true si cette fenêtre doit être bloquante @param okButton : true pour fermer cette fenêtre avec un bouton "ok". false n'affiche aucun bouton */ class GWt_dialog : public WDialog { public : enum iconType { Warning, Error, Info, Wait, NoIcon }; /** Add a dialog with the given container inside @param titre: A title displayed on the window title bar @param message: The message inside this dialog @param container: a valid WContainer */ GWt_dialog(WString titre, WContainerWidget* container, bool modal=false); /** Add a full dialog window configure with title, message, iconType and button @param titre: A title displayed on the window title bar @param message: The message inside this dialog @param icon: IconType, could be Warning, Error, Info, Wait or NoIcon @param modal: true for a blocking dialog, false for a non-blocking dialog @param okButton: true if you want a "ok" button at the end */ GWt_dialog(WString titre, std::string message, iconType icon=NoIcon, bool modal=false, bool okButton=false); }; #endif