Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[EDF] (2023-T1) Sketch middle point constrain should create point if missing
[modules/shaper.git]
/
src
/
SHAPERGUI
/
SHAPERGUI_ToolbarsMgr.h
diff --git
a/src/SHAPERGUI/SHAPERGUI_ToolbarsMgr.h
b/src/SHAPERGUI/SHAPERGUI_ToolbarsMgr.h
index 9d6e77536227359c857014dc4850afd085f727f5..b09bf680a53e3db258bedf1aaf18da00ae38e5c5 100644
(file)
--- a/
src/SHAPERGUI/SHAPERGUI_ToolbarsMgr.h
+++ b/
src/SHAPERGUI/SHAPERGUI_ToolbarsMgr.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-20
17 CEA/DEN, EDF R&D
+// Copyright (C) 2014-20
23 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-12,10
+12,9
@@
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
//
// 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
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
//
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#ifndef SHAPERGUI_ToolbarsMgr_H
//
#ifndef SHAPERGUI_ToolbarsMgr_H
@@
-79,6
+78,9
@@
private slots:
/// A slot to move a current item down in list of toolbar command
void onDown();
/// A slot to move a current item down in list of toolbar command
void onDown();
+ /// A slot on help call
+ void onHelp();
+
private:
QIntList getItems(QListWidget* theWidget, int theStart) const;
private:
QIntList getItems(QListWidget* theWidget, int theStart) const;
@@
-104,6
+106,11
@@
public:
/// Returns result of editing
QMap<QString, QIntList> result() const { return myResult; }
/// Returns result of editing
QMap<QString, QIntList> result() const { return myResult; }
+ /// Returns a flag of resetted toolbars structure
+ bool isReset() const {
+ return myIsReset;
+ }
+
private slots:
/// A slot to add a new toolbar
void onAdd();
private slots:
/// A slot to add a new toolbar
void onAdd();
@@
-114,6
+121,12
@@
private slots:
/// A slot to delete a current toolbar
void onDelete();
/// A slot to delete a current toolbar
void onDelete();
+ /// A slot to reset toolbars
+ void onReset();
+
+ /// A slot on help call
+ void onHelp();
+
/// A slot called on double click on item in list
void onDoubleClick(const QModelIndex& theIdx);
/// A slot called on double click on item in list
void onDoubleClick(const QModelIndex& theIdx);
@@
-124,9
+137,6
@@
private:
/// Update number of free items
void updateNumber();
/// Update number of free items
void updateNumber();
- /// Returns free commands which are not in toolbars in the module
- QIntList getModuleFreeCommands() const;
-
private:
SHAPERGUI* myModule;
QMap<QString, QIntList> myResult;
private:
SHAPERGUI* myModule;
QMap<QString, QIntList> myResult;
@@
-134,6
+144,8
@@
private:
QLabel* myFreeNbLbl;
QListWidget* myToolbarsList;
QLabel* myFreeNbLbl;
QListWidget* myToolbarsList;
+
+ bool myIsReset;
};
};