declared GimpPixmap as deprecated.
2004-07-13 Sven Neumann <sven@gimp.org> * libgimpwidgets/gimppixmap.[ch]: declared GimpPixmap as deprecated. * libgimpwidgets/gimpwidgets.[ch]: ditto for gimp_pixmap_button_new(). * plug-ins/Lighting/ChangeLog: removed outdated and unused ChangeLog. * plug-ins/Lighting/Makefile.am * plug-ins/Lighting/*.xpm: removed XPM files... * configure.in * plug-ins/Lighting/images: ... and added them as PNG images here. These should be redone with antialiased edges. * plug-ins/Lighting/lighting_stock.[ch] * plug-ins/Lighting/lighting_ui.c: register stock icons and use those instead of GimpPixmaps. * plug-ins/MapObject/Makefile.am * plug-ins/MapObject/*.xpm: removed duplicated XPM files. * plug-ins/MapObject/mapobject_stock.[ch]: register stock icons reusing the generated header from the Lighting plug-in. * plug-ins/MapObject/mapobject_ui.c: use them. * plug-ins/pagecurl/pagecurl.c: undef GIMP_DISABLE_DEPRECATED until GimpPixmap has been replaced here as well.


38
ChangeLog
@ -1,10 +1,40 @@
|
||||
2004-07-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimppixmap.[ch]: declared GimpPixmap as deprecated.
|
||||
|
||||
* libgimpwidgets/gimpwidgets.[ch]: ditto for gimp_pixmap_button_new().
|
||||
|
||||
* plug-ins/Lighting/ChangeLog: removed outdated and unused ChangeLog.
|
||||
|
||||
* plug-ins/Lighting/Makefile.am
|
||||
* plug-ins/Lighting/*.xpm: removed XPM files...
|
||||
|
||||
* configure.in
|
||||
* plug-ins/Lighting/images: ... and added them as PNG images here.
|
||||
These should be redone with antialiased edges.
|
||||
|
||||
* plug-ins/Lighting/lighting_stock.[ch]
|
||||
* plug-ins/Lighting/lighting_ui.c: register stock icons and use
|
||||
those instead of GimpPixmaps.
|
||||
|
||||
* plug-ins/MapObject/Makefile.am
|
||||
* plug-ins/MapObject/*.xpm: removed duplicated XPM files.
|
||||
|
||||
* plug-ins/MapObject/mapobject_stock.[ch]: register stock icons
|
||||
reusing the generated header from the Lighting plug-in.
|
||||
|
||||
* plug-ins/MapObject/mapobject_ui.c: use them.
|
||||
|
||||
* plug-ins/pagecurl/pagecurl.c: undef GIMP_DISABLE_DEPRECATED until
|
||||
GimpPixmap has been replaced here as well.
|
||||
|
||||
2004-07-13 Shlomi Fish <shlomif@iglu.org.il>
|
||||
|
||||
* plug-ins/gimpressionist/presets.c: fixed Bug # 147483 (gimpressionist
|
||||
* plug-ins/gimpressionist/presets.c: fixed bug #147483 (gimpressionist
|
||||
will delete global presets if the user running GIMP has priviliges to
|
||||
do so ). This was done by creating a function to check if a preset is
|
||||
global, and by making sure the delete button is in-sensitive when this
|
||||
is the case.
|
||||
do so). This was done by creating a function to check if a preset is
|
||||
global, and by making sure the delete button is in-sensitive when
|
||||
this is the case.
|
||||
|
||||
2004-07-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
|
@ -1601,6 +1601,7 @@ plug-ins/xjt/Makefile
|
||||
plug-ins/FractalExplorer/Makefile
|
||||
plug-ins/FractalExplorer/examples/Makefile
|
||||
plug-ins/Lighting/Makefile
|
||||
plug-ins/Lighting/images/Makefile
|
||||
plug-ins/MapObject/Makefile
|
||||
plug-ins/bmp/Makefile
|
||||
plug-ins/common/Makefile
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
#include "gimpwidgetstypes.h"
|
||||
|
||||
#undef GIMP_DISABLE_DEPRECATED
|
||||
#include "gimppixmap.h"
|
||||
|
||||
|
||||
@ -70,9 +71,7 @@ gimp_pixmap_get_type (void)
|
||||
static void
|
||||
gimp_pixmap_class_init (GimpPixmapClass *klass)
|
||||
{
|
||||
GtkWidgetClass *widget_class;
|
||||
|
||||
widget_class = GTK_WIDGET_CLASS (klass);
|
||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
||||
|
||||
parent_class = g_type_class_peek_parent (klass);
|
||||
|
||||
@ -96,9 +95,7 @@ gimp_pixmap_init (GimpPixmap *pixmap)
|
||||
GtkWidget *
|
||||
gimp_pixmap_new (gchar **xpm_data)
|
||||
{
|
||||
GimpPixmap *pixmap;
|
||||
|
||||
pixmap = g_object_new (GIMP_TYPE_PIXMAP, NULL);
|
||||
GimpPixmap *pixmap = g_object_new (GIMP_TYPE_PIXMAP, NULL);
|
||||
|
||||
gimp_pixmap_set (pixmap, xpm_data);
|
||||
|
||||
|
@ -20,6 +20,8 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef GIMP_DISABLE_DEPRECATED
|
||||
|
||||
#ifndef __GIMP_PIXMAP_H__
|
||||
#define __GIMP_PIXMAP_H__
|
||||
|
||||
@ -70,3 +72,6 @@ void gimp_pixmap_set (GimpPixmap *pixmap,
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_PIXMAP_H__ */
|
||||
|
||||
#endif /* GIMP_DISABLE_DEPRECATED */
|
||||
|
||||
|
@ -31,9 +31,12 @@
|
||||
#include "gimpwidgetstypes.h"
|
||||
|
||||
#include "gimpchainbutton.h"
|
||||
#include "gimppixmap.h"
|
||||
|
||||
#include "gimpsizeentry.h"
|
||||
#include "gimpunitmenu.h"
|
||||
|
||||
#undef GIMP_DISABLE_DEPRECATED
|
||||
#include "gimppixmap.h"
|
||||
#include "gimpwidgets.h"
|
||||
|
||||
#include "libgimp/libgimp-intl.h"
|
||||
|
@ -221,9 +221,14 @@ GtkWidget * gimp_coordinates_new (GimpUnit unit,
|
||||
gdouble ysize_100 /* % */);
|
||||
|
||||
|
||||
#ifndef GIMP_DISABLE_DEPRECATED
|
||||
|
||||
GtkWidget * gimp_pixmap_button_new (gchar **xpm_data,
|
||||
const gchar *text);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Standard Callbacks
|
||||
*/
|
||||
|
@ -1,20 +0,0 @@
|
||||
Changes:
|
||||
========
|
||||
|
||||
0.2.2: Fixed a bug in the preview code sometimes causing a SIGSEGV.
|
||||
Thanks to Prabhanjan <prabham@india.s3.com> for reporting it.
|
||||
|
||||
0.2.1: Fixed a bug in the calculation of the normals. Thanks to
|
||||
Simon Budig <Simon.Budig@unix-ag.org> for pointing this out.
|
||||
|
||||
0.2.0: Fixed crashes when rerunning after closing mapping images. Removed
|
||||
GckNotebook and fixed gtk refcounting problems. Added non-interactive
|
||||
(scripting) interface. First non-beta release.
|
||||
|
||||
0.1.1: Transparent background and RGBA support, various bug fixes and
|
||||
minor speed ups. First beta version.
|
||||
|
||||
0.0.x: Many bug fixes. Moved it to "..filters/Light Effects/Lighting Effects"
|
||||
|
||||
0.0.1: First version for 0.99.x
|
||||
|
@ -13,19 +13,13 @@ endif
|
||||
|
||||
AM_LDFLAGS = $(mwindows)
|
||||
|
||||
SUBDIRS = images
|
||||
|
||||
libexecdir = $(gimpplugindir)/plug-ins
|
||||
|
||||
libexec_PROGRAMS = Lighting
|
||||
|
||||
Lighting_SOURCES = \
|
||||
amb1.xpm \
|
||||
amb2.xpm \
|
||||
diffint1.xpm \
|
||||
diffint2.xpm \
|
||||
diffref1.xpm \
|
||||
diffref2.xpm \
|
||||
high1.xpm \
|
||||
high2.xpm \
|
||||
lighting_apply.c \
|
||||
lighting_apply.h \
|
||||
lighting_image.c \
|
||||
@ -36,10 +30,10 @@ Lighting_SOURCES = \
|
||||
lighting_preview.h \
|
||||
lighting_shade.c \
|
||||
lighting_shade.h \
|
||||
lighting_stock.c \
|
||||
lighting_stock.h \
|
||||
lighting_ui.c \
|
||||
lighting_ui.h \
|
||||
specref1.xpm \
|
||||
specref2.xpm
|
||||
lighting_ui.h
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir) \
|
||||
|
@ -1,88 +0,0 @@
|
||||
/* XPM */
|
||||
char * amb1_xpm[] = {
|
||||
"32 32 53 1",
|
||||
" c None",
|
||||
". c #861786178617",
|
||||
"X c #861782078617",
|
||||
"o c #69A66DB669A6",
|
||||
"O c #8E388E388E38",
|
||||
"+ c #B6DAB2CAB6DA",
|
||||
"@ c #BEFBBAEABEFB",
|
||||
"# c #AEBAAEBAAEBA",
|
||||
"$ c #9E799E799E79",
|
||||
"% c #8E388A288E38",
|
||||
"& c #618565956185",
|
||||
"* c #30C234D330C2",
|
||||
"= c #A699A699A699",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #D75CD34CD75C",
|
||||
": c #C71BC30BC71B",
|
||||
"> c #DF7DDF7DDF7D",
|
||||
", c #D75CD75CD75C",
|
||||
"< c #CF3CCB2BCF3C",
|
||||
"1 c #AEBAAAAAAEBA",
|
||||
"2 c #965896589658",
|
||||
"3 c #79E779E779E7",
|
||||
"4 c #514455555144",
|
||||
"5 c #18611C711861",
|
||||
"6 c #E79DE38DE79D",
|
||||
"7 c #E79DE79DE79D",
|
||||
"8 c #DF7DDB6CDF7D",
|
||||
"9 c #BEFBBEFBBEFB",
|
||||
"0 c #9E799A699E79",
|
||||
"q c #79E77DF779E7",
|
||||
"w c #618561856185",
|
||||
"e c #38E338E338E3",
|
||||
"r c #000004100000",
|
||||
"t c #EFBEEFBEEFBE",
|
||||
"y c #FFFFFBEEFFFF",
|
||||
"u c #410341034103",
|
||||
"i c #08200C300820",
|
||||
"p c #FFFFFFFFFFFF",
|
||||
"a c #B6DAB6DAB6DA",
|
||||
"s c #965892489658",
|
||||
"d c #104014511040",
|
||||
"f c #71C675D671C6",
|
||||
"g c #596559655965",
|
||||
"h c #104010401040",
|
||||
"j c #000000000000",
|
||||
"k c #514451445144",
|
||||
"l c #30C230C230C2",
|
||||
"z c #59655D755965",
|
||||
"x c #410345144103",
|
||||
"c c #208124922081",
|
||||
"v c #49244D344924",
|
||||
"b c #208120812081",
|
||||
"n c #082008200820",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" O+@@#$%&* ",
|
||||
" =-;;-:+$.&* ",
|
||||
" =;>>>,<@12345 ",
|
||||
" O->6778-9#0qwer ",
|
||||
" +;>7tyt-910X&ui ",
|
||||
" @;>7ypy-a=sqwud ",
|
||||
" .@-,8ty6:#$Ofgehj ",
|
||||
" X#:<---:+=2Xoklij ",
|
||||
" o$+@99a#=2.fzxcrj ",
|
||||
" %$1#1=$2.f&v*dj ",
|
||||
" &.200sOXf&kebrj ",
|
||||
" *&3qXqfozvecnjj ",
|
||||
" *4w&wgkx*bnjj ",
|
||||
" 5euuelcdrjj ",
|
||||
" ridhirjjj ",
|
||||
" jjj ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,58 +0,0 @@
|
||||
/* XPM */
|
||||
char * amb2_xpm[] = {
|
||||
"32 32 23 1",
|
||||
" c None",
|
||||
". c #CF3CCF3CCF3C",
|
||||
"X c #CF3CCB2BCF3C",
|
||||
"o c #C71BC30BC71B",
|
||||
"O c #D75CD75CD75C",
|
||||
"+ c #DF7DDB6CDF7D",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #AEBAAEBAAEBA",
|
||||
"$ c #DF7DDF7DDF7D",
|
||||
"% c #E79DE38DE79D",
|
||||
"& c #D75CD34CD75C",
|
||||
"* c #E79DE79DE79D",
|
||||
"= c #AEBAAAAAAEBA",
|
||||
"- c #EFBEEBADEFBE",
|
||||
"; c #BEFBBEFBBEFB",
|
||||
": c #A699A289A699",
|
||||
"> c #F7DEF3CEF7DE",
|
||||
", c #F7DEF7DEF7DE",
|
||||
"< c #B6DAB2CAB6DA",
|
||||
"1 c #FFFFFFFFFFFF",
|
||||
"2 c #FFFFFBEEFFFF",
|
||||
"3 c #B6DAB6DAB6DA",
|
||||
"4 c #BEFBBAEABEFB",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ..X ",
|
||||
" oO+++O.@# ",
|
||||
" X$%%$$+O&X# ",
|
||||
" X%%*%%$$+&.@= ",
|
||||
" o$%**-*%$+O.@;: ",
|
||||
" O%**>,,%$+O.Xo< ",
|
||||
" +%%-,12*+O&.Xo3 ",
|
||||
" .+$%*,2,%+O&.@;3< ",
|
||||
" .+$$%%*%+O&.X@;3< ",
|
||||
" XO+$$$++OO&.@o43< ",
|
||||
" .O+++OO&&.Xo;3< ",
|
||||
" @&&OO&&..X@;43# ",
|
||||
" #X.....X@o;43<: ",
|
||||
" #@@XX@@o;43<: ",
|
||||
" =;oo;;433<: ",
|
||||
" :<3333<#: ",
|
||||
" <<< ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,44 +0,0 @@
|
||||
/* XPM */
|
||||
char * diffint1_xpm[] = {
|
||||
"32 32 9 1",
|
||||
" c None",
|
||||
". c #514455555144",
|
||||
"X c #514451445144",
|
||||
"o c #49244D344924",
|
||||
"O c #596559655965",
|
||||
"+ c #492449244924",
|
||||
"@ c #410345144103",
|
||||
"# c #59655D755965",
|
||||
"$ c #618561856185",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ..X ",
|
||||
" o.OO...X+ ",
|
||||
" XOOOOOO..X+ ",
|
||||
" XOOOOOOO...X+ ",
|
||||
" oOOOOOOOOO..Xo@ ",
|
||||
" .OOO###OO...XX+ ",
|
||||
" OOOO#$#OO...XXo ",
|
||||
" .OOOO###OO...XXoo ",
|
||||
" ..OOOOOOO...XXooo ",
|
||||
" X.OOOOOO....XXooo ",
|
||||
" ...O......XXooo ",
|
||||
" X........XXXoo+ ",
|
||||
" +X.....XXXXooo@ ",
|
||||
" +XXXXXXXoooo@ ",
|
||||
" +oXXXooooo@ ",
|
||||
" @+ooooo+@ ",
|
||||
" ooo ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,80 +0,0 @@
|
||||
/* XPM */
|
||||
char * diffint2_xpm[] = {
|
||||
"32 32 45 1",
|
||||
" c None",
|
||||
". c #A699A699A699",
|
||||
"X c #A699A289A699",
|
||||
"o c #965896589658",
|
||||
"O c #BEFBBEFBBEFB",
|
||||
"+ c #CF3CCB2BCF3C",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #C71BC30BC71B",
|
||||
"$ c #B6DAB6DAB6DA",
|
||||
"% c #8E388E388E38",
|
||||
"& c #69A669A669A6",
|
||||
"* c #D75CD75CD75C",
|
||||
"= c #DF7DDB6CDF7D",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #965892489658",
|
||||
": c #DF7DDF7DDF7D",
|
||||
"> c #E79DE38DE79D",
|
||||
", c #D75CD34CD75C",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #9E799E799E79",
|
||||
"2 c #861786178617",
|
||||
"3 c #596559655965",
|
||||
"4 c #E79DE79DE79D",
|
||||
"5 c #B6DAB2CAB6DA",
|
||||
"6 c #71C671C671C6",
|
||||
"7 c #492449244924",
|
||||
"8 c #F7DEF3CEF7DE",
|
||||
"9 c #F7DEF7DEF7DE",
|
||||
"0 c #71C675D671C6",
|
||||
"q c #514455555144",
|
||||
"w c #FFFFFFFFFFFF",
|
||||
"e c #FFFFFBEEFFFF",
|
||||
"r c #BEFBBAEABEFB",
|
||||
"t c #EFBEEBADEFBE",
|
||||
"y c #AEBAAAAAAEBA",
|
||||
"u c #9E799A699E79",
|
||||
"i c #8E388A288E38",
|
||||
"p c #49244D344924",
|
||||
"a c #861782078617",
|
||||
"s c #69A66DB669A6",
|
||||
"d c #79E779E779E7",
|
||||
"f c #618565956185",
|
||||
"g c #514451445144",
|
||||
"h c #618561856185",
|
||||
"j c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@#$.%& ",
|
||||
" $*==*-#$.;& ",
|
||||
" $=:>:=,+O<123 ",
|
||||
" .*:444:*+O5X%67 ",
|
||||
" O=>4898*+O5X%0q ",
|
||||
" +=:49we=@r<1%03 ",
|
||||
" .@*=:8et-#$yui03p ",
|
||||
" X#-,**=-#r<Xoasqp ",
|
||||
" o$#+++@#r5.uidfgp ",
|
||||
" .$OOOr$<.1%as3p ",
|
||||
" %.<55<yXu%a0hg7 ",
|
||||
" &;1XX1uoia0fgpj ",
|
||||
" &2%%%iadshgpj ",
|
||||
" 36000sf3gpj ",
|
||||
" 7q33qgp7j ",
|
||||
" ppp ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,46 +0,0 @@
|
||||
/* XPM */
|
||||
char * diffref1_xpm[] = {
|
||||
"32 32 11 1",
|
||||
" c None",
|
||||
". c #49244D344924",
|
||||
"X c #410345144103",
|
||||
"o c #492449244924",
|
||||
"O c #514451445144",
|
||||
"+ c #596559655965",
|
||||
"@ c #79E779E779E7",
|
||||
"# c #69A669A669A6",
|
||||
"$ c #BEFBBAEABEFB",
|
||||
"% c #8E388A288E38",
|
||||
"& c #514455555144",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ... ",
|
||||
" Xo.....oX ",
|
||||
" X.........X ",
|
||||
" X...........X ",
|
||||
" X....OO.......X ",
|
||||
" o...+@#O......o ",
|
||||
" ...O@$%&....... ",
|
||||
" ....O#%#O........ ",
|
||||
" .....O&O......... ",
|
||||
" ................. ",
|
||||
" ............... ",
|
||||
" o.............o ",
|
||||
" X.............X ",
|
||||
" X...........X ",
|
||||
" X.........X ",
|
||||
" Xo.....oX ",
|
||||
" ... ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,75 +0,0 @@
|
||||
/* XPM */
|
||||
char * diffref2_xpm[] = {
|
||||
"32 32 40 1",
|
||||
" c None",
|
||||
". c #D75CD34CD75C",
|
||||
"X c #CF3CCF3CCF3C",
|
||||
"o c #BEFBBAEABEFB",
|
||||
"O c #F7DEF3CEF7DE",
|
||||
"+ c #F7DEF7DEF7DE",
|
||||
"@ c #FFFFFBEEFFFF",
|
||||
"# c #EFBEEBADEFBE",
|
||||
"$ c #D75CD75CD75C",
|
||||
"% c #B6DAB2CAB6DA",
|
||||
"& c #79E779E779E7",
|
||||
"* c #E79DE79DE79D",
|
||||
"= c #FFFFFFFFFFFF",
|
||||
"- c #EFBEEFBEEFBE",
|
||||
"; c #E79DE38DE79D",
|
||||
": c #C71BC71BC71B",
|
||||
"> c #A699A289A699",
|
||||
", c #618565956185",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #861786178617",
|
||||
"2 c #492449244924",
|
||||
"3 c #8E388E388E38",
|
||||
"4 c #596559655965",
|
||||
"5 c #CF3CCB2BCF3C",
|
||||
"6 c #618561856185",
|
||||
"7 c #DF7DDB6CDF7D",
|
||||
"8 c #C71BC30BC71B",
|
||||
"9 c #AEBAAAAAAEBA",
|
||||
"0 c #8E388A288E38",
|
||||
"q c #49244D344924",
|
||||
"w c #9E799E799E79",
|
||||
"e c #79E77DF779E7",
|
||||
"r c #965892489658",
|
||||
"t c #71C671C671C6",
|
||||
"y c #514451445144",
|
||||
"u c #9E799A699E79",
|
||||
"i c #861782078617",
|
||||
"p c #69A66DB669A6",
|
||||
"a c #514455555144",
|
||||
"s c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@@#$%& ",
|
||||
" *=====@-$%& ",
|
||||
" *=======+;:>, ",
|
||||
" .========+*X<12 ",
|
||||
" O========+*X%34 ",
|
||||
" +========O;5<36 ",
|
||||
" .@=======@#78906q ",
|
||||
" X@======@O;Xowe4q ",
|
||||
" o#@====@O*$89rtyq ",
|
||||
" $-+++O#;$:%ui6q ",
|
||||
" %$;**;7X8%w0py2 ",
|
||||
" &%:XX58o9u0taqs ",
|
||||
" &><%<9wripaqs ",
|
||||
" ,1330et6yqs ",
|
||||
" 24664yq2s ",
|
||||
" qqq ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,75 +0,0 @@
|
||||
/* XPM */
|
||||
char * high1_xpm[] = {
|
||||
"32 32 40 1",
|
||||
" c None",
|
||||
". c #D75CD34CD75C",
|
||||
"X c #CF3CCF3CCF3C",
|
||||
"o c #BEFBBAEABEFB",
|
||||
"O c #F7DEF3CEF7DE",
|
||||
"+ c #F7DEF7DEF7DE",
|
||||
"@ c #FFFFFBEEFFFF",
|
||||
"# c #EFBEEBADEFBE",
|
||||
"$ c #D75CD75CD75C",
|
||||
"% c #B6DAB2CAB6DA",
|
||||
"& c #79E779E779E7",
|
||||
"* c #E79DE79DE79D",
|
||||
"= c #FFFFFFFFFFFF",
|
||||
"- c #EFBEEFBEEFBE",
|
||||
"; c #E79DE38DE79D",
|
||||
": c #C71BC71BC71B",
|
||||
"> c #A699A289A699",
|
||||
", c #618565956185",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #861786178617",
|
||||
"2 c #492449244924",
|
||||
"3 c #8E388E388E38",
|
||||
"4 c #596559655965",
|
||||
"5 c #CF3CCB2BCF3C",
|
||||
"6 c #618561856185",
|
||||
"7 c #DF7DDB6CDF7D",
|
||||
"8 c #C71BC30BC71B",
|
||||
"9 c #AEBAAAAAAEBA",
|
||||
"0 c #8E388A288E38",
|
||||
"q c #49244D344924",
|
||||
"w c #9E799E799E79",
|
||||
"e c #79E77DF779E7",
|
||||
"r c #965892489658",
|
||||
"t c #71C671C671C6",
|
||||
"y c #514451445144",
|
||||
"u c #9E799A699E79",
|
||||
"i c #861782078617",
|
||||
"p c #69A66DB669A6",
|
||||
"a c #514455555144",
|
||||
"s c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@@#$%& ",
|
||||
" *=====@-$%& ",
|
||||
" *=======+;:>, ",
|
||||
" .========+*X<12 ",
|
||||
" O========+*X%34 ",
|
||||
" +========O;5<36 ",
|
||||
" .@=======@#78906q ",
|
||||
" X@======@O;Xowe4q ",
|
||||
" o#@====@O*$89rtyq ",
|
||||
" $-+++O#;$:%ui6q ",
|
||||
" %$;**;7X8%w0py2 ",
|
||||
" &%:XX58o9u0taqs ",
|
||||
" &><%<9wripaqs ",
|
||||
" ,1330et6yqs ",
|
||||
" 24664yq2s ",
|
||||
" qqq ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,78 +0,0 @@
|
||||
/* XPM */
|
||||
char * high2_xpm[] = {
|
||||
"32 32 43 1",
|
||||
" c None",
|
||||
". c #A699A699A699",
|
||||
"X c #A699A289A699",
|
||||
"o c #965896589658",
|
||||
"O c #BEFBBEFBBEFB",
|
||||
"+ c #CF3CCB2BCF3C",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #C71BC30BC71B",
|
||||
"$ c #B6DAB6DAB6DA",
|
||||
"% c #8E388E388E38",
|
||||
"& c #69A669A669A6",
|
||||
"* c #D75CD75CD75C",
|
||||
"= c #DF7DDB6CDF7D",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #965892489658",
|
||||
": c #DF7DDF7DDF7D",
|
||||
"> c #E79DE38DE79D",
|
||||
", c #D75CD34CD75C",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #9E799E799E79",
|
||||
"2 c #861786178617",
|
||||
"3 c #596559655965",
|
||||
"4 c #E79DE79DE79D",
|
||||
"5 c #B6DAB2CAB6DA",
|
||||
"6 c #71C671C671C6",
|
||||
"7 c #492449244924",
|
||||
"8 c #F7DEF7DEF7DE",
|
||||
"9 c #71C675D671C6",
|
||||
"0 c #514455555144",
|
||||
"q c #FFFFFFFFFFFF",
|
||||
"w c #BEFBBAEABEFB",
|
||||
"e c #F7DEF3CEF7DE",
|
||||
"r c #AEBAAAAAAEBA",
|
||||
"t c #9E799A699E79",
|
||||
"y c #8E388A288E38",
|
||||
"u c #49244D344924",
|
||||
"i c #861782078617",
|
||||
"p c #69A66DB669A6",
|
||||
"a c #79E779E779E7",
|
||||
"s c #618565956185",
|
||||
"d c #514451445144",
|
||||
"f c #618561856185",
|
||||
"g c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@#$.%& ",
|
||||
" $*==*-#$.;& ",
|
||||
" $=:>:=,+O<123 ",
|
||||
" .*:>4>=*+O5X%67 ",
|
||||
" O=>4>8:,+O5X%90 ",
|
||||
" +=:>8qq-@w<1%93 ",
|
||||
" .@*==:e=+#$rty93u ",
|
||||
" X#-,*,*-#w<Xoip0u ",
|
||||
" o$#+++@#w5.tyasdu ",
|
||||
" .$OOOw$<.1%ip3u ",
|
||||
" %.<55<rXt%i9fd7 ",
|
||||
" &;1XX1toyi9sdug ",
|
||||
" &2%%%yiapfdug ",
|
||||
" 36999ps3dug ",
|
||||
" 70330du7g ",
|
||||
" uuu ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
6
plug-ins/Lighting/images/.cvsignore
Normal file
@ -0,0 +1,6 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
.xvpics
|
||||
.thumbnails
|
||||
stock-icons.list
|
||||
stock-pixbufs.h
|
29
plug-ins/Lighting/images/Makefile.am
Normal file
@ -0,0 +1,29 @@
|
||||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
STOCK_IMAGES = \
|
||||
stock-intensity-ambient-high.png \
|
||||
stock-intensity-ambient-low.png \
|
||||
stock-intensity-diffuse-high.png \
|
||||
stock-intensity-diffuse-low.png \
|
||||
stock-reflectivity-diffuse-high.png \
|
||||
stock-reflectivity-diffuse-low.png \
|
||||
stock-reflectivity-specular-high.png \
|
||||
stock-reflectivity-specular-low.png \
|
||||
stock-reflectivity-highlight-high.png \
|
||||
stock-reflectivity-highlight-low.png
|
||||
|
||||
EXTRA_DIST = $(STOCK_IMAGES)
|
||||
|
||||
noinst_DATA = stock-pixbufs.h
|
||||
CLEANFILES = $(noinst_DATA) stock-icons.list
|
||||
|
||||
stock-icons.list: $(STOCK_IMAGES) Makefile.am
|
||||
( rm -f $@; \
|
||||
for image in $(STOCK_IMAGES); do \
|
||||
echo $$image | \
|
||||
sed -e 's|.*/||' -e 's|-|_|g' -e 's|\.png$$||' >> $@; \
|
||||
echo " $(srcdir)/$$image" >> $@; \
|
||||
done )
|
||||
|
||||
$(srcdir)/stock-pixbufs.h: stock-icons.list
|
||||
gdk-pixbuf-csource --raw --build-list `cat stock-icons.list` > $(@F)
|
BIN
plug-ins/Lighting/images/stock-intensity-ambient-high.png
Normal file
After Width: | Height: | Size: 725 B |
BIN
plug-ins/Lighting/images/stock-intensity-ambient-low.png
Normal file
After Width: | Height: | Size: 918 B |
BIN
plug-ins/Lighting/images/stock-intensity-diffuse-high.png
Normal file
After Width: | Height: | Size: 829 B |
BIN
plug-ins/Lighting/images/stock-intensity-diffuse-low.png
Normal file
After Width: | Height: | Size: 504 B |
BIN
plug-ins/Lighting/images/stock-reflectivity-diffuse-high.png
Normal file
After Width: | Height: | Size: 805 B |
BIN
plug-ins/Lighting/images/stock-reflectivity-diffuse-low.png
Normal file
After Width: | Height: | Size: 441 B |
BIN
plug-ins/Lighting/images/stock-reflectivity-highlight-high.png
Normal file
After Width: | Height: | Size: 822 B |
BIN
plug-ins/Lighting/images/stock-reflectivity-highlight-low.png
Normal file
After Width: | Height: | Size: 805 B |
BIN
plug-ins/Lighting/images/stock-reflectivity-specular-high.png
Normal file
After Width: | Height: | Size: 842 B |
BIN
plug-ins/Lighting/images/stock-reflectivity-specular-low.png
Normal file
After Width: | Height: | Size: 800 B |
109
plug-ins/Lighting/lighting_stock.c
Normal file
@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "lighting_stock.h"
|
||||
|
||||
#include "images/stock-pixbufs.h"
|
||||
|
||||
|
||||
static GtkIconFactory *lighting_icon_factory = NULL;
|
||||
|
||||
static GtkStockItem lighting_stock_items[] =
|
||||
{
|
||||
{ STOCK_INTENSITY_AMBIENT_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_INTENSITY_AMBIENT_HIGH, NULL, 0, 0, NULL },
|
||||
{ STOCK_INTENSITY_DIFFUSE_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_INTENSITY_DIFFUSE_HIGH, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_DIFFUSE_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_DIFFUSE_HIGH, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_SPECULAR_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_SPECULAR_HIGH, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_HIGHLIGHT_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_HIGHLIGHT_HIGH, NULL, 0, 0, NULL }
|
||||
};
|
||||
|
||||
|
||||
static void
|
||||
add_stock_icon (const gchar *stock_id,
|
||||
GtkIconSize size,
|
||||
const guint8 *inline_data)
|
||||
{
|
||||
GtkIconSource *source;
|
||||
GtkIconSet *set;
|
||||
GdkPixbuf *pixbuf;
|
||||
|
||||
source = gtk_icon_source_new ();
|
||||
|
||||
gtk_icon_source_set_size (source, size);
|
||||
gtk_icon_source_set_size_wildcarded (source, FALSE);
|
||||
|
||||
pixbuf = gdk_pixbuf_new_from_inline (-1, inline_data, FALSE, NULL);
|
||||
|
||||
gtk_icon_source_set_pixbuf (source, pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
|
||||
set = gtk_icon_set_new ();
|
||||
|
||||
gtk_icon_set_add_source (set, source);
|
||||
gtk_icon_source_free (source);
|
||||
|
||||
gtk_icon_factory_add (lighting_icon_factory, stock_id, set);
|
||||
|
||||
gtk_icon_set_unref (set);
|
||||
}
|
||||
|
||||
void
|
||||
lighting_stock_init (void)
|
||||
{
|
||||
static gboolean initialized = FALSE;
|
||||
|
||||
if (initialized)
|
||||
return;
|
||||
|
||||
lighting_icon_factory = gtk_icon_factory_new ();
|
||||
|
||||
add_stock_icon (STOCK_INTENSITY_AMBIENT_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_intensity_ambient_low);
|
||||
add_stock_icon (STOCK_INTENSITY_AMBIENT_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_intensity_ambient_high);
|
||||
add_stock_icon (STOCK_INTENSITY_DIFFUSE_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_intensity_diffuse_low);
|
||||
add_stock_icon (STOCK_INTENSITY_DIFFUSE_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_intensity_diffuse_high);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_DIFFUSE_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_diffuse_low);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_DIFFUSE_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_diffuse_high);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_SPECULAR_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_specular_low);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_SPECULAR_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_specular_high);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_HIGHLIGHT_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_highlight_low);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_HIGHLIGHT_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_highlight_high);
|
||||
|
||||
gtk_icon_factory_add_default (lighting_icon_factory);
|
||||
|
||||
gtk_stock_add_static (lighting_stock_items,
|
||||
G_N_ELEMENTS (lighting_stock_items));
|
||||
}
|
38
plug-ins/Lighting/lighting_stock.h
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __LIGHTING_STOCK_H__
|
||||
#define __LIGHTING_STOCK_H__
|
||||
|
||||
|
||||
#define STOCK_INTENSITY_AMBIENT_LOW "intensity-ambient-low"
|
||||
#define STOCK_INTENSITY_AMBIENT_HIGH "intensity-ambient-high"
|
||||
#define STOCK_INTENSITY_DIFFUSE_LOW "intensity-diffuse-low"
|
||||
#define STOCK_INTENSITY_DIFFUSE_HIGH "intensity-diffuse-high"
|
||||
#define STOCK_REFLECTIVITY_DIFFUSE_LOW "reflectivity-diffuse-low"
|
||||
#define STOCK_REFLECTIVITY_DIFFUSE_HIGH "reflectivity-diffuse-high"
|
||||
#define STOCK_REFLECTIVITY_SPECULAR_LOW "reflectivity-specular-low"
|
||||
#define STOCK_REFLECTIVITY_SPECULAR_HIGH "reflectivity-specular-high"
|
||||
#define STOCK_REFLECTIVITY_HIGHLIGHT_LOW "reflectivity-highlight-low"
|
||||
#define STOCK_REFLECTIVITY_HIGHLIGHT_HIGH "reflectivity-highlight-high"
|
||||
|
||||
|
||||
void lighting_stock_init (void);
|
||||
|
||||
|
||||
#endif /* __LIGHTING_STOCK_H__ */
|
@ -27,20 +27,10 @@
|
||||
#include "lighting_image.h"
|
||||
#include "lighting_apply.h"
|
||||
#include "lighting_preview.h"
|
||||
#include "lighting_stock.h"
|
||||
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
#include "amb1.xpm"
|
||||
#include "amb2.xpm"
|
||||
#include "diffint1.xpm"
|
||||
#include "diffint2.xpm"
|
||||
#include "diffref1.xpm"
|
||||
#include "diffref2.xpm"
|
||||
#include "specref1.xpm"
|
||||
#include "specref2.xpm"
|
||||
#include "high1.xpm"
|
||||
#include "high2.xpm"
|
||||
|
||||
|
||||
extern LightingValues mapvals;
|
||||
|
||||
@ -498,7 +488,7 @@ create_light_page (void)
|
||||
gtk_widget_show (combo);
|
||||
|
||||
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
|
||||
_("L_ight yype:"), 0.0, 0.5, ebox, 1, FALSE);
|
||||
_("L_ight type:"), 0.0, 0.5, ebox, 1, FALSE);
|
||||
|
||||
gimp_help_set_help_data (ebox, _("Type of light source to apply"), NULL);
|
||||
|
||||
@ -660,8 +650,8 @@ create_material_page (void)
|
||||
GtkWidget *label;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *spinbutton;
|
||||
GtkWidget *image;
|
||||
GtkObject *adj;
|
||||
GtkWidget *pixmap;
|
||||
|
||||
page = gtk_vbox_new (FALSE, 12);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (page), 12);
|
||||
@ -681,10 +671,11 @@ create_material_page (void)
|
||||
|
||||
/* Ambient intensity */
|
||||
|
||||
pixmap = gimp_pixmap_new (amb1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_INTENSITY_AMBIENT_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
|
||||
_("_Ambient:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.ambient_int,
|
||||
0, G_MAXFLOAT, 0.1, 1.0, 1.0, 0.0, 2);
|
||||
@ -704,17 +695,19 @@ create_material_page (void)
|
||||
_("Amount of original color to show where no "
|
||||
"direct light falls"), NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (amb2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 0, 1,
|
||||
image = gtk_image_new_from_stock (STOCK_INTENSITY_AMBIENT_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
/* Diffuse intensity */
|
||||
|
||||
pixmap = gimp_pixmap_new (diffint1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_INTENSITY_DIFFUSE_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("_Diffuse:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.diffuse_int,
|
||||
@ -735,10 +728,11 @@ create_material_page (void)
|
||||
_("Intensity of original color when lit by a light "
|
||||
"source"), NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (diffint2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 1, 2,
|
||||
image = gtk_image_new_from_stock (STOCK_INTENSITY_DIFFUSE_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
frame = gimp_frame_new (_("Reflectivity"));
|
||||
gtk_box_pack_start (GTK_BOX (page), frame, FALSE, FALSE, 0);
|
||||
@ -755,10 +749,11 @@ create_material_page (void)
|
||||
|
||||
/* Diffuse reflection */
|
||||
|
||||
pixmap = gimp_pixmap_new (diffref1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_DIFFUSE_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
|
||||
_("D_iffuse:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.diffuse_ref,
|
||||
@ -779,17 +774,19 @@ create_material_page (void)
|
||||
_("Higher values makes the object reflect more "
|
||||
"light (appear lighter)"), NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (diffref2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 0, 1,
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_DIFFUSE_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
/* Specular reflection */
|
||||
|
||||
pixmap = gimp_pixmap_new (specref1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_SPECULAR_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("_Specular:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.specular_ref,
|
||||
@ -811,17 +808,19 @@ create_material_page (void)
|
||||
_("Controls how intense the highlights will be"),
|
||||
NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (specref2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 1, 2,
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_SPECULAR_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
/* Highlight */
|
||||
|
||||
pixmap = gimp_pixmap_new (high1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_HIGHLIGHT_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
|
||||
_("_Highlight:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.highlight,
|
||||
@ -842,10 +841,11 @@ create_material_page (void)
|
||||
_("Higher values makes the highlights more focused"),
|
||||
NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (high2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 2, 3,
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_HIGHLIGHT_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
gtk_widget_show (page);
|
||||
|
||||
@ -1079,6 +1079,8 @@ main_dialog (GimpDrawable *drawable)
|
||||
|
||||
gimp_ui_init ("Lighting", FALSE);
|
||||
|
||||
lighting_stock_init ();
|
||||
|
||||
appwin = gimp_dialog_new (_("Lighting Effects"), "Lighting",
|
||||
NULL, 0,
|
||||
gimp_standard_help_func, "plug-in-lighting",
|
||||
|
@ -1,75 +0,0 @@
|
||||
/* XPM */
|
||||
char * specref1_xpm[] = {
|
||||
"32 32 40 1",
|
||||
" c None",
|
||||
". c #A699A699A699",
|
||||
"X c #A699A289A699",
|
||||
"o c #965896589658",
|
||||
"O c #BEFBBEFBBEFB",
|
||||
"+ c #CF3CCB2BCF3C",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #C71BC30BC71B",
|
||||
"$ c #B6DAB6DAB6DA",
|
||||
"% c #8E388E388E38",
|
||||
"& c #69A669A669A6",
|
||||
"* c #D75CD75CD75C",
|
||||
"= c #DF7DDB6CDF7D",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #965892489658",
|
||||
": c #DF7DDF7DDF7D",
|
||||
"> c #E79DE38DE79D",
|
||||
", c #D75CD34CD75C",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #9E799E799E79",
|
||||
"2 c #861786178617",
|
||||
"3 c #596559655965",
|
||||
"4 c #E79DE79DE79D",
|
||||
"5 c #B6DAB2CAB6DA",
|
||||
"6 c #71C671C671C6",
|
||||
"7 c #492449244924",
|
||||
"8 c #71C675D671C6",
|
||||
"9 c #514455555144",
|
||||
"0 c #BEFBBAEABEFB",
|
||||
"q c #AEBAAAAAAEBA",
|
||||
"w c #9E799A699E79",
|
||||
"e c #8E388A288E38",
|
||||
"r c #49244D344924",
|
||||
"t c #861782078617",
|
||||
"y c #69A66DB669A6",
|
||||
"u c #79E779E779E7",
|
||||
"i c #618565956185",
|
||||
"p c #514451445144",
|
||||
"a c #618561856185",
|
||||
"s c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@#$.%& ",
|
||||
" $*==*-#$.;& ",
|
||||
" $=:>:=,+O<123 ",
|
||||
" .*:>4>=*+O5X%67 ",
|
||||
" O=>4>>=,+O5X%89 ",
|
||||
" +=:>>:*-@0<1%83 ",
|
||||
" .@*===*,+#$qwe83r ",
|
||||
" X#-,*,-+#0<Xoty9r ",
|
||||
" o$#+++@#05.weuipr ",
|
||||
" .$OOO0$<.1%ty3r ",
|
||||
" %.<55<qXw%t8ap7 ",
|
||||
" &;1XX1woet8iprs ",
|
||||
" &2%%%etuyaprs ",
|
||||
" 36888yi3prs ",
|
||||
" 79339pr7s ",
|
||||
" rrr ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,79 +0,0 @@
|
||||
/* XPM */
|
||||
char * specref2_xpm[] = {
|
||||
"32 32 44 1",
|
||||
" c None",
|
||||
". c #A699A699A699",
|
||||
"X c #A699A289A699",
|
||||
"o c #965896589658",
|
||||
"O c #BEFBBEFBBEFB",
|
||||
"+ c #CF3CCB2BCF3C",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #C71BC30BC71B",
|
||||
"$ c #B6DAB6DAB6DA",
|
||||
"% c #8E388E388E38",
|
||||
"& c #69A669A669A6",
|
||||
"* c #D75CD75CD75C",
|
||||
"= c #DF7DDB6CDF7D",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #965892489658",
|
||||
": c #DF7DDF7DDF7D",
|
||||
"> c #E79DE38DE79D",
|
||||
", c #D75CD34CD75C",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #9E799E799E79",
|
||||
"2 c #861786178617",
|
||||
"3 c #596559655965",
|
||||
"4 c #E79DE79DE79D",
|
||||
"5 c #EFBEEFBEEFBE",
|
||||
"6 c #B6DAB2CAB6DA",
|
||||
"7 c #71C671C671C6",
|
||||
"8 c #492449244924",
|
||||
"9 c #FFFFFBEEFFFF",
|
||||
"0 c #FFFFFFFFFFFF",
|
||||
"q c #71C675D671C6",
|
||||
"w c #514455555144",
|
||||
"e c #EFBEEBADEFBE",
|
||||
"r c #BEFBBAEABEFB",
|
||||
"t c #AEBAAAAAAEBA",
|
||||
"y c #9E799A699E79",
|
||||
"u c #8E388A288E38",
|
||||
"i c #49244D344924",
|
||||
"p c #861782078617",
|
||||
"a c #69A66DB669A6",
|
||||
"s c #79E779E779E7",
|
||||
"d c #618565956185",
|
||||
"f c #514451445144",
|
||||
"g c #618561856185",
|
||||
"h c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@#$.%& ",
|
||||
" $*==*-#$.;& ",
|
||||
" $=:>:=,+O<123 ",
|
||||
" .*:4454*+O6X%78 ",
|
||||
" O=>4900>+O6X%qw ",
|
||||
" +=:5000e+r<1%q3 ",
|
||||
" .@*=4009=#$tyuq3i ",
|
||||
" X#-,*>e=@r<Xopawi ",
|
||||
" o$#++++#r6.yusdfi ",
|
||||
" .$OOOr$<.1%pa3i ",
|
||||
" %.<66<tXy%pqgf8 ",
|
||||
" &;1XX1youpqdfih ",
|
||||
" &2%%%upsagfih ",
|
||||
" 37qqqad3fih ",
|
||||
" 8w33wfi8h ",
|
||||
" iii ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -18,16 +18,6 @@ libexecdir = $(gimpplugindir)/plug-ins
|
||||
libexec_PROGRAMS = MapObject
|
||||
|
||||
MapObject_SOURCES = \
|
||||
amb1.xpm \
|
||||
amb2.xpm \
|
||||
arcball.c \
|
||||
arcball.h \
|
||||
diffint1.xpm \
|
||||
diffint2.xpm \
|
||||
diffref1.xpm \
|
||||
diffref2.xpm \
|
||||
high1.xpm \
|
||||
high2.xpm \
|
||||
mapobject_apply.c \
|
||||
mapobject_apply.h \
|
||||
mapobject_image.c \
|
||||
@ -38,10 +28,10 @@ MapObject_SOURCES = \
|
||||
mapobject_preview.h \
|
||||
mapobject_shade.c \
|
||||
mapobject_shade.h \
|
||||
mapobject_stock.c \
|
||||
mapobject_stock.h \
|
||||
mapobject_ui.c \
|
||||
mapobject_ui.h \
|
||||
specref1.xpm \
|
||||
specref2.xpm
|
||||
mapobject_ui.h
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir) \
|
||||
|
@ -1,88 +0,0 @@
|
||||
/* XPM */
|
||||
char * amb1_xpm[] = {
|
||||
"32 32 53 1",
|
||||
" c None",
|
||||
". c #861786178617",
|
||||
"X c #861782078617",
|
||||
"o c #69A66DB669A6",
|
||||
"O c #8E388E388E38",
|
||||
"+ c #B6DAB2CAB6DA",
|
||||
"@ c #BEFBBAEABEFB",
|
||||
"# c #AEBAAEBAAEBA",
|
||||
"$ c #9E799E799E79",
|
||||
"% c #8E388A288E38",
|
||||
"& c #618565956185",
|
||||
"* c #30C234D330C2",
|
||||
"= c #A699A699A699",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #D75CD34CD75C",
|
||||
": c #C71BC30BC71B",
|
||||
"> c #DF7DDF7DDF7D",
|
||||
", c #D75CD75CD75C",
|
||||
"< c #CF3CCB2BCF3C",
|
||||
"1 c #AEBAAAAAAEBA",
|
||||
"2 c #965896589658",
|
||||
"3 c #79E779E779E7",
|
||||
"4 c #514455555144",
|
||||
"5 c #18611C711861",
|
||||
"6 c #E79DE38DE79D",
|
||||
"7 c #E79DE79DE79D",
|
||||
"8 c #DF7DDB6CDF7D",
|
||||
"9 c #BEFBBEFBBEFB",
|
||||
"0 c #9E799A699E79",
|
||||
"q c #79E77DF779E7",
|
||||
"w c #618561856185",
|
||||
"e c #38E338E338E3",
|
||||
"r c #000004100000",
|
||||
"t c #EFBEEFBEEFBE",
|
||||
"y c #FFFFFBEEFFFF",
|
||||
"u c #410341034103",
|
||||
"i c #08200C300820",
|
||||
"p c #FFFFFFFFFFFF",
|
||||
"a c #B6DAB6DAB6DA",
|
||||
"s c #965892489658",
|
||||
"d c #104014511040",
|
||||
"f c #71C675D671C6",
|
||||
"g c #596559655965",
|
||||
"h c #104010401040",
|
||||
"j c #000000000000",
|
||||
"k c #514451445144",
|
||||
"l c #30C230C230C2",
|
||||
"z c #59655D755965",
|
||||
"x c #410345144103",
|
||||
"c c #208124922081",
|
||||
"v c #49244D344924",
|
||||
"b c #208120812081",
|
||||
"n c #082008200820",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" O+@@#$%&* ",
|
||||
" =-;;-:+$.&* ",
|
||||
" =;>>>,<@12345 ",
|
||||
" O->6778-9#0qwer ",
|
||||
" +;>7tyt-910X&ui ",
|
||||
" @;>7ypy-a=sqwud ",
|
||||
" .@-,8ty6:#$Ofgehj ",
|
||||
" X#:<---:+=2Xoklij ",
|
||||
" o$+@99a#=2.fzxcrj ",
|
||||
" %$1#1=$2.f&v*dj ",
|
||||
" &.200sOXf&kebrj ",
|
||||
" *&3qXqfozvecnjj ",
|
||||
" *4w&wgkx*bnjj ",
|
||||
" 5euuelcdrjj ",
|
||||
" ridhirjjj ",
|
||||
" jjj ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,58 +0,0 @@
|
||||
/* XPM */
|
||||
char * amb2_xpm[] = {
|
||||
"32 32 23 1",
|
||||
" c None",
|
||||
". c #CF3CCF3CCF3C",
|
||||
"X c #CF3CCB2BCF3C",
|
||||
"o c #C71BC30BC71B",
|
||||
"O c #D75CD75CD75C",
|
||||
"+ c #DF7DDB6CDF7D",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #AEBAAEBAAEBA",
|
||||
"$ c #DF7DDF7DDF7D",
|
||||
"% c #E79DE38DE79D",
|
||||
"& c #D75CD34CD75C",
|
||||
"* c #E79DE79DE79D",
|
||||
"= c #AEBAAAAAAEBA",
|
||||
"- c #EFBEEBADEFBE",
|
||||
"; c #BEFBBEFBBEFB",
|
||||
": c #A699A289A699",
|
||||
"> c #F7DEF3CEF7DE",
|
||||
", c #F7DEF7DEF7DE",
|
||||
"< c #B6DAB2CAB6DA",
|
||||
"1 c #FFFFFFFFFFFF",
|
||||
"2 c #FFFFFBEEFFFF",
|
||||
"3 c #B6DAB6DAB6DA",
|
||||
"4 c #BEFBBAEABEFB",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ..X ",
|
||||
" oO+++O.@# ",
|
||||
" X$%%$$+O&X# ",
|
||||
" X%%*%%$$+&.@= ",
|
||||
" o$%**-*%$+O.@;: ",
|
||||
" O%**>,,%$+O.Xo< ",
|
||||
" +%%-,12*+O&.Xo3 ",
|
||||
" .+$%*,2,%+O&.@;3< ",
|
||||
" .+$$%%*%+O&.X@;3< ",
|
||||
" XO+$$$++OO&.@o43< ",
|
||||
" .O+++OO&&.Xo;3< ",
|
||||
" @&&OO&&..X@;43# ",
|
||||
" #X.....X@o;43<: ",
|
||||
" #@@XX@@o;43<: ",
|
||||
" =;oo;;433<: ",
|
||||
" :<3333<#: ",
|
||||
" <<< ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,44 +0,0 @@
|
||||
/* XPM */
|
||||
char * diffint1_xpm[] = {
|
||||
"32 32 9 1",
|
||||
" c None",
|
||||
". c #514455555144",
|
||||
"X c #514451445144",
|
||||
"o c #49244D344924",
|
||||
"O c #596559655965",
|
||||
"+ c #492449244924",
|
||||
"@ c #410345144103",
|
||||
"# c #59655D755965",
|
||||
"$ c #618561856185",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ..X ",
|
||||
" o.OO...X+ ",
|
||||
" XOOOOOO..X+ ",
|
||||
" XOOOOOOO...X+ ",
|
||||
" oOOOOOOOOO..Xo@ ",
|
||||
" .OOO###OO...XX+ ",
|
||||
" OOOO#$#OO...XXo ",
|
||||
" .OOOO###OO...XXoo ",
|
||||
" ..OOOOOOO...XXooo ",
|
||||
" X.OOOOOO....XXooo ",
|
||||
" ...O......XXooo ",
|
||||
" X........XXXoo+ ",
|
||||
" +X.....XXXXooo@ ",
|
||||
" +XXXXXXXoooo@ ",
|
||||
" +oXXXooooo@ ",
|
||||
" @+ooooo+@ ",
|
||||
" ooo ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,80 +0,0 @@
|
||||
/* XPM */
|
||||
char * diffint2_xpm[] = {
|
||||
"32 32 45 1",
|
||||
" c None",
|
||||
". c #A699A699A699",
|
||||
"X c #A699A289A699",
|
||||
"o c #965896589658",
|
||||
"O c #BEFBBEFBBEFB",
|
||||
"+ c #CF3CCB2BCF3C",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #C71BC30BC71B",
|
||||
"$ c #B6DAB6DAB6DA",
|
||||
"% c #8E388E388E38",
|
||||
"& c #69A669A669A6",
|
||||
"* c #D75CD75CD75C",
|
||||
"= c #DF7DDB6CDF7D",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #965892489658",
|
||||
": c #DF7DDF7DDF7D",
|
||||
"> c #E79DE38DE79D",
|
||||
", c #D75CD34CD75C",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #9E799E799E79",
|
||||
"2 c #861786178617",
|
||||
"3 c #596559655965",
|
||||
"4 c #E79DE79DE79D",
|
||||
"5 c #B6DAB2CAB6DA",
|
||||
"6 c #71C671C671C6",
|
||||
"7 c #492449244924",
|
||||
"8 c #F7DEF3CEF7DE",
|
||||
"9 c #F7DEF7DEF7DE",
|
||||
"0 c #71C675D671C6",
|
||||
"q c #514455555144",
|
||||
"w c #FFFFFFFFFFFF",
|
||||
"e c #FFFFFBEEFFFF",
|
||||
"r c #BEFBBAEABEFB",
|
||||
"t c #EFBEEBADEFBE",
|
||||
"y c #AEBAAAAAAEBA",
|
||||
"u c #9E799A699E79",
|
||||
"i c #8E388A288E38",
|
||||
"p c #49244D344924",
|
||||
"a c #861782078617",
|
||||
"s c #69A66DB669A6",
|
||||
"d c #79E779E779E7",
|
||||
"f c #618565956185",
|
||||
"g c #514451445144",
|
||||
"h c #618561856185",
|
||||
"j c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@#$.%& ",
|
||||
" $*==*-#$.;& ",
|
||||
" $=:>:=,+O<123 ",
|
||||
" .*:444:*+O5X%67 ",
|
||||
" O=>4898*+O5X%0q ",
|
||||
" +=:49we=@r<1%03 ",
|
||||
" .@*=:8et-#$yui03p ",
|
||||
" X#-,**=-#r<Xoasqp ",
|
||||
" o$#+++@#r5.uidfgp ",
|
||||
" .$OOOr$<.1%as3p ",
|
||||
" %.<55<yXu%a0hg7 ",
|
||||
" &;1XX1uoia0fgpj ",
|
||||
" &2%%%iadshgpj ",
|
||||
" 36000sf3gpj ",
|
||||
" 7q33qgp7j ",
|
||||
" ppp ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,46 +0,0 @@
|
||||
/* XPM */
|
||||
char * diffref1_xpm[] = {
|
||||
"32 32 11 1",
|
||||
" c None",
|
||||
". c #49244D344924",
|
||||
"X c #410345144103",
|
||||
"o c #492449244924",
|
||||
"O c #514451445144",
|
||||
"+ c #596559655965",
|
||||
"@ c #79E779E779E7",
|
||||
"# c #69A669A669A6",
|
||||
"$ c #BEFBBAEABEFB",
|
||||
"% c #8E388A288E38",
|
||||
"& c #514455555144",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ... ",
|
||||
" Xo.....oX ",
|
||||
" X.........X ",
|
||||
" X...........X ",
|
||||
" X....OO.......X ",
|
||||
" o...+@#O......o ",
|
||||
" ...O@$%&....... ",
|
||||
" ....O#%#O........ ",
|
||||
" .....O&O......... ",
|
||||
" ................. ",
|
||||
" ............... ",
|
||||
" o.............o ",
|
||||
" X.............X ",
|
||||
" X...........X ",
|
||||
" X.........X ",
|
||||
" Xo.....oX ",
|
||||
" ... ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,75 +0,0 @@
|
||||
/* XPM */
|
||||
char * diffref2_xpm[] = {
|
||||
"32 32 40 1",
|
||||
" c None",
|
||||
". c #D75CD34CD75C",
|
||||
"X c #CF3CCF3CCF3C",
|
||||
"o c #BEFBBAEABEFB",
|
||||
"O c #F7DEF3CEF7DE",
|
||||
"+ c #F7DEF7DEF7DE",
|
||||
"@ c #FFFFFBEEFFFF",
|
||||
"# c #EFBEEBADEFBE",
|
||||
"$ c #D75CD75CD75C",
|
||||
"% c #B6DAB2CAB6DA",
|
||||
"& c #79E779E779E7",
|
||||
"* c #E79DE79DE79D",
|
||||
"= c #FFFFFFFFFFFF",
|
||||
"- c #EFBEEFBEEFBE",
|
||||
"; c #E79DE38DE79D",
|
||||
": c #C71BC71BC71B",
|
||||
"> c #A699A289A699",
|
||||
", c #618565956185",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #861786178617",
|
||||
"2 c #492449244924",
|
||||
"3 c #8E388E388E38",
|
||||
"4 c #596559655965",
|
||||
"5 c #CF3CCB2BCF3C",
|
||||
"6 c #618561856185",
|
||||
"7 c #DF7DDB6CDF7D",
|
||||
"8 c #C71BC30BC71B",
|
||||
"9 c #AEBAAAAAAEBA",
|
||||
"0 c #8E388A288E38",
|
||||
"q c #49244D344924",
|
||||
"w c #9E799E799E79",
|
||||
"e c #79E77DF779E7",
|
||||
"r c #965892489658",
|
||||
"t c #71C671C671C6",
|
||||
"y c #514451445144",
|
||||
"u c #9E799A699E79",
|
||||
"i c #861782078617",
|
||||
"p c #69A66DB669A6",
|
||||
"a c #514455555144",
|
||||
"s c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@@#$%& ",
|
||||
" *=====@-$%& ",
|
||||
" *=======+;:>, ",
|
||||
" .========+*X<12 ",
|
||||
" O========+*X%34 ",
|
||||
" +========O;5<36 ",
|
||||
" .@=======@#78906q ",
|
||||
" X@======@O;Xowe4q ",
|
||||
" o#@====@O*$89rtyq ",
|
||||
" $-+++O#;$:%ui6q ",
|
||||
" %$;**;7X8%w0py2 ",
|
||||
" &%:XX58o9u0taqs ",
|
||||
" &><%<9wripaqs ",
|
||||
" ,1330et6yqs ",
|
||||
" 24664yq2s ",
|
||||
" qqq ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,75 +0,0 @@
|
||||
/* XPM */
|
||||
char * high1_xpm[] = {
|
||||
"32 32 40 1",
|
||||
" c None",
|
||||
". c #D75CD34CD75C",
|
||||
"X c #CF3CCF3CCF3C",
|
||||
"o c #BEFBBAEABEFB",
|
||||
"O c #F7DEF3CEF7DE",
|
||||
"+ c #F7DEF7DEF7DE",
|
||||
"@ c #FFFFFBEEFFFF",
|
||||
"# c #EFBEEBADEFBE",
|
||||
"$ c #D75CD75CD75C",
|
||||
"% c #B6DAB2CAB6DA",
|
||||
"& c #79E779E779E7",
|
||||
"* c #E79DE79DE79D",
|
||||
"= c #FFFFFFFFFFFF",
|
||||
"- c #EFBEEFBEEFBE",
|
||||
"; c #E79DE38DE79D",
|
||||
": c #C71BC71BC71B",
|
||||
"> c #A699A289A699",
|
||||
", c #618565956185",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #861786178617",
|
||||
"2 c #492449244924",
|
||||
"3 c #8E388E388E38",
|
||||
"4 c #596559655965",
|
||||
"5 c #CF3CCB2BCF3C",
|
||||
"6 c #618561856185",
|
||||
"7 c #DF7DDB6CDF7D",
|
||||
"8 c #C71BC30BC71B",
|
||||
"9 c #AEBAAAAAAEBA",
|
||||
"0 c #8E388A288E38",
|
||||
"q c #49244D344924",
|
||||
"w c #9E799E799E79",
|
||||
"e c #79E77DF779E7",
|
||||
"r c #965892489658",
|
||||
"t c #71C671C671C6",
|
||||
"y c #514451445144",
|
||||
"u c #9E799A699E79",
|
||||
"i c #861782078617",
|
||||
"p c #69A66DB669A6",
|
||||
"a c #514455555144",
|
||||
"s c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@@#$%& ",
|
||||
" *=====@-$%& ",
|
||||
" *=======+;:>, ",
|
||||
" .========+*X<12 ",
|
||||
" O========+*X%34 ",
|
||||
" +========O;5<36 ",
|
||||
" .@=======@#78906q ",
|
||||
" X@======@O;Xowe4q ",
|
||||
" o#@====@O*$89rtyq ",
|
||||
" $-+++O#;$:%ui6q ",
|
||||
" %$;**;7X8%w0py2 ",
|
||||
" &%:XX58o9u0taqs ",
|
||||
" &><%<9wripaqs ",
|
||||
" ,1330et6yqs ",
|
||||
" 24664yq2s ",
|
||||
" qqq ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,78 +0,0 @@
|
||||
/* XPM */
|
||||
char * high2_xpm[] = {
|
||||
"32 32 43 1",
|
||||
" c None",
|
||||
". c #A699A699A699",
|
||||
"X c #A699A289A699",
|
||||
"o c #965896589658",
|
||||
"O c #BEFBBEFBBEFB",
|
||||
"+ c #CF3CCB2BCF3C",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #C71BC30BC71B",
|
||||
"$ c #B6DAB6DAB6DA",
|
||||
"% c #8E388E388E38",
|
||||
"& c #69A669A669A6",
|
||||
"* c #D75CD75CD75C",
|
||||
"= c #DF7DDB6CDF7D",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #965892489658",
|
||||
": c #DF7DDF7DDF7D",
|
||||
"> c #E79DE38DE79D",
|
||||
", c #D75CD34CD75C",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #9E799E799E79",
|
||||
"2 c #861786178617",
|
||||
"3 c #596559655965",
|
||||
"4 c #E79DE79DE79D",
|
||||
"5 c #B6DAB2CAB6DA",
|
||||
"6 c #71C671C671C6",
|
||||
"7 c #492449244924",
|
||||
"8 c #F7DEF7DEF7DE",
|
||||
"9 c #71C675D671C6",
|
||||
"0 c #514455555144",
|
||||
"q c #FFFFFFFFFFFF",
|
||||
"w c #BEFBBAEABEFB",
|
||||
"e c #F7DEF3CEF7DE",
|
||||
"r c #AEBAAAAAAEBA",
|
||||
"t c #9E799A699E79",
|
||||
"y c #8E388A288E38",
|
||||
"u c #49244D344924",
|
||||
"i c #861782078617",
|
||||
"p c #69A66DB669A6",
|
||||
"a c #79E779E779E7",
|
||||
"s c #618565956185",
|
||||
"d c #514451445144",
|
||||
"f c #618561856185",
|
||||
"g c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@#$.%& ",
|
||||
" $*==*-#$.;& ",
|
||||
" $=:>:=,+O<123 ",
|
||||
" .*:>4>=*+O5X%67 ",
|
||||
" O=>4>8:,+O5X%90 ",
|
||||
" +=:>8qq-@w<1%93 ",
|
||||
" .@*==:e=+#$rty93u ",
|
||||
" X#-,*,*-#w<Xoip0u ",
|
||||
" o$#+++@#w5.tyasdu ",
|
||||
" .$OOOw$<.1%ip3u ",
|
||||
" %.<55<rXt%i9fd7 ",
|
||||
" &;1XX1toyi9sdug ",
|
||||
" &2%%%yiapfdug ",
|
||||
" 36999ps3dug ",
|
||||
" 70330du7g ",
|
||||
" uuu ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
109
plug-ins/MapObject/mapobject_stock.c
Normal file
@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "mapobject_stock.h"
|
||||
|
||||
#include "../Lighting/images/stock-pixbufs.h"
|
||||
|
||||
|
||||
static GtkIconFactory *mapobject_icon_factory = NULL;
|
||||
|
||||
static GtkStockItem mapobject_stock_items[] =
|
||||
{
|
||||
{ STOCK_INTENSITY_AMBIENT_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_INTENSITY_AMBIENT_HIGH, NULL, 0, 0, NULL },
|
||||
{ STOCK_INTENSITY_DIFFUSE_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_INTENSITY_DIFFUSE_HIGH, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_DIFFUSE_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_DIFFUSE_HIGH, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_SPECULAR_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_SPECULAR_HIGH, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_HIGHLIGHT_LOW, NULL, 0, 0, NULL },
|
||||
{ STOCK_REFLECTIVITY_HIGHLIGHT_HIGH, NULL, 0, 0, NULL }
|
||||
};
|
||||
|
||||
|
||||
static void
|
||||
add_stock_icon (const gchar *stock_id,
|
||||
GtkIconSize size,
|
||||
const guint8 *inline_data)
|
||||
{
|
||||
GtkIconSource *source;
|
||||
GtkIconSet *set;
|
||||
GdkPixbuf *pixbuf;
|
||||
|
||||
source = gtk_icon_source_new ();
|
||||
|
||||
gtk_icon_source_set_size (source, size);
|
||||
gtk_icon_source_set_size_wildcarded (source, FALSE);
|
||||
|
||||
pixbuf = gdk_pixbuf_new_from_inline (-1, inline_data, FALSE, NULL);
|
||||
|
||||
gtk_icon_source_set_pixbuf (source, pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
|
||||
set = gtk_icon_set_new ();
|
||||
|
||||
gtk_icon_set_add_source (set, source);
|
||||
gtk_icon_source_free (source);
|
||||
|
||||
gtk_icon_factory_add (mapobject_icon_factory, stock_id, set);
|
||||
|
||||
gtk_icon_set_unref (set);
|
||||
}
|
||||
|
||||
void
|
||||
mapobject_stock_init (void)
|
||||
{
|
||||
static gboolean initialized = FALSE;
|
||||
|
||||
if (initialized)
|
||||
return;
|
||||
|
||||
mapobject_icon_factory = gtk_icon_factory_new ();
|
||||
|
||||
add_stock_icon (STOCK_INTENSITY_AMBIENT_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_intensity_ambient_low);
|
||||
add_stock_icon (STOCK_INTENSITY_AMBIENT_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_intensity_ambient_high);
|
||||
add_stock_icon (STOCK_INTENSITY_DIFFUSE_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_intensity_diffuse_low);
|
||||
add_stock_icon (STOCK_INTENSITY_DIFFUSE_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_intensity_diffuse_high);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_DIFFUSE_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_diffuse_low);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_DIFFUSE_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_diffuse_high);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_SPECULAR_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_specular_low);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_SPECULAR_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_specular_high);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_HIGHLIGHT_LOW, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_highlight_low);
|
||||
add_stock_icon (STOCK_REFLECTIVITY_HIGHLIGHT_HIGH, GTK_ICON_SIZE_BUTTON,
|
||||
stock_reflectivity_highlight_high);
|
||||
|
||||
gtk_icon_factory_add_default (mapobject_icon_factory);
|
||||
|
||||
gtk_stock_add_static (mapobject_stock_items,
|
||||
G_N_ELEMENTS (mapobject_stock_items));
|
||||
}
|
38
plug-ins/MapObject/mapobject_stock.h
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __MAPOBJECT_STOCK_H__
|
||||
#define __MAPOBJECT_STOCK_H__
|
||||
|
||||
|
||||
#define STOCK_INTENSITY_AMBIENT_LOW "intensity-ambient-low"
|
||||
#define STOCK_INTENSITY_AMBIENT_HIGH "intensity-ambient-high"
|
||||
#define STOCK_INTENSITY_DIFFUSE_LOW "intensity-diffuse-low"
|
||||
#define STOCK_INTENSITY_DIFFUSE_HIGH "intensity-diffuse-high"
|
||||
#define STOCK_REFLECTIVITY_DIFFUSE_LOW "reflectivity-diffuse-low"
|
||||
#define STOCK_REFLECTIVITY_DIFFUSE_HIGH "reflectivity-diffuse-high"
|
||||
#define STOCK_REFLECTIVITY_SPECULAR_LOW "reflectivity-specular-low"
|
||||
#define STOCK_REFLECTIVITY_SPECULAR_HIGH "reflectivity-specular-high"
|
||||
#define STOCK_REFLECTIVITY_HIGHLIGHT_LOW "reflectivity-highlight-low"
|
||||
#define STOCK_REFLECTIVITY_HIGHLIGHT_HIGH "reflectivity-highlight-high"
|
||||
|
||||
|
||||
void mapobject_stock_init (void);
|
||||
|
||||
|
||||
#endif /* __MAPOBJECT_STOCK_H__ */
|
@ -13,20 +13,10 @@
|
||||
#include "mapobject_apply.h"
|
||||
#include "mapobject_preview.h"
|
||||
#include "mapobject_main.h"
|
||||
#include "mapobject_stock.h"
|
||||
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
#include "amb1.xpm"
|
||||
#include "amb2.xpm"
|
||||
#include "diffint1.xpm"
|
||||
#include "diffint2.xpm"
|
||||
#include "diffref1.xpm"
|
||||
#include "diffref2.xpm"
|
||||
#include "specref1.xpm"
|
||||
#include "specref2.xpm"
|
||||
#include "high1.xpm"
|
||||
#include "high2.xpm"
|
||||
|
||||
|
||||
GdkGC *gc = NULL;
|
||||
GtkWidget *previewarea = NULL;
|
||||
@ -826,8 +816,8 @@ create_material_page (void)
|
||||
GtkWidget *label;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *spinbutton;
|
||||
GtkWidget *image;
|
||||
GtkObject *adj;
|
||||
GtkWidget *pixmap;
|
||||
|
||||
page = gtk_vbox_new (FALSE, 12);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (page), 12);
|
||||
@ -848,10 +838,11 @@ create_material_page (void)
|
||||
|
||||
/* Ambient intensity */
|
||||
|
||||
pixmap = gimp_pixmap_new (amb1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_INTENSITY_AMBIENT_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
|
||||
_("Ambient:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.ambient_int,
|
||||
@ -868,17 +859,19 @@ create_material_page (void)
|
||||
_("Amount of original color to show where no "
|
||||
"direct light falls"), NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (amb2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 0, 1,
|
||||
image = gtk_image_new_from_stock (STOCK_INTENSITY_AMBIENT_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
/* Diffuse intensity */
|
||||
|
||||
pixmap = gimp_pixmap_new (diffint1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_INTENSITY_DIFFUSE_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("Diffuse:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.diffuse_int,
|
||||
@ -895,10 +888,11 @@ create_material_page (void)
|
||||
_("Intensity of original color when lit by a light "
|
||||
"source"), NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (diffint2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 1, 2,
|
||||
image = gtk_image_new_from_stock (STOCK_INTENSITY_DIFFUSE_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
frame = gimp_frame_new (_("Reflectivity"));
|
||||
gtk_box_pack_start (GTK_BOX (page), frame, FALSE, FALSE, 0);
|
||||
@ -916,10 +910,11 @@ create_material_page (void)
|
||||
|
||||
/* Diffuse reflection */
|
||||
|
||||
pixmap = gimp_pixmap_new (diffref1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_DIFFUSE_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
|
||||
_("Diffuse:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.diffuse_ref,
|
||||
@ -936,17 +931,19 @@ create_material_page (void)
|
||||
_("Higher values makes the object reflect more "
|
||||
"light (appear lighter)"), NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (diffref2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 0, 1,
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_DIFFUSE_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
/* Specular reflection */
|
||||
|
||||
pixmap = gimp_pixmap_new (specref1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_SPECULAR_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
|
||||
_("Specular:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.specular_ref,
|
||||
@ -963,17 +960,19 @@ create_material_page (void)
|
||||
_("Controls how intense the highlights will be"),
|
||||
NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (specref2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 1, 2,
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_SPECULAR_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
/* Highlight */
|
||||
|
||||
pixmap = gimp_pixmap_new (high1_xpm);
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_HIGHLIGHT_LOW,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
|
||||
_("Highlight:"), 0.0, 0.5,
|
||||
pixmap, 1, FALSE);
|
||||
image, 1, FALSE);
|
||||
gtk_size_group_add_widget (group, label);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj, mapvals.material.highlight,
|
||||
@ -990,10 +989,11 @@ create_material_page (void)
|
||||
_("Higher values makes the highlights more focused"),
|
||||
NULL);
|
||||
|
||||
pixmap = gimp_pixmap_new (high2_xpm);
|
||||
gtk_table_attach (GTK_TABLE (table), pixmap, 3, 4, 2, 3,
|
||||
image = gtk_image_new_from_stock (STOCK_REFLECTIVITY_HIGHLIGHT_HIGH,
|
||||
GTK_ICON_SIZE_BUTTON);
|
||||
gtk_table_attach (GTK_TABLE (table), image, 3, 4, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
gtk_widget_show (pixmap);
|
||||
gtk_widget_show (image);
|
||||
|
||||
gtk_widget_show (page);
|
||||
|
||||
|
@ -1,75 +0,0 @@
|
||||
/* XPM */
|
||||
char * specref1_xpm[] = {
|
||||
"32 32 40 1",
|
||||
" c None",
|
||||
". c #A699A699A699",
|
||||
"X c #A699A289A699",
|
||||
"o c #965896589658",
|
||||
"O c #BEFBBEFBBEFB",
|
||||
"+ c #CF3CCB2BCF3C",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #C71BC30BC71B",
|
||||
"$ c #B6DAB6DAB6DA",
|
||||
"% c #8E388E388E38",
|
||||
"& c #69A669A669A6",
|
||||
"* c #D75CD75CD75C",
|
||||
"= c #DF7DDB6CDF7D",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #965892489658",
|
||||
": c #DF7DDF7DDF7D",
|
||||
"> c #E79DE38DE79D",
|
||||
", c #D75CD34CD75C",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #9E799E799E79",
|
||||
"2 c #861786178617",
|
||||
"3 c #596559655965",
|
||||
"4 c #E79DE79DE79D",
|
||||
"5 c #B6DAB2CAB6DA",
|
||||
"6 c #71C671C671C6",
|
||||
"7 c #492449244924",
|
||||
"8 c #71C675D671C6",
|
||||
"9 c #514455555144",
|
||||
"0 c #BEFBBAEABEFB",
|
||||
"q c #AEBAAAAAAEBA",
|
||||
"w c #9E799A699E79",
|
||||
"e c #8E388A288E38",
|
||||
"r c #49244D344924",
|
||||
"t c #861782078617",
|
||||
"y c #69A66DB669A6",
|
||||
"u c #79E779E779E7",
|
||||
"i c #618565956185",
|
||||
"p c #514451445144",
|
||||
"a c #618561856185",
|
||||
"s c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@#$.%& ",
|
||||
" $*==*-#$.;& ",
|
||||
" $=:>:=,+O<123 ",
|
||||
" .*:>4>=*+O5X%67 ",
|
||||
" O=>4>>=,+O5X%89 ",
|
||||
" +=:>>:*-@0<1%83 ",
|
||||
" .@*===*,+#$qwe83r ",
|
||||
" X#-,*,-+#0<Xoty9r ",
|
||||
" o$#+++@#05.weuipr ",
|
||||
" .$OOO0$<.1%ty3r ",
|
||||
" %.<55<qXw%t8ap7 ",
|
||||
" &;1XX1woet8iprs ",
|
||||
" &2%%%etuyaprs ",
|
||||
" 36888yi3prs ",
|
||||
" 79339pr7s ",
|
||||
" rrr ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -1,79 +0,0 @@
|
||||
/* XPM */
|
||||
char * specref2_xpm[] = {
|
||||
"32 32 44 1",
|
||||
" c None",
|
||||
". c #A699A699A699",
|
||||
"X c #A699A289A699",
|
||||
"o c #965896589658",
|
||||
"O c #BEFBBEFBBEFB",
|
||||
"+ c #CF3CCB2BCF3C",
|
||||
"@ c #C71BC71BC71B",
|
||||
"# c #C71BC30BC71B",
|
||||
"$ c #B6DAB6DAB6DA",
|
||||
"% c #8E388E388E38",
|
||||
"& c #69A669A669A6",
|
||||
"* c #D75CD75CD75C",
|
||||
"= c #DF7DDB6CDF7D",
|
||||
"- c #CF3CCF3CCF3C",
|
||||
"; c #965892489658",
|
||||
": c #DF7DDF7DDF7D",
|
||||
"> c #E79DE38DE79D",
|
||||
", c #D75CD34CD75C",
|
||||
"< c #AEBAAEBAAEBA",
|
||||
"1 c #9E799E799E79",
|
||||
"2 c #861786178617",
|
||||
"3 c #596559655965",
|
||||
"4 c #E79DE79DE79D",
|
||||
"5 c #EFBEEFBEEFBE",
|
||||
"6 c #B6DAB2CAB6DA",
|
||||
"7 c #71C671C671C6",
|
||||
"8 c #492449244924",
|
||||
"9 c #FFFFFBEEFFFF",
|
||||
"0 c #FFFFFFFFFFFF",
|
||||
"q c #71C675D671C6",
|
||||
"w c #514455555144",
|
||||
"e c #EFBEEBADEFBE",
|
||||
"r c #BEFBBAEABEFB",
|
||||
"t c #AEBAAAAAAEBA",
|
||||
"y c #9E799A699E79",
|
||||
"u c #8E388A288E38",
|
||||
"i c #49244D344924",
|
||||
"p c #861782078617",
|
||||
"a c #69A66DB669A6",
|
||||
"s c #79E779E779E7",
|
||||
"d c #618565956185",
|
||||
"f c #514451445144",
|
||||
"g c #618561856185",
|
||||
"h c #410345144103",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .Xo ",
|
||||
" .O+@#$.%& ",
|
||||
" $*==*-#$.;& ",
|
||||
" $=:>:=,+O<123 ",
|
||||
" .*:4454*+O6X%78 ",
|
||||
" O=>4900>+O6X%qw ",
|
||||
" +=:5000e+r<1%q3 ",
|
||||
" .@*=4009=#$tyuq3i ",
|
||||
" X#-,*>e=@r<Xopawi ",
|
||||
" o$#++++#r6.yusdfi ",
|
||||
" .$OOOr$<.1%pa3i ",
|
||||
" %.<66<tXy%pqgf8 ",
|
||||
" &;1XX1youpqdfih ",
|
||||
" &2%%%upsagfih ",
|
||||
" 37qqqad3fih ",
|
||||
" 8w33wfi8h ",
|
||||
" iii ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
@ -51,7 +51,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#ifdef __GNUC__
|
||||
#warning GIMP_DISABLE_DEPRECATED
|
||||
#endif
|
||||
#undef GIMP_DISABLE_DEPRECATED
|
||||
|
||||
#include <libgimp/gimp.h>
|
||||
#include <libgimp/gimpui.h>
|
||||
|