mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-07 22:03:42 -06:00
ide: Copy error #1350
git-svn-id: svn://ultimatepp.org/upp/trunk@9421 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4593cfeba3
commit
3ff7ebecf1
3 changed files with 22 additions and 0 deletions
|
|
@ -592,6 +592,25 @@ void Ide::FFoundMenu(Bar& bar)
|
|||
bar.Add("Copy all", THISBACK1(CopyFound, true));
|
||||
}
|
||||
|
||||
void Ide::CopyError(bool all)
|
||||
{
|
||||
int c = error.GetCursor();
|
||||
if(!all && c < 0)
|
||||
return;
|
||||
String txt;
|
||||
int h = all ? error.GetCount() : error.GetCursor() + 1;
|
||||
for(int i = all ? 0 : c; i < h; i++)
|
||||
txt << error.Get(i, 0) << " (" << error.Get(i, 1) << "): "
|
||||
<< error.Get(i, 2).To<AttrText>().ToString() << "\r\n";
|
||||
WriteClipboardText(txt);
|
||||
}
|
||||
|
||||
void Ide::ErrorMenu(Bar& bar)
|
||||
{
|
||||
bar.Add(error.IsCursor(), "Copy", THISBACK1(CopyError, false));
|
||||
bar.Add("Copy all", THISBACK1(CopyError, true));
|
||||
}
|
||||
|
||||
void Ide::SelError()
|
||||
{
|
||||
if(removing_notes)
|
||||
|
|
|
|||
|
|
@ -985,6 +985,8 @@ public:
|
|||
void ConsoleLine(const String& line, bool assist = false);
|
||||
void ConsoleRunEnd();
|
||||
void SyncErrorsMessage();
|
||||
void CopyError(bool all);
|
||||
void ErrorMenu(Bar& bar);
|
||||
void ShowError();
|
||||
void ShowFound();
|
||||
void CopyFound(bool all);
|
||||
|
|
|
|||
|
|
@ -419,6 +419,7 @@ Ide::Ide()
|
|||
SetupError(error, "Message");
|
||||
error.AddIndex("NOTES");
|
||||
error.ColumnWidths("207 41 834");
|
||||
error.WhenBar = THISBACK(ErrorMenu);
|
||||
|
||||
SetupError(ffound, "Source");
|
||||
ffound.ColumnWidths("207 41 834");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue