Changeset 789


Ignore:
Timestamp:
Apr 13, 2009, 11:32:47 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Addresses #97. Removed GnuplotFE dependency in File.cc

Location:
branches/replacing_gnuplot/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/replacing_gnuplot/lib/File.cc

    r784 r789  
    2626#include "Configuration.h"
    2727#include "Date.h"
    28 #include "GnuplotFE.h"
     28#include "Graph.h"
    2929#include "html_utility.h"
    3030#include "HtmlStream.h"
     
    246246    int first=0;
    247247    bool using_dates=true;
    248     if (GnuplotFE::instance()->dates().empty()){
     248    if (!Graph::date_xticks()) {
    249249      using_dates=false;
    250250      last = stats_["classic"].revision();
    251251    }
    252252    else {
    253       last = Date(GnuplotFE::instance()->dates().back()).seconds();
     253      last = Date(Graph::xticks().back()).seconds();
    254254      // earliest date corresponds either to revision 0 or revision 1
    255       first = std::min(Date(GnuplotFE::instance()->dates()[0]).seconds(),
    256                        Date(GnuplotFE::instance()->dates()[1]).seconds());
     255      first = std::min(Date(Graph::xticks()[0]).seconds(),
     256                       Date(Graph::xticks()[1]).seconds());
    257257    }
    258258    // color is calculated linearly on time, c = kt + m
  • branches/replacing_gnuplot/lib/Graph.h

    r788 r789  
    2323*/
    2424
     25#include <string>
     26#include <vector>
     27
    2528namespace theplu {
    2629namespace svndigest {
     
    3437    */
    3538    Graph(void);
     39
     40    static bool date_xticks(void);
     41    static const std::vector<std::string>& xticks(void);
    3642  };
    3743
Note: See TracChangeset for help on using the changeset viewer.