| 1 |
#if !defined(AFX_KEYWORDCOLORSPAGE_H__E82E0ADA_343A_49EE_B0EB_8D45CE856DDC__INCLUDED_) |
|---|
| 2 |
#define AFX_KEYWORDCOLORSPAGE_H__E82E0ADA_343A_49EE_B0EB_8D45CE856DDC__INCLUDED_ |
|---|
| 3 |
|
|---|
| 4 |
#if _MSC_VER > 1000 |
|---|
| 5 |
#pragma once |
|---|
| 6 |
#endif // _MSC_VER > 1000 |
|---|
| 7 |
// KeywordColorsPage.h : header file |
|---|
| 8 |
// |
|---|
| 9 |
#include "GUIComponents/GenericChildDialog.h" |
|---|
| 10 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 11 |
// CKeywordColorsPage dialog |
|---|
| 12 |
|
|---|
| 13 |
class CKeywordColorsPage : public CRHGenericChildDialog |
|---|
| 14 |
{ |
|---|
| 15 |
// Construction |
|---|
| 16 |
public: |
|---|
| 17 |
CKeywordColorsPage(CWnd* pParent = NULL); // standard constructor |
|---|
| 18 |
virtual int CRHGetDialogID() { return IDD; |
|---|
| 19 |
} |
|---|
| 20 |
void Save() {} |
|---|
| 21 |
// Dialog Data |
|---|
| 22 |
//{{AFX_DATA(CKeywordColorsPage) |
|---|
| 23 |
enum { IDD = IDD_KEYWORDCOLORS_PAGE }; |
|---|
| 24 |
CListCtrl m_keywordCtrl; |
|---|
| 25 |
CComboBox m_keywordTypes; |
|---|
| 26 |
CButton m_remove; |
|---|
| 27 |
CButton m_add; |
|---|
| 28 |
CXTColorPicker m_textBack; |
|---|
| 29 |
CXTColorPicker m_textFore; |
|---|
| 30 |
COLORREF m_clrFore; |
|---|
| 31 |
COLORREF m_clrBack; |
|---|
| 32 |
CString m_keyword; |
|---|
| 33 |
CString m_csKeyword; |
|---|
| 34 |
//}}AFX_DATA |
|---|
| 35 |
|
|---|
| 36 |
void InitCombo() |
|---|
| 37 |
{ |
|---|
| 38 |
|
|---|
| 39 |
vector<string> types; |
|---|
| 40 |
Split(Globals::settings->colorSettings->settings->GetCache("keywordTypes"),",",types); |
|---|
| 41 |
for (int i = 0;i < types.size();i ++ ) |
|---|
| 42 |
{ |
|---|
| 43 |
m_keywordTypes.AddString(types[i].c_str()); |
|---|
| 44 |
} |
|---|
| 45 |
m_keywordTypes.SetCurSel(0); |
|---|
| 46 |
OnSelchangeCombo1(); |
|---|
| 47 |
} |
|---|
| 48 |
|
|---|
| 49 |
// Overrides |
|---|
| 50 |
// ClassWizard generated virtual function overrides |
|---|
| 51 |
//{{AFX_VIRTUAL(CKeywordColorsPage) |
|---|
| 52 |
protected: |
|---|
| 53 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|---|
| 54 |
//}}AFX_VIRTUAL |
|---|
| 55 |
|
|---|
| 56 |
// Implementation |
|---|
| 57 |
protected: |
|---|
| 58 |
|
|---|
| 59 |
// Generated message map functions |
|---|
| 60 |
//{{AFX_MSG(CKeywordColorsPage) |
|---|
| 61 |
virtual BOOL OnInitDialog(); |
|---|
| 62 |
afx_msg void OnSelchangeCombo1(); |
|---|
| 63 |
afx_msg void OnButton1(); |
|---|
| 64 |
afx_msg void OnSelendokCombo1(); |
|---|
| 65 |
afx_msg void OnCommitChanges(); |
|---|
| 66 |
afx_msg void OnAdd(); |
|---|
| 67 |
afx_msg void OnRemove(); |
|---|
| 68 |
//}}AFX_MSG |
|---|
| 69 |
DECLARE_MESSAGE_MAP() |
|---|
| 70 |
}; |
|---|
| 71 |
|
|---|
| 72 |
//{{AFX_INSERT_LOCATION}} |
|---|
| 73 |
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 74 |
|
|---|
| 75 |
#endif // !defined(AFX_KEYWORDCOLORSPAGE_H__E82E0ADA_343A_49EE_B0EB_8D45CE856DDC__INCLUDED_) |
|---|