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
AutoColor removed from Preferences and Doc update
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetIntValue.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetIntValue.h
b/src/ModuleBase/ModuleBase_WidgetIntValue.h
index 4a13ed44254e28b69a56c588e715d916694203f6..1ed4487ae55a87d5d2cedd9ea85a109e84731f50 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetIntValue.h
+++ b/
src/ModuleBase/ModuleBase_WidgetIntValue.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-20
17
CEA/DEN, EDF R&D
+// Copyright (C) 2014-20
21
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_WidgetIntValue_H
//
#ifndef ModuleBase_WidgetIntValue_H
@@
-24,7
+23,7
@@
#include "ModuleBase.h"
#include "ModuleBase_ModelWidget.h"
#include "ModuleBase.h"
#include "ModuleBase_ModelWidget.h"
-class ModuleBase_Param
Int
SpinBox;
+class ModuleBase_ParamSpinBox;
class Config_WidgetAPI;
class QWidget;
class QLabel;
class Config_WidgetAPI;
class QWidget;
class QLabel;
@@
-49,6
+48,9
@@
Q_OBJECT
virtual ~ModuleBase_WidgetIntValue();
virtual ~ModuleBase_WidgetIntValue();
+ /// The methiod called when widget is activated
+ virtual void activateCustom();
+
/// Select the internal content if it can be selected. It is empty in the default realization
virtual void selectContent();
/// Select the internal content if it can be selected. It is empty in the default realization
virtual void selectContent();
@@
-56,10
+58,13
@@
Q_OBJECT
/// \return a control list
virtual QList<QWidget*> getControls() const;
/// \return a control list
virtual QList<QWidget*> getControls() const;
+ /// Returns True if data of its feature was modified during operation
+ virtual bool isModified() const;
+
+protected:
/// Returns true if the event is processed.
virtual bool processEnter();
/// Returns true if the event is processed.
virtual bool processEnter();
-protected:
/// Saves the internal parameters to the given feature
/// \return True in success
virtual bool storeValueCustom();
/// Saves the internal parameters to the given feature
/// \return True in success
virtual bool storeValueCustom();
@@
-77,7
+82,12
@@
protected:
QLabel* myLabel;
/// Input value control
QLabel* myLabel;
/// Input value control
- ModuleBase_ParamIntSpinBox* mySpinBox;
+ ModuleBase_ParamSpinBox* mySpinBox;
+
+ FeaturePtr myParameter;
+
+ int myDefVal;
+ bool myHasDefault;
};
#endif
};
#endif