root/trunk/LinkerSettingsPage.h

Revision 5, 1.9 kB (checked in by qbert, 6 years ago)

Initial ( and last :( ) commit

Line 
1 #if !defined(AFX_LINKERSETTINGSPAGE_H__02AE648B_20A0_420F_831C_B9AD6BB3ADBF__INCLUDED_)
2 #define AFX_LINKERSETTINGSPAGE_H__02AE648B_20A0_420F_831C_B9AD6BB3ADBF__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // LinkerSettingsPage.h : header file
8 //
9 #include "GUIComponents/GenericChildDialog.h"
10 /////////////////////////////////////////////////////////////////////////////
11 // CLinkerSettingsPage dialog
12
13 class CLinkerSettingsPage : public CRHGenericChildDialog
14 {
15 // Construction
16 public:
17     CLinkerSettingsPage(CWnd* pParent = NULL);   // standard constructor
18 virtual int CRHGetDialogID() { return IDD;
19     }
20 // Dialog Data
21     //{{AFX_DATA(CLinkerSettingsPage)
22     enum { IDD = IDD_LINKERSETTINGS };
23     CComboBox   m_flags;
24     CComboBox   m_libs;
25     CString m_csLibs;
26     CString m_csFlags;
27     //}}AFX_DATA
28     void InitComboBoxes();
29     void Save() {
30         if ( Globals::currentProject )
31         {
32
33             UpdateData();
34            
35
36             vector<string> newLibs, newFlags;
37            
38             Split(m_csLibs.GetBuffer(0),",",newLibs);
39
40
41             Globals::currentProject->SetCache("libraries",Join(newLibs,","));
42
43            
44             Split(m_csFlags.GetBuffer(0),",",newFlags);
45
46             Globals::currentProject->SetCache("linkerFlags",Join(newFlags,",") );
47
48         }
49    
50     }
51 // Overrides
52     // ClassWizard generated virtual function overrides
53     //{{AFX_VIRTUAL(CLinkerSettingsPage)
54     protected:
55     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
56     //}}AFX_VIRTUAL
57
58 // Implementation
59 protected:
60
61     // Generated message map functions
62     //{{AFX_MSG(CLinkerSettingsPage)
63     virtual BOOL OnInitDialog();
64     afx_msg void OnSelchangeCombo1();
65     afx_msg void OnSelchangeCombo2();
66     //}}AFX_MSG
67     DECLARE_MESSAGE_MAP()
68 };
69
70 //{{AFX_INSERT_LOCATION}}
71 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
72
73 #endif // !defined(AFX_LINKERSETTINGSPAGE_H__02AE648B_20A0_420F_831C_B9AD6BB3ADBF__INCLUDED_)
Note: See TracBrowser for help on using the browser.