Commit 0ffc4cd2 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[STYLE #42] removed unused variable and added progress

parent e28debe5
ADD_MODULE( data )
ADD_MODULE( fiberTranslator )
ADD_MODULE( readMesh )
ADD_MODULE( readRawData )
ADD_MODULE( writeDendrogram )
......
......@@ -111,8 +111,12 @@ void WMReadRawData::moduleMain()
{
break;
}
boost::shared_ptr< WProgress > progress = boost::shared_ptr< WProgress >( new WProgress( "Read Raw Data", 2 ) );
++*progress;
m_dataSet = readData( m_dataFile->get().file_string() );
++*progress;
m_output->updateData( m_dataSet );
progress->finish();
}
}
......@@ -135,9 +139,6 @@ boost::shared_ptr< WDataSetScalar > WMReadRawData::readData( std::string fileNam
throw std::runtime_error( "Problem during reading file. Probably file not found." );
}
unsigned char max = 0;
unsigned char min = 255;
size_t count = 0;
unsigned char *pointData = new unsigned char[ numVoxels ];
ifs.read( reinterpret_cast< char* >( pointData ), 3 * sizeof( unsigned char ) * numVoxels );
......
......@@ -180,7 +180,8 @@ void WMainWindow::setupGUI()
// NOTE: this only is an initial size. The state reloaded from QSettings will set it to the value the user had last session.
resize( 800, 600 );
setWindowIcon( m_iconManager.getIcon( "logo" ) );
setWindowTitle( QApplication::translate( "MainWindow", "OpenWalnut (development version)", 0, QApplication::UnicodeUTF8 ) );
std::string windowHeading = std::string( "OpenWalnut " ) + std::string( W_VERSION );
setWindowTitle( QApplication::translate( "MainWindow", windowHeading.c_str(), 0, QApplication::UnicodeUTF8 ) );
setDockOptions( QMainWindow::AnimatedDocks | QMainWindow::AllowNestedDocks | QMainWindow::AllowTabbedDocks );
......@@ -704,7 +705,8 @@ void WMainWindow::openAboutDialog()
{
std::string filename( WPathHelper::getDocPath().file_string() + "/openwalnut-qt4/OpenWalnutAbout.html" );
std::string content = readFileIntoString( filename );
QMessageBox::about( this, "About OpenWalnut", content.c_str() );
std::string windowHeading = std::string( "About OpenWalnut " ) + std::string( W_VERSION );
QMessageBox::about( this, windowHeading.c_str(), content.c_str() );
}
void WMainWindow::openOpenWalnutHelpDialog()
......
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