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

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