Commit 37cde7eb authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] made it compile on windows: initialized static variable and deactivated...

[FIX] made it compile on windows: initialized static variable and deactivated configuration stuff temporarily
parent b1c63f7f
......@@ -48,16 +48,21 @@ WQt4Gui::WQt4Gui( int argc, char** argv ):
WQt4Gui::~WQt4Gui()
{
}
const unsigned int boost::program_options::options_description::m_default_line_length = (unsigned int)2048;
bool WQt4Gui::parseOptions( int argc, char** argv )
{
// since the namespace is far to big we use a shortcut here
namespace po = boost::program_options;
po::options_description desc( "Allowed options" );
po::options_description desc( "Allowed options", 2048 );
#ifndef _WIN32
// TODO(wiebel): this does not link on windows at the moment. But it should!
desc.add_options()
( "help,h", "Prints this help message" )
( "input,i", po::value< std::vector< std::string > >(), "Input data files that should be loaded automatically" );
#endif
po::positional_options_description p;
p.add( "input", -1 );
......@@ -82,10 +87,13 @@ bool WQt4Gui::parseOptions( int argc, char** argv )
//=====================
// CONFIGURATION FILE
po::options_description guiConfigurationDescription( "GUI configuration" );
#ifndef _WIN32
// TODO(wiebel): this does not link on windows at the moment. But it should!
guiConfigurationDescription.add_options()
( "ge.bgColor.r", po::value< float >() )
( "ge.bgColor.g", po::value< float >() )
( "ge.bgColor.b", po::value< float >() );
#endif
std::ifstream ifs;
ifs.open( "walnut.cfg", std::ifstream::in );
......
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