27 m_StringListParam(param)
29 connect(
this, SIGNAL(
Change()),
GetModel(), SLOT(NotifyUpdate()) );
45 stringSelection->setFixedHeight( 30 );
52 connect( stringSelection->
GetInput(), SIGNAL(textChanged(
const QString&)),
GetModel(), SLOT(NotifyUpdate()) );
55 QGroupBox *mainGroup =
new QGroupBox();
65 const unsigned int sp(2);
66 const unsigned int buttonSize(30);
69 QHBoxLayout * hLayout =
new QHBoxLayout;
70 hLayout->setSpacing(sp);
71 hLayout->setContentsMargins(sp, sp, sp, sp);
76 QVBoxLayout * buttonLayout =
new QVBoxLayout;
77 buttonLayout->setSpacing(sp);
78 buttonLayout->setContentsMargins(sp, sp, sp, sp);
80 QHBoxLayout * addSupLayout =
new QHBoxLayout;
81 addSupLayout->setSpacing(sp);
82 addSupLayout->setContentsMargins(sp, sp, sp, sp);
84 QHBoxLayout * upDownLayout =
new QHBoxLayout;
85 upDownLayout->setSpacing(sp);
86 upDownLayout->setContentsMargins(sp, sp, sp, sp);
89 QPushButton * addButton =
new QPushButton;
90 addButton->setText(
"+");
91 addButton->setFixedWidth(buttonSize);
92 addButton->setToolTip(
"Add a string selector...");
93 connect( addButton, SIGNAL(clicked()),
this, SLOT(
AddString()) );
94 addSupLayout->addWidget(addButton);
97 QPushButton * supButton =
new QPushButton;
98 supButton->setText(
"-");
99 supButton->setFixedWidth(buttonSize);
100 supButton->setToolTip(
"Supress the selected string...");
101 connect( supButton, SIGNAL(clicked()),
this, SLOT(
SupressString()) );
102 addSupLayout->addWidget(supButton);
103 buttonLayout->addLayout(addSupLayout);
106 QPushButton * upButton =
new QPushButton;
107 upButton->setText(
"Up");
108 upButton->setFixedWidth(buttonSize);
109 upButton->setToolTip(
"Up the selected string in the list...");
110 connect( upButton, SIGNAL(clicked()),
this, SLOT(
UpString()) );
111 upDownLayout->addWidget(upButton);
114 QPushButton * downButton =
new QPushButton;
115 downButton->setText(
"Down");
116 downButton->setFixedWidth(buttonSize);
117 downButton->setToolTip(
"Down the selected string in the list...");
118 connect( downButton, SIGNAL(clicked()),
this, SLOT(
DownString()) );
119 upDownLayout->addWidget(downButton);
120 buttonLayout->addLayout(upDownLayout);
123 QPushButton * eraseButton =
new QPushButton;
124 eraseButton->setText(
"Erase");
125 eraseButton->setFixedWidth(2*(buttonSize+sp));
126 eraseButton->setToolTip(
"Erase the selected string of the list...");
127 connect( eraseButton, SIGNAL(clicked()),
this, SLOT(
EraseString()) );
128 buttonLayout->addWidget(eraseButton);
130 hLayout->addLayout(buttonLayout);
133 QVBoxLayout * fileLayout =
new QVBoxLayout();
134 fileLayout->setSpacing(0);
136 QGroupBox *mainGroup =
new QGroupBox();
137 mainGroup->setLayout(fileLayout);
138 QScrollArea * scroll =
new QScrollArea();
139 scroll->setWidget(mainGroup);
140 scroll->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
141 scroll->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
142 scroll->setWidgetResizable(
true);
144 hLayout->addWidget(scroll);
147 this->setLayout(hLayout);
177 std::map<unsigned int, unsigned int> idMap;
199 unsigned int tmp = idMap[i];
201 idMap[idMap[i-1]] = tmp;
220 std::map<unsigned int, unsigned int> idMap;
242 unsigned int tmp = idMap[i];
244 idMap[idMap[i+1]] = tmp;
257 std::vector<QtStringSelectionWidget *> tmpList;
259 std::map<unsigned int, unsigned int> idMapBis;
260 for(
unsigned int i=0; i<idMap.size(); i++ )
262 idMapBis[ idMap[i] ] = i;
274 QGroupBox *mainGroup =
new QGroupBox();
307 stringInput->setFixedHeight( 30 );
312 connect( stringInput->
GetInput(), SIGNAL(textChanged(
const QString&)),
GetModel(), SLOT(NotifyUpdate()) );
314 QGroupBox *mainGroup =
new QGroupBox();
328 std::vector<QtStringSelectionWidget *> tmpList;
340 QGroupBox *mainGroup =
new QGroupBox();
357 stringSelection->setFixedHeight( 30 );
363 QGroupBox *mainGroup =
new QGroupBox();