]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
WIP
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 23 Feb 2021 19:42:21 +0000 (20:42 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 23 Feb 2021 19:42:21 +0000 (20:42 +0100)
src/Session/CMakeLists.txt
src/Session/SALOME_Session_Server.cxx
src/Session/SALOME_Session_Server_No_Server.cxx [new file with mode: 0644]
src/Session/SALOME_Session_Server_With_Server.cxx [new file with mode: 0644]
src/Session/salome2810.cxx

index 4702f4e9aa0763f1270800b9757e5d76bf191485..8e525a27bc6be73a69d75c94222b74977b20e73c 100644 (file)
@@ -110,10 +110,14 @@ ADD_LIBRARY(SalomeSession ${SalomeSession_SOURCES})
 TARGET_LINK_LIBRARIES(SalomeSession ${_link_LIBRARIES})
 INSTALL(TARGETS SalomeSession EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) 
 
-ADD_EXECUTABLE(SALOME_Session_Server SALOME_Session_Server.cxx)
+ADD_EXECUTABLE(SALOME_Session_Server SALOME_Session_Server_With_Server.cxx)
 TARGET_LINK_LIBRARIES(SALOME_Session_Server ${_link_LIBRARIES} SalomeSession)
 INSTALL(TARGETS SALOME_Session_Server EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
 
+ADD_EXECUTABLE(SALOME_Session_Server_No_Server SALOME_Session_Server_No_Server.cxx)
+TARGET_LINK_LIBRARIES(SALOME_Session_Server_No_Server ${_link_LIBRARIES} SalomeSession)
+INSTALL(TARGETS SALOME_Session_Server_No_Server EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
+
 add_executable(salome2810 salome2810.cxx)
 target_link_libraries(salome2810 ${QT_LIBRARIES})
 install(TARGETS salome2810 DESTINATION ${SALOME_INSTALL_BINS})
index 3d2a5ea410cfb54212c4d7e0c1a56599f43560a0..13271628d807bf95be18b482e4fae41211482d19 100644 (file)
@@ -457,7 +457,7 @@ int AbstractGUIAppMain(int argc, char **argv)
   QApplication::setOrganizationName("salome");
   QApplication::setApplicationName("salome");
   QApplication::setApplicationVersion(salomeVersion());
-  
+
   // Install Qt debug messages handler
   MsgHandler msgHandler;
   qInstallMessageHandler(QtxMsgHandler);
@@ -813,8 +813,3 @@ int AbstractGUIAppMain(int argc, char **argv)
   MESSAGE("Salome_Session_Server:endofserver");
   return result;
 }
-
-int main(int argc, char **argv)
-{
-  return AbstractGUIAppMain<GUIAppNewStyle>(argc, argv);
-}
diff --git a/src/Session/SALOME_Session_Server_No_Server.cxx b/src/Session/SALOME_Session_Server_No_Server.cxx
new file mode 100644 (file)
index 0000000..596f9ad
--- /dev/null
@@ -0,0 +1,26 @@
+// Copyright (C) 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, 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 "SALOME_Session_Server.cxx"
+
+
+int main(int argc, char **argv)
+{
+  return AbstractGUIAppMain<GUIAppNewStyle>(argc, argv);
+}
diff --git a/src/Session/SALOME_Session_Server_With_Server.cxx b/src/Session/SALOME_Session_Server_With_Server.cxx
new file mode 100644 (file)
index 0000000..1479f75
--- /dev/null
@@ -0,0 +1,25 @@
+// Copyright (C) 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, 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 "SALOME_Session_Server.cxx"
+
+int main(int argc, char **argv)
+{
+  return AbstractGUIAppMain<GUIAppOldStyle>(argc, argv);
+}
index 74591be667252c36da0fe04f550565467910eb23..3b36fa31d8b7e1625dec616f1c7183c1dfb4a82e 100644 (file)
@@ -59,7 +59,7 @@ int main(int argc, char *argv[])
   //
   QProcess proc;
   proc.setProcessEnvironment(pe);
-  proc.setProgram("SALOME_Session_Server");
+  proc.setProgram("SALOME_Session_Server_No_Server");
 
   QStringList args({"--with","Registry","(","--salome_session","theSession",")","--with","ModuleCatalog","(","-common"});
   QStringList catalogs;