Commit 2ca25853 authored by Alexander Wiebel's avatar Alexander Wiebel

[ADD] default icon in generated modules

parent aa36440c
/* XPM */
static const char * emptyIcon_xpm[] = {
"32 32 35 1",
" c None",
". c #FFFFFF",
"+ c #D0D0D0",
"@ c #EAEAEA",
"# c #DBDBDB",
"$ c #F9F9F9",
"% c #F6F6F6",
"& c #DEDEDE",
"* c #E5E5E5",
"= c #EEEEEE",
"- c #F0F0F0",
"; c #D7D7D7",
"> c #D1D1D1",
", c #FDFDFD",
"' c #DADADA",
") c #FBFBFB",
"! c #F3F3F3",
"~ c #D4D4D4",
"{ c #F2F2F2",
"] c #E2E2E2",
"^ c #DDDDDD",
"/ c #EDEDED",
"( c #E1E1E1",
"_ c #D3D3D3",
": c #FEFEFE",
"< c #FAFAFA",
"[ c #DCDCDC",
"} c #EFEFEF",
"| c #F4F4F4",
"1 c #F8F8F8",
"2 c #EBEBEB",
"3 c #D8D8D8",
"4 c #D5D5D5",
"5 c #F1F1F1",
"6 c #E9E9E9",
"................................",
"................................",
".+@......+......................",
".+#$.....+......................",
".+%&.....+......................",
".+.*=....+....-;>;-.............",
".+.,')...+...!~{,{~!............",
".+..{]...+...^=.../^............",
".+...({..+..._)...)_............",
".+...)',.+...+:...:+............",
".+....=*.+..._)...<_............",
".+.....&%+...^/.../[............",
".+.....$#+...{~{,{~!............",
".+......@+....};+;-.............",
"................................",
"................................",
"................................",
"..+.............................",
"..+.............................",
"..+.............................",
"..+....{'>'}....-;>;-...+!#>++-.",
"..+...|_},1'2..!~{,{~!..+3{,.-+.",
"..+...&/...%4..^=.../^..+!....+.",
"..+...~)......._)...)_..+,....+.",
"..+...+:.......+:...:+..+.....+.",
"..+..._)......._)...<_..+.....+.",
"..+...^=...14..^/.../[..+.....+.",
"..+...!~{,%'@..{~{,{~!..+.....+.",
"..+....53+46....};+;-...+.....+.",
"................................",
"................................",
"................................"};
......@@ -84,6 +84,11 @@ public:
*/
virtual boost::shared_ptr< WModule > factory() const;
/**
* Get the icon for this module in XPM format.
*/
virtual const char** getXPMIcon() const;
protected:
/**
......@@ -137,6 +142,7 @@ $impl = <<EOF
#include <string>
#include "../../kernel/WKernel.h"
#include "../emptyIcon.xpm" // Please put a real icon here.
#include "WM#name#.h"
......@@ -159,6 +165,10 @@ boost::shared_ptr< WModule > WM#name#::factory() const
return boost::shared_ptr< WModule >( new WM#name#() );
}
const char** WM#name#::getXPMIcon() const
{
return emptyIcon_xpm; // Please put a real icon here.
}
const std::string WM#name#::getName() const
{
// Specify your module name here. This name must be UNIQUE!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment