isis/src/qisis/objs/PlotWindow/PlotWindow.cpp
bool PlotWindow::userCanAddCurve(const QMimeData *curve) {
    bool userCanAdd = false;

    if (m_allowUserToAddCurves &&
        curve->hasFormat("application/isis3-plot-curve")) {

      CubePlotCurve * testCurve = new CubePlotCurve(
          curve->data("application/isis3-plot-curve"));

      userCanAdd = canAdd(testCurve);
    }

    return userCanAdd;
  }
/**
   * Ask if a user action can add this curve to this window. This verifies that
   *   the user is allowed to add curves to this window and that
   *   programmatically the curve can be added (i.e. things such as the X/Y
   *   data units match).
   *
   * @param curve Mime-data containing a plot curve to be added
   *
   * @return True if the user should be allowed to paste/drop the curve into
   *         this window
   */
Ask if a user action can add this curve to this window. This verifies that
the user is allowed to add curves to this window and that
programmatically the curve can be added .

@param curve Mime-data containing a plot curve to be added

@return True if the user should be allowed to paste/drop the curve into
this window
Ask if a user action can add this curve to this window . This verifies that the user is allowed to add curves to this window and that programmatically the curve can be added . @param curve Mime - data containing a plot curve to be added @return True if the user should be allowed to paste / drop the curve into this window
bool PlotWindow::userCanAddCurve(const QMimeData *curve) {
    bool userCanAdd = false;
    if (m_allowUserToAddCurves &&
        curve->hasFormat("application/isis3-plot-curve")) {
      CubePlotCurve * testCurve = new CubePlotCurve(
          curve->data("application/isis3-plot-curve"));
      userCanAdd = canAdd(testCurve);
    }
    return userCanAdd;
  }
bool PlotWindow :: userCanAddCurve ( const QMimeData * curve ) { bool userCanAdd = false ; if ( m_allowUserToAddCurves && curve -> hasFormat ( " " ) ) { CubePlotCurve * testCurve = new CubePlotCurve ( curve -> data ( " " ) ) ; userCanAdd = canAdd ( testCurve ) ; } return userCanAdd ; }
Ask if a user action can add this curve to this window.
Ask if a user action can add this curve to this window .