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
updated copyright message
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_PagedContainer.h
diff --git
a/src/ModuleBase/ModuleBase_PagedContainer.h
b/src/ModuleBase/ModuleBase_PagedContainer.h
index 2a731b18c140da04e09285de2c2db1605ca15841..d97e46d45ba4c034e4b98da822eb12e07a6af33e 100644
(file)
--- a/
src/ModuleBase/ModuleBase_PagedContainer.h
+++ b/
src/ModuleBase/ModuleBase_PagedContainer.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-20
17
CEA/DEN, EDF R&D
+// Copyright (C) 2014-20
23
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
//
// 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 MODULEBASE_PAGEDCONTAINER_H_
//
#ifndef MODULEBASE_PAGEDCONTAINER_H_
@@
-48,7
+47,8
@@
class MODULEBASE_EXPORT ModuleBase_PagedContainer : public ModuleBase_ModelWidge
virtual int addPage( ModuleBase_PageBase* theWidget,
const QString& theName,
const QString& theCaseId,
virtual int addPage( ModuleBase_PageBase* theWidget,
const QString& theName,
const QString& theCaseId,
- const QPixmap& theIcon );
+ const QPixmap& theIcon,
+ const QString& theTooltip);
/// Redefinition of virtual function
virtual QList<QWidget*> getControls() const;
/// Redefinition of virtual function
virtual QList<QWidget*> getControls() const;
@@
-62,6
+62,9
@@
class MODULEBASE_EXPORT ModuleBase_PagedContainer : public ModuleBase_ModelWidge
/// Redefinition of virtual function
virtual void enableFocusProcessing();
/// Redefinition of virtual function
virtual void enableFocusProcessing();
+ /// The slot is called when user press Ok or OkPlus buttons in the parent property panel
+ virtual void onFeatureAccepted();
+
protected:
/// Returns index of current page
virtual int currentPageIndex() const = 0;
protected:
/// Returns index of current page
virtual int currentPageIndex() const = 0;
@@
-78,6
+81,9
@@
class MODULEBASE_EXPORT ModuleBase_PagedContainer : public ModuleBase_ModelWidge
/// Redefinition of virtual function
virtual bool restoreValueCustom();
/// Redefinition of virtual function
virtual bool restoreValueCustom();
+ // A flag which let to remeber last user choice and restore it on next launch
+ bool myRemeberChoice;
+
protected slots:
/// A slot called on page change
void onPageChanged();
protected slots:
/// A slot called on page change
void onPageChanged();
@@
-86,7
+92,7
@@
class MODULEBASE_EXPORT ModuleBase_PagedContainer : public ModuleBase_ModelWidge
bool myIsFocusOnCurrentPage;
QStringList myCaseIds;
QList<ModuleBase_PageBase*> myPages;
bool myIsFocusOnCurrentPage;
QStringList myCaseIds;
QList<ModuleBase_PageBase*> myPages;
-
+ std::string myDefValue;
};
#endif /* MODULEBASE_PAGEDCONTAINER_H_ */
};
#endif /* MODULEBASE_PAGEDCONTAINER_H_ */