]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #19
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 15 Apr 2014 11:11:26 +0000 (15:11 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 15 Apr 2014 11:11:26 +0000 (15:11 +0400)
src/XGUI/XGUI_Workshop.cpp

index 4a5aa5c4e4605aca6b6b7d617ea94cc373769bc2..25e3c14b124f724ebe8e58ef08f73a4e4f7ed860 100644 (file)
@@ -68,6 +68,7 @@ void XGUI_Workshop::startApplication()
   myMainWindow->show();
 
   updateCommandStatus();
+  onNew();
   // Testing of document creation
   //std::shared_ptr<ModelAPI_PluginManager> aMgr = ModelAPI_PluginManager::get();
   //std::shared_ptr<ModelAPI_Feature> aPoint1 = aMgr->rootDocument()->addFeature("Point");
@@ -116,9 +117,9 @@ void XGUI_Workshop::initMenu()
                                 QIcon(":pictures/open.png"), QKeySequence::Open);
   aCommand->connectTo(this, SLOT(onOpen()));
 
-  aCommand = aGroup->addFeature("NEW_CMD", tr("New"), tr("Create a new document"),
-                                QIcon(":pictures/new.png"), QKeySequence::New);
-  aCommand->connectTo(this, SLOT(onNew()));
+  //aCommand = aGroup->addFeature("NEW_CMD", tr("New"), tr("Create a new document"),
+  //                              QIcon(":pictures/new.png"), QKeySequence::New);
+  //aCommand->connectTo(this, SLOT(onNew()));
 
   aCommand = aGroup->addFeature("EXIT_CMD", tr("Exit"), tr("Exit application"),
                                 QIcon(":pictures/close.png"), QKeySequence::Close);