Opened 17 years ago

Closed 15 years ago

Last modified 15 years ago

#384 closed enhancement (fixed)

Add scrollbar for GRASS modules with many options

Reported by: massimodisasha@… Owned by: timlinux
Priority: major: does not work as expected Milestone:
Component: GRASS Version: 0.8
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: yes

Description

hi, i'm tring to add some grass command to qgis-grass plug-in module, but i've some problem :

for a long module such as r.sun >>

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">

<qgisgrassmodule label="display composite map from his image " module="r.sun">

<flag key="s" />

<option key="elevin" />

<option key="aspin" /> <option key="slopein" /> <option key="linkein" /> <option key="lin" /> <option key="albedo" /> <option key="alb" /> <option key="latin" /> <option key="lat" /> <option key="coefdh" /> <option key="incidout" /> <option key="beam_rad" /> <option key="insol_time" /> <option key="diff_rad" /> <option key="day" /> <option key="step" /> <option key="declin" /> <option key="time" />

</qgisgrassmodule>

i've problem to visualize the window module, beacouse it is more large than the monitor.

this is the r.sun module when i check on my OS whats windows are

open... you can see how it is long (scrollbar wonted)

http://img176.imageshack.us/img176/29/immagine2jl5.png

i use qgis0.8 preview2 on mac osx on a laptop 12"

Change History (8)

comment:1 by anonymous, 17 years ago

Must Fix for Release: NoYes

comment:2 by wonder, 17 years ago

Milestone: Version 0.8 ReleaseVersion 0.9 Release
Must Fix for Release: YesNo
Summary: problem to visualize a new qgis-grass moduleAdd scrollbar for GRASS modules with many options
Type: bugenhancement

Modules were designed to contain only few settings. Many options make the module harder to use.

I'm changing this to an enhancement for next version.

comment:3 by hamish_nospam@…, 17 years ago

Hi,

in GRASS 6.1.0 and newer there is an optional "guisection" tag for each module option/flag. These are used in the GRASS GUIs to group similar options into tabs.

Maybe it helps.. how does QGIS get the module info? XML $module --interface-description? That doesn't seem to be outputting that tag. If so, and you think "guisection" would be useful, let us know and we can fix that in GRASS cvs.

Hamish

comment:4 by gsherman, 17 years ago

Awaiting user input: unset
Version: 0.8

comment:5 by timlinux, 16 years ago

Awaiting user input: set
Owner: changed from rblazek to timlinux

Could you please repost the screenshot as an attachment to this ticket - your link no longer works. Please also advise if this ticket is still valid.

Many thanks

Tim

comment:6 by timlinux, 16 years ago

Platform: OS XAll
Status: newassigned

Ok I will place each tool in a scroll area when its opened (to address the vertical oversize issue). For the 'oh my god why are there so many tabs my window is too wide now' issue, I propose to either do :

  • each tool in its own window (quick and easy, may do that to start)
  • have an 'active tools' tab which lists just the ones you have opened and lets you switch between them

With second option above you would have max 4 tabs only:

Modules Tree Modules List Open Modules Current Module

I will experiment a bit and get back to you on this.

comment:7 by aghisla, 15 years ago

Resolution: fixed
Status: assignedclosed

fixed in QGIS 1.0 preview1 (maybe in previous versions, not tested). Long options lists have now a scrollbar and each tool has its own window.

comment:8 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.