28 m_InputVectorDataListParam(param)
45 const unsigned int sp(2);
46 const unsigned int buttonSize(30);
49 QHBoxLayout * hLayout =
new QHBoxLayout;
50 hLayout->setSpacing(sp);
51 hLayout->setContentsMargins(sp, sp, sp, sp);
54 QVBoxLayout * buttonLayout =
new QVBoxLayout;
55 buttonLayout->setSpacing(sp);
56 buttonLayout->setContentsMargins(sp, sp, sp, sp);
58 QHBoxLayout * addSupLayout =
new QHBoxLayout;
59 addSupLayout->setSpacing(sp);
60 addSupLayout->setContentsMargins(sp, sp, sp, sp);
62 QHBoxLayout * upDownLayout =
new QHBoxLayout;
63 upDownLayout->setSpacing(sp);
64 upDownLayout->setContentsMargins(sp, sp, sp, sp);
67 QPushButton * addButton =
new QPushButton;
68 addButton->setText(
"+");
69 addButton->setFixedWidth(buttonSize);
70 addButton->setToolTip(
"Add a file selector...");
71 connect(addButton, SIGNAL(clicked()),
this, SLOT(
AddFile()));
72 addSupLayout->addWidget(addButton);
75 QPushButton * supButton =
new QPushButton;
76 supButton->setText(
"-");
77 supButton->setFixedWidth(buttonSize);
78 supButton->setToolTip(
"Supress the selected file...");
79 connect(supButton, SIGNAL(clicked()),
this, SLOT(
SupressFile()));
80 addSupLayout->addWidget(supButton);
81 buttonLayout->addLayout(addSupLayout);
84 QPushButton * upButton =
new QPushButton;
85 upButton->setText(
"Up");
86 upButton->setFixedWidth(buttonSize);
87 upButton->setToolTip(
"Up the selected file in the list...");
88 connect(upButton, SIGNAL(clicked()),
this, SLOT(
UpFile()));
89 upDownLayout->addWidget(upButton);
92 QPushButton * downButton =
new QPushButton;
93 downButton->setText(
"Down");
94 downButton->setFixedWidth(buttonSize);
95 downButton->setToolTip(
"Down the selected file in the list...");
96 connect(downButton, SIGNAL(clicked()),
this, SLOT(
DownFile()));
97 upDownLayout->addWidget(downButton);
98 buttonLayout->addLayout(upDownLayout);
101 QPushButton * eraseButton =
new QPushButton;
102 eraseButton->setText(
"Erase");
103 eraseButton->setFixedWidth(2*(buttonSize+sp));
104 eraseButton->setToolTip(
"Erase the selected file of the list...");
105 connect(eraseButton, SIGNAL(clicked()),
this, SLOT(
EraseFile()));
106 buttonLayout->addWidget(eraseButton);
108 QVBoxLayout * fileLayout =
new QVBoxLayout();
109 fileLayout->setSpacing(0);
112 fileSelection->setFixedHeight(30);
113 fileLayout->addWidget(fileSelection);
119 QGroupBox *mainGroup =
new QGroupBox();
120 mainGroup->setLayout(fileLayout);
121 QScrollArea * scroll =
new QScrollArea();
122 scroll->setWidget(mainGroup);
123 scroll->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
124 scroll->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
125 scroll->setWidgetResizable(
true);
127 hLayout->addWidget(scroll);
128 hLayout->addLayout(buttonLayout);
130 this->setLayout(hLayout);
145 std::ostringstream oss;
165 std::map<unsigned int, unsigned int> idMap;
187 unsigned int tmp = idMap[i];
189 idMap[idMap[i-1]] = tmp;
207 std::map<unsigned int, unsigned int> idMap;
228 unsigned int tmp = idMap[i];
230 idMap[idMap[i + 1]] = tmp;
243 std::vector<QtFileSelectionWidget *> tmpList;
245 std::map<unsigned int, unsigned int> idMapBis;
246 for(
unsigned int i = 0; i < idMap.size(); i++)
248 idMapBis[idMap[i]] = i;
259 QGroupBox *mainGroup =
new QGroupBox();
283 fileSelection->setFixedHeight(30);
289 QGroupBox *mainGroup =
new QGroupBox();
301 std::vector<QtFileSelectionWidget *> tmpList;
313 QGroupBox *mainGroup =
new QGroupBox();
330 fileSelection->setFixedHeight(30);
336 QGroupBox *mainGroup =
new QGroupBox();