add icons

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@255 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-10 16:46:53 +00:00
parent 2ba648ef74
commit 9ce8a02181
11 changed files with 996 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
our $html = "";
our $title = "Milsko GUI Toolkit Documentation";
our @pathlist = ("include");
our @notes = ("warning", "unsure", "note");
our @notes = ("warning", "unsure", "note", "info");
our @files = ();
our %files_sections = ();

15
tools/icon.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
# $Id$
for i in doc/*.gif; do
LOWER=`echo $i | rev | cut -d"/" -f1 | rev | cut -d"." -f1`
if [ "$LOWER" = "unsure" ]; then
LOWER=question
fi
OUT=src/icon/$LOWER.c
NAME=`echo -n $LOWER | perl -e 'my $l = <>;$l =~ s/^(.)/uc($1)/e;print($l);'`
NAME=MwIcon$NAME
echo '/* $Id$ */' > $OUT
echo '#include <Mw/Milsko.h>' >> $OUT
echo >> $OUT
convert $i xpm:- | sed -E 's/^static //' | sed 's/xpm__/'$NAME'/' >> $OUT
done