This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 26th, 2013  |  syntax: C++  |  size: 1.17 KB  |  views: 63  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #ifndef GRAPH_H
  2. #define GRAPH_H
  3.  
  4. #include <QWidget>
  5. #include <QtGui>
  6. #include <QDebug>
  7. #include <QtCore>
  8. #include <QtSql>
  9. #include "qcustomplot.h"
  10.  
  11.  
  12. class Graph : public QMainWindow
  13. {
  14.     Q_OBJECT
  15. public:
  16.     explicit Graph(QMainWindow *parent = 0);
  17.     QCustomPlot* customPlot;
  18. private:
  19.     Qt::GlobalColor getColor();
  20.     int xMax;
  21.     int yMax;
  22.     int counter;
  23.     int colorCounter;
  24.     QString databaseSti;
  25.     QSqlDatabase db;
  26.  
  27.  
  28.    
  29. signals:
  30.     void fileOpened();
  31.    
  32. public slots:
  33.     void exportGraph();
  34.     void addGraph(QString q);
  35.     void setXValue(int x);
  36.     void setYValue(int y);
  37.     void setDatabaseSti();
  38.     void enableBtn();
  39.  
  40. private slots:
  41.   void titleDoubleClick();
  42.   void axisLabelDoubleClick(QCPAxis* axis, QCPAxis::SelectablePart part);
  43.   void legendDoubleClick(QCPLegend* legend, QCPAbstractLegendItem* item);
  44.   void selectionChanged();
  45.   void mousePress();
  46.   void mouseWheel();
  47.   void addRandomGraph();
  48.   void removeSelectedGraph();
  49.   void removeAllGraphs();
  50.   void contextMenuRequest(QPoint pos);
  51.   void moveLegend();
  52.   void graphClicked(QCPAbstractPlottable *plottable);
  53.   void hideLegend();
  54. };
  55.  
  56. #endif // GRAPH_H
clone this paste RAW Paste Data