mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 10:40:34 +05:00
Modification, Transformation. IDs of elements are missing, if selection with rectange is used.
This commit is contained in:
parent
1f2f2d5fa5
commit
867613b15a
@ -651,7 +651,10 @@ void SMESHGUI_RotationDlg::SelectionIntoArgument()
|
|||||||
|
|
||||||
myBusy = true;
|
myBusy = true;
|
||||||
if (myEditCurrentArgument == (QWidget*)LineEditElements) {
|
if (myEditCurrentArgument == (QWidget*)LineEditElements) {
|
||||||
|
LineEditElements->setEnabled(true);
|
||||||
LineEditElements->setText(aString);
|
LineEditElements->setText(aString);
|
||||||
|
LineEditElements->repaint();
|
||||||
|
LineEditElements->setEnabled(false);
|
||||||
setNewMeshName();
|
setNewMeshName();
|
||||||
}
|
}
|
||||||
myBusy = false;
|
myBusy = false;
|
||||||
|
@ -583,7 +583,10 @@ void SMESHGUI_SmoothingDlg::SelectionIntoArgument()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
myBusy = true;
|
myBusy = true;
|
||||||
myEditCurrentArgument->setText(aString);
|
LineEditElements->setEnabled(true);
|
||||||
|
LineEditElements->setText(aString);
|
||||||
|
LineEditElements->repaint();
|
||||||
|
LineEditElements->setEnabled(false);
|
||||||
myBusy = false;
|
myBusy = false;
|
||||||
|
|
||||||
// OK
|
// OK
|
||||||
|
@ -741,7 +741,10 @@ void SMESHGUI_SymmetryDlg::SelectionIntoArgument()
|
|||||||
|
|
||||||
myBusy = true;
|
myBusy = true;
|
||||||
if (myEditCurrentArgument == (QWidget*)LineEditElements) {
|
if (myEditCurrentArgument == (QWidget*)LineEditElements) {
|
||||||
|
LineEditElements->setEnabled(true);
|
||||||
LineEditElements->setText(aString);
|
LineEditElements->setText(aString);
|
||||||
|
LineEditElements->repaint();
|
||||||
|
LineEditElements->setEnabled(false);
|
||||||
setNewMeshName();
|
setNewMeshName();
|
||||||
}
|
}
|
||||||
myBusy = false;
|
myBusy = false;
|
||||||
|
@ -80,6 +80,23 @@
|
|||||||
|
|
||||||
enum { MOVE_ELEMS_BUTTON = 0, COPY_ELEMS_BUTTON, MAKE_MESH_BUTTON }; //!< action type
|
enum { MOVE_ELEMS_BUTTON = 0, COPY_ELEMS_BUTTON, MAKE_MESH_BUTTON }; //!< action type
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\class BusyLocker
|
||||||
|
\brief Simple 'busy state' flag locker.
|
||||||
|
\internal
|
||||||
|
*/
|
||||||
|
|
||||||
|
class BusyLocker
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
//! Constructor. Sets passed boolean flag to \c true.
|
||||||
|
BusyLocker( bool& busy ) : myBusy( busy ) { myBusy = true; }
|
||||||
|
//! Destructor. Clear external boolean flag passed as parameter to the constructor to \c false.
|
||||||
|
~BusyLocker() { myBusy = false; }
|
||||||
|
private:
|
||||||
|
bool& myBusy; //! External 'busy state' boolean flag
|
||||||
|
};
|
||||||
|
|
||||||
#define SPACING 6
|
#define SPACING 6
|
||||||
#define MARGIN 11
|
#define MARGIN 11
|
||||||
|
|
||||||
@ -527,7 +544,7 @@ void SMESHGUI_TranslationDlg::onTextChange (const QString& theNewText)
|
|||||||
QLineEdit* send = (QLineEdit*)sender();
|
QLineEdit* send = (QLineEdit*)sender();
|
||||||
|
|
||||||
if (myBusy) return;
|
if (myBusy) return;
|
||||||
myBusy = true;
|
BusyLocker lock( myBusy );
|
||||||
|
|
||||||
if (send == LineEditElements)
|
if (send == LineEditElements)
|
||||||
myNbOkElements = 0;
|
myNbOkElements = 0;
|
||||||
@ -567,8 +584,6 @@ void SMESHGUI_TranslationDlg::onTextChange (const QString& theNewText)
|
|||||||
buttonOk->setEnabled(true);
|
buttonOk->setEnabled(true);
|
||||||
buttonApply->setEnabled(true);
|
buttonApply->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
myBusy = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -578,19 +593,17 @@ void SMESHGUI_TranslationDlg::onTextChange (const QString& theNewText)
|
|||||||
void SMESHGUI_TranslationDlg::SelectionIntoArgument()
|
void SMESHGUI_TranslationDlg::SelectionIntoArgument()
|
||||||
{
|
{
|
||||||
if (myBusy) return;
|
if (myBusy) return;
|
||||||
|
BusyLocker lock( myBusy );
|
||||||
// clear
|
// clear
|
||||||
myActor = 0;
|
myActor = 0;
|
||||||
QString aString = "";
|
QString aString = "";
|
||||||
|
|
||||||
myBusy = true;
|
|
||||||
if (myEditCurrentArgument == (QWidget*)LineEditElements) {
|
if (myEditCurrentArgument == (QWidget*)LineEditElements) {
|
||||||
LineEditElements->setText(aString);
|
LineEditElements->setText(aString);
|
||||||
myNbOkElements = 0;
|
myNbOkElements = 0;
|
||||||
buttonOk->setEnabled(false);
|
buttonOk->setEnabled(false);
|
||||||
buttonApply->setEnabled(false);
|
buttonApply->setEnabled(false);
|
||||||
}
|
}
|
||||||
myBusy = false;
|
|
||||||
|
|
||||||
if (!GroupButtons->isEnabled()) // inactive
|
if (!GroupButtons->isEnabled()) // inactive
|
||||||
return;
|
return;
|
||||||
@ -707,12 +720,13 @@ void SMESHGUI_TranslationDlg::SelectionIntoArgument()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
myBusy = true;
|
|
||||||
if (myEditCurrentArgument == (QWidget*)LineEditElements) {
|
if (myEditCurrentArgument == (QWidget*)LineEditElements) {
|
||||||
|
LineEditElements->setEnabled(true);
|
||||||
LineEditElements->setText(aString);
|
LineEditElements->setText(aString);
|
||||||
|
LineEditElements->repaint();
|
||||||
|
LineEditElements->setEnabled(false);
|
||||||
setNewMeshName();
|
setNewMeshName();
|
||||||
}
|
}
|
||||||
myBusy = false;
|
|
||||||
|
|
||||||
// OK
|
// OK
|
||||||
if (myNbOkElements) {
|
if (myNbOkElements) {
|
||||||
|
Loading…
Reference in New Issue
Block a user