GME  13
MgaOpenDlg.h
Go to the documentation of this file.
00001 #if !defined(AFX_MGAOPENDLG_H__13874436_F1E6_11D3_B38F_005004D38590__INCLUDED_)
00002 #define AFX_MGAOPENDLG_H__13874436_F1E6_11D3_B38F_005004D38590__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 // MgaOpenDlg.h : header file
00008 //
00009 
00010 
00012 // CMgaOpenDlg dialog
00013 
00014 class CMgaOpenDlg : public CDialog
00015 {
00016 public:
00017         enum DialogTypes {
00018                 OpenDialog,
00019                 SaveDialog,
00020                 SaveAsDialog,
00021                 NewDialog,
00022                 ImportDialog,
00023                 ClearLocksDialog
00024         };
00025 // Construction
00026 public:
00027         CMgaOpenDlg(DialogTypes dType = OpenDialog, CWnd* pParent = NULL);   // standard constructor
00028 
00029         void SetFileNameHint(const CString& hint);
00030         void SetFolderPathHint(const CString& hint);
00031 
00032         bool pressed_back;
00033 
00034         CString AskConnectionString(bool allowXme, bool openFileDialog);
00035         CString AskMGAConnectionString();
00036 private:
00037         CString PruneConnectionString(const CString& conn);
00038         CString FilterInvalidCharacters(const CString& path, bool isPath = false);
00039 
00040 public:
00041 // Dialog Data
00042         //{{AFX_DATA(CMgaOpenDlg)
00043         enum { IDD = IDD_MGAOPEN };
00044         int             m_radio;
00045         //}}AFX_DATA
00046 
00047 
00048 // Overrides
00049         // ClassWizard generated virtual function overrides
00050         //{{AFX_VIRTUAL(CMgaOpenDlg)
00051         protected:
00052         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00053         //}}AFX_VIRTUAL
00054 
00055 // Implementation
00056 protected:
00057         
00058         CString fileNameHint;
00059         CString folderPathHint;
00060         BOOL flag_isopen;
00061         bool flag_back;
00062         bool flag_create;
00063         bool flag_meta;
00064         CString title;
00065         CString filemsg;
00066     CString xmlfilemsg;
00067 
00068 public:
00069         // Generated message map functions
00070         //{{AFX_MSG(CMgaOpenDlg)
00071         virtual BOOL OnInitDialog();
00072         afx_msg void OnBack();
00073         afx_msg void OnNext();
00074         //}}AFX_MSG
00075         DECLARE_MESSAGE_MAP()
00076 };
00077 
00078 //{{AFX_INSERT_LOCATION}}
00079 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00080 
00081 #endif // !defined(AFX_MGAOPENDLG_H__13874436_F1E6_11D3_B38F_005004D38590__INCLUDED_)