Version: 9.15.0
SUIT_PagePrefShortcutTreeItem.h
Go to the documentation of this file.
1 // Copyright (C) 2007-2025 CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 #ifndef SUIT_PAGEPREFSHORTCUTTREEITEM_H
24 #define SUIT_PAGEPREFSHORTCUTTREEITEM_H
25 
26 #include "SUIT.h"
27 #include <QtxPagePrefMgr.h>
28 
29 #include <map>
30 #include <memory>
31 
32 
33 class SUIT_ShortcutTree;
35 
36 
38 {
39 public:
41  virtual ~SUIT_PagePrefShortcutTreeItem() = default;
42 
43  virtual void retrieve();
44  virtual void retrieveDefault();
45  virtual void store();
46 
47 private:
48  // { root item (preference window), shortcut container of synchronized SUIT_ShortcutTabWidgets (widgets within the same window) }
49  static std::map<QtxPreferenceItem*, std::weak_ptr<SUIT_ShortcutContainer>> shortcutContainers;
60 };
61 
62 #endif // SUIT_PAGEPREFSHORTCUTTREEITEM_H
#define SUIT_EXPORT
Definition: SUIT.h:36
Base class for implementation of all the widget-based preference items.
Definition: QtxPagePrefMgr.h:99
virtual void retrieve()
Retrieve preference item from the resource manager.
Definition: QtxPagePrefMgr.cxx:405
virtual void store()
Store preference item to the resource manager.
Definition: QtxPagePrefMgr.cxx:393
Base class for implementing of all the preference items.
Definition: QtxPreferenceMgr.h:41
virtual void retrieveDefault()
Restore preference item (for example, from the resource file, ignoring user preferences)....
Definition: QtxPreferenceMgr.cxx:517
Definition: SUIT_PagePrefShortcutTreeItem.h:38
virtual ~SUIT_PagePrefShortcutTreeItem()=default
static std::map< QtxPreferenceItem *, std::weak_ptr< SUIT_ShortcutContainer > > shortcutContainers
Definition: SUIT_PagePrefShortcutTreeItem.h:49
Provides means to keep and edit shortcuts in compliance with the application logics....
Definition: SUIT_ShortcutMgr.h:70
Definition: SUIT_ShortcutEditor.h:236