Some changes tailored for me in the initial state of the CellWidget.

This commit is contained in:
Jean-Paul Chaput 2011-01-09 18:10:23 +00:00
parent ad00c58ffe
commit be264380ea
1 changed files with 7 additions and 1 deletions

View File

@ -50,6 +50,7 @@ namespace bfs = boost::filesystem;
#include "hurricane/viewer/HApplication.h"
#include "hurricane/viewer/Graphics.h"
#include "hurricane/viewer/StratusScript.h"
#include "hurricane/viewer/SelectCommand.h"
using namespace Hurricane;
#include "crlcore/Utilities.h"
@ -436,7 +437,12 @@ int main ( int argc, char *argv[] )
//unicorn->registerTool ( Equinox::GraphicEquinoxEngine::grab() );
//unicorn->registerTool ( Solstice::GraphicSolsticeEngine::grab() );
unicorn->getCellWidget()->setLayerVisible ( "grid", false );
SelectCommand* command = static_cast<SelectCommand*>( unicorn->getCellWidget()->getCommand(SelectCommand::getStaticName()) );
if ( command ) command->setSelectMode ( SelectCommand::NoAnonNetMode );
unicorn->getCellWidget()->setLayerVisible ( "grid" , false );
unicorn->getCellWidget()->setLayerVisible ( "text.instance" , false );
unicorn->getCellWidget()->setLayerVisible ( "text.component", false );
unicorn->setCell ( cell );
unicorn->show ();