CtrlLib: Fixed issue with rect selection and Alt+F2 in theide, CodeEditor: added .t #809

git-svn-id: svn://ultimatepp.org/upp/trunk@7514 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-07-16 07:04:38 +00:00
parent c7911e1e1c
commit c125ca2a8e
8 changed files with 248 additions and 73 deletions

View file

@ -10,6 +10,9 @@ NAMESPACE_UPP
#define IMAGEFILE <CodeEditor/CodeEditor.iml>
#include <Draw/iml_source.h>
#define TFILE <CodeEditor/CodeEditor.t>
#include <Core/t.h>
One<EditorSyntax> CodeEditor::GetSyntax(int line)
{
CTIMING("GetSyntax");
@ -636,7 +639,7 @@ void CodeEditor::SetI(Ctrl *edit)
void CodeEditor::Goto() {
String line = AsString(GetCursorLine());
if(EditText(line, "Go to", "Line:"))
if(EditText(line, t_("Go to"), t_("Line:")))
SetCursor(GetPos(atoi(line) - 1));
}
@ -933,7 +936,7 @@ void CodeEditor::HighlightLine(int line, Vector<LineEdit::Highlight>& hl, int po
void CodeEditor::PutI(WithDropChoice<EditString>& edit)
{
edit.AddButton().SetMonoImage(CodeEditorImg::I()).Tip("Set word/selection (Ctrl+I)")
edit.AddButton().SetMonoImage(CodeEditorImg::I()).Tip(t_("Set word/selection (Ctrl+I)"))
<<= THISBACK1(SetI, &edit);
}