Commit ef1abca0 authored by Hahn, Steven's avatar Hahn, Steven
Browse files

Remove clang-format changes to MantidQt/* and MantidPlot/*

parent 483c041a
......@@ -114,8 +114,7 @@ public:
QwtDoubleRect boundingRect() const override;
void setBoundingRect(double xs, double ys, double xe, double ye);
//! Recalculates the bounding rectangle in values coordinates using the
//pixel coordinats when the scales change
//! Recalculates the bounding rectangle in values coordinates using the pixel coordinats when the scales change
void updateBoundingRect();
//! Returns the state of #d_editable.
......
......@@ -46,8 +46,8 @@ public:
QwtDoubleRect boundingRect() const override;
QwtSymbol::Style minStyle() { return min_style; };
void setMinStyle(QwtSymbol::Style s) { min_style = s; };
QwtSymbol::Style minStyle(){return min_style;};
void setMinStyle(QwtSymbol::Style s){min_style = s;};
QwtSymbol::Style maxStyle(){return max_style;};
void setMaxStyle(QwtSymbol::Style s){max_style = s;};
......@@ -83,8 +83,7 @@ private:
const QwtScaleMap &yMap, int from, int to) const override;
void drawBox(QPainter *painter, const QwtScaleMap &xMap,
const QwtScaleMap &yMap, double *dat, int size) const;
using DataCurve::drawSymbols; // Unhide base class method (avoids Intel
// compiler warning)
using DataCurve::drawSymbols; // Unhide base class method (avoids Intel compiler warning)
void drawSymbols(QPainter *painter, const QwtScaleMap &xMap,
const QwtScaleMap &yMap, double *dat, int size) const;
......
......@@ -45,7 +45,7 @@ public:
explicit CanvasPicker(Graph *plot);
bool eventFilter(QObject *, QEvent *) override;
void selectPoints(int n);
void selectPeak(const QPoint &p);
void selectPeak(const QPoint& p);
//! Disable editing of #d_editing_marker on a TAB-key event.
/**\brief Called by Graph::focusNextPrevChild ()
......
......@@ -42,7 +42,7 @@ public:
const QString &responseColName, int = 1,
int = -1) override;
//! Returns the size of the signal data set
int signalDataSize() { return d_n_signal; };
int signalDataSize(){return d_n_signal;};
//! Returns the size of the response data set
int responseDataSize(){return d_n_response;};
......
......@@ -98,7 +98,7 @@ public:
};
bool fatalError(const QXmlParseException &) override { return false; };
QString errorString() const override { return errorStr; };
QString parentName() { return d_widget_name; };
QString parentName(){return d_widget_name;};
private:
bool metFitTag;
......
......@@ -57,11 +57,10 @@ class DataPickerTool : public QwtPlotPicker, public PlotToolInterface
return PlotToolInterface::Rtti_DataPicker;
};
signals:
signals:
/** Emitted whenever a new message should be presented to the user.
*
* You don't have to connect to this signal if you alreay specified a reciever
*during initialization.
* You don't have to connect to this signal if you alreay specified a reciever during initialization.
*/
void statusText(const QString&);
//! Emitted whenever a new data point has been selected.
......@@ -69,7 +68,6 @@ signals:
protected:
void append(const QPoint &point) override;
void setSelection(QwtPlotCurve *curve, int point_index);
private:
ApplicationWindow *d_app;
QwtPlotMarker d_selection_marker;
......
......@@ -49,7 +49,7 @@ public:
public slots:
void accept() override;
void setCurveNames(const QStringList &names);
void setCurveNames(const QStringList& names);
void setOperationType(ApplicationWindow::Analysis operation){d_operation = operation;}
void setCurentDataSet(const QString& s);
......
......@@ -47,8 +47,7 @@ class Filter : public QObject
Filter(ApplicationWindow *parent, Graph *g = 0, const QString& name = QString());
~Filter() override;
//! Actually does the job. Should be reimplemented in derived
// classes.
//! Actually does the job. Should be reimplemented in derived classes.
virtual bool run();
virtual void setDataCurve(int curve, double start, double end);
......
......@@ -60,8 +60,7 @@ class Fit : public Filter
Fit(ApplicationWindow *parent, Table *t, const QString& name = QString());
~Fit() override;
//! Actually does the fit. Should be reimplemented in derived
// classes.
//! Actually does the fit. Should be reimplemented in derived classes.
virtual void fit();
bool run() override {
fit();
......@@ -69,16 +68,15 @@ class Fit : public Filter
};
//! Sets the data set to be used for weighting
bool setWeightingData(WeightingMethod w,
const QString &colName = QString::null);
bool setWeightingData(WeightingMethod w, const QString& colName = QString::null);
void setDataCurve(int curve, double start, double end) override;
bool setDataFromTable(Table *t, const QString &xColName,
const QString &yColName, int from = 1,
int to = -1) override;
QString resultFormula() { return d_result_formula; };
QString formula() { return d_formula; };
QString resultFormula(){return d_result_formula;};
QString formula(){return d_formula;};
virtual void setFormula(const QString&){};
int numParameters(){return d_p;};
......@@ -102,7 +100,7 @@ class Fit : public Filter
QString legendInfo() override;
//! Returns a vector with the fit results
double *results() { return d_results; };
double* results(){return d_results;};
//! Returns a vector with the standard deviations of the results
double* errors();
......
......@@ -59,8 +59,8 @@ public:
return new FunctionCurve(*this);
}
double startRange() { return d_from; };
double endRange() { return d_to; };
double startRange(){return d_from;};
double endRange(){return d_to;};
void setRange(double from, double to);
QStringList formulas(){return d_formulas;};
......
......@@ -67,14 +67,8 @@ public:
Graph3D (const QString& label, QWidget* parent, const char* name=0, Qt::WFlags f=0);
~Graph3D() override;
enum PlotType { Scatter = 0, Trajectory = 1, Bars = 2, Ribbon = 3 };
enum PointStyle {
None = 0,
Dots = 1,
VerticalBars = 2,
HairCross = 3,
Cones = 4
};
enum PlotType{Scatter = 0, Trajectory = 1, Bars = 2, Ribbon = 3};
enum PointStyle{None = 0, Dots = 1, VerticalBars = 2, HairCross = 3, Cones = 4};
public slots:
void copy(Graph3D* g);
......@@ -125,7 +119,7 @@ public slots:
bool eventFilter(QObject *object, QEvent *e) override;
void resizeEvent(QResizeEvent *) override;
void scaleFonts(double factor);
void setIgnoreFonts(bool ok) { ignoreFonts = ok; };
void setIgnoreFonts(bool ok){ignoreFonts = ok;};
//@}
//! \name Axes
......@@ -247,8 +241,7 @@ public slots:
void print() override;
void copyImage();
void exportImage(const QString &fileName, int quality = 100,
bool transparent = false);
void exportImage(const QString& fileName, int quality = 100, bool transparent = false);
void exportPDF(const QString &fileName) override;
void exportVector(const QString& fileName);
void exportToFile(const QString& fileName);
......@@ -413,8 +406,8 @@ public:
const QString& zFormula, SurfacePlot& pw);
Triple operator()(double u, double v) override;
unsigned int rows() { return d_rows; };
unsigned int columns() { return d_columns; };
unsigned int rows(){return d_rows;};
unsigned int columns(){return d_columns;};
void setMesh (unsigned int columns, unsigned int rows);
bool uPeriodic(){return d_u_periodic;};
......
......@@ -63,8 +63,7 @@ public:
private:
void draw(QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap,
const QRect &rect) const override;
void drawLines(QPainter *painter, const QRect &rect,
Qt::Orientation orientation, const QwtScaleMap &map,
void drawLines(QPainter *painter, const QRect &rect, Qt::Orientation orientation, const QwtScaleMap &map,
const QwtValueList &values) const;
QPen d_maj_pen_y;
......
......@@ -94,7 +94,7 @@ public:
protected slots:
void closeEvent(QCloseEvent *) override;
//! Update which options are visible and enabled based on the output format.
void updateAdvancedOptions(const QString &filter);
void updateAdvancedOptions (const QString &filter);
};
#endif
......@@ -73,10 +73,8 @@ public:
//! Return bounding rectangle in plot coordinates.
QwtDoubleRect boundingRect() const override;
//! Set position (xValue() and yValue()), right and bottom values giving
// everything in plot coordinates.
void setBoundingRect(double left, double top, double right,
double bottom);
//! Set position (xValue() and yValue()), right and bottom values giving everything in plot coordinates.
void setBoundingRect(double left, double top, double right, double bottom);
double right(){return d_x_right;};
double bottom(){return d_y_bottom;};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment