Commit f4e1b975 authored by Johnny Jazeix's avatar Johnny Jazeix

Ajout doxygen, correction manuels.

parent a05eca98
......@@ -8,7 +8,7 @@ void Progress_bar_thread::init(Parser *p, Interface_console *i){
void Progress_bar_thread::run() {
int loaded = 0;
while(1) {
while(loaded < 95) {
loaded = _parser->get_size_loaded() + 1;
msleep(500); // We wait 500 ms
QApplication::processEvents();
......
......@@ -20,9 +20,18 @@ private:
Parser *_parser;
public:
/*!
* \fn init(Parser *p,Interface_console *i)
* \param p the parser used to parse the file.
* \param i the interface where is stored the progress bar.
*/
void init(Parser *p,Interface_console *i);
protected:
/*!
* \fn run()
* \brief run the thread.
*/
void run();
};
......
......@@ -119,14 +119,12 @@ bool Interface_console::draw_trace(const string & filename, const int format){
catch (const string &error) {
Error::print_numbers();
Error::flush_in_file("log.txt");
// thread.terminate();
// delete _progress_dialog;
//delete _progress_dialog;
*Message::get_instance() << "Reason : " << error << Message::ende;
QApplication::restoreOverrideCursor();
return false;
}
// thread.terminate();
// delete _progress_dialog;
//delete _progress_dialog;
drawing_ogl.build(_render_opengl, &trace);
_render_opengl->build();
......
......@@ -372,7 +372,10 @@ void Interface_graphic::option_export_ok_pressed(){
tr("Images (*.svg)"));
if (!filename.isEmpty()) {
// Adding .svg to the end
if(!filename.endsWith(".svg")) {
filename += ".svg";
}
information(string("Exporting trace to ")+filename.toStdString());
......
/*!
*\file Definition.hpp
*\brief This file contains the definition during decoding the trace file.
*/
#ifndef DEFINITION_HPP
#define DEFINITION_HPP
......
/*!
*\file Line.hpp
*/
#ifndef LINE_HPP
#define LINE_HPP
......
/*!
*\file Parser.hpp
*\brief This file contains the abstract layer for the parser.
*/
#ifndef PARSER_HPP
#define PARSER_HPP
......
/*!
*\file ParserDefinitionDecoder.hpp
*/
#ifndef PARSERDEFINITIONDECODER_HPP
#define PARSERDEFINITIONDECODER_HPP
......
/*!
*\file ParserEventDecoder.hpp
*\brief This file contains the event decoder used by the ParserPaje.
*/
#ifndef PARSEREVENTDECODER_HPP
#define PARSEREVENTDECODER_HPP
......
/*!
* \file ParserPaje.hpp
* \brief the implementation of Parser for Paje traces.
*/
#ifndef PARSERPAJE_HPP
#define PARSERPAJE_HPP
......
/*!
*\file TokenSource.hpp
*/
#ifndef TOKENSOURCE_HPP
#define TOKENSOURCE_HPP
......
......@@ -112,45 +112,38 @@ private:
public:
/*
* \def MARGIN
/*!
* \brief Distance between two container
*/
static const double MARGIN = 10.;
/*
* \def ARROWSIZE
/*!
* \brief Spike size
*/
static const double ARROWSIZE = 2.;
/*
* \def MARGINSTATE
/*!
* \brief Distance between two states
*/
static const double MARGINSTATE = 0.5;
/*
* \def MARGINTOP
/*!
* \brief offset between the top and the picture due to the scale
*/
static const double MARGINTOP = 20.;
/*
* \def WAIT_NEW_CHRONO
/*!
* \brief a State of chronogramme drawer automaton
*/
static const double WAIT_NEW_CHRONO = 0.;
/*
* \def INIT
/*!
* \brief a State of chronogramme drawer automaton
*/
static const double INIT = 1.;
/*
* \def WAIT_FOR_POINT
/*!
* \brief a State of chronogramme drawer automaton
*/
static const double WAIT_FOR_POINT = 2.;
......@@ -173,7 +166,7 @@ public:
*/
static Element_pos _wide_factor;
/*
/*!
*\brief Svg display is grown by _height_factor (in pixel/second), default 20, and command line changed with -w _wide_factor
It corresponds to the height of a containers in pixel
*/
......
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