Commit 3b69d7a4 authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

Name for the vertical diagram changed and including diagrams headers in

the src.pro
parent 875f106b
......@@ -92,7 +92,9 @@ HEADERS += message/Message.hpp \
# Statistics headers
statistics/Stats_window.hpp \
statistics/Statistic.hpp \
statistics/DrawStats.hpp
statistics/DrawStats.hpp \
statistics/DrawVDiagram.hpp \
statistics/DrawHDiagram.hpp
FORMS += interface/info_window.ui interface/main_window.ui interface/option_export_window.ui interface/stats_viewer.ui
SOURCES += message/Message.cpp \
......
/*!
*\file DrawDiagram.hpp
*\file DrawVDiagram.hpp
*/
#ifndef DRAW_DIAGRAM_HPP
#define DRAW_DIAGRAM_HPP
#ifndef DRAW_VDIAGRAM_HPP
#define DRAW_VDIAGRAM_HPP
#include <string>
#include <vector>
......@@ -16,17 +16,17 @@
#include "DrawStats.hpp"
/*!
* \class DrawDiagram
* \class DrawVDiagram
* \brief Browse the stats and call back T drawing methods
*/
template<class T>
class DrawDiagram : public DrawStats<T> {
class DrawVDiagram : public DrawStats<T> {
public:
/*
* \brief The default constructor
*/
DrawDiagram() {
DrawVDiagram() {
this->_size_for_one_container = _HEIGHT_FOR_ONE_CONTAINER_DEFAULT;
set_geometrical_informations();
}
......@@ -35,7 +35,7 @@ public:
/*!
* \brief The destructor
*/
virtual ~DrawDiagram() {
virtual ~DrawVDiagram() {
}
......
......@@ -13,6 +13,10 @@ Stats_window::Stats_window(QWidget *parent) : QMainWindow(parent) {
QMetaObject::connectSlotsByName(NULL);
}
Stats_window::~Stats_window() {
delete _ui_stats_area;
}
void Stats_window::set_container_names() {
const list <Container *> *root_containers = _trace->get_root_containers();
......@@ -173,7 +177,7 @@ void Stats_window::on_reload_button_clicked() {
drawer = new DrawHDiagram<Render_stats_opengl>();
break;
case _DIAGRAM_INDEX:
drawer = new DrawDiagram<Render_stats_opengl>();
drawer = new DrawVDiagram<Render_stats_opengl>();
break;
case _CHART_INDEX:
default:
......@@ -230,7 +234,7 @@ void Stats_window::on_export_button_clicked(){
drawer = new DrawHDiagram<Render_stats_svg>();
break;
case _DIAGRAM_INDEX:
drawer = new DrawDiagram<Render_stats_svg>();
drawer = new DrawVDiagram<Render_stats_svg>();
break;
case _CHART_INDEX:
default:
......
......@@ -22,7 +22,7 @@ class Stats_window;
#include "../render/render_stats_opengl.hpp"
#include "../render/render_stats_svg.hpp"
#include "DrawStats.hpp"
#include "DrawDiagram.hpp"
#include "DrawVDiagram.hpp"
#include "DrawHDiagram.hpp"
/*!
......@@ -71,6 +71,8 @@ public:
*/
Stats_window(QWidget *parent);
~Stats_window();
/*!
* \fn set_container_names()
* \brief Set the names of the containers in the tree
......
Markdown is supported
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