]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Resource edit modifications. New method resource()
authorstv <stv@opencascade.com>
Fri, 17 Jun 2005 08:43:04 +0000 (08:43 +0000)
committerstv <stv@opencascade.com>
Fri, 17 Jun 2005 08:43:04 +0000 (08:43 +0000)
src/Qtx/QtxResourceEdit.cxx
src/Qtx/QtxResourceEdit.h

index e7b5592876ef7d213fb64b406f2710abd6721f19..1ee772a30edabdf16ca9b114eaff4b28cb34b77c 100644 (file)
@@ -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<Item*, QString> before;
index 66ce2bdfb7a1321131f9439c1202af7877297efa..7dc314b02fd064dcd94904daf9e4849cabda9bed 100644 (file)
@@ -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();