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

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

parent 483c041a
......@@ -56,8 +56,8 @@ private:
void output() override;
double trapez();
double trapezf(int n);
double trapez();
double trapezf(int n);
//! Returns the number of iterations used to calculate the area if d_integrand = AnalyticalFunction.
int romberg();
......
......@@ -48,9 +48,9 @@ public:
protected slots:
void accept() override;
void update();
void enableLayoutOptions(bool ok);
void swapLayers();
void update();
void enableLayoutOptions(bool ok);
void swapLayers();
private:
MultiLayer *multi_layer;
......
......@@ -44,10 +44,10 @@ public:
explicit LegendWidget(Plot *);
~LegendWidget() override;
void clone(LegendWidget *t);
QwtPlot *plot() { return d_plot; };
void clone(LegendWidget* t);
QwtPlot *plot(){return d_plot;};
//! The kinds of frame a LegendWidget can draw around the Text.
//! The kinds of frame a LegendWidget can draw around the Text.
enum FrameStyle{None = 0, Line = 1, Shadow = 2};
QString text(){return d_text->text();};
......@@ -103,9 +103,9 @@ private:
};
//! Parent plot
Plot *d_plot;
Plot *d_plot;
//! Frame type
//! Frame type
int d_frame;
//! Rotation angle: not implemented yet
......
......@@ -71,13 +71,12 @@ class LineProfileTool : public QWidget, public PlotToolInterface
return PlotToolInterface::Rtti_LineProfileTool;
};
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.
*/
void statusText(const QString&);
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.
*/
void statusText(const QString&);
protected:
int averageImagePixel(const QImage &image, int px, int py, bool moreHorizontal);
......@@ -86,21 +85,18 @@ signals:
*/
void paintEvent(QPaintEvent *e) override;
/**\brief Pressing the left mouse button starts line selection.
*
* Clicks with anything else than the left button are propagated
*to the parent as usual.
*/
*
* Clicks with anything else than the left button are propagated to the parent as usual.
*/
void mousePressEvent(QMouseEvent *e) override;
/**\brief Mouse movements need to be monitored for updating the
* line during operation.
*/
/**\brief Mouse movements need to be monitored for updating the line during operation.
*/
void mouseMoveEvent(QMouseEvent *e) override;
/**\brief Mouse releases end line selection and cause the
* profile to be displayed.
*/
/**\brief Mouse releases end line selection and cause the profile to be displayed.
*/
void mouseReleaseEvent(QMouseEvent *e) override;
private:
private:
ApplicationWindow *d_app;
//! Number of image pixels over which to average.
int d_average_pixels;
......
......@@ -47,8 +47,8 @@ class LogisticFit : public Fit
par[1];
};
private:
void init();
private:
void init();
void calculateFitCurveData(double *X, double *Y) override;
};
......
......@@ -76,10 +76,10 @@ private:
///Private Constructor
InputHistoryImpl();
/// Private copy constructor - NO COPY ALLOWED
InputHistoryImpl(const InputHistoryImpl &) = delete;
/// Private assignment operator - NO ASSIGNMENT ALLOWED
InputHistoryImpl &operator=(const InputHistoryImpl &) = delete;
///Private Destructor
InputHistoryImpl(const InputHistoryImpl&);
/// Private assignment operator - NO ASSIGNMENT ALLOWED
InputHistoryImpl& operator = (const InputHistoryImpl&);
///Private Destructor
virtual ~InputHistoryImpl();
/// For debugging
......
......@@ -19,9 +19,9 @@ public:
explicit loadDAEDlg(QWidget *parent = 0);
~loadDAEDlg() override;
const QString &getHostName() { return m_hostName; }
const QString &getWorkspaceName() { return m_workspaceName; }
const QString& getSpectrumMin() { return m_spectrum_min; }
const QString& getHostName() { return m_hostName; }
const QString& getWorkspaceName() { return m_workspaceName; }
const QString& getSpectrumMin() { return m_spectrum_min; }
const QString& getSpectrumMax() { return m_spectrum_max; }
const QString& getSpectrumList() { return m_spectrum_list; }
int updateInterval(){return m_updateInterval;}
......
......@@ -53,9 +53,9 @@ public:
private slots:
//! Accept changes and quit
void accept() override;
//! Apply changes
void apply();
//! Activate the numeric precision choice box
//! Apply changes
void apply();
//! Activate the numeric precision choice box
void showPrecisionBox(int item);
private:
......
......@@ -78,9 +78,9 @@ public:
const QModelIndex &parent = QModelIndex()) override;
virtual double x(int col) const;
virtual double y(int row) const;
virtual double y(int row) const;
virtual double cell(int row, int col) const;
virtual double cell(int row, int col) const;
virtual void setCell(int row, int col, double val);
virtual QString text(int row, int col);
......@@ -99,15 +99,14 @@ public:
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const override;
virtual void setImage(const QImage &image);
virtual void setImage(const QImage& image);
virtual bool importASCII(const QString &fname, const QString &sep,
int ignoredLines, bool stripSpaces,
bool simplifySpaces, const QString &commentString,
int importAs, const QLocale &locale,
int endLineChar = 0, int maxRows = -1);
virtual
bool importASCII(const QString &fname, const QString &sep, int ignoredLines, bool stripSpaces,
bool simplifySpaces, const QString& commentString, int importAs,
const QLocale& locale, int endLineChar = 0, int maxRows = -1);
void setLocale(const QLocale& locale){d_locale = locale;};
void setLocale(const QLocale& locale){d_locale = locale;};
void setNumericFormat(char f, int prec);
virtual bool initWorkspace();
......
......@@ -53,8 +53,8 @@ public:
private slots:
//! Accept changes and quit
void accept() override;
//! Apply changes
void apply();
//! Apply changes
void apply();
private:
QPushButton* buttonOk, *buttonApply;
......
......@@ -63,7 +63,7 @@ private:
QSize sizeHint() const override;
void customEvent(QEvent *e) override;
ScriptEditor *commands;
ScriptEditor* commands;
QPushButton* btnCancel;
QSpinBox *startRow, *endRow, *startCol, *endCol;
QPushButton *btnApply;
......
......@@ -155,15 +155,14 @@ public slots:
void exportImage(const QString& fileName, int quality = 100, bool transparent = false);
void exportSVG(const QString& fname);
void exportPDF(const QString &fname) override;
void exportVector(const QString &fileName, int res = 0,
bool color = true, bool keepAspect = true,
QPrinter::PageSize pageSize = QPrinter::Custom);
void exportVector(const QString& fileName, int res = 0, bool color = true,
bool keepAspect = true, QPrinter::PageSize pageSize = QPrinter::Custom);
void copyAllLayers();
void copyAllLayers();
void print() override;
void printAllLayers(QPainter *painter);
void printActiveLayer();
//@}
void printActiveLayer();
//@}
void setFonts(const QFont& titleFnt, const QFont& scaleFnt,
const QFont& numbersFnt, const QFont& legendFnt);
......@@ -222,8 +221,8 @@ private:
void wheelEvent(QWheelEvent *) override;
void keyPressEvent(QKeyEvent *) override;
bool eventFilter(QObject *object, QEvent *) override;
void releaseLayer();
void resizeLayers(QResizeEvent *re);
void releaseLayer();
void resizeLayers(QResizeEvent *re);
bool focusNextPrevChild(bool next) override;
void dragEnterEvent(QDragEnterEvent *event) override;
void dropEvent(QDropEvent *event) override;
......
......@@ -57,20 +57,20 @@ class MultiPeakFit : public Fit
double eval(double *par, double x) override;
double evalPeak(double *par, double x, int peak);
private:
void init(int);
private:
void init(int);
QString logFitInfo(int iterations, int status) override;
void generateFitCurve() override;
static QString peakFormula(int peakIndex, PeakProfile profile);
//! Inserts a peak function curve into the plot
void insertPeakFunctionCurve(double *x, double *y, int peak);
//! Inserts a peak function curve into the plot
void insertPeakFunctionCurve(double *x, double *y, int peak);
void customizeFitResults() override;
//! Number of peaks
int d_peaks;
int d_peaks;
//! Tells weather the peak curves should be displayed together with the best line fit.
//! Tells weather the peak curves should be displayed together with the best line fit.
bool generate_peak_curves;
//! Color index for the peak curves
......@@ -121,8 +121,8 @@ class GaussAmpFit : public Fit
void guessInitialValues() override;
double eval(double *par, double x) override;
private:
void init();
private:
void init();
void calculateFitCurveData(double *X, double *Y) override;
};
#endif
......@@ -55,13 +55,12 @@ class MultiPeakFitTool : public QObject, public PlotToolInterface
int rtti() const override {
return PlotToolInterface::Rtti_MultiPeakFitTool;
};
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.
*/
void statusText(const QString&);
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.
*/
void statusText(const QString&);
protected slots:
void selectPeak(QwtPlotCurve *curve, int point_index);
private:
......
......@@ -46,8 +46,8 @@ class NonLinearFit : public Fit
void setParametersList(const QStringList &lst) override;
void setFormula(const QString &s) override;
private:
void calculateFitCurveData(double *X, double *Y) override;
private:
void calculateFitCurveData(double *X, double *Y) override;
void init();
};
#endif
......@@ -126,16 +126,15 @@ protected:
const QwtScaleMap map[axisCnt],
const QwtPlotPrintFilter &pfilter) const override;
void drawInwardTicks(QPainter *painter, const QRect &rect,
const QwtScaleMap &map, int axis, bool min,
bool maj) const;
void drawInwardTicks(QPainter *painter, const QRect &rect,
const QwtScaleMap&map, int axis, bool min, bool maj) const;
void drawBreak(QPainter *painter, const QRect &rect, const QwtScaleMap &map, int axis) const;
bool eventFilter(QObject *obj, QEvent *ev) override;
Grid *d_grid;
QMap<int, QwtPlotItem *> d_curves;
QMap<int, QwtPlotMarker*> d_markers;
Grid *d_grid;
QMap<int, QwtPlotItem*> d_curves;
QMap<int, QwtPlotMarker*> d_markers;
int minTickLength, majTickLength;
int marker_key;
......
......@@ -65,10 +65,10 @@ public:
private slots:
void accept() override;
bool updatePlot();
bool updatePlot();
void pickTitleFont();
void viewAxisOptions(int axis);
void pickTitleFont();
void viewAxisOptions(int axis);
QFont axisFont(int axis);
void pickAxisLabelFont();
void pickNumbersFont();
......
......@@ -105,7 +105,7 @@ public slots:
//! Accept settings, close the dialog
void accept() override;
//! Add column as Z
void addZCol();
void addZCol();
private:
void plot3D(const QStringList& lst);
......
......@@ -46,9 +46,9 @@ class PluginFit : public Fit
return f_eval(x, par);
};
private:
void init();
typedef double (*fitFunctionEval)(double, double *);
private:
void init();
typedef double (*fitFunctionEval)(double, double *);
void calculateFitCurveData(double *X, double *Y) override;
fitFunctionEval f_eval;
};
......
......@@ -44,20 +44,20 @@ class PolynomialFit : public Fit
QString legendInfo() override;
void fit() override;
int order() { return d_order; };
void setOrder(int order);
int order(){return d_order;};
void setOrder(int order);
static QString generateFormula(int order);
static QString generateFormula(int order);
static QStringList generateParameterList(int order);
double eval(double *par, double x) override;
private:
void init();
private:
void init();
void calculateFitCurveData(double *X, double *Y) override;
int d_order;
bool show_legend;
bool show_legend;
};
class LinearFit : public Fit
......@@ -75,8 +75,8 @@ class LinearFit : public Fit
return par[0] + par[1] * x;
};
private:
void init();
private:
void init();
void calculateFitCurveData(double *X, double *Y) override;
};
......@@ -95,8 +95,8 @@ class LinearSlopeFit : public Fit
return par[0] * x;
};
private:
void init();
private:
void init();
void calculateFitCurveData(double *X, double *Y) override;
};
#endif
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