Menu

[r1967]: / trunk / src / sdk / editkeywordsdlg.cpp  Maximize  Restore  History

Download this file

52 lines (42 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* This file is part of Code::Blocks Studio, an open-source cross-platform IDE
* Copyright (C) 2003 Yiannis An. Mandravellos
*
* This program is distributed under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
*
* $Revision$
* $Id$
* $HeadURL$
*/
#include <sdk_precomp.h>
#ifndef CB_PRECOMP
#include <wx/intl.h>
#include <wx/xrc/xmlres.h>
#include <wx/textctrl.h>
#endif
#include "editkeywordsdlg.h"
EditKeywordsDlg::EditKeywordsDlg(wxWindow* parent, EditorColorSet* theme, HighlightLanguage lang)
{
//ctor
wxXmlResource::Get()->LoadDialog(this, parent, _T("dlgEditLangKeywords"));
XRCCTRL(*this, "txtKeywords1", wxTextCtrl)->SetValue(theme->GetKeywords(lang, 0));
XRCCTRL(*this, "txtKeywords2", wxTextCtrl)->SetValue(theme->GetKeywords(lang, 1));
XRCCTRL(*this, "txtKeywords3", wxTextCtrl)->SetValue(theme->GetKeywords(lang, 2));
}
EditKeywordsDlg::~EditKeywordsDlg()
{
//dtor
}
wxString EditKeywordsDlg::GetLangKeywords()
{
return XRCCTRL(*this, "txtKeywords1", wxTextCtrl)->GetValue();
}
wxString EditKeywordsDlg::GetDocKeywords()
{
return XRCCTRL(*this, "txtKeywords2", wxTextCtrl)->GetValue();
}
wxString EditKeywordsDlg::GetUserKeywords()
{
return XRCCTRL(*this, "txtKeywords3", wxTextCtrl)->GetValue();
}