Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
66396a02
Commit
66396a02
authored
Jan 11, 2011
by
Sebastian Eichelbaum
Browse files
[DOC] - added a comment to the template module
parent
9350cde5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
src/modules/template/WMTemplate.cpp
src/modules/template/WMTemplate.cpp
+4
-0
src/modules/template/WMTemplate.h
src/modules/template/WMTemplate.h
+5
-0
No files found.
src/modules/template/WMTemplate.cpp
View file @
66396a02
...
...
@@ -331,9 +331,13 @@ void WMTemplate::properties()
m_infoProperties
->
addProperty
(
m_aStringOutput
);
// we can also re-add properties
m_aTriggerOutput
=
m_infoProperties
->
addProperty
(
"A trigger"
,
"Trigger As String"
,
WPVBaseTypes
::
PV_TRIGGER_READY
);
m_aDoubleOutput
=
m_infoProperties
->
addProperty
(
"Some double"
,
"a Double. Nice isn't it?"
,
3.1415
);
m_aIntOutput
=
m_infoProperties
->
addProperty
(
"Some int"
,
"a int. Nice isn't it?"
,
123456
);
m_aColorOutput
=
m_infoProperties
->
addProperty
(
"A color"
,
"Some Color. Nice isn't it?"
,
WColor
(
0.5
,
0.5
,
1.0
,
1.0
)
);
m_aFilenameOutput
=
m_infoProperties
->
addProperty
(
"Nice file"
,
"a Double. Nice isn't it?"
,
WPathHelper
::
getAppPath
()
);
m_aSelectionOutput
=
m_infoProperties
->
addProperty
(
"A selection"
,
"Selection As String"
,
m_possibleSelections
->
getSelectorFirst
()
);
// One important note regarding information properties. If a property gets added in a group which is an information property-group, then
// each added property does NOT contain any constraints. If a property gets an information property AFTER its creation, like m_aStringOutput,
// then it keeps its constraints!
WModule
::
properties
();
}
...
...
src/modules/template/WMTemplate.h
View file @
66396a02
...
...
@@ -219,6 +219,11 @@ private:
*/
WPropDouble
m_aDoubleOutput
;
/**
* A property simply providing a int value to the outside world.
*/
WPropInt
m_aIntOutput
;
/**
* A property simply providing some text to the outside world.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment