From: gdd Date: Wed, 28 Sep 2011 14:00:43 +0000 (+0000) Subject: Fix missing corrections X-Git-Tag: V6_4_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2372711a5de46a10e7c1b66842e2e89af68b81da;p=modules%2Fhomard.git Fix missing corrections --- diff --git a/doc/images/create_case_7.png b/doc/images/create_case_7.png new file mode 100644 index 00000000..c5987297 Binary files /dev/null and b/doc/images/create_case_7.png differ diff --git a/src/HOMARDGUI/HomardConfigFile.cxx b/src/HOMARDGUI/HomardConfigFile.cxx deleted file mode 100644 index c07d1c92..00000000 --- a/src/HOMARDGUI/HomardConfigFile.cxx +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (C) 2011 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 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 -// - -// -// File : HomardConfigFile.cxx -// Author : Paul RASCLE, EDF -// Module : HOMARD -// cree un fichier de configuration HOMARD - -using namespace std; - -#include "HomardConfigFile.hxx" -#include "utilities.h" -#include -#include -#include -#include -#include - - - - -//============================================================================= -/*! - * - */ -//============================================================================= - -HomardConfigFile::HomardConfigFile(): - _nomFichier(string("HOMARD.Configuration")), - _prefix(string("")) - { - - string t1[] = {string("CCMaiN__"), string("CCNoMN__"), string("CCSolN__"), string("CCFronti"), - string("HOMaiN__"), string("RenumN__"), string("ListeStd"), string("PPBasFic"), - string("CCAssoci"), string("NumeIter"), string("CCMaiNP1"), string("CCNoMNP1"), - string("TypeElem"), string("TypeRaff"), string("TypeDera"), string("HOMaiN__"), - string("HOMaiNP1"), string("CCNoChaI"), string("CCCoChaI"), string("CCNumOrI"), - string("CCNumPTI"), string("SeuilBPE"), string("SeuilHPE"), string("CCIndica")}; - std::list l1(t1,t1+24); - _motscle_ss_valeur=l1; - - string t2[] = {string("Aucun0__"), string("Nb_Enti2"), string("Interpe3"), string("Qualite5"), - string("Nb_Enti7"), string("Connex11"), string("Taille13") }; - std::list l2(t2,t2+7); - _motscle_oui_non=l2; - - string t3[] = {string("ModeHOMA"), string("EcriFiHO")}; - std::list l3(t3,t3+2); - _motscle_autre=l3; - - _dictValeur[string("Nb_Enti2")]=string("oui") ; - - _dictValeuroui[string("Aucun0__")]=0; - _dictValeuroui[string("Nb_Enti2")]=2; - _dictValeuroui[string("Interpe3")]=3; - _dictValeuroui[string("Qualite5")]=5; - _dictValeuroui[string("Nb_Enti7")]=7; - _dictValeuroui[string("Connex11")]=11; - _dictValeuroui[string("Taille13")]=13; - - } -//============================================================================= -/*! - * - */ -//============================================================================= -HomardConfigFile::~HomardConfigFile() -{ -} -//============================================================================= -/*! - * - */ -//============================================================================= -void HomardConfigFile::setBilan(bool etat) -{ - _bBilan = etat; -} -//============================================================================= -/*! - * - */ -//============================================================================= -bool HomardConfigFile::initVal(const string motclef ,const string valeur) -{ - //SCRUTE(motclef); - //SCRUTE(valeur); - bool ok = false; - if ( cherche_dans_liste(_motscle_ss_valeur, motclef)) - { - _dictValeur[motclef]=valeur; - ok = true; - } - else - { - if ( cherche_dans_liste(_motscle_oui_non,motclef)) - { - if (valeur =="oui" || valeur == "non") - { - _dictValeur[motclef]=valeur; - ok = true; - } - } - else - if ( cherche_dans_liste(_motscle_autre,motclef)) - // Il faudrait avoir un mecanisme de verification de la valeur // - // passee, non mis en place actuellement avec des strings ? // - { - _dictValeur[motclef]=valeur; - ok = true; - } - } - return ok; -} - -//============================================================================= -/*! - * - */ -//============================================================================= -bool HomardConfigFile::cherche_dans_liste(std::list & liste, const motcle motclef ) -{ - bool ok = false; - std::list::iterator it =liste.begin(); - while ( it != liste.end()) - { - if ( *it == motclef) - { - ok = true; - break; - } - it ++; - } - return ok; -} - -//============================================================================= -/*! - * - */ -//============================================================================= -string HomardConfigFile::getMyDir() -{ - return _myDir; -} -//============================================================================= -/*! - * - */ -//============================================================================= -bool HomardConfigFile::createFile() -{ - bool ok = true; - - const char *a = "/tmp/ed.XXXXXX"; - char * cible = new char[15]; - strcpy(cible,a) ; - mkdtemp(cible); - - _myDir = string(cible); - string myfile=_myDir+string("/HOMARD.Configuration"); - - try - { - - ofstream ficHomard( myfile.c_str()) ; - int typeBilan = 1; - - std::map::iterator it = _dictValeur.begin(); - for (; it != _dictValeur.end(); it++) - { - motcle motclef=(*it).first; - valeur valmot =(*it).second; - if ( cherche_dans_liste(_motscle_oui_non,motclef)) - { - if (valmot== "oui") - { - typeBilan=typeBilan*_dictValeuroui[motclef]; - } - } - else - ficHomard << motclef << " " << valmot << std::endl ; - } - - if (_bBilan == true) - { - ficHomard << "TypeBila "<< typeBilan << std::endl ; - } - ficHomard.close(); - } - catch (...) - { - ok = false; - } - return ok; - -} diff --git a/src/HOMARDGUI/HomardConfigFile.hxx b/src/HOMARDGUI/HomardConfigFile.hxx deleted file mode 100644 index f850de8f..00000000 --- a/src/HOMARDGUI/HomardConfigFile.hxx +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (C) 2011 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 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 -// - -// -// File : HomardConfigFile.hxx -// Author : Paul RASCLE, EDF -// Module : SMESH - - -#ifndef _HOMARD_CONFIG_FILE -#define _HOMARD_CONFIG_FILE - -#include -#include -#include - -using namespace std; - -class HomardConfigFile -{ - typedef string motcle; - typedef string valeur; - -public : - HomardConfigFile(); - ~HomardConfigFile(); - bool initVal(const string motclef ,const string valeur); - bool createFile(); - void setBilan(bool etat); - string getMyDir(); - -protected : - - std::list _motscle_ss_valeur; - std::list _motscle_oui_non ; - std::list _motscle_autre; - - std::map _dictValeur; - std::map _dictValeuroui; - - string _nomFichier; - string _prefix; - bool _bBilan; - string _myDir; - - bool cherche_dans_liste(std::list & liste , const motcle motclef); -} ; -#endif diff --git a/src/HOMARDGUI/HomardDlg.h b/src/HOMARDGUI/HomardDlg.h deleted file mode 100644 index c4a1134e..00000000 --- a/src/HOMARDGUI/HomardDlg.h +++ /dev/null @@ -1,181 +0,0 @@ -/******************************************************************************** -** Form generated from reading ui file 'HomardDlg.ui' -** -** Created: Fri Jan 16 19:12:09 2009 -** by: Qt User Interface Compiler version 4.4.3 -** -** WARNING! All changes made in this file will be lost when recompiling ui file! -********************************************************************************/ - -#ifndef HOMARDDLG_H -#define HOMARDDLG_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE - -class Ui_HomardDlg -{ -public: - QGroupBox *groupBox; - QLabel *label; - QLabel *label_2; - QComboBox *ListeMeshName; - QPushButton *PushFichier; - QLineEdit *NomFichier; - QGroupBox *groupBox_3; - QWidget *widget; - QGridLayout *gridLayout; - QCheckBox *NbEntites; - QSpacerItem *verticalSpacer; - QCheckBox *Volumes; - QSpacerItem *horizontalSpacer; - QCheckBox *Inter; - QCheckBox *Qualite; - QCheckBox *Connexite; - QGroupBox *groupBox_2; - QCheckBox *Histo; - QCheckBox *Bilan; - QGroupBox *groupBox_4; - QPushButton *lancement; - QPushButton *terminer; - - void setupUi(QWidget *HomardDlg) - { - if (HomardDlg->objectName().isEmpty()) - HomardDlg->setObjectName(QString::fromUtf8("HomardDlg")); - HomardDlg->resize(632, 372); - groupBox = new QGroupBox(HomardDlg); - groupBox->setObjectName(QString::fromUtf8("groupBox")); - groupBox->setGeometry(QRect(10, 0, 614, 131)); - label = new QLabel(groupBox); - label->setObjectName(QString::fromUtf8("label")); - label->setGeometry(QRect(20, 20, 57, 17)); - label_2 = new QLabel(groupBox); - label_2->setObjectName(QString::fromUtf8("label_2")); - label_2->setGeometry(QRect(20, 90, 57, 17)); - ListeMeshName = new QComboBox(groupBox); - ListeMeshName->setObjectName(QString::fromUtf8("ListeMeshName")); - ListeMeshName->setGeometry(QRect(100, 70, 501, 41)); - PushFichier = new QPushButton(groupBox); - PushFichier->setObjectName(QString::fromUtf8("PushFichier")); - PushFichier->setGeometry(QRect(100, 20, 51, 31)); - NomFichier = new QLineEdit(groupBox); - NomFichier->setObjectName(QString::fromUtf8("NomFichier")); - NomFichier->setGeometry(QRect(170, 10, 431, 51)); - groupBox_3 = new QGroupBox(HomardDlg); - groupBox_3->setObjectName(QString::fromUtf8("groupBox_3")); - groupBox_3->setGeometry(QRect(10, 140, 614, 78)); - widget = new QWidget(groupBox_3); - widget->setObjectName(QString::fromUtf8("widget")); - widget->setGeometry(QRect(21, 10, 445, 92)); - gridLayout = new QGridLayout(widget); - gridLayout->setObjectName(QString::fromUtf8("gridLayout")); - gridLayout->setContentsMargins(0, 0, 0, 0); - NbEntites = new QCheckBox(widget); - NbEntites->setObjectName(QString::fromUtf8("NbEntites")); - NbEntites->setChecked(true); - - gridLayout->addWidget(NbEntites, 0, 0, 3, 2); - - verticalSpacer = new QSpacerItem(20, 58, QSizePolicy::Minimum, QSizePolicy::Expanding); - - gridLayout->addItem(verticalSpacer, 0, 2, 4, 1); - - Volumes = new QCheckBox(widget); - Volumes->setObjectName(QString::fromUtf8("Volumes")); - Volumes->setChecked(true); - - gridLayout->addWidget(Volumes, 0, 3, 2, 1); - - horizontalSpacer = new QSpacerItem(198, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); - - gridLayout->addItem(horizontalSpacer, 1, 1, 2, 1); - - Inter = new QCheckBox(widget); - Inter->setObjectName(QString::fromUtf8("Inter")); - Inter->setChecked(false); - - gridLayout->addWidget(Inter, 2, 3, 2, 1); - - Qualite = new QCheckBox(widget); - Qualite->setObjectName(QString::fromUtf8("Qualite")); - Qualite->setChecked(true); - - gridLayout->addWidget(Qualite, 3, 0, 1, 2); - - Connexite = new QCheckBox(widget); - Connexite->setObjectName(QString::fromUtf8("Connexite")); - Connexite->setChecked(true); - - gridLayout->addWidget(Connexite, 4, 0, 1, 2); - - groupBox_2 = new QGroupBox(HomardDlg); - groupBox_2->setObjectName(QString::fromUtf8("groupBox_2")); - groupBox_2->setGeometry(QRect(10, 220, 614, 78)); - Histo = new QCheckBox(groupBox_2); - Histo->setObjectName(QString::fromUtf8("Histo")); - Histo->setGeometry(QRect(330, 30, 171, 22)); - Histo->setChecked(true); - Bilan = new QCheckBox(groupBox_2); - Bilan->setObjectName(QString::fromUtf8("Bilan")); - Bilan->setGeometry(QRect(10, 30, 171, 22)); - Bilan->setChecked(true); - groupBox_4 = new QGroupBox(HomardDlg); - groupBox_4->setObjectName(QString::fromUtf8("groupBox_4")); - groupBox_4->setGeometry(QRect(10, 310, 614, 51)); - lancement = new QPushButton(groupBox_4); - lancement->setObjectName(QString::fromUtf8("lancement")); - lancement->setGeometry(QRect(430, 10, 83, 31)); - terminer = new QPushButton(groupBox_4); - terminer->setObjectName(QString::fromUtf8("terminer")); - terminer->setGeometry(QRect(520, 10, 83, 31)); - - retranslateUi(HomardDlg); - - QMetaObject::connectSlotsByName(HomardDlg); - } // setupUi - - void retranslateUi(QWidget *HomardDlg) - { - HomardDlg->setWindowTitle(QApplication::translate("HomardDlg", "Homard : Analyse de maillage", 0, QApplication::UnicodeUTF8)); - groupBox->setTitle(QString()); - label->setText(QApplication::translate("HomardDlg", "MED File", 0, QApplication::UnicodeUTF8)); - label_2->setText(QApplication::translate("HomardDlg", "Mesh", 0, QApplication::UnicodeUTF8)); - PushFichier->setText(QApplication::translate("HomardDlg", "Icon", 0, QApplication::UnicodeUTF8)); - groupBox_3->setTitle(QApplication::translate("HomardDlg", "Options", 0, QApplication::UnicodeUTF8)); - NbEntites->setText(QApplication::translate("HomardDlg", "Nombre d'entit\303\251s", 0, QApplication::UnicodeUTF8)); - Volumes->setText(QApplication::translate("HomardDlg", "Volumes/Surfaces/Longueurs", 0, QApplication::UnicodeUTF8)); - Inter->setText(QApplication::translate("HomardDlg", "Interp\303\251n\303\251tration", 0, QApplication::UnicodeUTF8)); - Qualite->setText(QApplication::translate("HomardDlg", "Qualit\303\251", 0, QApplication::UnicodeUTF8)); - Connexite->setText(QApplication::translate("HomardDlg", "Connexit\303\251", 0, QApplication::UnicodeUTF8)); - groupBox_2->setTitle(QApplication::translate("HomardDlg", "Conservation des r\303\251sultats", 0, QApplication::UnicodeUTF8)); - Histo->setText(QApplication::translate("HomardDlg", "Histogramme Qualit\303\251", 0, QApplication::UnicodeUTF8)); - Bilan->setText(QApplication::translate("HomardDlg", "Bilan", 0, QApplication::UnicodeUTF8)); - groupBox_4->setTitle(QString()); - lancement->setText(QApplication::translate("HomardDlg", "Ok", 0, QApplication::UnicodeUTF8)); - terminer->setText(QApplication::translate("HomardDlg", "Cancel", 0, QApplication::UnicodeUTF8)); - Q_UNUSED(HomardDlg); - } // retranslateUi - -}; - -namespace Ui { - class HomardDlg: public Ui_HomardDlg {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // HOMARDDLG_H diff --git a/src/HOMARDGUI/MonEditCase.cxx b/src/HOMARDGUI/MonEditCase.cxx index 1c2680fd..5f1ecaff 100644 --- a/src/HOMARDGUI/MonEditCase.cxx +++ b/src/HOMARDGUI/MonEditCase.cxx @@ -164,7 +164,7 @@ void MonEditCase::InitValEdit() int nbcol = TWBoundary->columnCount(); int nbrow = TWBoundary->rowCount(); for ( int i = 0; i < nbrow; i++ ) - { for ( int j = 0; j < nbcol; j++ ) TWBoundary->item( i, j )->setFlags( !Qt::ItemIsEnabled ); } + { for ( int j = 0; j < nbcol; j++ ) TWBoundary->item( i, j )->setFlags( Qt::ItemIsSelectable ); } // on met un nom blanc au coin QTableWidgetItem *__colItem = new QTableWidgetItem(); __colItem->setText(QApplication::translate("CreateCase", "", 0, QApplication::UnicodeUTF8)); diff --git a/src/HOMARDGUI/ui/HomardCas.ui b/src/HOMARDGUI/ui/HomardCas.ui deleted file mode 100644 index 555f866d..00000000 --- a/src/HOMARDGUI/ui/HomardCas.ui +++ /dev/null @@ -1,181 +0,0 @@ - -HomardCas - - - HomardCas - - - - 0 - 0 - 561 - 193 - - - - Analyse de maillage avec HOMARD - - - false - - - - GroupBox1 - - - - 10 - 10 - 540 - 130 - - - - Case - - - - textLabel1 - - - - 10 - 20 - 71 - 31 - - - - Name - - - - - NomCas - - - - 110 - 20 - 420 - 30 - - - - - - pushDirect - - - - 10 - 70 - 91 - 31 - - - - Directory - - - - - NomDirect - - - - 110 - 70 - 421 - 31 - - - - - - - ButtonOk - - - - 420 - 150 - 61 - 31 - - - - OK - - - - - ButtonCancel - - - - 490 - 150 - 61 - 31 - - - - Cancel - - - - - - NomCas - returnPressed() - HomardCas - SetNomCas() - - - NomCas - textChanged(const QString&) - HomardCas - SetNomCas(const QString&) - - - NomDirect - returnPressed() - HomardCas - SetDir2() - - - NomDirect - textChanged(const QString&) - HomardCas - SetDir2(const QString&) - - - pushDirect - pressed() - HomardCas - SetDir() - - - ButtonOk - pressed() - HomardCas - PushOnApply() - - - ButtonCancel - pressed() - HomardCas - close() - - - - PushOnApply() - SetDir() - SetDir2() - SetDir2( const QString & ) - SetNomCas() - SetNomCas( const QString & ) - - - diff --git a/src/HOMARDGUI/ui/HomardDlg.ui b/src/HOMARDGUI/ui/HomardDlg.ui deleted file mode 100644 index 69482bb3..00000000 --- a/src/HOMARDGUI/ui/HomardDlg.ui +++ /dev/null @@ -1,467 +0,0 @@ - -HomardDlg - - - HomardDlg - - - - 0 - 0 - 467 - 355 - - - - - 5 - 5 - 0 - 0 - - - - Homard : Analyse de maillage - - - true - - - - unnamed - - - - spacer10 - - - Vertical - - - Expanding - - - - 20 - 16 - - - - - - groupBox3 - - - - 5 - 5 - 0 - 0 - - - - Options - - - - unnamed - - - - layout30 - - - - unnamed - - - - Connexite - - - Connexité - - - true - - - - - Inter - - - Interpénétration - - - false - - - - - Volumes - - - Volumes/Surfaces/Longueurs - - - true - - - - - NbEntites - - - Nombre d'entités - - - true - - - - - Qualite - - - Qualité - - - true - - - - - - - - - groupBox4 - - - - - - - unnamed - - - - Horizontal Spacing2 - - - Horizontal - - - Expanding - - - - 290 - 20 - - - - - - lancement - - - &OK - - - - - - true - - - true - - - - - terminer - - - &Cancel - - - - - - true - - - - - - - groupBox7 - - - - 5 - 5 - 0 - 0 - - - - - 230 - 230 - 230 - - - - Raised - - - 1 - - - - - - - unnamed - - - - lblMesh - - - - 1 - 5 - 0 - 0 - - - - Mesh - - - - - lblCommande - - - - 1 - 5 - 0 - 0 - - - - MED File - - - - - PushFichier - - - - 0 - 0 - 0 - 0 - - - - - - - image0 - - - - - lblTypeMesh - - - - 1 - 5 - 0 - 0 - - - - - - - image1 - - - A quoi ça sert ? - - - - - NomFichier - - - - 300 - 21 - - - - - - ListeMeshName - - - - 300 - 31 - - - - - - - - groupBox3_2 - - - - 5 - 5 - 0 - 0 - - - - Conservation des résultats - - - - unnamed - - - - bilans - - - Bilan - - - true - - - - - Histo - - - Histogramme Qualité - - - true - - - - - - - - - 89504e470d0a1a0a0000000d49484452000000140000001408060000008d891d0d0000009849444154388db5d4cb1180200c0450e3580f056c49f6c0c91e2c690bb0213d7110123e417373c0371b3408c9e5cb5a3fd5fe00b79e4d006e6b8da40c83a98ef37a3dc73d147bbac0940208778ee6d57d86009a583798635aaba99a2d6b18490182faa1aa092dacf68e5893e2c1cc845e4c0567b0029cc5d4843398097ab1022429710fcb715ed50b6128e12caa4e4a9a044fdbe68fedad0767bd6302a986f8310000000049454e44ae426082 - - - 89504e470d0a1a0a0000000d49484452000000100000001008060000001ff3ff610000019449444154388da593316b1b411046df86341764588104b75708e2224d4c50bb1748e18021977f18489bceed152e03b96b83c14d2ae36295c2e41624d81108c6857cc9099f0dc1d30cb3cb37f398fdd6344dc373e2c5b3d4c0cb615196a55a6b89313296cfbf9d63ad65cbd68c12d88925dc0454f5418e3172fae994555c3d4e103791ec28e3eb97063b77c8bac3cd1d1fab575c5d2ac6185495b66dc777602796b44e07e24e3a7e7cffc3db77e6effd300e1af404923a9c73a49de07287887075a9c44da458142c4f96fa24819b3b92086e661111f2dc21d2117eed77911d654f13ecc53922c2ebdc219270b329d7b7ad699ac6b46dfbf82ba475c2e539b28bb8dcd16d3ab6bb9fe6faf75e5496a50e35e33b10c1cd1ce97e324055550a60ad6579b2d4be1e27984de924914d32fac9755d9beaacd27013288a82baae8df75e477d9024319d64ac6e3b0cff1c1a42a058147dd618e34302630cef3f141cbf317c3e3b06a0691ad34f1e12a8ea6183fa627f18c2bd8d43c07baf00c5a2a0bea84d9fabaad2b66d8df99fefecbdd7819d8df75eef005295fc1dc06daa230000000049454e44ae426082 - - - - - lancement - pressed() - HomardDlg - Lancement() - - - terminer - pressed() - HomardDlg - close() - - - ListeMeshName - activated(int) - HomardDlg - SetMaillage() - - - NomFichier - returnPressed() - HomardDlg - SetNomFichier() - - - PushFichier - clicked() - HomardDlg - PushNomFichier() - - - Connexite - stateChanged(int) - HomardDlg - SetConnexite() - - - Inter - stateChanged(int) - HomardDlg - SetInter() - - - NbEntites - stateChanged(int) - HomardDlg - SetNbEntites() - - - Histo - stateChanged(int) - HomardDlg - SetHisto() - - - Qualite - stateChanged(int) - HomardDlg - SetQualite() - - - Volumes - stateChanged(int) - HomardDlg - SetVolumes() - - - bilans - stateChanged(int) - HomardDlg - SetBilans() - - - - SetNomFichier() - PushNomFichier() - SetMaillage() - SetNbEntites() - Lancement() - SetInter() - SetBilans() - SetConnexite() - SetHisto() - SetQualite() - SetVolumes() - - - diff --git a/src/HOMARDGUI/ui/HomardEditLog.ui b/src/HOMARDGUI/ui/HomardEditLog.ui deleted file mode 100644 index bc8613a3..00000000 --- a/src/HOMARDGUI/ui/HomardEditLog.ui +++ /dev/null @@ -1,60 +0,0 @@ - -HomardEditLog - - - HomardEditLog - - - - 0 - 0 - 487 - 338 - - - - Homard : - - - true - - - - lblTypeMesh - - - - 457 - 16 - 16 - 28 - - - - - - - image0 - - - - - FileEditeur - - - - 0 - 0 - 490 - 340 - - - - - - - 89504e470d0a1a0a0000000d49484452000000100000001008060000001ff3ff610000019449444154388da593316b1b411046df86341764588104b75708e2224d4c50bb1748e18021977f18489bceed152e03b96b83c14d2ae36295c2e41624d81108c6857cc9099f0dc1d30cb3cb37f398fdd6344dc373e2c5b3d4c0cb615196a55a6b89313296cfbf9d63ad65cbd68c12d88925dc0454f5418e3172fae994555c3d4e103791ec28e3eb97063b77c8bac3cd1d1fab575c5d2ac6185495b66dc777602796b44e07e24e3a7e7cffc3db77e6effd300e1af404923a9c73a49de07287887075a9c44da458142c4f96fa24819b3b92086e661111f2dc21d2117eed77911d654f13ecc53922c2ebdc219270b329d7b7ad699ac6b46dfbf82ba475c2e539b28bb8dcd16d3ab6bb9fe6faf75e5496a50e35e33b10c1cd1ce97e324055550a60ad6579b2d4be1e27984de924914d32fac9755d9beaacd27013288a82baae8df75e477d9024319d64ac6e3b0cff1c1a42a058147dd618e34302630cef3f141cbf317c3e3b06a0691ad34f1e12a8ea6183fa627f18c2bd8d43c07baf00c5a2a0bea84d9fabaad2b66d8df99fefecbdd7819d8df75eef005295fc1dc06daa230000000049454e44ae426082 - - - - diff --git a/src/HOMARDGUI/ui/HomardIteration.ui b/src/HOMARDGUI/ui/HomardIteration.ui deleted file mode 100644 index 72e661a5..00000000 --- a/src/HOMARDGUI/ui/HomardIteration.ui +++ /dev/null @@ -1,218 +0,0 @@ - -HomardIteration - - - HomardIteration - - - - 0 - 0 - 533 - 112 - - - - Homard : Iteration Control - - - true - - - - lblTypeMesh - - - - 497 - 38 - 16 - 26 - - - - - - - image0 - - - - - IterBox - - - - 140 - 10 - 41 - 21 - - - - - - NomFichier - - - - 180 - 40 - 310 - 21 - - - - - 250 - 21 - - - - - - PushFichier - - - - 144 - 39 - 24 - 24 - - - - - - - image1 - - - - - buttonOk - - - - 366 - 80 - 58 - 21 - - - - Refine - - - - - - true - - - true - - - - - buttonCancel - - - - 430 - 80 - 60 - 21 - - - - &Cancel - - - - - - true - - - - - textLabel1 - - - - 10 - 10 - 120 - 21 - - - - Iteration Rank - - - - - lblCommande - - - - 7 - 37 - 128 - 28 - - - - Configuration File - - - - - - 89504e470d0a1a0a0000000d49484452000000100000001008060000001ff3ff610000019449444154388da593316b1b411046df86341764588104b75708e2224d4c50bb1748e18021977f18489bceed152e03b96b83c14d2ae36295c2e41624d81108c6857cc9099f0dc1d30cb3cb37f398fdd6344dc373e2c5b3d4c0cb615196a55a6b89313296cfbf9d63ad65cbd68c12d88925dc0454f5418e3172fae994555c3d4e103791ec28e3eb97063b77c8bac3cd1d1fab575c5d2ac6185495b66dc777602796b44e07e24e3a7e7cffc3db77e6effd300e1af404923a9c73a49de07287887075a9c44da458142c4f96fa24819b3b92086e661111f2dc21d2117eed77911d654f13ecc53922c2ebdc219270b329d7b7ad699ac6b46dfbf82ba475c2e539b28bb8dcd16d3ab6bb9fe6faf75e5496a50e35e33b10c1cd1ce97e324055550a60ad6579b2d4be1e27984de924914d32fac9755d9beaacd27013288a82baae8df75e477d9024319d64ac6e3b0cff1c1a42a058147dd618e34302630cef3f141cbf317c3e3b06a0691ad34f1e12a8ea6183fa627f18c2bd8d43c07baf00c5a2a0bea84d9fabaad2b66d8df99fefecbdd7819d8df75eef005295fc1dc06daa230000000049454e44ae426082 - - - 89504e470d0a1a0a0000000d49484452000000140000001408060000008d891d0d0000009849444154388db5d4cb1180200c0450e3580f056c49f6c0c91e2c690bb0213d7110123e417373c0371b3408c9e5cb5a3fd5fe00b79e4d006e6b8da40c83a98ef37a3dc73d147bbac0940208778ee6d57d86009a583798635aaba99a2d6b18490182faa1aa092dacf68e5893e2c1cc845e4c0567b0029cc5d4843398097ab1022429710fcb715ed50b6128e12caa4e4a9a044fdbe68fedad0767bd6302a986f8310000000049454e44ae426082 - - - - - NomFichier - returnPressed() - HomardIteration - SetNomFichier() - - - buttonOk - clicked() - HomardIteration - Lancement() - - - buttonCancel - clicked() - HomardIteration - close() - - - PushFichier - pressed() - HomardIteration - PushNomFichier() - - - IterBox - valueChanged(int) - HomardIteration - ChangeIter(int) - - - - Lancement() - SetNomFichier() - PushNomFichier() - ChangeIter(int) - - - diff --git a/src/HOMARDGUI/ui/HomardPourLesNuls.ui b/src/HOMARDGUI/ui/HomardPourLesNuls.ui deleted file mode 100644 index 25b6d000..00000000 --- a/src/HOMARDGUI/ui/HomardPourLesNuls.ui +++ /dev/null @@ -1,738 +0,0 @@ - -HomardPourLesNuls - - - HomardPourLesNuls - - - - 0 - 0 - 563 - 375 - - - - Homard for Dummies - - - true - - - - unnamed - - - - layout27 - - - - unnamed - - - - layout49 - - - - unnamed - - - - lblCommande - - - MED File - - - - - spacer4 - - - Horizontal - - - Expanding - - - - 120 - 20 - - - - - - layout48 - - - - unnamed - - - - layout26 - - - - unnamed - - - - PushFichier - - - - - - image0 - - - - - NomFichier - - - - 382 - 21 - - - - - - - - lblTypeMesh - - - - - - image1 - - - - - - - - - spacer19 - - - Vertical - - - Expanding - - - - 20 - 29 - - - - - - layout26 - - - - unnamed - - - - spacer20 - - - Horizontal - - - Expanding - - - - 104 - 20 - - - - - - layout25 - - - - unnamed - - - - groupBox2 - - - - - - - unnamed - - - - layout43 - - - - unnamed - - - - layout41 - - - - unnamed - - - - layout34 - - - - unnamed - - - - lblMesh - - - Mesh - - - - - spacer5 - - - Horizontal - - - Expanding - - - - 70 - 20 - - - - - - ListeMeshName - - - - 350 - 31 - - - - - - - - spacer15 - - - Vertical - - - Expanding - - - - 20 - 31 - - - - - - layout40 - - - - unnamed - - - - layout34_2 - - - - unnamed - - - - lblMesh_3 - - - Error Field - - - - - spacer5_2 - - - Horizontal - - - Expanding - - - - 70 - 20 - - - - - - ListeField - - - - 350 - 31 - - - - - - - - layout34_3 - - - - unnamed - - - - lblMesh_2 - - - Componant - - - - - spacer5_3 - - - Horizontal - - - Expanding - - - - 70 - 20 - - - - - - ListeComponant - - - - 350 - 31 - - - - - - - - layout34_4 - - - - unnamed - - - - lblMesh_4 - - - Iteration - - - - - spacer5_4 - - - Horizontal - - - Expanding - - - - 70 - 20 - - - - - - ListeIteration - - - - 350 - 31 - - - - - - - - - - - - spacer16 - - - Vertical - - - Expanding - - - - 31 - 51 - - - - - - layout42 - - - - unnamed - - - - layout38 - - - - unnamed - - - - lblMesh_2_2_2_2 - - - Refinement % - - - - - spacer6_4 - - - Horizontal - - - Expanding - - - - 50 - 20 - - - - - - PRaf - - - - 350 - 0 - - - - false - - - false - - - 30 - - - Horizontal - - - Above - - - 10 - - - - - - - layout38_2 - - - - unnamed - - - - lblMesh_2_2_2_2_3 - - - Unrefinement % - - - - - spacer6_4_2 - - - Horizontal - - - Expanding - - - - 50 - 20 - - - - - - PDeRaf - - - - 350 - 0 - - - - false - - - 0 - - - Horizontal - - - Above - - - 10 - - - - - - - - - - - - - spacer18 - - - Vertical - - - Expanding - - - - 20 - 41 - - - - - - Layout1 - - - - unnamed - - - 0 - - - 6 - - - - Horizontal Spacing2 - - - Horizontal - - - Expanding - - - - 20 - 0 - - - - - - buttonOk - - - &OK - - - - - - true - - - true - - - - - buttonCancel - - - &Cancel - - - - - - true - - - - - - - - - - - - - - - 89504e470d0a1a0a0000000d49484452000000140000001408060000008d891d0d0000009849444154388db5d4cb1180200c0450e3580f056c49f6c0c91e2c690bb0213d7110123e417373c0371b3408c9e5cb5a3fd5fe00b79e4d006e6b8da40c83a98ef37a3dc73d147bbac0940208778ee6d57d86009a583798635aaba99a2d6b18490182faa1aa092dacf68e5893e2c1cc845e4c0567b0029cc5d4843398097ab1022429710fcb715ed50b6128e12caa4e4a9a044fdbe68fedad0767bd6302a986f8310000000049454e44ae426082 - - - 89504e470d0a1a0a0000000d49484452000000100000001008060000001ff3ff610000019449444154388da593316b1b411046df86341764588104b75708e2224d4c50bb1748e18021977f18489bceed152e03b96b83c14d2ae36295c2e41624d81108c6857cc9099f0dc1d30cb3cb37f398fdd6344dc373e2c5b3d4c0cb615196a55a6b89313296cfbf9d63ad65cbd68c12d88925dc0454f5418e3172fae994555c3d4e103791ec28e3eb97063b77c8bac3cd1d1fab575c5d2ac6185495b66dc777602796b44e07e24e3a7e7cffc3db77e6effd300e1af404923a9c73a49de07287887075a9c44da458142c4f96fa24819b3b92086e661111f2dc21d2117eed77911d654f13ecc53922c2ebdc219270b329d7b7ad699ac6b46dfbf82ba475c2e539b28bb8dcd16d3ab6bb9fe6faf75e5496a50e35e33b10c1cd1ce97e324055550a60ad6579b2d4be1e27984de924914d32fac9755d9beaacd27013288a82baae8df75e477d9024319d64ac6e3b0cff1c1a42a058147dd618e34302630cef3f141cbf317c3e3b06a0691ad34f1e12a8ea6183fa627f18c2bd8d43c07baf00c5a2a0bea84d9fabaad2b66d8df99fefecbdd7819d8df75eef005295fc1dc06daa230000000049454e44ae426082 - - - - - buttonOk - clicked() - HomardPourLesNuls - Lancement() - - - buttonCancel - clicked() - HomardPourLesNuls - reject() - - - ListeComponant - activated(int) - HomardPourLesNuls - SetComponant() - - - ListeField - activated(int) - HomardPourLesNuls - SetError() - - - ListeIteration - activated(int) - HomardPourLesNuls - SetIter() - - - ListeMeshName - activated(int) - HomardPourLesNuls - SetMaillage() - - - NomFichier - returnPressed() - HomardPourLesNuls - SetNomFichier() - - - PRaf - valueChanged(int) - HomardPourLesNuls - ChangeRaf() - - - PRaf - valueChanged(int) - HomardPourLesNuls - ChangeDeRaf() - - - PushFichier - clicked() - HomardPourLesNuls - PushNomFichier() - - - - SetNomFichier() - PushNomFichier() - SetMaillage() - SetError() - SetComponant() - Lancement() - ChangeDeRaf() - SetIter() - ChangeRaf() - - - diff --git a/src/HOMARDGUI/ui/HomardRaffiUniforme.ui b/src/HOMARDGUI/ui/HomardRaffiUniforme.ui deleted file mode 100644 index ac5b4b53..00000000 --- a/src/HOMARDGUI/ui/HomardRaffiUniforme.ui +++ /dev/null @@ -1,383 +0,0 @@ - -HomardRaffi - - - HomardRaffi - - - - 0 - 0 - 533 - 206 - - - - Uniform Refinement - - - true - - - - unnamed - - - - layout32 - - - - unnamed - - - - layout49 - - - - unnamed - - - - lblCommande - - - MED File - - - - - spacer4 - - - Horizontal - - - Expanding - - - - 120 - 20 - - - - - - layout48 - - - - unnamed - - - - layout26 - - - - unnamed - - - - PushFichier - - - - - - image0 - - - - - NomFichier - - - - 382 - 21 - - - - - - - - lblTypeMesh - - - - - - image1 - - - - - - - - - spacer15 - - - Vertical - - - Expanding - - - - 21 - 41 - - - - - - layout31 - - - - unnamed - - - - spacer20 - - - Horizontal - - - Expanding - - - - 104 - 20 - - - - - - layout29 - - - - unnamed - - - - spacer19 - - - Vertical - - - Expanding - - - - 20 - 29 - - - - - - groupBox2 - - - - - - - unnamed - - - - layout34 - - - - unnamed - - - - lblMesh - - - Mesh - - - - - spacer5 - - - Horizontal - - - Expanding - - - - 70 - 20 - - - - - - ListeMeshName - - - - 350 - 31 - - - - - - - - - - spacer18 - - - Vertical - - - Expanding - - - - 20 - 41 - - - - - - Layout1 - - - - unnamed - - - 0 - - - 6 - - - - Horizontal Spacing2 - - - Horizontal - - - Expanding - - - - 20 - 0 - - - - - - buttonOk - - - Refine - - - - - - true - - - true - - - - - buttonCancel - - - &Cancel - - - - - - true - - - - - - - - - - - - - - - 89504e470d0a1a0a0000000d49484452000000140000001408060000008d891d0d0000009849444154388db5d4cb1180200c0450e3580f056c49f6c0c91e2c690bb0213d7110123e417373c0371b3408c9e5cb5a3fd5fe00b79e4d006e6b8da40c83a98ef37a3dc73d147bbac0940208778ee6d57d86009a583798635aaba99a2d6b18490182faa1aa092dacf68e5893e2c1cc845e4c0567b0029cc5d4843398097ab1022429710fcb715ed50b6128e12caa4e4a9a044fdbe68fedad0767bd6302a986f8310000000049454e44ae426082 - - - 89504e470d0a1a0a0000000d49484452000000100000001008060000001ff3ff610000019449444154388da593316b1b411046df86341764588104b75708e2224d4c50bb1748e18021977f18489bceed152e03b96b83c14d2ae36295c2e41624d81108c6857cc9099f0dc1d30cb3cb37f398fdd6344dc373e2c5b3d4c0cb615196a55a6b89313296cfbf9d63ad65cbd68c12d88925dc0454f5418e3172fae994555c3d4e103791ec28e3eb97063b77c8bac3cd1d1fab575c5d2ac6185495b66dc777602796b44e07e24e3a7e7cffc3db77e6effd300e1af404923a9c73a49de07287887075a9c44da458142c4f96fa24819b3b92086e661111f2dc21d2117eed77911d654f13ecc53922c2ebdc219270b329d7b7ad699ac6b46dfbf82ba475c2e539b28bb8dcd16d3ab6bb9fe6faf75e5496a50e35e33b10c1cd1ce97e324055550a60ad6579b2d4be1e27984de924914d32fac9755d9beaacd27013288a82baae8df75e477d9024319d64ac6e3b0cff1c1a42a058147dd618e34302630cef3f141cbf317c3e3b06a0691ad34f1e12a8ea6183fa627f18c2bd8d43c07baf00c5a2a0bea84d9fabaad2b66d8df99fefecbdd7819d8df75eef005295fc1dc06daa230000000049454e44ae426082 - - - - - NomFichier - returnPressed() - HomardRaffi - SetNomFichier() - - - buttonOk - clicked() - HomardRaffi - Lancement() - - - buttonCancel - clicked() - HomardRaffi - close() - - - PushFichier - pressed() - HomardRaffi - PushNomFichier() - - - ListeMeshName - activated(const QString&) - HomardRaffi - SetMaillage() - - - - Lancement() - SetNomFichier() - SetMaillage() - PushNomFichier() - - - diff --git a/src/HOMARD_I/driver_gen_i.cxx b/src/HOMARD_I/driver_gen_i.cxx deleted file mode 100644 index 163217d8..00000000 --- a/src/HOMARD_I/driver_gen_i.cxx +++ /dev/null @@ -1,264 +0,0 @@ -// Copyright (C) 2011 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 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 -#include "driver_gen_i.h" - - -//=========================================================================== - Driver_Base_Gen_i::Driver_Base_Gen_i(CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa, - PortableServer::ObjectId * contId, - const char *instanceName, - const char *interfaceName) -// :Engines_Component_i(orb, poa, contId, instanceName, interfaceName) - { - MESSAGE("Driver_Base_Gen_i::Driver_Base_Gen_i : "); - }; - -//=========================================================================== - Driver_Base_Gen_i::~Driver_Base_Gen_i() - { - MESSAGE("Driver_Base_Gen_i::~Driver_Base_Gen_i"); - }; - -//=========================================================================== - CORBA::Boolean Driver_Base_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent, - const SALOMEDS::TMPFile & theStream, - const char* theURL, - bool isMultiFile) - { - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("Driver_Base_Gen_i::Load"); - MESSAGE("Should be implemented"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - return false; - }; - -//=========================================================================== - CORBA::Boolean Driver_Base_Gen_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent, - const SALOMEDS::TMPFile & theStream, - const char* theURL, - bool isMultiFile) - { - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("Driver_Base_Gen_i::LoadASCII"); - MESSAGE("Should be implemented"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - return false; - }; - -//=========================================================================== - char* Driver_Base_Gen_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject, - const char* aLocalPersistentID, - CORBA::Boolean isMultiFile, - CORBA::Boolean isASCII) - { - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("Driver_Base_Gen_i::LocalPersistentIDToIOR"); - MESSAGE("Should be implemented"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - CORBA::String_var aString(""); - return aString._retn(); - }; - -//=========================================================================== - SALOMEDS::TMPFile* Driver_Base_Gen_i::Save(SALOMEDS::SComponent_ptr theComponent, - const char* theURL, - bool isMultiFile) - { - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("Driver_Base_Gen_i::Save"); - MESSAGE("Should be implemented"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0); - return aStreamFile._retn(); - }; - -//=========================================================================== - SALOMEDS::TMPFile* Driver_Base_Gen_i::SaveASCII(SALOMEDS::SComponent_ptr theComponent, - const char* theURL, - bool isMultiFile) - { - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("Driver_Base_Gen_i::SaveASCII"); - MESSAGE("Should be implemented"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0); - return aStreamFile._retn(); - }; - -//=========================================================================== - char* Driver_Base_Gen_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject, - const char* IORString, - CORBA::Boolean isMultiFile, - CORBA::Boolean isASCII) - { - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("Driver_Base_Gen_i::IORToLocalPersistentID"); - MESSAGE("Should be implemented"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - CORBA::String_var aString(""); - return aString._retn(); - }; - - -//=========================================================================== - void Driver_Base_Gen_i::Close(SALOMEDS::SComponent_ptr theComponent) - { - MESSAGE("------------------------"); - MESSAGE("Driver_Base_Gen_i::Close"); - MESSAGE("------------------------"); - }; - -//=========================================================================== - char* Driver_Base_Gen_i::ComponentDataType() - { - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("Driver_Base_Gen_i::ComponentDataType"); - MESSAGE("Should be implemented"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - return CORBA::string_dup("J aurais du nommer mon type prefere"); - }; - -//=========================================================================== - bool Driver_Base_Gen_i::CanPublishInStudy(CORBA::Object_ptr theIOR) - { - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("Driver_Base_Gen_i::CanPublishInStudy"); - MESSAGE("Should be implemented"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - return false; - }; - -//=========================================================================== - SALOMEDS::SObject_ptr Driver_Base_Gen_i::PublishInStudy(SALOMEDS::Study_ptr theStudy, - SALOMEDS::SObject_ptr theSObject, - CORBA::Object_ptr theObject, - const char* theName) - throw (SALOME::SALOME_Exception) - { - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("Driver_Base_Gen_i::PublishInStudy"); - MESSAGE("Should be implemented"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - SALOMEDS::SObject_var aResultSO; - return aResultSO._retn(); - }; - -//=========================================================================== - CORBA::Boolean Driver_Base_Gen_i::CanCopy(SALOMEDS::SObject_ptr theObject) - { - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("Driver_Base_Gen_i::CanCopy"); - MESSAGE("Should be implemented"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - //return false; - return true; - }; - -//=========================================================================== - SALOMEDS::TMPFile* Driver_Base_Gen_i::CopyFrom(SALOMEDS::SObject_ptr theObject, - CORBA::Long& theObjectID) -{ - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("Driver_Base_Gen_i::CopyFrom"); - MESSAGE("Should be implemented"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - MESSAGE("--------------------------------------"); - SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0); - return aStreamFile._retn(); -}; - -//=========================================================================== - SALOMEDS::SObject_ptr Driver_Base_Gen_i::PasteInto( const SALOMEDS::TMPFile & theStream, - CORBA::Long theObjectID, - SALOMEDS::SObject_ptr theSObject) - { - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("Driver_Base_Gen_i::PasteInto"); - MESSAGE("Should be implemented"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - SALOMEDS::SObject_var aResultSO; - return aResultSO._retn(); - }; - -//=========================================================================== - CORBA::Boolean Driver_Base_Gen_i::CanPaste ( const char *theComponentName, - CORBA::Long theObjectID) - { - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("Driver_Base_Gen_i::CanPaste"); - MESSAGE("Should be implemented"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - MESSAGE("-----------------------------------------"); - return false; - }; - - diff --git a/src/HOMARD_I/driver_gen_i.h b/src/HOMARD_I/driver_gen_i.h deleted file mode 100644 index 3e79d5c8..00000000 --- a/src/HOMARD_I/driver_gen_i.h +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (C) 2011 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 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 -// - -#ifndef __DRIVER_BAS_GEN_I_H__ -#define __DRIVER_BAS_GEN_I_H__ - -#include "SALOME_Component_i.hxx" -#include "SALOME_NamingService.hxx" - -#include CORBA_CLIENT_HEADER(SALOMEDS) - - -//--------------------------------------------------------- - class Driver_Base_Gen_i : - public virtual POA_SALOMEDS::Driver -//--------------------------------------------------------- - { - - - Driver_Base_Gen_i(); - public: - Driver_Base_Gen_i(CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa, - PortableServer::ObjectId * contId, - const char *instanceName, - const char *interfaceName); - - - virtual ~Driver_Base_Gen_i(); - - //--------------------------------------------- - // inherited methods from SALOMEDS::Driver - //--------------------------------------------- - - //virtual SALOMEDS::TMPFile* Save(SALOMEDS::SComponent_ptr theComponent, - SALOMEDS::TMPFile* Save(SALOMEDS::SComponent_ptr theComponent, - const char* theURL, - bool isMultiFile); - - virtual SALOMEDS::TMPFile* SaveASCII(SALOMEDS::SComponent_ptr theComponent, - const char* theURL, - bool isMultiFile); - - virtual bool Load(SALOMEDS::SComponent_ptr, - const SALOMEDS::TMPFile &, - const char* theURL, - bool isMultiFile); - - virtual bool LoadASCII(SALOMEDS::SComponent_ptr, - const SALOMEDS::TMPFile &, - const char* theURL, - bool isMultiFile); - - virtual void Close(SALOMEDS::SComponent_ptr IORSComponent); - - virtual char* ComponentDataType(); - - virtual char* IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject, - const char* IORString, - CORBA::Boolean isMultiFile, - CORBA::Boolean isASCII); - - virtual char* LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject, - const char* aLocalPersistentID, - CORBA::Boolean isMultiFile, - CORBA::Boolean isASCII); - - virtual bool CanPublishInStudy(CORBA::Object_ptr theIOR); - - virtual SALOMEDS::SObject_ptr PublishInStudy - (SALOMEDS::Study_ptr theStudy, - SALOMEDS::SObject_ptr theSObject, - CORBA::Object_ptr theObject, - const char* theName) - throw (SALOME::SALOME_Exception); - - virtual CORBA::Boolean CanCopy(SALOMEDS::SObject_ptr theObject); - - virtual SALOMEDS::TMPFile* CopyFrom(SALOMEDS::SObject_ptr theObject, - CORBA::Long& theObjectID); - - virtual CORBA::Boolean CanPaste(const char* theComponentName, - CORBA::Long theObjectID); - - virtual SALOMEDS::SObject_ptr PasteInto(const SALOMEDS::TMPFile& theStream, - CORBA::Long theObjectID, - SALOMEDS::SObject_ptr theObject); - }; -#endif