GME  13
GmeDlg.h
Go to the documentation of this file.
00001 #if !defined(AFX_GMEDLG_H__AD1F4233_4627_11D4_B3F7_005004D38590__INCLUDED_)
00002 #define AFX_GMEDLG_H__AD1F4233_4627_11D4_B3F7_005004D38590__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 // GmeDlg.h : header file
00008 //
00009 
00010 #include "Resource.h"
00011 
00012 // copied from GmeStd.h, keep in sync with that!
00013 #define ZOOM_WIDTH      -1
00014 #define ZOOM_HEIGHT     -2
00015 #define ZOOM_ALL        -3
00016 #define ZOOM_MIN        5
00017 #define ZOOM_MAX        500
00018 #define ZOOM_NO         100
00019 #define MAX_ZOOM        100  // the number of zoom levels
00020 
00022 // CGmeDlg dialog
00023 
00024 class CGmeDlg : public CDialog
00025 {
00026 // Construction
00027 public:
00028         CGmeDlg(CWnd* pParent = NULL);   // standard constructor
00029         CString m_isave;
00030         CString m_sysisave;
00031         CString m_scriptEngine;
00032 
00033 // Dialog Data
00034         //{{AFX_DATA(CGmeDlg)
00035         enum { IDD = IDD_GMEDLG };
00036         CListCtrl       m_ScriptEgines;
00037         CString m_iconpath;
00038         CString m_sysiconpath;
00039         BOOL    m_multipleview;
00040         BOOL    m_enablelogging;
00041         CString m_autosave_dir;
00042         BOOL    m_autosave_enabled;
00043         int             m_autosave_freq;
00044         int             m_autosave_dest;
00045         BOOL    m_ext_enable;
00046         CString m_ext_editor;
00047         BOOL    m_useAutoRouting;
00048         BOOL    m_labelavoidance;
00049         BOOL    m_sendOverObj;
00050         BOOL    m_timeStamps;
00051         BOOL    m_navigationHistory;
00052         //}}AFX_DATA
00053 
00054 
00055 // Overrides
00056         // ClassWizard generated virtual function overrides
00057         //{{AFX_VIRTUAL(CGmeDlg)
00058         protected:
00059         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00060         //}}AFX_VIRTUAL
00061 
00062 // Implementation
00063 protected:
00064 
00065         // Generated message map functions
00066         //{{AFX_MSG(CGmeDlg)
00067         afx_msg void OnAddIconPath();
00068         virtual BOOL OnInitDialog();
00069         virtual void OnOK();
00070         afx_msg void OnAddsysiconpath();
00071         afx_msg void OnAutosaveDirButton();
00072         afx_msg void OnAutosaveEnabled();
00073         afx_msg void OnAutosaveSameDir();
00074         afx_msg void OnAutosaveDedicatedDir();
00075         afx_msg void OnExtButton();
00076         afx_msg void OnExtEnable();
00077         //}}AFX_MSG
00078         DECLARE_MESSAGE_MAP()
00079 
00080         void AutosaveControlManager();
00081         void ExtControlManager();
00082         static CString getDirectory( const CString& text);
00083 protected:
00084         CComObjPtr<IMgaRegistrar> registrar;
00085 
00086 private:
00087         void fillScripEngineList();
00088 
00089         int m_zoomList[MAX_ZOOM];
00090 
00091         static const TCHAR* m_strZWidth;   // "Fit Width";
00092         static const TCHAR* m_strZHeight;  // "Fit Height";
00093         static const TCHAR* m_strZAll;     // "Fit All";
00094 
00095         void fillZoomComboBox(int *list);
00096         CString getZoomValueFromReg();
00097         CString getZoomValue();
00098         void setZoomValue(CString& val);
00099 
00100         static const TCHAR* m_strFmtStrg;
00101         static const TCHAR* m_strFmtStrf;
00102         static const TCHAR* m_strFmtStre;
00103         static const TCHAR* m_strFmtStrE;
00104         static const TCHAR* m_strFmtStrg2;
00105         static const TCHAR* m_strFmtStrf2;
00106 
00107         void fillFmtStrComboBox();
00108         CString getFmtStrFromReg();
00109         CString getFmtStrValue();
00110 
00111         void fillUndoComboBox();
00112         CString getUndoQueueSizeFromReg();
00113         CString getUndoQueueSizeValue();
00114 
00115         static const TCHAR* m_strESStrD;
00116         static const TCHAR* m_strESStrHS;
00117         static const TCHAR* m_strESStrHQ;
00118 
00119         void fillEdgeSmoothModeComboBox();
00120         CString getEdgeSmoothModeStrFromReg();
00121         edgesmoothmode_enum getEdgeSmoothModeValue();
00122 
00123         static const TCHAR* m_strFSStrSD;
00124         static const TCHAR* m_strFSStrSBPPGF;
00125         static const TCHAR* m_strFSStrSBPP;
00126         static const TCHAR* m_strFSStrAAGF;
00127         static const TCHAR* m_strFSStrAA;
00128         static const TCHAR* m_strFSStrCTGF;
00129 
00130         void fillFontSmoothModeComboBox();
00131         CString getFontSmoothModeStrFromReg();
00132         fontsmoothmode_enum getFontSmoothModeValue();
00133 
00134 public:
00135         afx_msg void OnCbnSelchangeZooms();
00136 };
00137 
00138 //{{AFX_INSERT_LOCATION}}
00139 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00140 
00141 #endif // !defined(AFX_GMEDLG_H__AD1F4233_4627_11D4_B3F7_005004D38590__INCLUDED_)