Ignore:
Timestamp:
Mar 27, 2013, 5:14:47 PM (11 years ago)
Author:
garnier
Message:

Mise en place des comboBox et changement de l'aspect visuel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/branches/12_03_12-managerComboBox/pspaWT/sources/userInterface/src/GWt_dialog.cc

    r385 r399  
    33#include <Wt/WText>
    44#include <Wt/WBreak>
     5#include <Wt/WVBoxLayout>
    56#include <Wt/WHBoxLayout>
    67#include <Wt/WPushButton>
     
    1920    titleBar()->decorationStyle().setBackgroundColor (WColor(70,180,220));
    2021   
     22    WContainerWidget* widgt = new WContainerWidget(contents());
     23    vDialogLayout_ = new WVBoxLayout();
     24    widgt->setLayout(vDialogLayout_);
     25   
     26    setClosable(true);
     27    setModal (modal);
     28    setResizable(true);
     29    show();
     30   
    2131    if (wc != NULL) {
    22         WContainerWidget* widgt = new WContainerWidget(contents());
    23         WHBoxLayout* hLayout = new WHBoxLayout();
    24         hLayout->addWidget(wc);
    25         widgt->setLayout(hLayout);
    26 
    27         setClosable(true);
    28         setModal (modal);
    29         show();
     32        addVContent(wc);
    3033    }
    3134}
     
    112115
    113116
     117void GWt_dialog::addVContent(WContainerWidget* wc) {
    114118
     119    if (vDialogLayout_) {
     120        vDialogLayout_->addWidget(wc);
     121    }
     122}
     123
     124
Note: See TracChangeset for help on using the changeset viewer.