From: vsv Date: Tue, 15 Apr 2014 11:11:26 +0000 (+0400) Subject: Issue #19 X-Git-Tag: V_0.2~156 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=719bc4cc39fb244171bdf83a4d981dcbddbfc48c;p=modules%2Fshaper.git Issue #19 --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 4a5aa5c4e..25e3c14b1 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -68,6 +68,7 @@ void XGUI_Workshop::startApplication() myMainWindow->show(); updateCommandStatus(); + onNew(); // Testing of document creation //std::shared_ptr aMgr = ModelAPI_PluginManager::get(); //std::shared_ptr 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);