X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_FeatureMessage.cpp;h=5e2d25c70a6d6939f2904d9d3d9b24fa28feae8c;hb=5b3d87414326afbabaf210f1c844ec2eb2f723c8;hp=2da65741751e84095ff74d22cce605efb2b33baf;hpb=6654a921211670c15a79a997ca666a174fe8a6f6;p=modules%2Fshaper.git diff --git a/src/Config/Config_FeatureMessage.cpp b/src/Config/Config_FeatureMessage.cpp index 2da657417..5e2d25c70 100644 --- a/src/Config/Config_FeatureMessage.cpp +++ b/src/Config/Config_FeatureMessage.cpp @@ -1,6 +1,22 @@ -/* - * - */ +// Copyright (C) 2014-2020 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, 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 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + #include "Config_FeatureMessage.h" Config_FeatureMessage::Config_FeatureMessage(const Events_ID theId, const void* theParent) @@ -11,9 +27,26 @@ Config_FeatureMessage::Config_FeatureMessage(const Events_ID theId, const void* myTooltip = ""; myIcon = ""; myKeysequence = ""; + myHelpFile = ""; myGroupId = ""; myWorkbenchId = ""; + myToolBarId = ""; + myPluginLibrary = ""; + + myInternal = false; + myUseInput = false; + myNestedFeatures = ""; + myModal = false; + myIsTitleInToolbar = true; + myIsApplyContinue = false; + myHideFacesPanel = false; + myAbortConfirmation = true; +} + +Config_FeatureMessage::~Config_FeatureMessage() +{ + } const std::string& Config_FeatureMessage::icon() const @@ -71,6 +104,16 @@ void Config_FeatureMessage::setGroupId(const std::string& groupId) myGroupId = groupId; } +const std::string& Config_FeatureMessage::toolBarId() const +{ + return myToolBarId; +} + +void Config_FeatureMessage::setToolBarId(const std::string& aId) +{ + myToolBarId = aId; +} + const std::string& Config_FeatureMessage::workbenchId() const { return myWorkbenchId; @@ -81,6 +124,16 @@ void Config_FeatureMessage::setWorkbenchId(const std::string& workbenchId) myWorkbenchId = workbenchId; } +const std::string& Config_FeatureMessage::documentKind() const +{ + return myDocumentKind; +} + +void Config_FeatureMessage::setDocumentKind(const std::string& documentKind) +{ + myDocumentKind = documentKind; +} + void Config_FeatureMessage::setTooltip(const std::string& tooltip) { myTooltip = tooltip; @@ -91,17 +144,120 @@ const std::string& Config_FeatureMessage::pluginLibrary() const return myPluginLibrary; } -void Config_FeatureMessage::setPluginLibrary(const std::string& myPluginLibrary) +void Config_FeatureMessage::setPluginLibrary(const std::string& thePluginLibrary) { - this->myPluginLibrary = myPluginLibrary; + this->myPluginLibrary = thePluginLibrary; } +// LCOV_EXCL_START bool Config_FeatureMessage::isUseInput() const { return myUseInput; } +bool Config_FeatureMessage::isInternal() const +{ + return myInternal; +} + +bool Config_FeatureMessage::isAutoPreview() const +{ + return myIsAutoPreview; +} + +bool Config_FeatureMessage::isTitleInToolbar() const +{ + return myIsTitleInToolbar; +} + +bool Config_FeatureMessage::isModal() const +{ + return myModal; +} + +bool Config_FeatureMessage::isApplyContinue() const +{ + return myIsApplyContinue; +} +// LCOV_EXCL_STOP + void Config_FeatureMessage::setUseInput(bool isUseInput) { myUseInput = isUseInput; } + +void Config_FeatureMessage::setInternal(bool isInternal) +{ + myInternal = isInternal; +} + +void Config_FeatureMessage::setModal(bool isModal) +{ + myModal = isModal; +} + +const std::string& Config_FeatureMessage::nestedFeatures() const +{ + return myNestedFeatures; +} + +const std::string& Config_FeatureMessage::actionsWhenNested() const +{ + return myActionsWhenNested; +} + +void Config_FeatureMessage::setNestedFeatures(const std::string& theNestedFeatures) +{ + myNestedFeatures = theNestedFeatures; +} + +void Config_FeatureMessage::setActionsWhenNested(const std::string& theActions) +{ + myActionsWhenNested = theActions; +} + +void Config_FeatureMessage::setAutoPreview(bool isAutoPreview) +{ + myIsAutoPreview = isAutoPreview; +} + +void Config_FeatureMessage::setApplyContinue(bool isModal) +{ + myIsApplyContinue = isModal; +} + +const std::string& Config_FeatureMessage::helpFileName() const +{ + return myHelpFile; +} + +void Config_FeatureMessage::setHelpFileName(const std::string& aName) +{ + myHelpFile = aName; +} + +void Config_FeatureMessage::setTitleInToolbar(bool theValue) +{ + myIsTitleInToolbar = theValue; +} + +bool Config_FeatureMessage::isHideFacesPanel() const +{ + return myHideFacesPanel; +} + + +void Config_FeatureMessage::setHideFacesPanel(bool theValue) +{ + myHideFacesPanel = theValue; +} + +bool Config_FeatureMessage::isAbortConfirmation() const +{ + return myAbortConfirmation; +} + +void Config_FeatureMessage::setAbortConfirmation(bool theValue) +{ + myAbortConfirmation = theValue; +}