16 #ifndef __UT_HelpManager_h__
17 #define __UT_HelpManager_h__
37 #define UT_OP_PROTOCOL_PREFIX "operator:"
38 #define UT_PROP_PROTOCOL_PREFIX "prop:"
39 #define UT_GALLERY_PROTOCOL_PREFIX "gallery:"
40 #define UT_PARM_PROTOCOL_PREFIX "parm:"
41 #define UT_DOC_PROTOCOL_PREFIX "doc:"
53 virtual void openContents() = 0;
57 virtual void openStartup() = 0;
65 virtual void openFile(
const char *
path) = 0;
66 virtual void openURL(
const char *url) = 0;
67 virtual void openHelpPath(
const char *help_path) = 0;
68 virtual void displayData(
const char *
data,
bool is_html) = 0;
71 virtual bool getTooltip(
const char * url,
UT_String & tooltip ) =0;
74 virtual bool getTooltip(
88 virtual void openTooltipWindow(
89 const char *url,
const char *
help,
90 int x,
int y,
int w,
int h,
91 const char *title=
nullptr,
92 const char *hotkey_symbol=
nullptr,
93 const char *hotkey_str=
nullptr,
94 bool use_fixed_font=
false)
const = 0;
101 virtual void openPerfMonTooltipWindow(
102 const char *title,
const char *text,
105 int x,
int y,
int w,
int h)
const = 0;
109 virtual void closeAllTooltipWindows()
const = 0;
113 virtual bool getTextHelp(
const char *url,
UT_String &text_help) = 0;
123 virtual UT_StringArray getCommandsForHelpKeyword(
const char *keyword) = 0;
128 const char *keyword) = 0;
132 virtual bool getParsedTooltip(
const char * url_key,
133 const char * full_help,
142 virtual void openHelpCard(
OP_Node * node ) = 0;
143 virtual void openHelpCard(
146 virtual void openHelpCard( SHLF_Tool * tool ) = 0;
147 virtual void openHelpCard(
const PYP_Interface * interface ) = 0;
155 virtual void getHelpCardURL( SHLF_Tool * tool,
UT_String & url ) =0;
156 virtual void getHelpCardURL(
const PYP_Interface * interface,
162 virtual void getHelpCardURL(
const char *help_topic_id,
164 virtual void getHelpCardURL(
const PRM_Parm * parm,
167 virtual void setBaseURI(
const char *base_uri) = 0;
168 virtual const UT_String &getBaseURI()
const = 0;
172 virtual bool getUseExternalHelp()
const = 0;
175 virtual void setUseExternalHelp(
bool use_external) = 0;
178 virtual void setHelpAddress(
const char* address) = 0;
182 virtual void setUseIPv6(
bool use_ipv6) = 0;
183 virtual bool getUseIPv6()
const = 0;
187 virtual const UT_String &getExternalHelpURL()
const = 0;
190 virtual void setExternalHelpURL(
const char *ext_help_url) = 0;
193 virtual const UT_String &getHelpBaseURL() = 0;
196 virtual const UT_String &getStartupURL() = 0;
204 void clearDesiredHelpLocation();
211 { myFloatingHelpPaneId = pane_id; }
213 {
return myFloatingHelpPaneId; }
214 virtual void closeFloatingPane() = 0;
219 static bool platformSupportsHtmlHelp();
223 static void constructOpBasedURL(
const char *protocol,
224 const char *optable,
const char *optype,
230 static bool parseOpBasedURL(
const char * url,
231 const char *protocol,
243 bool getDesiredHelpLocation(
float &x,
float &y);
248 float myDesiredHelpLocationX;
249 float myDesiredHelpLocationY;
250 int myFloatingHelpPaneId;
GLsizei const GLchar *const * path
void setFloatingHelpPaneId(int pane_id)
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) ...
static UT_HelpManager * getHelpManager()
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
GLfloat GLfloat GLfloat GLfloat h
GLubyte GLubyte GLubyte GLubyte w
int getFloatingHelpPaneId() const
static void setHelpManager(UT_HelpManager *help_manager)