Drawing to Canvas
by Dennis Coyle III
Hi,
I am new to developing for inkscape and was wondering about drawing to the
canvas. I've been digging through the src and have figured a few things out
but I am still unclear as to which #include files I need add specifically
and what the proper functions to call are. Any help would be much
appreciated.
Thanks,
Dennis
10 years, 4 months
Posting
by Dennis Coyle III
I have some questions to ask about the dev process for inkscape and would
like to be added to the listing.
10 years, 4 months
SCALE 11x Booth
by Jon Cruz
Hi guys!
Once again Inkscape has exhibit space to run a booth at SCALE 11x
The Eleventh Annual Southern California Linux Expo
February 22-24, 2013
Hilton Los Angeles International Airport
http://www.socallinuxexpo.org/scale11x
If anyone out there can lend some time and spend a little time in the booth, please let us know. We have a set of free conference tickets for people participating.
Thanks!
p.s. apologies that this note is a bit brief, as I'm frantically packing up for flying to a different conference tomorrow.
10 years, 4 months
pathv_to_linear_and_cubic_beziers, only to linear?
by mathog
Is there somewhere in Inkscape a function equivalent to:
pathv_to_linear_and_cubic_beziers()
which only outputs a polyline/polygon instead of a polybezier? The
output format
I am working on now has the former types, but not the latter.
Thanks,
David Mathog
mathog@...1176...
Manager, Sequence Analysis Facility, Biology Division, Caltech
10 years, 4 months
Ideating
by Arshdeep Singh
I have a new idea to do something in Inkscape that will help the artists a
lot.
*
*
*For the same I have been digging into the files:*
fill-and-stroke.(cpp+h)
paint-selector.(cpp+h)
fill-style.(cpp+h)
I could figure out all the details of how the FiLL and STROKE dialog box
is drawn plus how it interacts with the objects. What I don't get is the
code where the changes are actually applied to the selected objects on the
canvas(desktop).
*Facts I already know:*
1.) in Inkscape, there are two representations of the document being worked
on: Object and XML.
2.) Changes in the XML Representation is automatically reflected in GObject
Representation but not vice versa.
Please help !
--
demicoder
10 years, 4 months
Origins
by Arshdeep Singh
Can someone explain to me the origins of the function manage() quoted below
in fill-and-stroke,cpp at L:134 ?
' fillWdgt = manage(sp_fill_style_widget_new()); '
---
demicoder
10 years, 4 months
IE svg previewer.
by Mark T
Hi,
Every now & then I search for a viewer.
I use many OS's and recent Linux distros preview svg's well.
Though I'm a bit stuck on a Vista box for dev-environ reasons.
More Ruby done here.
So I'm asking if anyone can install & test this.
As I am getting a registration error, noted on issues page.
If there is reg-err, can anyone fix?
https://code.google.com/p/svg-explorer-extension/
MarkT
--
:: チェックアウトが、Jingle だ! ::It's a Jingle Out There!
10 years, 4 months
Inkscape and clipboard (mac and others)
by Valerio Aimale
Re Inkscape clipboard, I believe there are two major problems :
1) General to all platforms, the fact that Inkscape spends time at exit,
putting items on the clipboard:
I believe that Inkscape current behavior is the correct one.
Placing items on the clipboard is an expensive operation. Most operating
systems have switched to a "delayed clipboard request fulfilling" model:
an app offers items on the clipboard, at the user request, but does not
actually pass them to the OS. Only when another app requests the clip,
the original app fulfills the request. On exit, if the app owns the
promised items on the clipboard, the OS will request to fulfill
placement of items on the clipboard, to make them available to other apps.
The reason for that behavior is that it makes apps look nicer. If all
"copy" requests were to be materialized in the clipboard immediately,
the user would have to wait a significant amount of time when he/she
presses Cmd-C. It is especially true of Inkscape. Inkscape's cut and
past operations are especially expensive, because the have to go through
uniconverter.
By delaying clipboard requests fulfillment, the user as a better
experience: when he requests a paste in another app, the app who own the
clipboard item is the the background and can fulfill the request at any
speed, without annoying the user. Materializing items in the clipboard
at exit does not annoy the user, because the user is focus on other
activities and does not mind a rather slow app exit.
2) Mac specific:
Inkscape+quartz cannot interact with the clipboard, due to the fact that
the gtk library + quartz backend does not do a proper job of translating
mime-types to Uniform Type Identifier, and vice-versa.
The patch below, should fix properly gtk2+quartz, but I'm still testing it.
Valerio
Patch:
diff -Naur gtk/gtkquartz.c gtk/gtkquartz.c
--- gtk/gtkquartz.c 2011-11-22 05:36:41.000000000 -0700
+++ gtk/gtkquartz.c 2013-01-18 09:25:59.000000000 -0700
@@ -80,16 +80,16 @@
static NSString *
target_to_pasteboard_type (const char *target)
{
- if (strcmp (target, "UTF8_STRING") == 0)
- return NSStringPboardType;
- else if (strcmp (target, "image/tiff") == 0)
- return NSTIFFPboardType;
- else if (strcmp (target, "application/x-color") == 0)
- return NSColorPboardType;
- else if (strcmp (target, "text/uri-list") == 0)
- return NSURLPboardType;
- else
- return [NSString stringWithUTF8String:target];
+ NSString *str;
+ CFStringRef uti;
+
+ if (strcmp (target, "UTF8_STRING") == 0)
+ return NSStringPboardType;
+ else {
+ str = [[NSString alloc] initWithUTF8String:target];
+ uti = UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType,
(CFStringRef)str, NULL);
+ return (NSString *) uti;
+ }
}
NSSet *
@@ -127,16 +127,14 @@
GdkAtom
_gtk_quartz_pasteboard_type_to_atom (NSString *type)
{
+ NSString *str;
+
if ([type isEqualToString:NSStringPboardType])
return gdk_atom_intern_static_string ("UTF8_STRING");
- else if ([type isEqualToString:NSTIFFPboardType])
- return gdk_atom_intern_static_string ("image/tiff");
- else if ([type isEqualToString:NSColorPboardType])
- return gdk_atom_intern_static_string ("application/x-color");
- else if ([type isEqualToString:NSURLPboardType])
- return gdk_atom_intern_static_string ("text/uri-list");
- else
- return gdk_atom_intern ([type UTF8String], FALSE);
+ else {
+ str = (NSString
*)UTTypeCopyPreferredTagWithClass((CFStringRef)type, kUTTagClassMIMEType);
+ return gdk_atom_intern([str UTF8String], FALSE);
+ }
}
GList *
10 years, 4 months