root/trunk/ProjectLibsPage.h

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

Initial ( and last :( ) commit

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