[GME-commit]
GMESRC/GME/Gme MgaOpenDlg.cpp,1.11,1.12 MgaOpenDlg.h,1.4,1.5
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Tue Sep 14 10:02:37 CDT 2004
Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv1095
Modified Files:
MgaOpenDlg.cpp MgaOpenDlg.h
Log Message:
no message
CVS User: bogyom
Index: MgaOpenDlg.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/MgaOpenDlg.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** MgaOpenDlg.cpp 12 Mar 2004 19:57:06 -0000 1.11
--- MgaOpenDlg.cpp 14 Sep 2004 14:02:35 -0000 1.12
***************
*** 5,8 ****
--- 5,9 ----
#include "GMEApp.h"
#include "MgaOpenDlg.h"
+ #include "NewXmlbackendProjDlg.h"
#include <afxdb.h>
***************
*** 28,31 ****
--- 29,33 ----
title = "Open";
filemsg = "Open project file";
+ xmlfilemsg = "Open multi user project";
flag_isopen = true;
flag_back = false;
***************
*** 52,55 ****
--- 54,58 ----
title = "New";
filemsg = "Create project file";
+ xmlfilemsg = "Create multi user project";
flag_isopen = true;
flag_back = true;
***************
*** 81,84 ****
--- 84,90 ----
"Microsoft Access Files (*.mdb)|*.mdb||";
+ /*static char mgafilter[] = "MGA Files (*.mga)|*.mga|Exported Files (*.xme;*.xml)|*.xme; *.xml|"
+ "Microsoft Access Files (*.mdb)|*.mdb|MGX Files (*.mgx)|*.mgx||";*/
+
static char mgaonlyfilter[] = "MGA Files (*.mga)|*.mga||";
***************
*** 137,140 ****
--- 143,148 ----
if( ext == "mga" || ext == "mta" )
conn = CString("MGA=") + dlg.GetPathName();
+ else if( ext == "mgx" )
+ conn = CString("MGX=") + dlg.GetPathName();
else if( (ext == "xml") || (ext == "xme") || (ext == "xmp") )
conn = CString("XML=") + dlg.GetPathName();
***************
*** 177,180 ****
--- 185,226 ----
}
}
+ else if( m_radio == 3 )
+ {
+ if( flag_create )
+ {
+ // create new multiuser project
+ CNewXmlbackendProjDlg dlg;
+ if( dlg.DoModal() == IDOK )
+ conn = dlg.m_connectionString;
+ }
+ else
+ {
+ // open existing multiuser project
+ BROWSEINFO bi;
+
+ char szDisplayName[MAX_PATH];
+ char szPath[MAX_PATH];
+
+ bi.hwndOwner = m_hWnd;
+ bi.pidlRoot = NULL;
+ bi.lpszTitle = "Select the project location.";
+ bi.pszDisplayName = szDisplayName;
+ bi.ulFlags = BIF_RETURNONLYFSDIRS;
+ bi.lpfn = NULL;
+ bi.lParam = 0;
+
+ LPITEMIDLIST idlist = SHBrowseForFolder(&bi);
+
+ if( idlist )
+ {
+ if( SHGetPathFromIDList(idlist, szPath) )
+ {
+ conn = "MGX=\"";
+ conn += szPath;
+ conn += "\"";
+ }
+ }
+ }
+ }
}
}
***************
*** 250,253 ****
--- 296,300 ----
SetWindowText(title);
GetDlgItem(IDC_RADIO2)->SetWindowText(filemsg);
+ GetDlgItem(IDC_RADIO4)->SetWindowText(xmlfilemsg);
if( flag_meta )
Index: MgaOpenDlg.h
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/MgaOpenDlg.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** MgaOpenDlg.h 12 Mar 2004 19:57:06 -0000 1.4
--- MgaOpenDlg.h 14 Sep 2004 14:02:35 -0000 1.5
***************
*** 58,61 ****
--- 58,62 ----
CString title;
CString filemsg;
+ CString xmlfilemsg;
// Generated message map functions
More information about the GME-commit
mailing list