From fca124041149298cfe93233badde26ac521cee68 Mon Sep 17 00:00:00 2001 From: Sergey POKHODENKO Date: Wed, 27 May 2015 17:51:17 +0300 Subject: [PATCH] Change names of some ExchangePlugin feature attributes --- .../ExchangePlugin_ExportFeature.cpp | 2 +- src/ExchangePlugin/ExchangePlugin_ExportFeature.h | 14 +++++++------- src/ExchangePlugin/ExchangePlugin_ImportFeature.h | 2 +- src/ExchangePlugin/plugin-Exchange.xml | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index 6d3fc8a84..97fb5266c 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -64,8 +64,8 @@ const std::string& ExchangePlugin_ExportFeature::getKind() */ void ExchangePlugin_ExportFeature::initAttributes() { - data()->addAttribute(ExchangePlugin_ExportFeature::FILE_FORMAT_ID(), ModelAPI_AttributeString::typeId()); data()->addAttribute(ExchangePlugin_ExportFeature::FILE_PATH_ID(), ModelAPI_AttributeString::typeId()); + data()->addAttribute(ExchangePlugin_ExportFeature::FILE_FORMAT_ID(), ModelAPI_AttributeString::typeId()); data()->addAttribute(ExchangePlugin_ExportFeature::SELECTION_LIST_ID(), ModelAPI_AttributeSelectionList::typeId()); } diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h index 774cbadd9..88809020e 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h @@ -23,18 +23,18 @@ public: static const std::string MY_EXPORT_ID("Export"); return MY_EXPORT_ID; } - /// attribute name of file format - inline static const std::string& FILE_FORMAT_ID() - { - static const std::string MY_FILE_FORMAT_ID("export_file_format"); - return MY_FILE_FORMAT_ID; - } /// attribute name of file path inline static const std::string& FILE_PATH_ID() { - static const std::string MY_FILE_PATH_ID("export_file_selector"); + static const std::string MY_FILE_PATH_ID("file_path"); return MY_FILE_PATH_ID; } + /// attribute name of file format + inline static const std::string& FILE_FORMAT_ID() + { + static const std::string MY_FILE_FORMAT_ID("file_format"); + return MY_FILE_FORMAT_ID; + } /// attribute name of selection list inline static const std::string& SELECTION_LIST_ID() { diff --git a/src/ExchangePlugin/ExchangePlugin_ImportFeature.h b/src/ExchangePlugin/ExchangePlugin_ImportFeature.h index edc37478f..2c606ce86 100644 --- a/src/ExchangePlugin/ExchangePlugin_ImportFeature.h +++ b/src/ExchangePlugin/ExchangePlugin_ImportFeature.h @@ -27,7 +27,7 @@ class ExchangePlugin_ImportFeature : public ModelAPI_Feature /// attribute name of referenced face inline static const std::string& FILE_PATH_ID() { - static const std::string MY_FILE_PATH_ID("import_file_selector"); + static const std::string MY_FILE_PATH_ID("file_path"); return MY_FILE_PATH_ID; } /// default constructor diff --git a/src/ExchangePlugin/plugin-Exchange.xml b/src/ExchangePlugin/plugin-Exchange.xml index b335af3bd..061e23180 100644 --- a/src/ExchangePlugin/plugin-Exchange.xml +++ b/src/ExchangePlugin/plugin-Exchange.xml @@ -4,15 +4,15 @@ - + - + - + -- 2.39.2