View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsd/src/DQSDSearchWiz
In directory usw-pr-cvs1:/tmp/cvs-serv17198/src/DQSDSearchWiz

Modified Files:
        DQSDWizardDlg.cpp StdAfx.h 
Log Message:
interim work

Index: DQSDWizardDlg.cpp
===================================================================
RCS file: /cvsroot/dqsd/dqsd/src/DQSDSearchWiz/DQSDWizardDlg.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** DQSDWizardDlg.cpp   9 Aug 2002 14:07:09 -0000       1.16
--- DQSDWizardDlg.cpp   9 Aug 2002 22:58:25 -0000       1.17
***************
*** 514,517 ****
--- 514,520 ----
                        if ( SUCCEEDED( spFormElement->get_length( &cFormElements ) ) )
                        {
+                               // Map a radio button to its values
+ //                            map< string, string > mapRadioButtons;
+ 
                                rstrFormScript += _T("\r\n\r\n      // FORM variables 
for ") + strFormName;
                                
***************
*** 526,531 ****
                                                continue;
  
!                                       BSTR bstrName = NULL;
!                                       spElement->get_tagName( &bstrName );
  
                                        // Skip if the element doesn't have a name
--- 529,534 ----
                                                continue;
  
!                                       BSTR bstrTagName = NULL;
!                                       spElement->get_tagName( &bstrTagName );
  
                                        // Skip if the element doesn't have a name
***************
*** 538,541 ****
--- 541,545 ----
  
                                                // Ignore INPUT type=submit
+ 
                                                _variant_t varInputType;
                                                if ( ( SUCCEEDED( 
spElement->getAttribute( _bstr_t( _T("type") ), 0, &varInputType ) ) && 
varInputType.bstrVal ) && !wcsicmp( L"submit", varInputType.bstrVal ) )
***************
*** 567,570 ****
--- 571,585 ----
                                                }
  
+ //                                            map< string, string >::iterator 
+itFound;
+ //                                            if ( varInputType.bstrVal && !wcsicmp( 
+L"radio", varInputType.bstrVal ) )
+ //                                            {
+ //                                                    itFound = 
+mapRadioButtons.find( W2T( varInputType.bstrVal ) );
+ //                                                    if ( itFound != 
+mapRadioButtons.end() )
+ //                                                    {
+ //                                                            string strCurrValues = 
+itFound->second;
+ //                                                            mapRadioButtons[ W2T( 
+varInputType ) ] = strCurrentValues + _T(" ") + EscapeXML( string( W2T( 
+varInputValue.bstrVal ) ) );
+ //                                                    }
+ //                                            }
+ 
                                                strFormXML += _T("/>");
  
***************
*** 591,595 ****
                                                }
  
!                                               if ( !_tcsicmp( W2T( bstrName ), 
_T("SELECT") ) )
                                                {
                                                        strFormXML += _T("\r\n    
<COMMENT>  The input element above was a SELECT element with the following 
options...");
--- 606,610 ----
                                                }
  
!                                               if ( !_tcsicmp( W2T( bstrTagName ), 
_T("SELECT") ) )
                                                {
                                                        strFormXML += _T("\r\n    
<COMMENT>  The input element above was a SELECT element with the following 
options...");
***************
*** 630,634 ****
                                        }
  
!                                       ::SysFreeString( bstrName );
                                }
                        }
--- 645,649 ----
                                        }
  
!                                       ::SysFreeString( bstrTagName );
                                }
                        }

Index: StdAfx.h
===================================================================
RCS file: /cvsroot/dqsd/dqsd/src/DQSDSearchWiz/StdAfx.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** StdAfx.h    8 Aug 2002 21:25:49 -0000       1.7
--- StdAfx.h    9 Aug 2002 22:58:25 -0000       1.8
***************
*** 34,37 ****
--- 34,38 ----
  #include <string>
  #include <vector>
+ #include <map>
  #include <algorithm>
  using namespace std;




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to