mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 04:20:33 +05:00
Fix for bug PAL11541 ( With Gnome and Xfce, some dialog boxes appear at the bottom-right corner of the Salome window ).
This commit is contained in:
parent
e8c71ef8da
commit
fe4a33ed2e
@ -1406,9 +1406,6 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
||||
else
|
||||
aDlg = new SMESHGUI_CuttingOfQuadsDlg(this);
|
||||
|
||||
int x, y ;
|
||||
DefineDlgPosition( aDlg, x, y );
|
||||
aDlg->move( x, y );
|
||||
aDlg->show();
|
||||
break;
|
||||
}
|
||||
|
@ -411,10 +411,6 @@ void SMESHGUI_AddMeshElementDlg::Init()
|
||||
if (Reverse)
|
||||
connect(Reverse, SIGNAL(stateChanged(int)), SLOT(CheckBox(int)));
|
||||
|
||||
// Move widget on the botton right corner of main widget
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); // displays Dialog
|
||||
|
||||
// set selection mode
|
||||
|
@ -362,10 +362,6 @@ SMESHGUI_ClippingDlg::SMESHGUI_ClippingDlg (SMESHGUI* theModule,
|
||||
/* to close dialog if study frame change */
|
||||
connect(mySMESHGUI, SIGNAL (SignalStudyFrameChanged()), this, SLOT(ClickOnCancel()));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
}
|
||||
|
||||
|
@ -160,9 +160,6 @@ void SMESHGUI_CreateHypothesesDlg::Init()
|
||||
connect(ListAlgoDefinition, SIGNAL(selectionChanged()), this, SLOT(onSelectionChanged()));
|
||||
connect(ListAlgoDefinition, SIGNAL(doubleClicked(QListViewItem*)), this, SLOT(onDoubleClicked(QListViewItem*)));
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
}
|
||||
|
||||
|
@ -269,9 +269,6 @@ void SMESHGUI_CreatePatternDlg::Init( const int theType )
|
||||
activateSelection();
|
||||
onSelectionDone();
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
}
|
||||
|
||||
|
@ -363,10 +363,6 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::Init()
|
||||
/* to close dialog if study change */
|
||||
connect( mySMESHGUI, SIGNAL ( SignalCloseAllDialogs() ), this, SLOT( ClickOnCancel() ) ) ;
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y ;
|
||||
mySMESHGUI->DefineDlgPosition( this, x, y ) ;
|
||||
this->move( x, y ) ;
|
||||
this->show() ; /* displays Dialog */
|
||||
|
||||
ConstructorsClicked(0);
|
||||
|
@ -162,9 +162,6 @@ void SMESHGUI_DeleteGroupDlg::Init ()
|
||||
connect(mySMESHGUI, SIGNAL(SignalDeactivateActiveDialog()), SLOT(onDeactivate()));
|
||||
connect(mySMESHGUI, SIGNAL(SignalCloseAllDialogs()), SLOT(onClose()));
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
|
||||
// set selection mode
|
||||
|
@ -62,10 +62,6 @@ SMESHGUI_Dialog::~SMESHGUI_Dialog()
|
||||
void SMESHGUI_Dialog::show()
|
||||
{
|
||||
adjustSize();
|
||||
SUIT_Desktop *PP = desktop();
|
||||
int x = abs( PP->x() + PP->size().width() - size().width() - 10 ),
|
||||
y = abs( PP->y() + PP->size().height() - size().height() - 10 );
|
||||
move(x, y);
|
||||
LightApp_Dialog::show();
|
||||
}
|
||||
|
||||
|
@ -290,9 +290,6 @@ void SMESHGUI_EditHypothesesDlg::Init()
|
||||
connect(ListHypDefinition, SIGNAL(doubleClicked(QListBoxItem*)), this, SLOT(addItem(QListBoxItem*)));
|
||||
connect(ListAlgoDefinition, SIGNAL(doubleClicked(QListBoxItem*)), this, SLOT(addItem(QListBoxItem*)));
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
|
||||
LineEditC1A1->setFocus();
|
||||
|
@ -186,10 +186,6 @@ void SMESHGUI_EditMeshDlg::Init()
|
||||
connect(mySMESHGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
|
||||
connect(mySMESHGUI, SIGNAL(SignalCloseAllDialogs()) , this, SLOT(ClickOnCancel()));
|
||||
|
||||
// Move widget on the bottom right corner of main widget
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); // displays Dialog
|
||||
|
||||
LineEditMesh->setFocus();
|
||||
|
@ -370,10 +370,7 @@ SMESHGUI_ExtrusionAlongPathDlg::SMESHGUI_ExtrusionAlongPathDlg( SMESHGUI* theMod
|
||||
ZSpin->editor()->installEventFilter(this);
|
||||
|
||||
/***************************************************************/
|
||||
// set position and show dialog box
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
|
||||
this->show(); // displays Dialog
|
||||
}
|
||||
|
||||
|
@ -264,10 +264,7 @@ SMESHGUI_ExtrusionDlg::SMESHGUI_ExtrusionDlg (SMESHGUI* theModule,
|
||||
connect(CheckBoxMesh, SIGNAL(toggled(bool)), SLOT(onSelectMesh(bool)));
|
||||
|
||||
/***************************************************************/
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
|
||||
this->show(); // displays Dialog
|
||||
|
||||
ConstructorsClicked(0);
|
||||
|
@ -1855,11 +1855,7 @@ void SMESHGUI_FilterDlg::Init (const QValueList<int>& theTypes)
|
||||
|
||||
connect(mySMESHGUI, SIGNAL(SignalDeactivateActiveDialog()), SLOT(onDeactivate()));
|
||||
connect(mySMESHGUI, SIGNAL(SignalCloseAllDialogs()), SLOT(onClose()));
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
|
||||
|
||||
updateMainButtons();
|
||||
updateSelection();
|
||||
|
||||
|
@ -343,10 +343,6 @@ void SMESHGUI_FilterLibraryDlg::Init (const QValueList<int>& theTypes,
|
||||
myListBox->setCurrentItem(0);
|
||||
}
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
|
||||
this->show();
|
||||
|
||||
updateMainButtons();
|
||||
|
@ -103,12 +103,6 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
||||
myGeomGroupBtn->setEnabled(false);
|
||||
myGeomGroupLine->setEnabled(false);
|
||||
}
|
||||
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y ;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
@ -136,11 +130,6 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
|
||||
myCurrentLineEdit = myMeshGroupLine;
|
||||
setSelectionMode(5);
|
||||
}
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y ;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -185,9 +185,6 @@ void SMESHGUI_GroupOpDlg::Init()
|
||||
connect(myBtn1, SIGNAL(clicked()), this, SLOT(onFocusChanged()));
|
||||
connect(myBtn2, SIGNAL(clicked()), this, SLOT(onFocusChanged()));
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
|
||||
// set selection mode
|
||||
|
@ -273,10 +273,6 @@ SMESHGUI_MergeNodesDlg::SMESHGUI_MergeNodesDlg( SMESHGUI* theModule, const char*
|
||||
/* to close dialog if study change */
|
||||
connect(mySMESHGUI, SIGNAL (SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
resize(0,0);
|
||||
|
@ -364,10 +364,6 @@ SMESHGUI_MeshInfosDlg::SMESHGUI_MeshInfosDlg (SMESHGUI* theModule,
|
||||
connect(mySMESHGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
|
||||
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionChanged()));
|
||||
|
||||
// resize and move dialog, then show
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
|
||||
// init dialog with current selection
|
||||
|
@ -351,9 +351,6 @@ void SMESHGUI_MeshPatternDlg::Init()
|
||||
activateSelection();
|
||||
onSelectionDone();
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
}
|
||||
|
||||
|
@ -224,9 +224,6 @@ void SMESHGUI_MoveNodesDlg::Init()
|
||||
reset();
|
||||
setEnabled(true);
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
|
||||
// set selection mode
|
||||
|
@ -374,10 +374,6 @@ void SMESHGUI_NodesDlg::Init ()
|
||||
/* to close dialog if study frame change */
|
||||
connect(mySMESHGUI, SIGNAL (SignalStudyFrameChanged()), SLOT(ClickOnCancel()));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
|
||||
// set selection mode
|
||||
|
@ -199,11 +199,6 @@ void SMESHGUI_Preferences_ColorDlg::Init()
|
||||
connect(mySMESHGUI, SIGNAL (SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
|
||||
/* to close dialog if study change */
|
||||
connect(mySMESHGUI, SIGNAL (SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -205,11 +205,6 @@ SMESHGUI_Preferences_SelectionDlg::SMESHGUI_Preferences_SelectionDlg( SMESHGUI*
|
||||
|
||||
connect(aOKBtn, SIGNAL(clicked()), this, SLOT(accept()));
|
||||
connect(aCloseBtn, SIGNAL(clicked()), this, SLOT(reject()));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y ;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -219,10 +219,6 @@ void SMESHGUI_RemoveElementsDlg::Init()
|
||||
connect(myEditCurrentArgument, SIGNAL(textChanged(const QString&)),
|
||||
SLOT(onTextChange(const QString&)));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
|
@ -218,10 +218,6 @@ void SMESHGUI_RemoveNodesDlg::Init()
|
||||
connect(myEditCurrentArgument, SIGNAL(textChanged(const QString&)),
|
||||
SLOT(onTextChange(const QString&)));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
SMESH::SetPointRepresentation(true);
|
||||
|
@ -211,10 +211,6 @@ void SMESHGUI_RenumberingDlg::Init()
|
||||
/* to close dialog if study change */
|
||||
connect(mySMESHGUI, SIGNAL (SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
myEditCurrentArgument = LineEditMesh;
|
||||
|
@ -334,10 +334,6 @@ SMESHGUI_RevolutionDlg::SMESHGUI_RevolutionDlg( SMESHGUI* theModule, const char*
|
||||
connect(LineEditElements, SIGNAL(textChanged(const QString&)), SLOT(onTextChange(const QString&)));
|
||||
connect(CheckBoxMesh, SIGNAL(toggled(bool)), SLOT(onSelectMesh(bool)));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
ConstructorsClicked(0);
|
||||
|
@ -323,10 +323,6 @@ SMESHGUI_RotationDlg::SMESHGUI_RotationDlg( SMESHGUI* theModule, const char* nam
|
||||
connect(LineEditElements, SIGNAL(textChanged(const QString&)), SLOT(onTextChange(const QString&)));
|
||||
connect(CheckBoxMesh, SIGNAL(toggled(bool)), SLOT(onSelectMesh(bool)));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
ConstructorsClicked(0);
|
||||
|
@ -313,10 +313,6 @@ SMESHGUI_SewingDlg::SMESHGUI_SewingDlg( SMESHGUI* theModule, const char* name,
|
||||
connect(LineEdit5, SIGNAL(textChanged(const QString&)), SLOT(onTextChange(const QString&)));
|
||||
connect(LineEdit6, SIGNAL(textChanged(const QString&)), SLOT(onTextChange(const QString&)));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
ConstructorsClicked(0);
|
||||
|
@ -203,10 +203,7 @@ void SMESHGUI_ShapeByMeshDlg::Init()
|
||||
|
||||
activateSelection();
|
||||
onSelectionDone();
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
|
||||
this->show();
|
||||
}
|
||||
|
||||
|
@ -233,9 +233,6 @@ void SMESHGUI_SingleEditDlg::Init()
|
||||
myApplyBtn->setEnabled(false);
|
||||
setEnabled(true);
|
||||
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
|
||||
// set selection mode
|
||||
|
@ -290,10 +290,7 @@ SMESHGUI_SmoothingDlg::SMESHGUI_SmoothingDlg( SMESHGUI* theModule, const char* n
|
||||
SLOT(onSelectMesh(bool)));
|
||||
|
||||
/***************************************************************/
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
|
||||
this->show(); // displays Dialog
|
||||
}
|
||||
|
||||
|
@ -164,9 +164,6 @@ SMESHGUI_StandardMeshInfosDlg::SMESHGUI_StandardMeshInfosDlg( SMESHGUI* theModul
|
||||
|
||||
// resize and move dialog, then show
|
||||
this->setMinimumSize(270, 428);
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
|
||||
// init dialog with current selection
|
||||
|
@ -317,10 +317,6 @@ SMESHGUI_SymmetryDlg::SMESHGUI_SymmetryDlg( SMESHGUI* theModule, const char* nam
|
||||
connect(LineEditElements, SIGNAL(textChanged(const QString&)), SLOT(onTextChange(const QString&)));
|
||||
connect(CheckBoxMesh, SIGNAL(toggled(bool)), SLOT(onSelectMesh(bool)));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
ConstructorsClicked(0);
|
||||
|
@ -293,10 +293,6 @@ SMESHGUI_TranslationDlg::SMESHGUI_TranslationDlg( SMESHGUI* theModule, const cha
|
||||
connect(LineEditElements, SIGNAL(textChanged(const QString&)), SLOT(onTextChange(const QString&)));
|
||||
connect(CheckBoxMesh, SIGNAL(toggled(bool)), SLOT(onSelectMesh(bool)));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show(); /* displays Dialog */
|
||||
|
||||
ConstructorsClicked(0);
|
||||
|
@ -146,10 +146,6 @@ SMESHGUI_TransparencyDlg::SMESHGUI_TransparencyDlg( SMESHGUI* theModule,
|
||||
connect(mySMESHGUI, SIGNAL (SignalCloseAllDialogs()), this, SLOT(ClickOnOk()));
|
||||
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionChanged()));
|
||||
|
||||
/* Move widget on the botton right corner of main widget */
|
||||
int x, y;
|
||||
mySMESHGUI->DefineDlgPosition(this, x, y);
|
||||
this->move(x, y);
|
||||
this->show();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user