From: stv Date: Fri, 17 Jun 2005 08:43:04 +0000 (+0000) Subject: Resource edit modifications. New method resource() X-Git-Tag: T3_0_0_a4~90 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=edeb8cab23573354cb9affb1afb1252022ff53ed;p=modules%2Fgui.git Resource edit modifications. New method resource() --- diff --git a/src/Qtx/QtxResourceEdit.cxx b/src/Qtx/QtxResourceEdit.cxx index e7b559287..1ee772a30 100644 --- a/src/Qtx/QtxResourceEdit.cxx +++ b/src/Qtx/QtxResourceEdit.cxx @@ -57,6 +57,13 @@ void QtxResourceEdit::setProperty( const int id, const QString& propName, const i->setProperty( propName, propValue ); } +void QtxResourceEdit::resource( const int id, QString& sec, QString& param ) const +{ + Item* i = item( id ); + if ( i ) + i->resource( sec, param ); +} + void QtxResourceEdit::store() { QMap before; diff --git a/src/Qtx/QtxResourceEdit.h b/src/Qtx/QtxResourceEdit.h index 66ce2bdfb..7dc314b02 100644 --- a/src/Qtx/QtxResourceEdit.h +++ b/src/Qtx/QtxResourceEdit.h @@ -27,12 +27,14 @@ public: QtxResourceMgr* resourceMgr() const; - int addItem( const QString& label, const int pId = -1, const int = -1, + virtual int addItem( const QString& label, const int pId = -1, const int = -1, const QString& section = QString::null, const QString& param = QString::null ); QVariant property( const int, const QString& ) const; - void setProperty( const int, const QString&, const QVariant& ); + virtual void setProperty( const int, const QString&, const QVariant& ); + + void resource( const int, QString&, QString& ) const; virtual void store(); virtual void retrieve();