From be264380ea352d9975373ac59bdaf0032a125c12 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sun, 9 Jan 2011 18:10:23 +0000 Subject: [PATCH] Some changes tailored for me in the initial state of the CellWidget. --- unicorn/src/CgtMain.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/unicorn/src/CgtMain.cpp b/unicorn/src/CgtMain.cpp index 040e7b5f..8f53c201 100644 --- a/unicorn/src/CgtMain.cpp +++ b/unicorn/src/CgtMain.cpp @@ -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( 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 ();