code format
This commit is contained in:
@@ -1,33 +1,33 @@
|
||||
#ifndef CDGRAPHICS_H
|
||||
#define CDGRAPHICS_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "qcd_graphic.h"
|
||||
#include "ui_cdgraphics.h"
|
||||
|
||||
#include <QDockWidget>
|
||||
#include <QMenu>
|
||||
#include "ui_cdgraphics.h"
|
||||
#include "qcd_graphic.h"
|
||||
#include <QWidget>
|
||||
#include <pistring.h>
|
||||
|
||||
namespace CDUtils {
|
||||
class CDType;
|
||||
class CDSection;
|
||||
QStringList getList(const PIVector<PIDeque<int> > & x_list);
|
||||
PIVector<PIDeque<int> > setList(const QStringList & l);
|
||||
}
|
||||
class CDType;
|
||||
class CDSection;
|
||||
QStringList getList(const PIVector<PIDeque<int>> & x_list);
|
||||
PIVector<PIDeque<int>> setList(const QStringList & l);
|
||||
} // namespace CDUtils
|
||||
|
||||
class QMainWindow;
|
||||
class Graphic;
|
||||
|
||||
|
||||
|
||||
|
||||
class GDockWidget: public QDockWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GDockWidget(QString title = QString(), QMainWindow * p = 0);
|
||||
|
||||
void addX(const CDUtils::CDType & t);
|
||||
void drawX(const PIMap<PIString, PIVector<double> > & data);
|
||||
void drawX(const PIMap<PIString, PIVector<double>> & data);
|
||||
QByteArray save() const;
|
||||
void load(QByteArray ba);
|
||||
void changedGlobal();
|
||||
@@ -39,10 +39,10 @@ private:
|
||||
void contextMenuEvent(QContextMenuEvent * e);
|
||||
CDGraphicWidget * viewportGraphic(QObject * o) const;
|
||||
|
||||
QMenu * menu, * menu_x;
|
||||
QList<QAction*> dactions;
|
||||
QMenu *menu, *menu_x;
|
||||
QList<QAction *> dactions;
|
||||
QMainWindow * da;
|
||||
PIVector<PIDeque<int> > x_list;
|
||||
PIVector<PIDeque<int>> x_list;
|
||||
|
||||
private slots:
|
||||
void rename();
|
||||
@@ -50,17 +50,16 @@ private slots:
|
||||
|
||||
signals:
|
||||
void removeRequest();
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class CDGraphics : public QWidget, public Ui::CDGraphics
|
||||
{
|
||||
class CDGraphics
|
||||
: public QWidget
|
||||
, public Ui::CDGraphics {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CDGraphics(QWidget *parent = 0);
|
||||
explicit CDGraphics(QWidget * parent = 0);
|
||||
~CDGraphics();
|
||||
|
||||
void reset();
|
||||
@@ -72,7 +71,7 @@ private:
|
||||
void addXToGraphic(const QString & xp, Graphic * g);
|
||||
void addGraphic();
|
||||
|
||||
QList<GDockWidget * > docks;
|
||||
QList<GDockWidget *> docks;
|
||||
QMainWindow * da;
|
||||
|
||||
public slots:
|
||||
@@ -86,7 +85,6 @@ private slots:
|
||||
void on_buttonRemoveAll_clicked();
|
||||
|
||||
signals:
|
||||
|
||||
};
|
||||
|
||||
#endif // CDGRAPHICS_H
|
||||
|
||||
Reference in New Issue
Block a user