return;
_PTR(Study) aStudy = GetCStudy( GetAppStudy( theModule ) );
- _PTR(SObject) aSObject = aStudy->FindObjectID( thePrs->GetEntry() );
+ _PTR(SObject) aSObject = aStudy->FindObjectID( thePrs->GetEntry().latin1() );
if ( !theCreate && aSObject ){
// Remove old Table
if (CORBA::is_nil(aChildObj)) continue;
CORBA::Object_ptr aCurve = VISU::Curve::_narrow(aChildObj);
if (CORBA::is_nil(aCurve)) continue;
- VISU::Curve_i* pCurve = dynamic_cast<VISU::Curve_i*>(VISU::GetServant(aCurve).in());
+ //VISU::Curve_i* pCurve = dynamic_cast<VISU::Curve_i*>(VISU::GetServant(aCurve).in());
//jfa tmp:DeleteCurve(this, pCurve, NULL);
}
break;
// get name of SObject
if ( SO->FindAttribute( anAttr, "AttributeName" ) ) {
aName = anAttr;
- SOName = aName->Value();
+ SOName = QString( aName->Value().c_str() );
}
SPlot2d_SetupPlot2dDlg* dlg = new SPlot2d_SetupPlot2dDlg( SO, GetDesktop( this ) );
if ( dlg->exec() == QDialog::Accepted ) {
// get name of SObject
if ( SO->FindAttribute( anAttr, "AttributeName" ) ) {
aName = anAttr;
- SOName = aName->Value();
+ SOName = QString( aName->Value().c_str() );
}
SPlot2d_SetupPlot2dDlg* dlg = new SPlot2d_SetupPlot2dDlg( SO, GetDesktop( this ) );
if ( dlg->exec() == QDialog::Accepted ) {
_PTR(GenericAttribute) anAttr;
if (aSObj->FindAttribute(anAttr, "AttributeName")) {
_PTR(AttributeName) aName (anAttr);
- QString Name = VisuGUI_NameDlg::getName(GetDesktop(this), aName->Value());
+ QString Name = VisuGUI_NameDlg::getName( GetDesktop( this ), aName->Value().c_str() );
if (!Name.isEmpty()) {
QApplication::setOverrideCursor(Qt::waitCursor);
if (aSObject->FindAttribute(anAttr, "AttributeComment")) {
_PTR(AttributeComment) aComment (anAttr);
std::string aString = aComment->Value();
- QString strIn (aString);
+ QString strIn( aString.c_str() );
VISU::Storable::StrToMap(strIn, aMap);
}
}
}
if ( !bEmptyRow ) { // Skip rows with no data !!!
// set row title
- tblIntAttr->SetRowTitle( nRow+1, rowTitles[ i ].isNull() ? QString( "" ) : QString( rowTitles[ i ] ) );
+ tblIntAttr->SetRowTitle( nRow+1, rowTitles[ i ].isNull() ? "" : rowTitles[ i ].latin1() );
// set row unit
- tblIntAttr->SetRowUnit( nRow+1, units[ i ].isNull() ? QString( "" ) : QString( units[ i ] ) );
+ tblIntAttr->SetRowUnit( nRow+1, units[ i ].isNull() ? "" : units[ i ].latin1() );
nRow++;
}
}
if ( nRow > 0 ) { // Set columns only if table is not empty, otherwise exception is raised !!!
// column titles
for ( i = 0; i < colTitles.count(); i++ )
- tblIntAttr->SetColumnTitle( i+1, colTitles[ i ].isNull() ? QString( "" ) : QString( colTitles[ i ] ) );
+ tblIntAttr->SetColumnTitle( i+1, colTitles[ i ].isNull() ? "" : colTitles[ i ].latin1() );
}
}
// title
}
if ( !bEmptyRow ) { // Skip rows with no data !!!
// set row title
- tblRealAttr->SetRowTitle( nRow+1, rowTitles[ i ].isNull() ? QString( "" ) : QString( rowTitles[ i ] ) );
+ tblRealAttr->SetRowTitle( nRow+1, rowTitles[ i ].isNull() ? "" : rowTitles[ i ].latin1() );
// set row unit
- tblRealAttr->SetRowUnit( nRow+1, units[ i ].isNull() ? QString( "" ) : QString( units[ i ] ) );
+ tblRealAttr->SetRowUnit( nRow+1, units[ i ].isNull() ? "" : units[ i ].latin1() );
nRow++;
}
}
if ( nRow > 0 ) { // Set columns only if table is not empty, otherwise exception is raised !!!
// column titles
for ( i = 0; i < colTitles.count(); i++ )
- tblRealAttr->SetColumnTitle( i+1, colTitles[ i ].isNull() ? QString( "" ) : QString( colTitles[ i ] ) );
+ tblRealAttr->SetColumnTitle( i+1, colTitles[ i ].isNull() ? "" : colTitles[ i ].latin1() );
}
}
// title
// Table of integer
if ( tblIntAttr && myIntTable ) {
try {
- VisuGUI_Table* tbl = myIntTable->getTable();
// title
myIntTable->setTableTitle( tblIntAttr->GetTitle().c_str() );
// nb of rows & cols
vector<string> rowUnits = tblIntAttr->GetRowUnits();
if ( rowUnits.size() > 0 ) {
for ( i = 0; i < nbRows; i++ )
- strlist.append( rowUnits[i] );
+ strlist.append( rowUnits[i].c_str() );
myIntTable->setUnits( strlist );
}
// data
// Table of real
if ( tblRealAttr && myRealTable ) {
try {
- VisuGUI_Table* tbl = myRealTable->getTable();
// title
myRealTable->setTableTitle( tblRealAttr->GetTitle().c_str() );
// nb of rows & cols
QList<Plot2d_Curve> clist;
aPlot->getCurves( clist );
_PTR(Study) aStudy = GetCStudy( GetAppStudy( theModule ) );
- _PTR(SObject) TableSO = aStudy->FindObjectID( table->GetEntry() );
+ _PTR(SObject) TableSO = aStudy->FindObjectID( table->GetEntry().latin1() );
if ( TableSO ) {
_PTR(ChildIterator) Iter = aStudy->NewChildIterator( TableSO );
for ( ; Iter->More(); Iter->Next() ) {
// standard C++ headers
#include <stdio.h>
#include <iostream>
+
+#include <map>
#include <string>
+
#include <qstring.h>
#include <qthread.h>
#include <qfileinfo.h>
}
// is it Table ?
if (Table_i* aTable = dynamic_cast<Table_i*>(VISU::GetServant(myPrsObj).in())) {
- _PTR(SObject) TableSO = myStudy->FindObjectID(aTable->GetEntry());
+ _PTR(SObject) TableSO = myStudy->FindObjectID(aTable->GetEntry().latin1());
if (TableSO) {
_PTR(ChildIterator) Iter = myStudy->NewChildIterator(TableSO);
for (; Iter->More(); Iter->Next()) {
if (MYDEBUG) MESSAGE("View3D_i::RestoreViewPoint - anEntry = " << anEntry);
if (anObj->FindAttribute(anAttr, "AttributeComment")) {
_PTR(AttributeComment) aCmnt (anAttr);
- QString strIn (aCmnt->Value());
+ QString strIn(aCmnt->Value().c_str());
Storable::TRestoringMap aMap;
Storable::StrToMap(strIn, aMap);
if (Storable::FindValue(aMap, "myComment").compare