isis/src/qisis/objs/PlotWindow/PlotWindow.cpp
void PlotWindow::pasteCurve() {
    if (m_allowUserToAddCurves) {
      QClipboard *globalClipboard = QApplication::clipboard();
      const QMimeData *globalData = globalClipboard->mimeData();

      if (globalData->hasFormat("application/isis3-plot-curve")) {
        CubePlotCurve * newCurve = new CubePlotCurve(
                globalData->data("application/isis3-plot-curve"));
        // add curve to plot
        add(newCurve);
        emit plotChanged();
      }
    }
  }
/**
   * When the user pastes a curve try to put it into this plot window. This
   *   shouldn't be called when the curve on the system clipboard isn't
   *   compatible.
   */
When the user pastes a curve try to put it into this plot window. This
shouldn't be called when the curve on the system clipboard isn't
compatible.
When the user pastes a curve try to put it into this plot window . This shouldn ' t be called when the curve on the system clipboard isn ' t compatible .
void PlotWindow::pasteCurve() {
    if (m_allowUserToAddCurves) {
      QClipboard *globalClipboard = QApplication::clipboard();
      const QMimeData *globalData = globalClipboard->mimeData();
      if (globalData->hasFormat("application/isis3-plot-curve")) {
        CubePlotCurve * newCurve = new CubePlotCurve(
                globalData->data("application/isis3-plot-curve"));
        add(newCurve);
        emit plotChanged();
      }
    }
  }
void PlotWindow :: pasteCurve ( ) { if ( m_allowUserToAddCurves ) { QClipboard * globalClipboard = QApplication :: clipboard ( ) ; const QMimeData * globalData = globalClipboard -> mimeData ( ) ; if ( globalData -> hasFormat ( " " ) ) { CubePlotCurve * newCurve = new CubePlotCurve ( globalData -> data ( " " ) ) ; add ( newCurve ) ; emit plotChanged ( ) ; } } }
When the user pastes a curve try to put it into this plot window.
When the user pastes a curve try to put it into this plot window .
// add curve to plot