From 36bc66f95dac0d2be3bb372eea1d8387de2d016f Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 16 Jun 2014 09:42:03 +0000 Subject: [PATCH] ide: .usc path for editor mode #789 git-svn-id: svn://ultimatepp.org/upp/trunk@7446 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Setup.cpp | 24 ++++++++++++++++++++++-- uppsrc/ide/ide.cpp | 8 ++++++++ uppsrc/ide/ide.h | 1 + uppsrc/ide/ide.lay | 2 ++ uppsrc/ide/idewin.cpp | 5 ++++- 5 files changed, 37 insertions(+), 3 deletions(-) diff --git a/uppsrc/ide/Setup.cpp b/uppsrc/ide/Setup.cpp index 1fdf38f86..4db687bca 100644 --- a/uppsrc/ide/Setup.cpp +++ b/uppsrc/ide/Setup.cpp @@ -303,6 +303,19 @@ void SetConsole(EditString *e, const char *text) *e <<= text; } +void AddPath(EditString *es) +{ + String s = SelectDirectory(); + if(IsNull(s)) + return; + String h = ~*es; + if(h.GetCount() && *h.Last() != ';') + h << ';'; + h << s; + *es <<= h; + es->SetWantFocus(); +} + void Ide::SetupFormat() { FormatDlg dlg; dlg.Title("Format setup"); @@ -463,8 +476,16 @@ void Ide::SetupFormat() { ide.chstyle.Add(2, "Classic"); ide.chstyle.Add(3, "Host platform, blue bars"); ide.chstyle.Add(4, "Standard, blue bars"); + + FrameRight