11 #ifndef __MOT_HelpManager__
12 #define __MOT_HelpManager__
48 virtual void openURL(
const char *url)
override;
50 virtual void openHelpPath(
const char *help_path)
override;
54 bool is_html)
override;
67 const char *url,
const char *
help,
68 int x,
int y,
int w,
int h,
69 const char *title=
nullptr,
70 const char *hotkey_symbol=
nullptr,
71 const char *hotkey_str=
nullptr,
72 bool use_fixed_font=
false)
90 const char *full_help,
117 const char *node_path=
nullptr)
override;
121 const PYP_Interface *interface)
override;
147 void setBaseURI(
const char *base_uri)
override;
151 {
return myBaseURI; }
156 {
return myUseExternalHelp; }
164 {
return myHelpAddress; }
169 {
return myUseIPv6; }
174 {
return myExternalHelpURL; };
178 const char *ext_help_url)
override;
197 virtual bool extractTooltip(
const char *url,
202 virtual void updateBaseURLInHelpBrowsersSubclass();
205 void countHelpCardPress(
const char *
message);
208 bool getServerHasHelp(
const char *url);
214 void prefixWithHelpBaseURL(
const char *help_path,
224 void resolveHelpPath(
225 const char *help_path,
232 virtual void parseWikiToHtml(
const char *url_key,
233 const char *wiki_help,
237 void buildEmbeddedParmHelpURL(
240 void buildStructuredParmHelpURL(
257 bool runPythonExpr(
const char *expr,
261 bool evalPythonExpr(
const char *expr,
263 bool evalPythonExpr(
const char *expr,
265 bool evalPythonExpr(
const char *expr,
int &
result);
266 bool evalPythonExpr(
const char *expr,
270 bool initializeHelpServer();
274 bool canAccessHelpServer();
278 int getHelpServerPort();
280 bool myCouldInitializeHelpServer;
283 bool myUseExternalHelp;
292 static int theHelpServerPort;
295 static UT_Signal *theHelpServerSigHandler;
virtual void openFile(const char *path)=0
GLuint GLsizei const GLchar * message
virtual void setHelpAddress(const char *address)=0
Sets the address the server should bind to.
virtual void setBaseURI(const char *base_uri)=0
virtual bool getTextHelp(const char *url, UT_String &text_help)=0
virtual bool getTooltip(const char *url, UT_String &tooltip)=0
Obtains a tool tip from the help page pointed to by the URL.
const UT_StringHolder & getHelpAddress() const override
GLsizei const GLchar *const * path
virtual void setUseExternalHelp(bool use_external)=0
virtual UT_StringArray getExprCommandsForHelpKeyword(const char *keyword)=0
**But if you need a result
std::string help(const App *app, const Error &e)
Printout the full help string on error (if this fn is set, the old default for CLI11) ...
virtual void openHelpPath(const char *help_path)=0
UT_StringArray & getURLStack()
virtual const UT_String & getStartupURL()=0
virtual UT_StringArray getCommandsForHelpKeyword(const char *keyword)=0
virtual bool getParsedTooltip(const char *url_key, const char *full_help, UT_String &tooltip)=0
virtual void getHelpCardURL(OP_Operator *op, UT_String &str)=0
GLfloat GLfloat GLfloat GLfloat h
virtual void displayData(const char *data, bool is_html)=0
virtual void openHelpCard(OP_Node *node)=0
virtual const UT_String & getHelpBaseURL()=0
virtual void openStartup()=0
virtual void closeFloatingPane()=0
MOT_ParmHelpURLFormat
Format used when building a parameter's help-card URL.
bool getUseExternalHelp() const override
virtual void openContents()=0
GLubyte GLubyte GLubyte GLubyte w
virtual void setUseIPv6(bool use_ipv6)=0
Whether the help server should use ipv6 or not.
const UT_String & getExternalHelpURL() const override
const UT_String & getBaseURI() const override
Returns the baseURI.
virtual void openTooltipWindow(const char *url, const char *help, int x, int y, int w, int h, const char *title=nullptr, const char *hotkey_symbol=nullptr, const char *hotkey_str=nullptr, bool use_fixed_font=false) const =0
virtual UT_StringHolder getExprCommandHelp(const char *command)=0
Return the text help for the given hscript expression command.
bool getUseIPv6() const override
virtual void openURL(const char *url)=0
virtual UT_StringHolder getCommandHelp(const char *command)=0
Return the text help for the given hscript command.
virtual void closeAllTooltipWindows() const =0
virtual void setExternalHelpURL(const char *ext_help_url)=0