GIMP Chat
http://gimpchat.com/

Script-Fu User Entry Screen Scroll-bars (Yes!)
http://gimpchat.com/viewtopic.php?f=9&t=9363
Page 1 of 4

Author:  GnuTux [ Mon Dec 23, 2013 10:03 pm ]
Post subject:  Script-Fu User Entry Screen Scroll-bars (Yes!)

I was wondering if anyone has any insight as to why the Script-Fu user entry screen doesn't present scroll-bars when the input window is too large for the display.

This is basic functionality in QT and GTK and I'm just wondering if there is any reason why this ability is not already included in Script-Fu.

Author:  Rod [ Mon Dec 23, 2013 10:09 pm ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

GnuTux wrote:
I was wondering if anyone has any insight as to why the Script-Fu user entry screen doesn't present scroll-bars when the input window is too large for the display.

This is basic functionality in QT and GTK and I'm just wondering if there is any reason why this ability is not already included in Script-Fu.


That is a good question. And it could very well be the answer to our one column dilemma. :) You see user/value added areas in the dialogs in GIMPs interface so why not scripts also?

Author:  GnuTux [ Mon Dec 23, 2013 10:22 pm ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

In Linux (MATE), I can hold Alt-m and drag the input screen with the mouse to get to the entry fields that are off screen.

Is there a similar feature in Windows and/or MAC?

Author:  Graechan [ Mon Dec 23, 2013 10:34 pm ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Why can't we interactively call a script-fu whilest in a script-fu I can call other plugins twice, why not script-fu.exe
Image

Author:  GnuTux [ Mon Dec 23, 2013 11:07 pm ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Graechan wrote:
Why can't we interactively call a script-fu whilest in a script-fu I can call other plugins twice, why not script-fu.exe

The answer is in this thread..

viewtopic.php?f=9&t=2850#p36798

Basically, it's because you don't actually call a Script-Fu script directly, like a plug-in, you call the Script-Fu plugin, which runs the script interpretatively. The Script-Fu script can't then call another Script-Fu script interactively because the Script-Fu plug-in is already running your script interpretatively and there is no mechinism to spawn another instance, while passing the proper parameters/arguments to the new instance.

Author:  Graechan [ Mon Dec 23, 2013 11:38 pm ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

GnuTux I know what it says but scrip-fu.exe is just a plugin and i can call other plugins twice interactively
and it only says no in the src file, info below is from the script-fu-interface.c file, not sure what the intrface.c file relates to

gtk_table_set_col_spacings (GTK_TABLE (sf_interface->table), 6);
gtk_table_set_row_spacings (GTK_TABLE (sf_interface->table), 6);
gtk_box_pack_start (GTK_BOX (vbox), sf_interface->table, FALSE, FALSE, 0);
gtk_widget_show (sf_interface->table);

Author:  GnuTux [ Mon Dec 23, 2013 11:47 pm ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Graechan wrote:
GnuTux I know what it says but scrip-fu.exe is just a plugin and i can call other plugins twice interactively

Well, it's not just any old plug-in. It's a scheme interpreter and the problem arises when attempting to call another instance from a script already running inside.

The interface to the interactive dialog can't be called from a script running in the scheme interpreter, because the interface code exists outside the interpreter.

Author:  Graechan [ Mon Dec 23, 2013 11:59 pm ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Drats! Wilbur does not like us
GnuTux I wish I new how the GTK interface worked
It's good to see everyone tossing around ideas on this

Author:  GnuTux [ Tue Dec 24, 2013 12:09 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Yeah, I guess since we can't call a Script-Fu script interactively from another Script-Fu script, a workaround might be to modify interface to allow scrolling.

Can you drag the menu around to see the off screen fields in Windows, as I can in Linux with the Ctrl-m + mouse? I can't remember if there are Window's keystroke to do that or not.

Found this for Windows..
http://lib.umhs-sk.net/keybshortc.pdf

ALT+ SPACEBAR + M = Move current windows with arrow keys
ALT+ SPACEBAR + M + any arrow key once, then move the mouse to position the window where you like.

Author:  paynekj [ Tue Dec 24, 2013 2:13 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

GnuTux wrote:
I was wondering if anyone has any insight as to why the Script-Fu user entry screen doesn't present scroll-bars when the input window is too large for the display.

This is basic functionality in QT and GTK and I'm just wondering if there is any reason why this ability is not already included in Script-Fu.


I think the answer to that question is that Script-Fu has been kept as simple as possible and adding optional scroll bars is extra complication.

If you really want to add all those extra inputs to a user-interface, then it's time to move to Python and creating a custom UI using pygtk or TkInter, then you can expand to more than one column, tabbed interface etc. (Of course you'll also learn about the extra complications in building a flexible UI ;) )

Kevin

Author:  GnuTux [ Tue Dec 24, 2013 3:08 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

paynekj wrote:
I think the answer to that question is that Script-Fu has been kept as simple as possible and adding optional scroll bars is extra complication.

If you really want to add all those extra inputs to a user-interface, then it's time to move to Python

Well, if that is true, it's laughably misguided that scroll bars have been omitted because Script-Fu's UI has been intentionally "kept simple". I actually doubt that is the case. Heck, I can't even get some of GIMP's Built-in Logo scripts, like Glossy, to fit on the screen and I have decent resolution. This issue is exacerbated when one is working with even lower resolution displays, such as 1024x768. Why would some Script-fu scripts, that many users can't even see on the screen, be included in GIMP? It just doesn't make sense. It's not like we need 100's of inputs, anyway. How about 15-20, which would cover very basic functionality?

If it is true, whoever made that decision should be severely beaten around the face and head, so as to have some common sense slapped into them. :hehe

Author:  ofnuts [ Tue Dec 24, 2013 5:57 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

paynekj wrote:
I think the answer to that question is that Script-Fu has been kept as simple as possible and adding optional scroll bars is extra complication.

If you really want to add all those extra inputs to a user-interface, then it's time to move to Python and creating a custom UI using pygtk or TkInter, then you can expand to more than one column, tabbed interface etc. (Of course you'll also learn about the extra complications in building a flexible UI ;) )

Kevin

+1 to that.

Author:  Rod [ Tue Dec 24, 2013 6:37 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

I wonder if it would really be that difficult to add auto scrolling for all op systems to script-fu dialogs via the script-fu.exe plug-in src.

Author:  Rod [ Tue Dec 24, 2013 6:39 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Found this
http://www.codeproject.com/Articles/109 ... -a-C-Helpe

And GTK.
http://hackage.haskell.org/package/gtk- ... indow.html

Author:  Rod [ Tue Dec 24, 2013 6:41 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Can Java scripts be ran in GIMP yet? I thought they were going to implement that in GIMP-2.8.

Author:  saulgoode [ Tue Dec 24, 2013 6:58 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Scrolling of the controls within a dialog is not consistent with traditional human interface guidelines. Does anybody have an example of this being done? F-Spot has a scrolling toolbox, which in itself is ugly enough; but I have never seen a scrolling dialog.

The preferred method for handling more controls than fit on a page is either tabbed dialogs:

Image

or list controls:

Image

It would be entirely feasible for Script-fu dialogs to resort to a tabbed dialog if the number of widgets is too large. The main reason it hasn't been done before is probably that any decent window manager provides a ready means of accessing parts of a window that display off-screen (e.g., ALT+CLICK).

Author:  Rod [ Tue Dec 24, 2013 7:09 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

You can right click and move a dialog with the arrow keys in Windows XP but as soon as you try to enter data (clicking mouse), the window position resets itself.
You can however use the "TAB" key to get to value input areas , type in the value and TAB on to the next value area. Pain though. :)
Tabs in dialogs would be an excellent idea i think. How would you categorize them though so that they would be fluent in all written scripts?

Author:  saulgoode [ Tue Dec 24, 2013 7:23 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Rod wrote:
Tabs in dialogs would be an excellent idea i think. How would you categorize them though so that they would be fluent in all written scripts?

I would just add an SF-PAGE option to the script-fu-register procedure.

For example (using the Lighting Effects tabs):
SF-PAGE "Options" 0
SF-IMAGE "image" 0
:
:
SF-PAGE "Light" 0
:
:
SF-PAGE "Material" 0
:
:
SF-PAGE "Bump Map" 0
:
:
SF-PAGE "Environment" 0
:

Author:  PhotoComix [ Tue Dec 24, 2013 7:30 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Quote:
Well, if that is true, it's laughably misguided that scroll bars have been omitted because Script-Fu's UI has been intentionally "kept simple". I actually doubt that is the case. Heck, I can't even get some of GIMP's Built-in Logo scripts, like Glossy, to fit on the screen and I have decent resolution. This issue is exacerbated when one is working with even lower resolution displays, such as 1024x768. Why would some Script-fu scripts, that many users can't even see on the screen, be included in GIMP?


If not the reason i believe that was a perfect excuse , but you should consider WHEN was written the script fu interpreter , in that period was rare for script and plugin have more the 3 or 4 controls, with even people complaining that unsharpmak was too complex because have too much sliders :3 ! :rofl

And "kept simple" was a suggestion repeated as a mantra ,and respected almost a religious point

Author:  PhotoComix [ Tue Dec 24, 2013 7:38 am ]
Post subject:  Re: Script-Fu User Entry Screen Scroll-bars?

Rod wrote:
Tabs in dialogs would be an excellent idea i think. How would you categorize them though so that they would be fluent in all written scripts?


would be no possible allow to toggle the not used options ?

i.e. suppose a script has a option for... let say use gimpressionist, and after the "use" gimpressionist" box there are all related commands

now toggle off that part, when that plugin is not used, would not only shrink the dialogue so hopefully would fit in the screen size but maybe even more important will "kept simple" for the users, avoiding to confound them with inactive dialogue.

Page 1 of 4 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/