Playing with colors
by Jon A. Cruz
I just checked in a change to start some experimentation with linked
colors.
There are various technical things this will let me play with
internally, but the immediate visible effect is that palettes can be
edited and can have linked colors.
To enable things, a .gpl palette file needs to have some 'magic'
strings in its names.
I'm looking for "*{" and "}*" as delimiters. Within those some
letters can go in
'E' will make the color editable. This allows you to drop colors onto
the palette entry.
'S' will make a color a 'shade' or 'tone' of another color. It
requires parenthesis with two or three comma-separated integer values
in it.
the first number is the index in that palette to link to
the second number is the percentage to mix with either black (for
shades) or some gray (for tones).
the optional third number is the gray percentage to mix with. (if
present, makes it a tone. If missing, this will make it a shade)
'T' will make a color a 'tint' of another color. It requires two
comma-separated integer values in it
the first number is the index in that palette to link to
the second number is the percentage to mix with white.
Some examples:
...
204 255 102 CCFF66 *{E}*
102 255 255 66FFFF *{ES(4,25)}* lkj
102 255 51 66FF33 *{ES(4,25,33)}*
102 255 0 66FF00 *{ET( 4, 25 )}*
51 255 255 33FFFF *{ET(4,75)}*
This markup is very temporary, and was only put in as a way to enable
testing of some of the color things themselves. (Also... the actual
color manipulations might be off right now, as color change accuracy
is not as important as the initial linking behavior.)
Oh, and if you tweak a palette successfully, then you should see
magic arrows show up in the swatches UI.
17 years, 8 months
Unparents removed
by Ted Gould
I removed the unparent, so it should (in theory) compile on GTKmm 2.4.x
now.
--Ted
17 years, 8 months
compilation error on debian
by jiho
hello, tying to compile latest svn on debian got me this.
is this a change in inkscape that requires a recent version of gtkmm?
mine is: 2.4.10-1
make[2]: Entering directory `/home/jiho/softwares/inkscape/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2
-pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/orbit-2.0 -I/usr/include/freetype2
-I/usr/X11R6/include -DPOTRACE=\"potrace\" -DXTHREADS -pthread
-I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include
-I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include
-I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include
-I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/libxml2
-I../cxxtest -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare
-Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 -MT
ui/dialog/extension-editor.o -MD -MP -MF
"ui/dialog/.deps/extension-editor.Tpo" \
-c -o ui/dialog/extension-editor.o `test -f
'ui/dialog/extension-editor.cpp' || echo
'./'`ui/dialog/extension-editor.cpp; \
then mv -f "ui/dialog/.deps/extension-editor.Tpo"
"ui/dialog/.deps/extension-editor.Po"; \
else rm -f "ui/dialog/.deps/extension-editor.Tpo"; exit 1; \
fi
/usr/include/gtkmm-2.4/gtkmm/widget.h: In member function `void
Inkscape::UI::Dialog::ExtensionEditor::on_pagelist_selection_changed()':
/usr/include/gtkmm-2.4/gtkmm/widget.h:2440: error: `void
Gtk::Widget::unparent()' is protected
ui/dialog/extension-editor.cpp:163: error: within this context
/usr/include/gtkmm-2.4/gtkmm/widget.h:2440: error: `void
Gtk::Widget::unparent()' is protected
ui/dialog/extension-editor.cpp:175: error: within this context
/usr/include/gtkmm-2.4/gtkmm/widget.h:2440: error: `void
Gtk::Widget::unparent()' is protected
ui/dialog/extension-editor.cpp:187: error: within this context
make[2]: *** [ui/dialog/extension-editor.o] Error 1
make[2]: Leaving directory `/home/jiho/softwares/inkscape/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jiho/softwares/inkscape'
make: *** [all] Error 2
thank you in advance for any help.
--
Jean-Olivier Irisson
---
Windows, c'est un peu comme le beaujolais nouveau :
a chaque nouvelle cuvee on sait que ce sera degueulasse,
mais on en prend quand meme par masochisme.
---
Personal address:
Château St Martin, 66200 Elne, France
Professional address:
EPHE- UMR CNRS 8046, 52 av Paul Alduy, 66860 Perpignan Cedex, France
Mobile: 06 21 05 19 90
Web site: http://jo.irisson.free.fr/work/
17 years, 8 months
Re: [Inkscape-devel] Copy and Paste
by Martin Owens
It would save a menu space and work through standard copy/paste keys.
On Wed, 29 Mar 2006 16:39:28 +0200 , David Christian Berg <david@...407...> wrote:
>Hey Owen,
>
>could you please elaborate in how this is different from "Paste Style"
>in the edit menu?
>
>Take care!
>
>David
>
>On Tue, 2006-03-28 at 10:23 +0100, Martin Owens wrote:
>> thinking about this new functionality,
>>
>> What I would is to beable to go to the styles pannel, have an icon or keyb which fill copy the style (border, fill, everything) and allow you to paste it onto another object, the other object would understand the information on the clipboard was a style and not an object or a size ect.
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>_______________________________________________
>Inkscape-devel mailing list
>Inkscape-devel(a)lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/inkscape-devel
>
>
>
--
#::::::::::::::::::::::::::::::::::::#
#::.. http://www.doctormo.co.uk/ ..::#
#::::::::::::::::::::::::::::::::::::#
17 years, 8 months
Copy and Paste
by Martin Owens
thinking about this new functionality,
What I would is to beable to go to the styles pannel, have an icon or keyb which fill copy the style (border, fill, everything) and allow you to paste it onto another object, the other object would understand the information on the clipboard was a style and not an object or a size ect.
--
#::::::::::::::::::::::::::::::::::::#
#::.. http://www.doctormo.co.uk/ ..::#
#::::::::::::::::::::::::::::::::::::#
17 years, 8 months
NEW: node tool speedup
by bulia byak
Switching to and from the Node tool (with a path selected), as well as
selecting nodes in that tool, have been significantly optimized and
are now about five times faster than before. This is especially
noticeable when working with complex paths; with these optimizations,
paths containing several thousand nodes, though still slow, are much
more usable.
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org
17 years, 8 months
Errors compiling on FC5 with gcc 4.1
by Tavmjong Bah
Hi,
Got a few compile errors using svn with Fedora Core 5 which uses g++
4.1. I could fix the first one by a cast but I am afraid my c++ is a bit
too rusty when it comes to the second.
Tav
ui/dialog/align-and-distribute.cpp:1077: error: conversion from ‘int’ to
non-scalar type ‘std::_List_iterator<SPItem*>’ requested
ui/view/edit-widget.cpp: In member function ‘void
Inkscape::UI::View::EditWidget::initEdit(SPDocument*)’:
ui/view/edit-widget.cpp:1560: error: ‘_namedview_modified’ was not
declared in this scope
17 years, 8 months
NEW: paste size
by bulia byak
Especially in technical drawings, often you need many different
objects to have the same size. It's very tiresome to copy/paste the
numbers in the W/H fields. So:
A number of commands are added to easily scale selected objects to
match the size of the object(s) previously copied to the clipboard.
They are all in the Paste Size submenu in Edit menu:
* Paste Size scales the whole selection to match the size of the
clipboard object(s).
* Paste Width scales the whole selection horizontally so that it
matches the width of the clipboard object(s).
* Paste Height scales the whole selection vertically so that it
matches the height of the clipboard object(s).
* Paste Size Separately scales each selected object separately so
that it matches the size of the clipboard object(s).
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org
17 years, 8 months
Where has the tool set gone?
by erikhalbert
I have not seriously played with Inkscape for about six months so I thought
I'll do a complete reinstal. My system is Win2000.
I cleaned out old copies of Inkscape and brought down Inkscape-0603271700
(43.5M).
It appeared to install OK but when I opened it I find that I cannot not use
it because the toolset is missing many of its functions.
All that is there is:
Create rectangles and squares
Select and transform
Create circles, ellipses and arcs
Flip vertically
Flip horizontally
Edit path nodes and
Convert selected object to path
This seems so bizarre.
Either
1. There is a dialog somewhere that sets up a specific toolset.
2. Something is borked.
3. I am doing something really silly because I've been away from Inkscape
too long.
I've had a look around and cannot see anything that looks promising. Can
someone help me out here. I've been using Inkscape for years so I know how
it should behave and it certainly is not doing it now for me.
Thanks, Erik
17 years, 8 months