-// Copyright (C) 2009-2012 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2021 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#include "JM_SalomeResource.hxx"
#include "JM_EditSalomeResource.hxx"
+#include <QHBoxLayout>
+#include <QListWidget>
+#include <QPushButton>
+#include <QVBoxLayout>
+
JM::ResourceCatalog::ResourceCatalog(QWidget *parent, BL::SALOMEServices * salome_services, bool batch_only)
: QWidget(parent),
_batch_only(batch_only)
DEBTRACE("JM::ResourceCatalog::item_choosed");
JM::SalomeResource * resource_widget = new JM::SalomeResource(this,
_salome_services,
- item->text().toStdString());
+ item->text().toUtf8().constData());
resource_widget->exec();
delete resource_widget;
}
{
QList<QListWidgetItem *> item_list = _resource_files_list->selectedItems();
QString item_name = item_list.at(0)->text();
- _salome_services->removeResource(item_name.toStdString());
+ _salome_services->removeResource(item_name.toUtf8().constData());
refresh_resource_list();
}
QString item_name = item_list.at(0)->text();
JM::EditSalomeResource * resource_widget = new JM::EditSalomeResource(this,
_salome_services,
- item_name.toStdString());
+ item_name.toUtf8().constData());
resource_widget->exec();
delete resource_widget;
refresh_resource_list();