X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ContextMenuMgr.h;h=97a8584dfe0b8e4e03f6f2048cb313eb5906e714;hb=00a3c1675ca0ead43040cafa3a99f984e1d8177b;hp=52c1e6381cf762e622f871b4cbde407bd06cb941;hpb=66d913fb8f4a0b7764fbb79a4139785db4b3b346;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ContextMenuMgr.h b/src/XGUI/XGUI_ContextMenuMgr.h index 52c1e6381..97a8584df 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.h +++ b/src/XGUI/XGUI_ContextMenuMgr.h @@ -1,4 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #ifndef XGUI_ContextMenuMgr_H #define XGUI_ContextMenuMgr_H @@ -61,6 +79,9 @@ Q_OBJECT /// \return a list of group names QStringList actionObjectGroups(const QString& theName); + /// Updates menu for object browser + void updateObjectBrowserMenu(); + /// Updates menu for viewer void updateViewerMenu(); @@ -87,6 +108,12 @@ signals: void onRename(); + /// Slot called on Result selection menu press + void onResultSelection(bool theChecked); + + /// Slot called on any shape selection menu press + void onShapeSelection(bool theChecked); + private: /** * Add action @@ -97,9 +124,6 @@ signals: void addFeatures(QMenu* theMenu) const; - /// Updates menu for object browser - void updateObjectBrowserMenu(); - /// Creates menu for object browser void buildObjBrowserMenu(); @@ -116,9 +140,11 @@ signals: QMap myObjBrowserMenus; QMap myViewerMenu; - QActionGroup* mySelectActions; + //QActionGroup* mySelectActions; - QAction* mySeparator; + QAction* mySeparator1; + QAction* mySeparator2; + QAction* mySeparator3; }; #endif