ultimatepp/uppsrc/ide/OnlineSearch.cpp
klugier 923b9932b0 .ide .cosmetic change google search domain from .pl to .com
git-svn-id: svn://ultimatepp.org/upp/trunk@10318 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-15 10:54:06 +00:00

22 lines
502 B
C++

#include "ide.h"
void Ide::OnlineSearch()
{
String selection = editor.GetSelection();
if (selection.IsEmpty()) {
return;
}
LaunchWebBrowser("https://www.google.com/search?q=" + UrlEncode(selection));
}
void Ide::OnlineSearchOnTheOfficialSite()
{
String selection = editor.GetSelection();
if (selection.IsEmpty()) {
return;
}
LaunchWebBrowser("https://www.google.com/search?q=" + UrlEncode(selection) +
"&domains=www.ultimatepp.org&sitesearch=www.ultimatepp.org");
}