OpendTect-6_4  6.4
Functions
legal.h File Reference
Include dependency graph for legal.h:

Go to the source code of this file.

Functions

::Factory< uiString > & legalInformation ()
 
uiString gplV3Text ()
 Gnu Public License V3 text. More...
 
uiString lgplV3Text ()
 Gnu Lesser Public License Text. Includes GPL text. More...
 

Function Documentation

uiString gplV3Text ( )

Gnu Public License V3 text.

::Factory<uiString>& legalInformation ( )

Code that is reworked from other open source projects is sometimes required to display copyright information as well as discalmers.

Such messages are handled through a factory, where messages can be added. To do so, a static function that returns the message has to be implemented, and given to the factory at startup:

1 static uiString* legalInfo()
2 {
3  uiString* res = new uiString;
4  *res = toUiString(
5  "Copyright (C) Myself\n"
6  "Full legal info");
7  return res;
8 }
9 
10 MyClass::initClass()
11 {
12  legalInformation().addCreator( legalInfo, "My code" );
13 }

The text is then visible to users at the Help->Legal menu of OpendTect

uiString lgplV3Text ( )

Gnu Lesser Public License Text. Includes GPL text.


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