Changeset 41

Show
Ignore:
Timestamp:
12/25/08 17:24:35 (3 years ago)
Author:
mirko
Message:

Fixed a localization bug in command line parting, updated the poppler version dependency

Files:
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r40 r41  
    2020AC_PROG_CC 
    2121AC_PROG_CXX 
    22 AM_PROG_LIBTOOL 
     22dnl AM_PROG_LIBTOOL 
    2323AM_SANITY_CHECK 
    2424 
     
    4141AC_SUBST(gtkglext_LIBS) 
    4242 
    43 PKG_CHECK_MODULES(poppler, poppler >= 0.4.5) 
     43PKG_CHECK_MODULES(poppler, poppler >= 0.5.4) 
    4444AC_SUBST(poppler_CFLAGS) 
    4545AC_SUBST(poppler_LIBS) 
  • trunk/src/pdfcube.cc

    r40 r41  
    3030#include <cmath> 
    3131#include <sstream> 
     32 
     33// Removing GTK+ dependencies to ease portability. 
    3234// Gtk+ (pkg-config gtk+-2.0) 
    3335#include <gtk/gtk.h> 
     
    18641866     "Version information") 
    18651867    ("bgcolor,b", po::value<std::string>(), 
    1866      "Background color is 'r,g,b' with real values between 0.0 and 1.0, no spaces.") 
     1868     "Background color is 'r:g:b' with real values between 0.0 and 1.0, no spaces.") 
    18671869    ("top-color,t", po::value<std::string>(), 
    1868      "Cube top color in 'r,g,b' format again with reals in [0,1].") 
     1870     "Cube top color in 'r:g:b' format again with reals in [0,1].") 
    18691871    ("transitions,c", po::value<std::vector<int> >()->multitoken(),  
    18701872     "Pages at wich to do a cube transition by default eg. 2 4 7\nMust be the last option on the command line.") 
     
    18921894    cout << "Usage examples:" << endl; 
    18931895    cout << "  $ pdfcube presentation.pdf" << endl; 
    1894     cout << "  $ pdfcube presentation.pdf --bgcolor 0,0,0 --top-color 0.6,0.2,0.2 --transitions 1 5 7" 
     1896    cout << "  $ pdfcube presentation.pdf --bgcolor 0:0:0 --top-color 0.6:0.2:0.2 --transitions 1 5 7" 
     1897         << endl  
     1898         << "  (floating point numbers are locale aware on some C libraries)" 
    18951899         << endl << endl << endl; 
    18961900    return 0; 
     
    19261930    string v; 
    19271931    std::istringstream iss(vm["bgcolor"].as<std::string>()); 
    1928     while(getline(iss, v, ',')) cc.push_back(::atof(v.c_str()));  
     1932    while(getline(iss, v, ':')) cc.push_back(::atof(v.c_str()));  
    19291933    if(cc.size() != 3) 
    19301934      { 
     
    19391943    string v; 
    19401944    std::istringstream iss(vm["top-color"].as<std::string>()); 
    1941     while(getline(iss, v, ',')) tc.push_back(::atof(v.c_str()));  
     1945    while(getline(iss, v, ':')) tc.push_back(::atof(v.c_str()));  
    19421946    if(tc.size() != 3) 
    19431947      {