Salome HOME
Issue #1368: Creation of a Qt panel. feature name correction
[modules/shaper.git] / src / SamplePanelPlugin / SamplePanelPlugin_Panel.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:        SamplePanelPlugin_PageGroupBox.h
4 // Created:     29 Mar 2015
5 // Author:      Natalia ERMOLAEVA
6
7 #include <SamplePanelPlugin_Panel.h>
8
9 #include <QGridLayout>
10 #include <QLabel>
11 #include <QComboBox>
12
13 SamplePanelPlugin_Panel::SamplePanelPlugin_Panel(QWidget* theParent)
14   : QWidget(theParent)
15 {
16   QGridLayout* aLayout = new QGridLayout(this);
17   aLayout->addWidget(new QLabel("Values:"), 0, 0);
18
19   QComboBox* aComboBox = new QComboBox(this);
20   aComboBox->addItem("Value_1");
21   aComboBox->addItem("Value_2");
22   aComboBox->addItem("Value_3");
23
24   aLayout->addWidget(aComboBox, 0, 1);
25 }