20#include "../NumeReWindow.h"
21#include "../terminal/terminal.hpp"
22#include "../editor/editor.h"
40 if (record == std::string::npos)
45 if (sTermInput.substr(0, 5) ==
"help ")
50 edit->InsertText(edit->GetCurrentPos(), sTermInput);
51 edit->GotoPos(edit->GetCurrentPos()+sTermInput.length());
73 if (record == std::string::npos)
78 if (text.substr(0, 5) ==
"help ")
79 text.erase(0, text.find_first_not_of(
' ', 4));
81 if (text.find(
" ... ") != std::string::npos)
82 text.Replace(
" ... ",
"\n\t\n");
99 wxArrayString candidates;
109 for (
auto iter = matches.rbegin(); iter != matches.rend(); ++iter)
111 for (
size_t i = 0; i < iter->second.size(); i++)
std::map< double, std::vector< size_t > > findRecordsUsingRelevance(const std::string &_sSearchString, std::vector< double > vWeighting=std::vector< double >()) const
This member function will search multiple search strings in the database and returns a map,...
std::string getElement(size_t i, size_t j) const
This member function will return the contents of the selected database field, or an empty string,...
size_t findRecord(const std::string &_sRecord) const
This member function finds a selected record in the first column of the database table and returns it...
The class of the editor window.
bool ShowHelp(const wxString &sDocId)
This member function displays the help page for the selected documentation ID.
NumeReEditor * GetCurrentEditor()
Public access method for accessing the currently viewed editor. Does only return a pointer to the top...