00001 //------------------------------------------------------------------- 00004 // Copyright (c) 2007 Celeritive Technologies, Inc. 00005 // 00006 // Licensed under the Apache License, Version 2.0 (the "License"); 00007 // you may not use this file except in compliance with the License. 00008 // You may obtain a copy of the License at 00009 // 00010 // http://www.apache.org/licenses/LICENSE-2.0 00011 // 00012 // Unless required by applicable law or agreed to in writing, software 00013 // distributed under the License is distributed on an "AS IS" BASIS, 00014 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 // See the License for the specific language governing permissions and 00016 // limitations under the License. 00017 // 00018 //------------------------------------------------------------------- 00019 00020 #include "SessionParams.h" 00021 00022 #pragma once 00023 00024 class CVoluMillGUIDlgAutoProxy; 00025 00026 // CVoluMillGUIDlg dialog 00027 class CVoluMillGUIDlg : public CDialog 00028 { 00029 DECLARE_DYNAMIC(CVoluMillGUIDlg); 00030 friend class CVoluMillGUIDlgAutoProxy; 00031 00032 // Construction 00033 public: 00034 CVoluMillGUIDlg(const std::string& cfgPath, CWnd* pParent = NULL); // standard constructor 00035 virtual ~CVoluMillGUIDlg(); 00036 00037 // Dialog Data 00038 enum { IDD = IDD_VOLUMILLGUI_DIALOG }; 00039 00040 protected: 00041 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00042 00043 00044 // Implementation 00045 protected: 00046 exchange::VoluMill2dInput m_input; 00047 SessionParams m_sessionParams; 00048 const std::string& m_cfgPath; 00049 00050 CVoluMillGUIDlgAutoProxy* m_pAutoProxy; 00051 HICON m_hIcon; 00052 00053 BOOL CanExit(); 00054 00055 // Generated message map functions 00056 virtual BOOL OnInitDialog(); 00057 afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 00058 afx_msg void OnPaint(); 00059 afx_msg HCURSOR OnQueryDragIcon(); 00060 afx_msg void OnClose(); 00061 virtual void OnOK(); 00062 virtual void OnCancel(); 00063 DECLARE_MESSAGE_MAP() 00064 public: 00065 afx_msg void OnBnClickedButtonPartDxf(); 00066 afx_msg void OnBnClickedCheckAutoCalculateSlotParameters(); 00067 afx_msg void OnBnClickedButtonNcOutputFilename(); 00068 afx_msg void OnBnClickedButtonGcodeStartFilename(); 00069 afx_msg void OnBnClickedButtonGcodeToolChangeFilename(); 00070 afx_msg void OnBnClickedButtonGcodeEndFilename(); 00071 afx_msg void OnBnClickedHelp(); 00072 afx_msg void OnEnKillfocusEditToolDiameter(); 00073 afx_msg void OnEnKillfocusEditFeedrate(); 00074 afx_msg void OnEnKillfocusEditDepthOfCut(); 00075 afx_msg void OnEnKillfocusEditStepover(); 00076 afx_msg void OnBnClickedCheckGcodeStartMacro(); 00077 afx_msg void OnBnClickedCheckGcodeToolChangeMacro(); 00078 afx_msg void OnBnClickedCheckGcodeEndMacro(); 00079 afx_msg void OnBnClickedPostVariables(); 00080 afx_msg void OnBnClickedButtonEditorFilename(); 00081 afx_msg void OnBnClickedButtonLayers(); 00082 afx_msg void OnBnClickedCheckCleanupMachining(); 00083 };