Switch to side-by-side view

--- a/src/qtgui/confgui/conflinkrcl.h
+++ b/src/qtgui/confgui/conflinkrcl.h
@@ -1,7 +1,12 @@
 #ifndef _CONFLINKRCL_H_INCLUDED_
 #define _CONFLINKRCL_H_INCLUDED_
-/* @(#$Id: conflinkrcl.h,v 1.1 2007-09-27 15:47:25 dockes Exp $  (C) 2004 J.F.Dockes */
+/* @(#$Id: conflinkrcl.h,v 1.2 2007-09-29 09:06:53 dockes Exp $  (C) 2004 J.F.Dockes */
 
+/** 
+ * A Gui-to-Data link class for RclConfig
+ * Has a subkey pointer member which makes it easy to change the
+ * current subkey for a number at a time.
+ */
 #include "confgui.h"
 #include "rclconfig.h"
 #include "debuglog.h"
@@ -11,7 +16,7 @@
 class ConfLinkRclRep : public ConfLinkRep {
 public:
     ConfLinkRclRep(RclConfig *conf, const string& nm, 
-		   const string& sk = "")
+		   string *sk = 0)
 	: m_conf(conf), m_nm(nm), m_sk(sk)
     {
     }
@@ -21,8 +26,9 @@
     {
 	if (!m_conf)
 	    return false;
-	LOGDEB(("Setting [%s] value to [%s]\n", 
+	LOGDEB1(("Setting [%s] value to [%s]\n", 
 		m_nm.c_str(), val.c_str()));
+	m_conf->setKeyDir(m_sk ? *m_sk : "");
 	bool ret = m_conf->setConfParam(m_nm, val);
 	if (!ret)
 	    LOGERR(("Value set failed\n"));
@@ -32,15 +38,16 @@
     {
 	if (!m_conf)
 	    return false;
+	m_conf->setKeyDir(m_sk ? *m_sk : "");
 	bool ret = m_conf->getConfParam(m_nm, val);
-	LOGDEB(("Got [%s] for [%s]\n", 
+	LOGDEB1(("Got [%s] for [%s]\n", 
 		ret ? val.c_str() : "no value", m_nm.c_str()));
 	return ret;
     }
 private:
-    RclConfig *m_conf;
-    const string m_nm;
-    const string m_sk;
+    RclConfig    *m_conf;
+    const string  m_nm;
+    const string *m_sk;
 };
 
 } // Namespace confgui