[Qgis-developer] Upgraded collapsible groupboxes

Tim Sutton lists at linfiniti.com
Tue Sep 11 13:35:19 PDT 2012


Hi

On Tue, Sep 11, 2012 at 8:15 PM, Larry Shaffer <larrys at dakotacarto.com> wrote:
> Hi,
>
> Over the past couple of days Etienne Tourigny and I have upgraded the
> functionality of the QgsCollapsibleGroupBox class he recently
> introduced. The changes have been pushed to master branch and can be
> seen in the Save As... dialog for raster layers and in the scroll
> areas of the 3 tabs in the PAL Labeling options.
>
> We have tested on some Linux versions and on Mac. *Feedback on the
> look and functionality, as well as any OS-specific issues, would be
> greatly appreciated.* It would be best to make sure these new changes
> work on (hopefully) every supported platform before using them more
> extensively.
>
> New features:
>
> * Disclosure triangle collapses/expands independent of groupbox title checkbox.
> * Title checkbox also intuitively collapses/expands the groupbox.
> * Groupbox title can be clicked to collapse/expand groupbox,
> regardless of whether it has a checkbox.
> * Collapsed/expanded state is auto-saved/loaded to QSettings,
> persisting between dialog openings and relaunch.
>
> Using the custom class in QtDesigner:
>
> * Just promote existing or new groupbox widgets using
> QgsCollapsibleGroupBox.h. (Note: there will be no visual or functional
> change with the promoted groupbox, either in form layout or preview
> modes)
> * Work with groupboxes as normal in Designer; it will have collapsible
> features when shown in QGIS.
> * Default state is expanded.
> * Use mMyGroupBox->setCollapsed( true ); to set preferred collapsed
> state before first showing. This is always override-able by user
> later, but will help devs craft the initial look they want in the
> dialog (e.g. hide advanced or secondary settings).
> * Please give your groupboxes appropriate names, like
> mScaleVisibilityGroupBox, instead of leaving it vague, like
> groupBox_3. That name and the object name of the parent window is what
> is saved in QSettings for persisting state.
>
>
> I think these changes will greatly reduce scrolling and clutter as
> dialogs become more complex.
>
> Thanks to Etienne Tourigny for introducing the feature and his work on
> making it better.
>

Awesome stuff guys. Perhaps you could transcribe some of the above
info into the CODING.t2t doc in the gui section?

Regards

Tim


> Regards,
>
> Larry Shaffer
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-developer mailing list