/* * * Ophcrack is a Lanmanager/NTLM hash cracker based on the faster time-memory * trade-off using rainbow tables. * * Created with the help of: Maxime Mueller, Luca Wullschleger, Claude * Hochreutiner, Andreas Huber and Etienne Dysli. * * Copyright (c) 2009 Philippe Oechslin, Cedric Tissieres, Bertrand Mesot * * Ophcrack is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Ophcrack is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Ophcrack; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * This program is released under the GPL with the additional exemption * that compiling, linking, and/or using OpenSSL is allowed. * * * * */ #ifndef GRAPHDIALOG_H #define GRAPHDIALOG_H #include #include #include #include #include using namespace QtCharts; #include "ophstat.h" #include "list.h" #include "ui_graphdialog.h" class GraphDialog : public QDialog, public Ui::GraphDialog { Q_OBJECT public: GraphDialog(QWidget *parent = 0); void plot(ophstat_t *stats, int crack_time); private: void initBarGraph(const int numValues, QChart* chart, QBarSet *set, QValueAxis *axisX, QValueAxis *axisY, QString title, const QColor color); void plotHistoLength(uint32_t *val, QChartView *view); void plotHistoCategory(uint32_t *val, QChartView *view); void plotCurve(list_t *list, int crack_time, QChartView *view); private: QBarSet *lengthSet; QChart *lengthHistogram; QValueAxis *lengthAxisX; QValueAxis *lengthAxisY; QBarSet *categorySet; QChart *categoryHistogram; QValueAxis *categoryAxisX; QValueAxis *categoryAxisY; QLineSeries *timeSeries; QVector *timeVector; QChart *timeCurve; QValueAxis *timeAxisX; QValueAxis *timeAxisY; }; #endif