It is currently Mon Apr 15, 2024 7:58 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 70 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 3:08 am  (#11) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
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

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 5:57 am  (#12) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4734
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.

_________________
Image


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 6:37 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 6:39 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Found this
http://www.codeproject.com/Articles/109 ... -a-C-Helpe

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

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 6:41 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Can Java scripts be ran in GIMP yet? I thought they were going to implement that in GIMP-2.8.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 6:58 am  (#16) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
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).

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 7:09 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 7:23 am  (#18) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
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
:

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 7:30 am  (#19) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
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

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 7:38 am  (#20) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
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.

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 7:52 am  (#21) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
saulgoode wrote:
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
:


So under each page would be the actual procedures such as...
SF-PAGE "LAYER MODES" 3 ; 3 being third tab
  SF-OPTION "Highlight Mode (recomend screen)" '("Screen"     ; 0
                          "Dissolve"   ; 1
                          "Multiply"   ; 3
                          "Divide"     ; 15
                          "Normal"     ; 4
                          "Overlay"    ; 5
                          "Dodge"      ; 16
                          "Burn"       ; 17
                          "Hard light" ; 18
                          "Soft light" ; 19
                          "Grain extract" ; 20
                          "Grain merge" ; 21
                          "Difference" ; 6
                          "Addition"   ; 7
                          "Subtract"  ; 8
                          "Darken only" ; 9
                          "Lighten only" ; 10
                          "Hue" ; 11
                          "Saturation" ; 12
                          "Color" ; 13
                          "Value" ; 14
                          )
SF-OPTION "Shadow Mode(recomend Multiply)" '("Multiply"     ; 0
                          "Dissolve"   ; 1
                          "Normal"   ; 3
                          "Divide"     ; 15
                          "Screen"     ; 4
                          "Overlay"    ; 5
                          "Dodge"      ; 16
                          "Burn"       ; 17
                          "Hard light" ; 18
                          "Soft light" ; 19
                          "Grain extract" ; 20
                          "Grain merge" ; 21
                          "Difference" ; 6
                          "Addition"   ; 7
                          "Subtract"  ; 8
                          "Darken only" ; 9
                          "Lighten only" ; 10
                          "Hue" ; 11
                          "Saturation" ; 12
                          "Color" ; 13
                          "Value" ; 14
                          )
)


Something like that?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 8:54 am  (#22) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4734
GnuTux wrote:
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


This would also apply to someone who considers usable of a piece of software with over 16 settings (*) that you cannot test interactively, and for which you cannot even set context-sensitive default values?

(*) What seems to fit in a 768-pixels-high dialog, some of them being higher that the standard (PF_TEXT,PF_RADIO) on the dialog I used to test (DemoGUI).

_________________
Image


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 9:00 am  (#23) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
This would be absolutely marvelous. :)
But what page (if any), would SF-IMAGE and SF_DRAWABLE fall under?
SF-IMAGE "The Image" 0
SF-DRAWABLE "The Layer" 0
;SF-PAGE "" 0


;SF-PAGE "" 0


;SF-PAGE "" 0


;SF-PAGE "" 0

   



SF-PAGE "Material" 1
  SF-ADJUSTMENT "Grain Amount" '(7 0 255 1 10 0 SF-SLIDER)
  SF-ADJUSTMENT "Grain Angle" '(90 0 360 1 10 0 SF-SPINNER)
  SF-ADJUSTMENT "Grain Blur" '(45 0 250 1 10 0 SF-SPINNER) 

SF-PAGE "Bevelling" 2
  SF-ADJUSTMENT "Bevel Size" '(23 1 250 1 10 0 SF-SLIDER)

SF-PAGE "Layer Modes" 3
  SF-OPTION "Highlight Mode (recommend screen)" '("Screen"     ; 0
                          "Dissolve"   ; 1
                          "Multiply"   ; 3
                          "Divide"     ; 15
                          "Normal"     ; 4
                          "Overlay"    ; 5
                          "Dodge"      ; 16
                          "Burn"       ; 17
                          "Hard light" ; 18
                          "Soft light" ; 19
                          "Grain extract" ; 20
                          "Grain merge" ; 21
                          "Difference" ; 6
                          "Addition"   ; 7
                          "Subtract"  ; 8
                          "Darken only" ; 9
                          "Lighten only" ; 10
                          "Hue" ; 11
                          "Saturation" ; 12
                          "Color" ; 13
                          "Value" ; 14
                          )
  SF-OPTION "Shadow Mode(recommend Multiply)" '("Multiply"     ; 0
                          "Dissolve"   ; 1
                          "Normal"   ; 3
                          "Divide"     ; 15
                          "Screen"     ; 4
                          "Overlay"    ; 5
                          "Dodge"      ; 16
                          "Burn"       ; 17
                          "Hard light" ; 18
                          "Soft light" ; 19
                          "Grain extract" ; 20
                          "Grain merge" ; 21
                          "Difference" ; 6
                          "Addition"   ; 7
                          "Subtract"  ; 8
                          "Darken only" ; 9
                          "Lighten only" ; 10
                          "Hue" ; 11
                          "Saturation" ; 12
                          "Color" ; 13
                          "Value" ; 14
                          )                
)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 10:06 am  (#24) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
saulgoode wrote:
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.

Yeah, most of the desktop apps that I use don't make use of a lot of input forms but normally, when you resize a window (or have a smaller resolution display) and there are forms/dialogs, scroll bars appear to allow you to get to those entry fields. Even in GIMP, we see this kind of thing. For example, with the paint brush (and other dialogs). When there isn't enough room on the screen, scroll bars appear.

Image

Of course, scrolling forms and dialogs are a way of life in the web browser and on smart phone & tablets. Certainly, most flavors of C have the ability to create scrollable forms but as you say, there are varying schools of thought on whether it's best to present a scrolling form or multiple screens/tabs.

I guess I can understand why the Script-fu dialog was designed as it was, back in the day, but it does seem like there could be room for improvement now. I'm not sure what the best approach would be. My initial thought was that a scrolling form might be a good option, but I do like the idea of tabs. Truthfully, I'd be happy with any way to get a few more items on the Script-Fu UI. :hehe

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 10:20 am  (#25) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
ofnuts wrote:
This would also apply to someone who considers usable of a piece of software with over 16 settings (*) that you cannot test interactively, and for which you cannot even set context-sensitive default values?

(*) What seems to fit in a 768-pixels-high dialog, some of them being higher that the standard (PF_TEXT,PF_RADIO) on the dialog I used to test (DemoGUI).

Well, I was mainly speaking to the idea that we are given default scripts in GIMP that can't be used unless we have a display with a high enough resolution. There are certainly limitations as to what Script-Fu currently provides, but that doesn't mean it can't, or shouldn't, be improved, nor does it mean that it should be summarily abandoned in favor of somethings else.

I will concede that there does come a point to where one would need to abandon Script-Fu for a more robust development environment, but that doesn't necessarily mean Python would be the better alternative. ;)

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 10:25 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Quote:
Truthfully, I'd be happy with any way to get a few more items on the Script-Fu UI.

Me too Tux. :)
Mainly though i would be happy to be able to adjust the scripts written by other folks that my res can't see. Just by adding the procedure for SF-PAGE would do it.

Saulgoode is this procedure already available and can it be turned/switched on?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 10:28 am  (#27) 
Offline
Script Coder
User avatar

Joined: Nov 06, 2012
Posts: 239
Location: Italy
saulgoode wrote:
Scrolling of the controls within a dialog is not consistent with traditional human interface guidelines. Does anybody have an example of this being done?

In this regard, I am reminded of G'MIC, where you can see that, when the selected filter is from among those provided with a large amount of settings, the right dialog box becomes scrollable if necessary.

_________________
Gino D's GIMP scripts: https://sites.google.com/site/ginodonig/gimp-scripts


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Tue Dec 24, 2013 10:56 am  (#28) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
fluffybunny wrote:
GnuTux wrote:
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.

Yes moving it around to see it works fine, but as soon as you click on the window to enter a value, it snaps back with the Windows Title bar aligned with the top of monitor as I said previously in this thread.
When you use the above method or below method to move a dialog box, does using the tab key (rather than the mouse), to select options make any difference?

1. Right click the Menu bar -> select Move.
2. Use the arrow keys to move the window.
3. Left click the Menu bar to release.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Wed Dec 25, 2013 8:17 am  (#29) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I make a :wow noticing 2 proposed , and already functional improvement for the python script interface
Not only that but was that to cause my :wow

now here we are talking of script fu not of python so i only give the link
viewtopic.php?f=9&t=9378&start=0

Anyway if the python module may be modified maybe are possible modification also for script fu..at least to fix the scroll bug , or allow double columns when space is insufficient

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Script-Fu User Entry Screen Scroll-bars?
PostPosted: Wed Dec 25, 2013 7:56 pm  (#30) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Rod wrote:
This would be absolutely marvelous. :)
But what page (if any), would SF-IMAGE and SF_DRAWABLE fall under?
SF-IMAGE "The Image" 0
SF-DRAWABLE "The Layer" 0
;SF-PAGE "" 0
:
:


SF-IMAGE and SF-DRAWABLE are treated specially when they are the first arguments passed to a script, so they should appear at the beginning (typically). There would be an advantage to having them appear before the first SF-PAGE (as you show), but it might be a little tedious to explain the reason.

Rod wrote:
Quote:
Truthfully, I'd be happy with any way to get a few more items on the Script-Fu UI.

Me too Tux. :)
Mainly though i would be happy to be able to adjust the scripts written by other folks that my res can't see. Just by adding the procedure for SF-PAGE would do it.

Saulgoode is this procedure already available and can it be turned/switched on?

No, it is not available. It would need to be written.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
Post new topic Reply to topic  [ 70 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts scroll bar for gmic exercise

1

No new posts Attachment(s) x=x+1 for Text entry

4

No new posts Attachment(s) Entry point _ZdaPv could not be located

2

No new posts Attachment(s) Missing menu entry for 'Fade Retinex' in 2.10.18

4

No new posts The old the-BRL-box-is-too-big-for-my-screen problem

9



* Login  



Powered by phpBB3 © phpBB Group