|
@@ -4,15 +4,18 @@ from lodel.context import LodelContext
|
4
|
4
|
LodelContext.expose_modules(globals(), {
|
5
|
5
|
'lodel.utils.mlstring': ['MlString']})
|
6
|
6
|
|
7
|
|
-# @package lodel.mlnamedobject Lodel2 description of objects module
|
|
7
|
+## @package lodel.mlnamedobject Lodel2 description of objects module
|
8
|
8
|
#
|
9
|
9
|
# Display name and Description of a lodel2 object
|
10
|
10
|
|
11
|
|
-# @brief Class allows display name and help text for lodel2 objects and fields
|
12
|
|
-
|
13
|
|
-
|
|
11
|
+## @brief Represents a multi-language object (dealing with its translations)
|
14
|
12
|
class MlNamedObject(object):
|
15
|
|
-
|
|
13
|
+
|
|
14
|
+ ##
|
|
15
|
+ # @param display_name str|dict : displayed string to name the object (either a string or a dictionnary of the translated strings can be passed)
|
|
16
|
+ # @param help_text str|dict : description text for this object (either a string or a dictionnary of the translated strings can be passed)
|
16
|
17
|
def __init__(self, display_name=None, help_text=None):
|
|
18
|
+ ## @brief The object's name which will be used in all the user interfaces
|
17
|
19
|
self.display_name = None if display_name is None else MlString(display_name)
|
|
20
|
+ ## @brief Description text for this object
|
18
|
21
|
self.help_text = None if help_text is None else MlString(help_text)
|