X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUIT%2FSUIT_PreferenceMgr.cxx;h=4f8cb3fecb48a7e7e5a3a5a307b74756d434bac3;hb=efe3cdefadc31ad9cdaa9fd7fc368e2931cebdf1;hp=512fdafa0b6a09a589ca3ba0b6f5a457e57a24d7;hpb=1c889394b028b786898a995d38c07c8f3d564837;p=modules%2Fgui.git diff --git a/src/SUIT/SUIT_PreferenceMgr.cxx b/src/SUIT/SUIT_PreferenceMgr.cxx index 512fdafa0..4f8cb3fec 100644 --- a/src/SUIT/SUIT_PreferenceMgr.cxx +++ b/src/SUIT/SUIT_PreferenceMgr.cxx @@ -1,24 +1,22 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// 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 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. +// 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. // -// 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 // -// 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 +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + // File: SUIT_PreferenceMgr.cxx // Author: Sergey TELKOV // @@ -98,7 +96,7 @@ int SUIT_PreferenceMgr::addItem( const QString& title, const int pId, item = new QtxPagePrefTabsItem( title, parent, sect, param ); break; case 2: - item = new QtxPagePrefFrameItem( title, parent, sect, param ); + item = new QtxPagePrefFrameItem( title, parent, sect, param, true ); break; case 3: item = new QtxPagePrefGroupItem( title, parent, sect, param ); @@ -132,6 +130,9 @@ int SUIT_PreferenceMgr::addItem( const QString& title, const int pId, case Integer: item = new QtxPagePrefEditItem( QtxPagePrefEditItem::Integer, title, parent, sect, param ); break; + case Slider: + item = new QtxPagePrefSliderItem( title, parent, sect, param ); + break; case GroupBox: item = new QtxPagePrefGroupItem( title, parent, sect, param ); break; @@ -150,6 +151,21 @@ int SUIT_PreferenceMgr::addItem( const QString& title, const int pId, case DirList: item = new QtxPagePrefPathListItem( Qtx::PT_Directory, title, parent, sect, param ); break; + case Shortcut: + item = new QtxPagePrefShortcutBtnsItem( title, parent, sect, param ); + break; + case ShortcutTree: + item = new QtxPagePrefShortcutTreeItem( title, parent, sect, param ); + break; + case BiColor: + item = new QtxPagePrefBiColorItem( title, parent, sect, param ); + break; + case Background: + item = new QtxPagePrefBackgroundItem( title, parent, sect, param ); + break; + case UserDefined: + item = new QtxUserDefinedItem(parent); + break; } return item ? item->id() : -1;