BDraw v1.8

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#31 Post by RSH »

HI.

I have watched this from time to time and also downloaded. So, I must say: I like this. :D

Last version I've tested was 1.4 - it could not set/paint a single dot.

Suggestion:

Make it able to draw a single dot and insert a function to zoom single dots to (let's say) 8 pixels (for the use of small images).

It could be then a very nice and really useful Icon Editor. :idea: :D :lol:
SFR @ Icon Finder wrote:
RSH wrote:I like this that much, so i have made an icon for it.

Hope you like this.
Sure I do like! Me personally can't draw a straight line, so I always appreciate such a help.
Your icon has been included.
PLEASE!
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#32 Post by SFR »

RSH wrote:Last version I've tested was 1.4 - it could not set/paint a single dot.

Suggestion:

Make it able to draw a single dot and insert a function to zoom single dots to (let's say) 8 pixels (for the use of small images).

It could be then a very nice and really useful Icon Editor. :idea: :D :lol:
Sure you can, just choose "Line", increase stroke-width a bit, and...start making dots.

Just kidding, I know what you mean. :wink:

You can do it this way: choose some bigger drawing area size to get control on details, eg. 480x480, make an icon and then save it as .png with 48x48 resolution.

Zoom option has crossed my mind, but it doesn't make sense really, since it's vector graphic, so even if some part of the picture would be zoomed, you couldn't see its "pixels" anyway.
SFR @ Icon Finder wrote:
RSH wrote:I like this that much, so i have made an icon for it.

Hope you like this.
Sure I do like! Me personally can't draw a straight line, so I always appreciate such a help.
Your icon has been included.
PLEASE!
I'm really hopeless in drawings, isn't that ironic..? :lol:

Thanks & Greetings!
Attachments
dots.png
(24.11 KiB) Downloaded 937 times
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#33 Post by SFR »

I couldn't stop myself: Version 1.6 uploaded.

Only one purpose: performance optimization in critical functions.
Result: ~15% less resource hungry.

Actually it's efficient enough to add (rough) preview for "Freehand" mode, what I did.
"Arc" preview has been improved too - now all stages of creation are shown.

First post updated.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

How do I use this?

#34 Post by Dromeno »

BDraw looks promising but I have no idea how to use it in Lucid Pup 528005 (icewm as window manager)?

bdraw-1.61 reports "something is missing or doesn't work right" and "Double check requirements"

it is not an installable program so I do not know how to check for dependencies

bdraw-1.51 does work but it does not open existing png files, after I click on open picture the program returns to the Welcome to Bdraw dialog

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#35 Post by SFR »

Hey Dromeno
bdraw-1.51 does work but it does not open existing png files, after I click on open picture the program returns to the Welcome to Bdraw dialog
BDraw won't load directly any other image type than .bdr (which is .svg really, but has "one-shape per one-line" layout).
If you'd like to include a .png image in your drawings, just choose "New" and then "Import Clipart" from Toolbox.
bdraw-1.61 reports "something is missing or doesn't work right" and "Double check requirements"

it is not an installable program so I do not know how to check for dependencies
Ok, just launch the app from command line and post the results...

Deps are listed in the first post, but I don't recall including anything new between 1.5.1 -> 1.6.

And since you're running Lupu always choose '<button>' as drawing area in initial window, unless you have upgraded Gtkdialog to >= 0.8.1

There were some problems with IceWM + specific theme(s?) reported earlier and it's been fixed in 1.5.1, but apparently I broke it again in 1.6.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

#36 Post by Dromeno »

The console doesn't show much when I execute bdraw-1.6.sh (see screenshot)

But I am not sure yet if this is the tool I am looking for. What I would like to have is a simple screenshot annotation tool, something which does what shutter for ubuntu can or awesomscreenshot for chrome does
http://awesomescreenshot.com/
take a screenshot, add text / ellipses / arrows, perhaps a text bubble.
I know it can all be done with GIMP but it involves a lot of steps
http://www.makeuseof.com/tag/create-spe ... hots-gimp/

Likely it can be done in mtPaint as well but I have not found a good tutorial yet
Attachments
Bdrawtest.jpg
(125.63 KiB) Downloaded 726 times

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#37 Post by SFR »

What really matters - what's the terminal output when you click 'New', adjust resolution (or not) and click 'Ok'?
Also, what's the name of your current theme? I'll try to recreate the issue.

As for annotation tool, the purpose of BDraw is just to doodle (i.e. there's no arrows and stuff), but as a last resort, why not..? :wink: (see screenshot)

Greetings!
Attachments
BDraw-sample.jpg
(121.33 KiB) Downloaded 564 times
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

Terminal output after clicking click 'New

#38 Post by Dromeno »

Hi SFR

Using icewm theme ElbergBlue-anim

(but I do not think that is important since the same thing happens in JWM)

This is the terminal output after clicking click 'New':

sh-4.1# testbdraw

(gtkdialog5:23535): Gtk-CRITICAL **: gtk_spin_button_new_with_range: assertion `step != 0.0' failed

(gtkdialog5:23535): Gtk-CRITICAL **: gtk_spin_button_set_value: assertion `GTK_IS_SPIN_BUTTON (spin_button)' failed
**
ERROR:variables.c:166:variables_new_with_widget: assertion failed: (widget != NULL)
/usr/local/bin/bdraw-1.6.sh: line 1079: 23535 Aborted $GTKDIALOG -c -p MAIN
sh-4.1#

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#39 Post by SFR »

Ok, I see that <spinbutton> has something to do with this, but I still cannot recreate the issue under Lupu...
Could you post the exact version of Gtkdialog(s) you have installed?

Code: Select all

gtkdialog --version
gtkdialog4 --version
gtkdialog5 --version
Also, it's worth to see how v1.6 works with pfix=ram and (it's a wild guess) with different GTK theme.

Meanwhile I attached version 1.6.1 - I replaced spinbuttons with comboboxtexts, as it was in v1.5.1, so hopefully will work ok for you now.

Greetings!
Attachments
bdraw-1.6.1.sh.gz
(7.3 KiB) Downloaded 580 times
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#40 Post by rhadon »

Hi SFR,

tested 1.6.1 with Slacko 5.4 today, and it's great :D . Really good work. Haven't tested everything, but what I did by now, worked.

Not so with 1.6. Program allways stops quite after choosing picture resolution.

Error message:

Code: Select all

# ./bdraw-1.6.sh

(gtkdialog4:26977): Gtk-CRITICAL **: IA__gtk_spin_button_new_with_range: assertion `step != 0.0' failed

(gtkdialog4:26977): Gtk-CRITICAL **: IA__gtk_spin_button_set_value: assertion `GTK_IS_SPIN_BUTTON (spin_button)' failed
**
ERROR:variables.c:189:variables_new_with_widget: assertion failed: (widget != NULL)
./bdraw-1.6.sh: line 1079: 26977 Aborted                 $GTKDIALOG -c -p MAIN
# 
No matter I used my save file or pfix=ram, original gtkdialog 0.8.2 or new installed gtkdialog version 0.8.4 r503M. As you mentioned in your last post, there seemed to be a problem with the spinbuttons.

No problem for me, because 1.6.1 works fine :wink: .

Cheers and thanks again :D ,

Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#41 Post by SFR »

Hey, thanks a lot for confirmation, Rolf. :D

But it still bugs me I can't recreate this. :?
Anyway, before I replace v1.6 with v1.6.1 in the first post officially, I'd like to test one more thing.

Rolf, if you have a couple of minutes to spare - could you check out this piece of code?
First dialog (taken from v1.6) should produce the above error...but how about subsequent ones..?
Also, there's official spinbutton example script which also works fine for me.

Code: Select all

#!/bin/bash

# This one should invoke GTK error
export MAIN_1='
<window>
  <vbox>
    <text><label>FIRST DIALOG</label></text>
    <hbox>
      <spinbutton range-max="100" range-step="1">
        <variable>SW</variable>
        <default>1</default>
      </spinbutton>        

      <spinbutton range-max="1.0" range-step="0.01">
         <variable>OPAC</variable>
         <default>1.0</default>
      </spinbutton>
    </hbox>
  
    <button><label>Next one please</label></button>
  </vbox>
</window>'

# How about this one?
export MAIN_2='
<window>
  <vbox>
    <text><label>SECOND DIALOG</label></text>
    <hbox>
      <spinbutton range-max="100" range-step="1">
        <variable>SW</variable>
        <default>1</default>
      </spinbutton>        

      <spinbutton range-max="1.00" range-step="0.01">
         <variable>OPAC</variable>
         <default>1.00</default>
      </spinbutton>
    </hbox>
  
    <button><label>Next one please</label></button>
  </vbox>
</window>'

# And finally how about that one...
export MAIN_3='
<window>
  <vbox>
    <text><label>THIRD DIALOG</label></text>
    <hbox>
      <spinbutton range-value="1" range-min="0" range-max="100" range-step="1">
        <variable>SW</variable>
      </spinbutton>        

      <spinbutton range-value="1.00" range-min="0.00" range-max="1.00" range-step="0.01">
         <variable>OPAC</variable>
      </spinbutton>
    </hbox>
    <button ok></button>
  </vbox>
</window>'

gtkdialog -p MAIN_1
gtkdialog -p MAIN_2
gtkdialog -p MAIN_3
Thanks again & Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#42 Post by rhadon »

Hi SFR,

it seems to be a general problem. spinbutton_advanced also doesn't work for me. Error code:

Code: Select all

# ./spinbutton_advanced

(gtkdialog:15952): Gtk-CRITICAL **: IA__gtk_spin_button_new_with_range: assertion `step != 0.0' failed

(gtkdialog:15952): Gtk-CRITICAL **: IA__gtk_spin_button_set_value: assertion `GTK_IS_SPIN_BUTTON (spin_button)' failed
**
ERROR:variables.c:189:variables_new_with_widget: assertion failed: (widget != NULL)
./spinbutton_advanced: line 89: 15952 Aborted                 $GTKDIALOG --program=MAIN_DIALOG
#
Error code from your snippet:

Code: Select all

# ./tst-bdraw

(gtkdialog:1920): Gtk-CRITICAL **: IA__gtk_spin_button_new_with_range: assertion `step != 0.0' failed

(gtkdialog:1920): Gtk-CRITICAL **: IA__gtk_spin_button_set_value: assertion `GTK_IS_SPIN_BUTTON (spin_button)' failed
**
ERROR:variables.c:189:variables_new_with_widget: assertion failed: (widget != NULL)
./tst-bdraw: line 63:  1920 Aborted                 gtkdialog -p MAIN_1

(gtkdialog:1929): Gtk-CRITICAL **: IA__gtk_spin_button_new_with_range: assertion `step != 0.0' failed

(gtkdialog:1929): Gtk-CRITICAL **: IA__gtk_spin_button_set_value: assertion `GTK_IS_SPIN_BUTTON (spin_button)' failed
**
ERROR:variables.c:189:variables_new_with_widget: assertion failed: (widget != NULL)
./tst-bdraw: line 64:  1929 Aborted                 gtkdialog -p MAIN_2

(gtkdialog:1950): Gtk-CRITICAL **: IA__gtk_spin_button_new_with_range: assertion `step != 0.0' failed

(gtkdialog:1950): Gtk-CRITICAL **: IA__gtk_spin_button_set_value: assertion `GTK_IS_SPIN_BUTTON (spin_button)' failed
**
ERROR:variables.c:189:variables_new_with_widget: assertion failed: (widget != NULL)
./tst-bdraw: line 65:  1950 Aborted                 gtkdialog -p MAIN_3
# 
Hope this helps,

Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#43 Post by SFR »

Thank you Rolf!

Looks like there's nothing I can do about it at the moment...

Ok, I have attached v1.6.1 in the first post.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

gtkdialog output

#44 Post by Dromeno »

Here they are:

sh-4.1# gtkdialog --version
gtkdialog version 0.8.2 release (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor
Built with additional support for: Glade.
sh-4.1# gtkdialog4 --version
gtkdialog version 0.8.0 (C) 2003-2007 Laszlo Pere, 2011 Thunor
sh-4.1# gtkdialog5 --version
gtkdialog version 0.8.2 release (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor
Built with additional support for: Glade.
sh-4.1#

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#45 Post by SFR »

Thanks for the info Dromeno

Looks ok...I have no idea why doesn't it work for you and Rolf, even with pfix=ram...
Hope v1.6.1 runs ok for you as well.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#46 Post by SFR »

Since v1.6.1 I've been dabbling in it from time to time, improving this and that, so here's version 1.7:
- removed 'preview' icon - preview is now always enabled;
- automatically detects Gtkdialog version and sets <button> or <pixmap> as drawing area;
- due to massive internal improvements and therefore much better performance, refresh interval has been lowered from 1000ms to 333ms;
Actually, on quite decent HW, it's okay even with 200-250ms (for example: my low-end Acer with AMD-C60 @ 1GHz is not such a hardware, but Toshiba with Intel i3 M330 @ 2.13GHz is).

This app is really a great training ground for learning how to optimize the code, lol.

First post updated!

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Post Reply