LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 14 of 14
Search took 0.03 seconds.
Search: Posts Made By: hazel
Forum: Programming 04-09-2024, 10:08 AM
Replies: 27
Views: 625
Posted By hazel
Just to tidy up: I've rewritten the drawing of...

Just to tidy up: I've rewritten the drawing of all the glyphs that looked wrong and the new gtk3 version is now installed. As far as I can see, it works perfectly. In fact the stave interface is...
Forum: Programming 04-05-2024, 03:39 AM
Replies: 27
Views: 625
Posted By hazel
It compiles! Hallelujah! It's still rather buggy:...

It compiles! Hallelujah! It's still rather buggy: the edit function doesn't work yet, but I'm sure I can fix that. The glyphs (other than actual notes) mostly look awful but they can be improved...
Forum: Programming 04-03-2024, 04:39 AM
Replies: 27
Views: 625
Posted By hazel
You'll laugh! We already have the GList of...

You'll laugh! We already have the GList of glyphs! I'd completely forgotten about it, which shows you how long ago it is that I wrote this bloody thing. Of course when you use a program habitually,...
Forum: Programming 04-02-2024, 07:38 AM
Replies: 27
Views: 625
Posted By hazel
You misunderstand. I need to do this in stages,...

You misunderstand. I need to do this in stages, because I shall get completely mixed up otherwise. So stage 1 will be a simple conversion from gtk2/gdk2 to gtk3/cairo without changing the logic of...
Forum: Programming 04-02-2024, 12:35 AM
Replies: 27
Views: 625
Posted By hazel
Ha ha! That's what I'm doing already. You can't...

Ha ha! That's what I'm doing already. You can't write a program as complex as this without using a few structs. It's just impossible.

I use two in this program actually and I don't know what I'd...
Forum: Programming 04-01-2024, 11:05 AM
Replies: 27
Views: 625
Posted By hazel
Yes, that could be one solution. There are a...

Yes, that could be one solution. There are a couple of gdk-cairo interface functions to translate pixbufs into cairo surfaces and vice versa.
Solution number 2! It means essentially going back to...
Forum: Programming 04-01-2024, 08:29 AM
Replies: 27
Views: 625
Posted By hazel
No, you've lost me again! Here's how it works at...

No, you've lost me again! Here's how it works at present:

You select a glyph type (say a crotchet) and click on the stave where you want it to go. Two button-press handlers are activated: the...
Forum: Programming 04-01-2024, 01:35 AM
Replies: 27
Views: 625
Posted By hazel
I think there's a slight misunderstanding here....

I think there's a slight misunderstanding here. pmwScribe is not a complete music-writing program. Such a thing would be far beyond my capacity. As its name suggests, pmwScribe is just a convenient...
Forum: Programming 03-31-2024, 11:37 AM
Replies: 27
Views: 625
Posted By hazel
I think I have found what I'm going to need: ...

I think I have found what I'm going to need:

gdk_cairo_set_source_window and gdk_cairo_set_source_pixbuf should handle the copying between the two images: the window becomes the source during the...
Forum: Programming 03-31-2024, 11:19 AM
Replies: 27
Views: 625
Posted By hazel
Ok. I've rejigged everything so that all primary...

Ok. I've rejigged everything so that all primary drawing is now on the drawing area itself and not the pixbuf. I found some code on Stackoverflow for getting a cairo context for the widget (you get a...
Forum: Programming 03-28-2024, 01:26 PM
Replies: 27
Views: 625
Posted By hazel
Thank you Tekk. That will take a bit of...

Thank you Tekk. That will take a bit of digesting. Actually I don't really draw on this widget with my mouse. I just select notes and rests from a musical toolbox and click on the stave where I want...
Forum: Programming 03-28-2024, 01:05 PM
Replies: 27
Views: 625
Posted By hazel
Ah! That's something I never considered. As I...

Ah! That's something I never considered. As I said before, this program was originally written using gtk2 with gdk2 graphics. I found, in some online source or other, a way of writing to a...
Forum: Programming 03-28-2024, 10:43 AM
Replies: 27
Views: 625
Posted By hazel
Thanks. Presumably I'll need a separate context...

Thanks. Presumably I'll need a separate context for the transfer from the one I've been using for drawing on the pixbuf. Can I get the surface (now the source) from the old context (which I assume...
Forum: Programming 03-28-2024, 10:04 AM
Replies: 27
Views: 625
Posted By hazel
Another cairo problem: transferring data between gtk drawing area and backup cairo surface

So I have managed to draw all the musical glyphs that I need (except for crotchet rest, which still looks all wrong). Now I have a more fundamental problem.

The way pmwScribe works is that you pin...
Showing results 1 to 14 of 14

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 06:50 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration