OpendTect-6_4  6.4
uihelpview.h
Go to the documentation of this file.
1 #ifndef uihelpview_h
2 #define uihelpview_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: March 2014
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include <uibasemod.h>
15 
16 #include "helpview.h"
17 #include "iopar.h"
18 
19 
39 {
40 protected:
41  SimpleHelpProvider(const char* urlbase,
42  const char* keylinkfile=0);
43 
44  void addKeyLink(const char* key,const char* link);
45 
46 private:
47 
48  virtual bool hasHelp(const char* arg) const;
49  virtual void provideHelp(const char* arg) const;
50 
53 
54 };
55 
56 
59 public:
60  static void initClass(const char* factorykey,
61  const char* baseurl);
62 
63  static void initODHelp();
64 
65 private:
66  FlareHelpProvider(const char* url);
67  static HelpProvider* createInstance();
68 
69  void provideHelp(const char*) const;
70  bool hasHelp(const char*) const { return true; }
72 
73 public:
74  //Internal to dGB
75  static void initHelpSystem(const char* context,
76  const char* path);
77 };
78 
79 
83 public:
84  static void initClass();
85 
86  static const char* sKeyFactoryName() { return "oddevdoc"; }
87 
88 private:
89  BufferString getUrl() const;
90  static HelpProvider* createInstance();
91  bool hasHelp(const char* arg) const;
92  void provideHelp(const char* arg) const;
93 };
94 
98 public:
99  static void initClass();
100  static const char* sKeyFactoryName();
101  static const char* sKeySupport();
102  static const char* sKeyAttribMatrix();
103 
104 private:
105  static HelpProvider* createInstance();
106  bool hasHelp(const char* arg) const;
107  void provideHelp(const char* arg) const;
108 };
109 
110 #endif
#define mExpClass(module)
Definition: commondefs.h:160
BufferString baseurl_
Definition: uihelpview.h:71
A simple HelpProvider that can be extended to create a HelpProvider for third party plug-ins...
Definition: uihelpview.h:38
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uihelpview.h:57
BufferString baseurl_
Definition: uihelpview.h:51
static const char * sKeyFactoryName()
Definition: uihelpview.h:86
Definition: uihelpview.h:81
bool hasHelp(const char *) const
Definition: uihelpview.h:70
Definition: uihelpview.h:96
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
IOPar keylinks_
Definition: uihelpview.h:52
Definition: helpview.h:32
static void initClass()

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019