// Module : SMESH
// $Header$
-using namespace std;
#include "SMESHGUI_Preferences_SelectionDlg.h"
#include "SMESHGUI.h"
+#include "SMESHGUI_Utils.h"
+
+#include "SUIT_Desktop.h"
+
#include <qgroupbox.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qpalette.h>
#include <qcolordialog.h>
+using namespace std;
+
//=================================================================================
// class : SMESHGUI_LineEdit
// purpose :
// class : SMESHGUI_Preferences_SelectionDlg()
// purpose :
//=================================================================================
-SMESHGUI_Preferences_SelectionDlg::SMESHGUI_Preferences_SelectionDlg( QWidget* parent, const char* name )
- : QDialog( parent, name, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu )
+SMESHGUI_Preferences_SelectionDlg::SMESHGUI_Preferences_SelectionDlg( SMESHGUI* theModule, const char* name )
+ : QDialog( SMESH::GetDesktop( theModule ), name, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ),
+ mySMESHGUI( theModule )
{
if ( !name ) setName( "SMESHGUI_Preferences_SelectionDlg" );
setCaption( tr( "SMESH_PREF_SELECTION" ) );
/* Move widget on the botton right corner of main widget */
int x, y ;
- SMESHGUI::GetSMESHGUI()->DefineDlgPosition(this, x, y);
+ mySMESHGUI->DefineDlgPosition(this, x, y);
this->move(x, y);
}
double SMESHGUI_Preferences_SelectionDlg::GetPrecision(int type)
{
if (type > 0 && type <= 2)
- return myPrecision[type-1]->text().toDouble();
+ return myPrecision[type-1]->text().toDouble();
+ return 0;
}