Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
e80daff0
Commit
e80daff0
authored
Apr 26, 2010
by
Sebastian Eichelbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOC]
parent
2e5c2d0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
src/modules/template/WMTemplate.cpp
src/modules/template/WMTemplate.cpp
+29
-1
No files found.
src/modules/template/WMTemplate.cpp
View file @
e80daff0
...
...
@@ -22,6 +22,34 @@
//
//---------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// How to create your own module in OpenWalnut? Here are the steps to take:
// * copy the template module directory
// * think about a name for your module
// * rename the files from WMTemplate.cpp and WMTemplate.h to WMYourModuleName.cpp and WMYourModuleName.h
// * rename the class inside these files to WMYourModuleName
// * change WMYourModuleName::getName() to a unique name, like "Your Module Name"
// * add a new prototype of your module to src/kernel/WModuleFactory.cpp -> search for m_prototypes.insert
// * analogously to the other modules, add yours
// * Note: this step will be automated in some time
// * run CMake and compile
// * read the documentation in this module and modify it to your needs
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Some rules to the inclusion of headers:
// * Ordering:
// * C Headers
// * C++ Standard headers
// * External Lib headers (like OSG or Boost headers)
// * headers of other classes inside OpenWalnut
// * your own header file
#include <string>
#include <osg/ShapeDrawable>
...
...
@@ -33,8 +61,8 @@
#include "../../kernel/WKernel.h"
#include "../../common/WColor.h"
#include "WMTemplate.h"
#include "template.xpm"
#include "WMTemplate.h"
WMTemplate
::
WMTemplate
()
:
WModule
()
...
...
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