Commit e78fe432 authored by Tracie Sucharski's avatar Tracie Sucharski
Browse files

Qmos-fixed problem with re-ordering of footprint layers. Fixes #1755.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@5682 41f8697f-d340-4b68-9986-7bafba869bb8
parent 7ddc1aee
Loading
Loading
Loading
Loading
+13 −10
Changes for isis/src/qisis/objs/ImageList/ImageList.cpp: 13 added lines, 10 removed lines.
Original line number Diff line number Diff line
@@ -481,23 +481,26 @@ namespace Isis {
    if (!project) {
      if (allSupport(ImageDisplayProperties::ZOrdering)) {
        QAction *moveToTopAct = new QAction(tr("Bring to Front"), this);
        QAction *moveUpAct = new QAction(tr("Bring Forward"), this);
        QAction *moveToBottomAct = new QAction(tr("Send to Back"), this);
        QAction *moveDownAct = new QAction(tr("Send Backward"), this);

        foreach (Image *image, *this) {
          connect(moveToTopAct, SIGNAL(triggered()),
                first()->displayProperties(), SIGNAL(moveToTop()));
        actions.append(moveToTopAct);
                  image->displayProperties(), SIGNAL(moveToTop()));

        QAction *moveUpAct = new QAction(tr("Bring Forward"), this);
          connect(moveUpAct, SIGNAL(triggered()),
                first()->displayProperties(), SIGNAL(moveUpOne()));
        actions.append(moveUpAct);
                  image->displayProperties(), SIGNAL(moveUpOne()));

        QAction *moveToBottomAct = new QAction(tr("Send to Back"), this);
          connect(moveToBottomAct, SIGNAL(triggered()),
                first()->displayProperties(), SIGNAL(moveToBottom()));
        actions.append(moveToBottomAct);
                  image->displayProperties(), SIGNAL(moveToBottom()));

        QAction *moveDownAct = new QAction(tr("Send Backward"), this);
          connect(moveDownAct, SIGNAL(triggered()),
                first()->displayProperties(), SIGNAL(moveDownOne()));
                  image->displayProperties(), SIGNAL(moveDownOne()));
        }
        actions.append(moveToTopAct);
        actions.append(moveUpAct);
        actions.append(moveToBottomAct);
        actions.append(moveDownAct);
      }

+2 −0
Changes for isis/src/qisis/objs/ImageList/ImageList.h: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ namespace Isis {
   * @author 2012-??-?? ???
   *
   * @internal 
   * @history 2014-01-08 Tracie Sucharski - Added layer re-ordering connections to all images 
   *                         in list instead of just the first image.  Fixes #1755. 
   */
  class ImageList : public QObject, public QList<Image *> {
    Q_OBJECT