26 #include <IceUtil/UUID.h>
28 #include <QFileDialog>
39 iceManager(iceManager)
47 connect(
ui.treeViewObservers, SIGNAL(doubleClicked(QModelIndex)),
this, SLOT(
treeView_doubleClick(QModelIndex)));
61 this->iceManager = iceManager;
105 ui.treeViewObservers->setModel(model);
130 QItemSelectionModel* selectionModel =
ui.treeViewObservers->selectionModel();
134 for (
auto index : selectionModel->selection().indexes())
139 ui.treeViewObservers->clearSelection();
145 QList<QListWidgetItem*> selectedItems =
ui.listWidget->selectedItems();
147 for (
int i = 0; i < selectedItems.size(); ++i)
149 delete selectedItems.at(i);
155 delete ui.listWidget->item(
index.row());
161 QList <QListWidgetItem*> items =
ui.listWidget->findItems(QString(
"*"), Qt::MatchWrap | Qt::MatchWildcard);
162 foreach (QListWidgetItem* item, items)
164 result.append(item->text());
177 auto modelIndex =
ui.treeViewObservers->getProxyModel()->mapToSource(proxyIndex);
178 QStandardItem* item = model->itemFromIndex(modelIndex);
184 if (
ui.listWidget->findItems(
id.toString(), Qt::MatchExactly).size() == 0)
205 void armarx::ArmarXPlotterDialog::on_btnSelectLoggingDir_clicked()
207 QString newLoggingDir = QFileDialog::getExistingDirectory(
this,
"Select a directory to which data should be logged",
208 ui.editLoggingDirectory->text());
210 if (!newLoggingDir.isEmpty())
212 ui.editLoggingDirectory->setText(newLoggingDir);