------- Original Message --------
Subject: Checked in: Recoding formerly Subclassed File Chooser Dialogs
http://cadswes2.colorado.edu/~philw/2013/FileChoosers/Subclasses/titles.txt
Date: Thu, 26 Sep 2013 13:49
From: Phil Weinstein
To: cadswes software

All use of QFileDialog instances -- including the special formerly-subclassed QFileDialogs -- have been removed. I just checked in to the 6.4 trunk changes for the former QFileDialog subclasses.

GIT commit record:
  https://cadswes2.colorado.edu/internal/cgi-bin/gitweb/gitweb.pl/builds.git/commit/f20ee7ef6210e4c46661e42201031d3cc14b7710

- Phil


Recoding of Subclassed QFileDialog File Choosers: Image Export and SimObj Export, Import
Bug Number: n/a
Release notes (y/n): Yes (see suggestions below, for consideration).
For Release Nums: 6.4

It order to move away from use of QFileDialog _instances_ (which show Qt's custom file chooser instead of the native Windows file chooser), our special QFileDialog subclasses which inserted their own widgets into the Qt custom file chooser needed to be recoded. This applies to the following file chooser dialogs:

  1. Export RiverWare Simulation Objects
  2. Import RiverWare Simulation Objects
  3. Export Image, several applications:
    1. Full Workspace Image
    2. Visible Workspace Image
    3. Pie Chart
    4. Plot Dialog (full plot page)
    5. Plot (single graph)
    6. Scenario Sandbox Dialog (dialog screenshot).

Enhancements to especially the Export Image applications could be mentioned in RiverWare 6.4 release notes:

  1. In all image export applications which allow adjustments to the saved image dimensions, a "Restore Original Size" icon button is shown to cancel changes to the image width and height.
  2. After the export operation is performed, the file path of the generated image file is copied to the system clipboard. This allows easy access to the generated image file from other applications.
  3. When exporting a Plot Page or a single Plot, the width and height controls are now set to the current displayed size of the original image.

Some almost-current screenshots are available here -- original dialogs and recoded -- (some window titles have been adjusted):

The following C++ classes implement the replacement file choosers:

  1. Base class: QtUtils/AbstractFileParamDlg [*] (see extensive comments in .cpp file)
  2. Subclass: Q3GUI/ExportWsObjectsDlg [*]
  3. Subclass: Q3GUI/ImportWsObjectsDlg [*]
  4. Subclass: Q3GUI/ExportImageDlg (see comments in .cpp file)
    ... see list of application clients above.

[*]-New module.
  Note: Q3GUI/ImpExpWorkspaceDlg has been removed. (Replaced with separate Import and Export dialogs, see above).

Related enhancements:

Unrelated changes in this commit:

---