X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARDGUI%2FHOMARDGUI_Utils.h;h=dc5425726b1e8cee654c58b3b8f098c5c725acad;hb=d99ab7669d0fd72f475b275e1185f63142a8bbbc;hp=54fe680627da304380f5aa4452348def24123bb1;hpb=bdbb00479184579ff9ec2e33886894326d4d6a0f;p=modules%2Fhomard.git diff --git a/src/HOMARDGUI/HOMARDGUI_Utils.h b/src/HOMARDGUI/HOMARDGUI_Utils.h index 54fe6806..dc542572 100644 --- a/src/HOMARDGUI/HOMARDGUI_Utils.h +++ b/src/HOMARDGUI/HOMARDGUI_Utils.h @@ -1,29 +1,30 @@ -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// Copyright (C) 2011-2022 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. +// 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. +// 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 +// 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 // -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org #ifndef HOMARD_H_UTILS #define HOMARD_H_UTILS +#include "HOMARDGUI_Exports.hxx" #include -#include +#include #include CORBA_CLIENT_HEADER(HOMARD_Cas) #include CORBA_CLIENT_HEADER(HOMARD_Gen) @@ -51,46 +52,38 @@ class SalomeApp_Module; class LightApp_SelectionMgr; namespace HOMARD_UTILS { - - _PTR(Study) - GetCStudy(const SalomeApp_Study* theStudy); - SUIT_Study* GetActiveStudy(); - _PTR(Study) GetActiveStudyDocument(); - - void updateObjBrowser(); - - const SALOME_ListIO& selectedIO(); // Function returns a list of SALOME_InteractiveObject's from + + HOMARD_EXPORT SUIT_Study* GetActiveStudy(); + HOMARD_EXPORT _PTR(Study) getStudy(); + + HOMARD_EXPORT void updateObjBrowser(); + + HOMARD_EXPORT const SALOME_ListIO& selectedIO(); // Function returns a list of SALOME_InteractiveObject's from // selection manager in GUI - int IObjectCount() ; // Function returns the number of selected objects - - Handle(SALOME_InteractiveObject) firstIObject() ; + HOMARD_EXPORT int IObjectCount() ; // Function returns the number of selected objects + + HOMARD_EXPORT Handle(SALOME_InteractiveObject) firstIObject() ; // Function returns the first selected object in the list // of selected objects - Handle(SALOME_InteractiveObject) lastIObject() ; + HOMARD_EXPORT Handle(SALOME_InteractiveObject) lastIObject() ; // Function returns the last selected object in the list // of selected objects - bool isXmgrace(_PTR(SObject) MonObj); - bool isBoundaryDi(_PTR(SObject) MonObj); - bool isZone(_PTR(SObject) MonObj); - bool isHypo(_PTR(SObject) MonObj); - bool isIter(_PTR(SObject) MonObj); - bool isCase(_PTR(SObject) MonObj); - bool isFileMess(_PTR(SObject) MonObj); - bool isFileSummary(_PTR(SObject) MonObj); - bool isObject(_PTR(SObject) MonObj, QString TypeObject, int option ); - - QString ChercheFileDansSelection(); - QStringList ChercheDansDir (QString direct, QString base, int numIter); - void RangeSousTag (int Tag,QString FileName, int TagFichier, QString Comment,QString FileDir); - - void PushOnHelp(QString monFichierAide); + HOMARD_EXPORT bool isBoundaryCAO(_PTR(SObject) MonObj); + HOMARD_EXPORT bool isBoundaryAn(_PTR(SObject) MonObj); + HOMARD_EXPORT bool isBoundaryDi(_PTR(SObject) MonObj); + HOMARD_EXPORT bool isCase(_PTR(SObject) MonObj); + HOMARD_EXPORT bool isHypo(_PTR(SObject) MonObj); + HOMARD_EXPORT bool isIter(_PTR(SObject) MonObj); + HOMARD_EXPORT bool isYACS(_PTR(SObject) MonObj); + HOMARD_EXPORT bool isZone(_PTR(SObject) MonObj); + HOMARD_EXPORT bool isFileType(_PTR(SObject) MonObj, QString TypeFile); + HOMARD_EXPORT bool isObject(_PTR(SObject) MonObj, QString TypeObject, int option ); - QString Transforme(int num); + HOMARD_EXPORT void PushOnHelp(QString monFichierAide, QString contexte, QString LanguageShort); - void AddNewRoot(int Tag, QString Racine); extern SALOME_ListIO mySelected; }