Changeset 41
- Timestamp:
- 12/25/08 17:24:35 (3 years ago)
- Files:
-
- 1 removed
- 2 modified
-
branches/pdfcube-0.0.4 (deleted)
-
trunk/configure.ac (modified) (2 diffs)
-
trunk/src/pdfcube.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r40 r41 20 20 AC_PROG_CC 21 21 AC_PROG_CXX 22 AM_PROG_LIBTOOL22 dnl AM_PROG_LIBTOOL 23 23 AM_SANITY_CHECK 24 24 … … 41 41 AC_SUBST(gtkglext_LIBS) 42 42 43 PKG_CHECK_MODULES(poppler, poppler >= 0. 4.5)43 PKG_CHECK_MODULES(poppler, poppler >= 0.5.4) 44 44 AC_SUBST(poppler_CFLAGS) 45 45 AC_SUBST(poppler_LIBS) -
trunk/src/pdfcube.cc
r40 r41 30 30 #include <cmath> 31 31 #include <sstream> 32 33 // Removing GTK+ dependencies to ease portability. 32 34 // Gtk+ (pkg-config gtk+-2.0) 33 35 #include <gtk/gtk.h> … … 1864 1866 "Version information") 1865 1867 ("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.") 1867 1869 ("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].") 1869 1871 ("transitions,c", po::value<std::vector<int> >()->multitoken(), 1870 1872 "Pages at wich to do a cube transition by default eg. 2 4 7\nMust be the last option on the command line.") … … 1892 1894 cout << "Usage examples:" << endl; 1893 1895 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)" 1895 1899 << endl << endl << endl; 1896 1900 return 0; … … 1926 1930 string v; 1927 1931 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())); 1929 1933 if(cc.size() != 3) 1930 1934 { … … 1939 1943 string v; 1940 1944 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())); 1942 1946 if(tc.size() != 3) 1943 1947 {

