NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class uses a global Language instance to obtain the language string associated with a distinct code symbol, prepares the layout of the calltip and returns the calltip with all necessary fields filled. More...
#include <calltipprovider.hpp>
Public Member Functions | |
CallTipProvider (size_t nMaxLineLength=100u) | |
CallTip | getCommand (std::string sToken) const |
Get the calltip for the selected command. More... | |
CallTip | getFunction (std::string sToken) const |
Get the calltip for the selected (built-in) function. More... | |
CallTip | getProcedure (std::string sToken) const |
Get the calltip for the selected (global) procedure. More... | |
CallTip | getOption (std::string sToken) const |
Get the calltip for the selected option. More... | |
CallTip | getMethod (std::string sToken) const |
Get the calltip for the selected method. More... | |
CallTip | getPredef (std::string sToken) const |
Get the calltip for the selected predefined symbol. More... | |
CallTip | getConstant (std::string sToken) const |
Get the calltip for the selected constant. More... | |
Private Attributes | |
size_t | m_maxLineLength |
This class uses a global Language instance to obtain the language string associated with a distinct code symbol, prepares the layout of the calltip and returns the calltip with all necessary fields filled.
Definition at line 54 of file calltipprovider.hpp.
|
inline |
Definition at line 60 of file calltipprovider.hpp.
CallTip NumeRe::CallTipProvider::getCommand | ( | std::string | sToken | ) | const |
Get the calltip for the selected command.
sToken | std::string |
Definition at line 574 of file calltipprovider.cpp.
References _lang, NumeRe::addLinebreaks(), Language::get(), m_maxLineLength, NumeRe::realignLangString(), and toUpperCase().
Referenced by GenericTerminal::handle_calltip(), and NumeReEditor::OnMouseDwell().
CallTip NumeRe::CallTipProvider::getConstant | ( | std::string | sToken | ) | const |
Get the calltip for the selected constant.
sToken | std::string |
Definition at line 788 of file calltipprovider.cpp.
References _lang, Language::get(), NumeRe::CallTip::nEnd, NumeRe::CallTip::nStart, NumeRe::CallTip::sDefinition, and toUpperCase().
Referenced by GenericTerminal::handle_calltip(), and NumeReEditor::OnMouseDwell().
CallTip NumeRe::CallTipProvider::getFunction | ( | std::string | sToken | ) | const |
Get the calltip for the selected (built-in) function.
sToken | std::string |
Definition at line 639 of file calltipprovider.cpp.
References _lang, NumeRe::addLinebreaks(), Language::get(), m_maxLineLength, NumeRe::realignLangString(), and toUpperCase().
Referenced by GenericTerminal::handle_calltip(), NumeReEditor::HandleFunctionCallTip(), and NumeReEditor::OnMouseDwell().
CallTip NumeRe::CallTipProvider::getMethod | ( | std::string | sToken | ) | const |
Get the calltip for the selected method.
sToken | std::string |
Definition at line 752 of file calltipprovider.cpp.
References _lang, NumeRe::addLinebreaks(), Language::get(), m_maxLineLength, NumeRe::CallTip::nStart, NumeRe::realignLangString(), NumeRe::CallTip::sDefinition, and toUpperCase().
Referenced by GenericTerminal::handle_calltip(), NumeReEditor::HandleFunctionCallTip(), and NumeReEditor::OnMouseDwell().
CallTip NumeRe::CallTipProvider::getOption | ( | std::string | sToken | ) | const |
Get the calltip for the selected option.
sToken | std::string |
Definition at line 731 of file calltipprovider.cpp.
References _lang, Language::get(), and toUpperCase().
Referenced by GenericTerminal::handle_calltip(), and NumeReEditor::OnMouseDwell().
CallTip NumeRe::CallTipProvider::getPredef | ( | std::string | sToken | ) | const |
Get the calltip for the selected predefined symbol.
sToken | std::string |
Definition at line 774 of file calltipprovider.cpp.
References _lang, NumeRe::addLinebreaks(), Language::get(), m_maxLineLength, NumeRe::realignLangString(), and toUpperCase().
Referenced by NumeReEditor::OnMouseDwell().
CallTip NumeRe::CallTipProvider::getProcedure | ( | std::string | sToken | ) | const |
Get the calltip for the selected (global) procedure.
sToken | std::string |
Definition at line 667 of file calltipprovider.cpp.
References NumeRe::addLinebreaks(), NumeRe::FindProcedureDefinition(), NumeReKernel::getInstance(), Settings::getProcPath(), NumeReKernel::getSettings(), and m_maxLineLength.
Referenced by GenericTerminal::handle_calltip().
|
private |
Definition at line 57 of file calltipprovider.hpp.
Referenced by getCommand(), getFunction(), getMethod(), getPredef(), and getProcedure().