Changeset 148 in PSPA for Interface_Web
- Timestamp:
- Dec 6, 2012, 5:04:29 PM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_dialog.h
r147 r148 7 7 using namespace Wt; 8 8 9 /** 10 Créer une fenêtre de dialogue et permet de la paramètres facilement 11 @param titre : titre de la fenêtre 12 @param icon : icone à afficher dans le corps de la boite (Warning, Error, Info, Wait, NoIcon) 13 @param modal : true si cette fenêtre doit être bloquante 14 @param okButton : true pour fermer cette fenêtre avec un bouton "ok". false n'affiche aucun bouton 15 */ 16 9 17 class GWt_dialog : public WDialog 10 18 { … … 14 22 enum iconType { Warning, Error, Info, Wait, NoIcon }; 15 23 16 GWt_dialog(WString titre, std::string message, iconType icon=NoIcon, bool modal=false, bool ok =false);24 GWt_dialog(WString titre, std::string message, iconType icon=NoIcon, bool modal=false, bool okButton=false); 17 25 }; 18 26 #endif -
Interface_Web/trunk/pspaWT/src/GWt_dialog.cc
r147 r148 5 5 #include <Wt/WHBoxLayout> 6 6 #include <Wt/WPushButton> 7 #include <Wt/WCssDecorationStyle> 7 8 #include "GWt_dialog.h" 8 9 … … 16 17 WDialog(titre) 17 18 { 19 20 // change the title bar style 21 titleBar()->decorationStyle().setBackgroundColor (WColor(70,180,220)); 18 22 19 23 WContainerWidget* widgt = new WContainerWidget(contents());
Note: See TracChangeset
for help on using the changeset viewer.