Commit 2a8d1bb1 authored by John Bonn's avatar John Bonn
Browse files

Updated ExportImagesWorkorder to new design

parent 7dd4402a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -41,6 +41,11 @@ namespace Isis {

  ExportImagesWorkOrder::ExportImagesWorkOrder(Project *project) :
      WorkOrder(project) {

    // This is an asynchronous workorder and not undoable
    m_isSynchronous = false;
    m_isUndoable = false;

    QAction::setText(tr("Export I&mages..."));
  }

@@ -123,7 +128,7 @@ namespace Isis {
   * Use internalData() and write the images into the output directory. Stores errors in 
   *   m_warning which will be reported in postSyncRedo().
   */
  void ExportImagesWorkOrder::asyncRedo() {
  void ExportImagesWorkOrder::execute() {
    ImageList *list = imageList();

    if (list->isEmpty()) {
@@ -156,7 +161,7 @@ namespace Isis {
  /**
   * Display any warnings that occurred during the asynchronous computations.
   */
  void ExportImagesWorkOrder::postSyncRedo() {
  void ExportImagesWorkOrder::postExecution() {
    if (!m_warning.isEmpty()) {
      project()->warn(m_warning);
      m_warning.clear();
+4 −3
Original line number Diff line number Diff line
@@ -15,7 +15,8 @@ namespace Isis {
   * @brief Write project images to a user-specified location
   *
   * Takes an imageList and writes it's images to disk at a user-specified location. This works
   *   both with and without context (context menus and file menu).
   *   both with and without context (context menus and file menu). This runs asynchronously and
   *   is not undoable.
   *
   *  internalData() stores:
   *    ImageList name [OPTIONAL] - need context if this isn't present (see WorkOrder::imageList())
@@ -40,8 +41,8 @@ namespace Isis {

      bool setupExecution();

      void asyncRedo();
      void postSyncRedo();
      void execute();
      void postExecution();

    private:
      /**