mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 01:22:05 +05:00
DCQ : Rename Classes
This commit is contained in:
parent
e0a7383279
commit
8c9a45b900
@ -21,7 +21,7 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// File : GEOMBase_Tools.cxx
|
// File : GEOMToolsGUI.cxx
|
||||||
// Author : Damien COQUERET
|
// Author : Damien COQUERET
|
||||||
// Module : GEOM
|
// Module : GEOM
|
||||||
// $Header:
|
// $Header:
|
||||||
@ -150,7 +150,7 @@ bool GEOMToolsGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
|
|||||||
{
|
{
|
||||||
if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() > VIEW_OCC)
|
if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() > VIEW_OCC)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
|
OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
|
||||||
Handle (AIS_InteractiveContext) ic = v3d->getAISContext();
|
Handle (AIS_InteractiveContext) ic = v3d->getAISContext();
|
||||||
|
|
||||||
@ -213,7 +213,7 @@ bool GEOMToolsGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
|
|||||||
else
|
else
|
||||||
IsoV = "1";
|
IsoV = "1";
|
||||||
|
|
||||||
GEOMBase_NbIsosDlg* NbIsosDlg = new GEOMBase_NbIsosDlg(QAD_Application::getDesktop(), tr("GEOM_MEN_ISOS"), TRUE);
|
GEOMToolsGUI_NbIsosDlg* NbIsosDlg = new GEOMToolsGUI_NbIsosDlg(QAD_Application::getDesktop(), tr("GEOM_MEN_ISOS"), TRUE);
|
||||||
int UIso = IsoU.toInt();
|
int UIso = IsoU.toInt();
|
||||||
int VIso = IsoV.toInt();
|
int VIso = IsoV.toInt();
|
||||||
|
|
||||||
@ -401,7 +401,7 @@ bool GEOMToolsGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
|
|||||||
OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
|
OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
|
||||||
ic = v3d->getAISContext();
|
ic = v3d->getAISContext();
|
||||||
}
|
}
|
||||||
GEOMBase_TransparencyDlg *aDlg = new GEOMBase_TransparencyDlg(parent, "", Sel, ic);
|
GEOMToolsGUI_TransparencyDlg *aDlg = new GEOMToolsGUI_TransparencyDlg(parent, "", Sel, ic);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 8034: // ISOS - POPUP VIEWER
|
case 8034: // ISOS - POPUP VIEWER
|
||||||
@ -427,8 +427,8 @@ bool GEOMToolsGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
|
|||||||
else
|
else
|
||||||
IsoV = "1";
|
IsoV = "1";
|
||||||
|
|
||||||
GEOMBase_NbIsosDlg * NbIsosDlg =
|
GEOMToolsGUI_NbIsosDlg * NbIsosDlg =
|
||||||
new GEOMBase_NbIsosDlg(QAD_Application::getDesktop(), tr("GEOM_MEN_ISOS"), TRUE);
|
new GEOMToolsGUI_NbIsosDlg(QAD_Application::getDesktop(), tr("GEOM_MEN_ISOS"), TRUE);
|
||||||
|
|
||||||
NbIsosDlg->SpinBoxU->setValue(IsoU.toInt());
|
NbIsosDlg->SpinBoxU->setValue(IsoU.toInt());
|
||||||
NbIsosDlg->SpinBoxV->setValue(IsoV.toInt());
|
NbIsosDlg->SpinBoxV->setValue(IsoV.toInt());
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// File : GEOMBase_NbIsosDlg.cxx
|
// File : GEOMToolsGUI_NbIsosDlg.cxx
|
||||||
// Author :
|
// Author :
|
||||||
// Module : GEOM
|
// Module : GEOM
|
||||||
// $Header:
|
// $Header:
|
||||||
@ -37,17 +37,17 @@ using namespace std;
|
|||||||
#include <qspinbox.h>
|
#include <qspinbox.h>
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : GEOMBase_NbIsosDlg()
|
// class : GEOMToolsGUI_NbIsosDlg()
|
||||||
// purpose : Constructs a GEOMBase_NbIsosDlg which is a child of 'parent', with the
|
// purpose : Constructs a GEOMToolsGUI_NbIsosDlg which is a child of 'parent', with the
|
||||||
// name 'name' and widget flags set to 'f'.
|
// name 'name' and widget flags set to 'f'.
|
||||||
// The dialog will by default be modeless, unless you set 'modal' to
|
// The dialog will by default be modeless, unless you set 'modal' to
|
||||||
// TRUE to construct a modal dialog.
|
// TRUE to construct a modal dialog.
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
GEOMBase_NbIsosDlg::GEOMBase_NbIsosDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
|
GEOMToolsGUI_NbIsosDlg::GEOMToolsGUI_NbIsosDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
|
||||||
:QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
|
:QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
|
||||||
{
|
{
|
||||||
if( !name )
|
if( !name )
|
||||||
setName("GEOMBase_NbIsosDlg");
|
setName("GEOMToolsGUI_NbIsosDlg");
|
||||||
setCaption(name);
|
setCaption(name);
|
||||||
setSizeGripEnabled(TRUE);
|
setSizeGripEnabled(TRUE);
|
||||||
QGridLayout* MyDialogLayout = new QGridLayout(this);
|
QGridLayout* MyDialogLayout = new QGridLayout(this);
|
||||||
@ -122,10 +122,10 @@ GEOMBase_NbIsosDlg::GEOMBase_NbIsosDlg(QWidget* parent, const char* name, bool m
|
|||||||
|
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : ~GEOMBase_NbIsosDlg()
|
// function : ~GEOMToolsGUI_NbIsosDlg()
|
||||||
// purpose : Destroys the object and frees any allocated resources
|
// purpose : Destroys the object and frees any allocated resources
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
GEOMBase_NbIsosDlg::~GEOMBase_NbIsosDlg()
|
GEOMToolsGUI_NbIsosDlg::~GEOMToolsGUI_NbIsosDlg()
|
||||||
{
|
{
|
||||||
// no need to delete child widgets, Qt does it all for us
|
// no need to delete child widgets, Qt does it all for us
|
||||||
}
|
}
|
||||||
|
@ -21,13 +21,13 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// File : GEOMBase_NbIsosDlg.h
|
// File : GEOMToolsGUI_NbIsosDlg.h
|
||||||
// Author :
|
// Author :
|
||||||
// Module : GEOM
|
// Module : GEOM
|
||||||
// $Header:
|
// $Header:
|
||||||
|
|
||||||
#ifndef GEOMBASE_NBISOSDLG_H
|
#ifndef GEOMTOOLSGUI_NBISOSDLG_H
|
||||||
#define GEOMBASE_NBISOSDLG_H
|
#define GEOMTOOLSGUI_NBISOSDLG_H
|
||||||
|
|
||||||
#include <qdialog.h>
|
#include <qdialog.h>
|
||||||
|
|
||||||
@ -36,16 +36,16 @@ class QSpinBox;
|
|||||||
class QPushButton;
|
class QPushButton;
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : GEOMBase_NbIsosDlg
|
// class : GEOMToolsGUI_NbIsosDlg
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
class GEOMBase_NbIsosDlg : public QDialog
|
class GEOMToolsGUI_NbIsosDlg : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GEOMBase_NbIsosDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
|
GEOMToolsGUI_NbIsosDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
|
||||||
~GEOMBase_NbIsosDlg();
|
~GEOMToolsGUI_NbIsosDlg();
|
||||||
|
|
||||||
QPushButton* buttonOk;
|
QPushButton* buttonOk;
|
||||||
QPushButton* buttonCancel;
|
QPushButton* buttonCancel;
|
||||||
@ -56,4 +56,4 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GEOMETRYGUI_NBISOSDLG_H
|
#endif // GEOMTOOLSGUI_NBISOSDLG_H
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// File : GEOMBase_TransparencyDlg.cxx
|
// File : GEOMToolsGUI_TransparencyDlg.cxx
|
||||||
// Author : Lucien PIGNOLONI
|
// Author : Lucien PIGNOLONI
|
||||||
// Module : GEOM
|
// Module : GEOM
|
||||||
|
|
||||||
@ -48,24 +48,24 @@ using namespace std;
|
|||||||
#include "VTKViewer_RenderWindowInteractor.h"
|
#include "VTKViewer_RenderWindowInteractor.h"
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : GEOMBase_TransparencyDlg()
|
// class : GEOMToolsGUI_TransparencyDlg()
|
||||||
// purpose : Constructs a GEOMBase_SUBSHAPE which is a child of 'parent', with the
|
// purpose : Constructs a GEOMBase_SUBSHAPE which is a child of 'parent', with the
|
||||||
// name 'name' and widget flags set to 'f'.
|
// name 'name' and widget flags set to 'f'.
|
||||||
//
|
//
|
||||||
// : WARNING : this dialog is modal !
|
// : WARNING : this dialog is modal !
|
||||||
//
|
//
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
GEOMBase_TransparencyDlg::GEOMBase_TransparencyDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, const Handle(AIS_InteractiveContext)& ic, bool modal, WFlags fl)
|
GEOMToolsGUI_TransparencyDlg::GEOMToolsGUI_TransparencyDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, const Handle(AIS_InteractiveContext)& ic, bool modal, WFlags fl)
|
||||||
:QDialog(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
|
:QDialog(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
|
||||||
{
|
{
|
||||||
if(!name)
|
if(!name)
|
||||||
setName("GEOMBase_TransparencyDlg");
|
setName("GEOMToolsGUI_TransparencyDlg");
|
||||||
resize(152, 107);
|
resize(152, 107);
|
||||||
setCaption(tr("GEOM_TRANSPARENCY_TITLE"));
|
setCaption(tr("GEOM_TRANSPARENCY_TITLE"));
|
||||||
setSizeGripEnabled(TRUE);
|
setSizeGripEnabled(TRUE);
|
||||||
GEOMBase_TransparencyDlgLayout = new QGridLayout(this);
|
GEOMToolsGUI_TransparencyDlgLayout = new QGridLayout(this);
|
||||||
GEOMBase_TransparencyDlgLayout->setSpacing(6);
|
GEOMToolsGUI_TransparencyDlgLayout->setSpacing(6);
|
||||||
GEOMBase_TransparencyDlgLayout->setMargin(11);
|
GEOMToolsGUI_TransparencyDlgLayout->setMargin(11);
|
||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
QGroupBox* GroupButtons = new QGroupBox( this, "GroupButtons" );
|
QGroupBox* GroupButtons = new QGroupBox( this, "GroupButtons" );
|
||||||
@ -112,8 +112,8 @@ GEOMBase_TransparencyDlg::GEOMBase_TransparencyDlg(QWidget* parent, const char*
|
|||||||
GroupC1Layout->addMultiCellWidget( Slider1, 1, 1, 0, 2 );
|
GroupC1Layout->addMultiCellWidget( Slider1, 1, 1, 0, 2 );
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
GEOMBase_TransparencyDlgLayout->addWidget(GroupC1, 0, 0);
|
GEOMToolsGUI_TransparencyDlgLayout->addWidget(GroupC1, 0, 0);
|
||||||
GEOMBase_TransparencyDlgLayout->addWidget(GroupButtons, 1, 0);
|
GEOMToolsGUI_TransparencyDlgLayout->addWidget(GroupButtons, 1, 0);
|
||||||
|
|
||||||
/* Initialisations */
|
/* Initialisations */
|
||||||
this->myGeomGUI = GEOMContext::GetGeomGUI();
|
this->myGeomGUI = GEOMContext::GetGeomGUI();
|
||||||
@ -133,18 +133,18 @@ GEOMBase_TransparencyDlg::GEOMBase_TransparencyDlg(QWidget* parent, const char*
|
|||||||
connect(Slider1, SIGNAL(valueChanged(int)), this, SLOT(ValueHasChanged(int)));
|
connect(Slider1, SIGNAL(valueChanged(int)), this, SLOT(ValueHasChanged(int)));
|
||||||
|
|
||||||
/* Move widget on the botton right corner of main widget */
|
/* Move widget on the botton right corner of main widget */
|
||||||
int x, y ;
|
// int x, y ;
|
||||||
myGeomBase->DefineDlgPosition(this, x, y);
|
// myGeomBase->DefineDlgPosition(this, x, y);
|
||||||
this->move(x, y) ;
|
// this->move(x, y) ;
|
||||||
this->show() ; /* Displays this Dialog */
|
this->show() ; /* Displays this Dialog */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : ~GEOMBase_TransparencyDlg()
|
// function : ~GEOMToolsGUI_TransparencyDlg()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
GEOMBase_TransparencyDlg::~GEOMBase_TransparencyDlg()
|
GEOMToolsGUI_TransparencyDlg::~GEOMToolsGUI_TransparencyDlg()
|
||||||
{
|
{
|
||||||
// no need to delete child widgets, Qt does it all for us
|
// no need to delete child widgets, Qt does it all for us
|
||||||
}
|
}
|
||||||
@ -154,7 +154,7 @@ GEOMBase_TransparencyDlg::~GEOMBase_TransparencyDlg()
|
|||||||
// function : ClickOnOk()
|
// function : ClickOnOk()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
void GEOMBase_TransparencyDlg::ClickOnOk()
|
void GEOMToolsGUI_TransparencyDlg::ClickOnOk()
|
||||||
{
|
{
|
||||||
accept();
|
accept();
|
||||||
return;
|
return;
|
||||||
@ -165,7 +165,7 @@ void GEOMBase_TransparencyDlg::ClickOnOk()
|
|||||||
// function : ClickOnClose()
|
// function : ClickOnClose()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
void GEOMBase_TransparencyDlg::ClickOnClose()
|
void GEOMToolsGUI_TransparencyDlg::ClickOnClose()
|
||||||
{
|
{
|
||||||
accept();
|
accept();
|
||||||
return;
|
return;
|
||||||
@ -177,7 +177,7 @@ void GEOMBase_TransparencyDlg::ClickOnClose()
|
|||||||
// purpose : Called when value of slider change
|
// purpose : Called when value of slider change
|
||||||
// : or the first time as initilisation
|
// : or the first time as initilisation
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void GEOMBase_TransparencyDlg::ValueHasChanged(int newValue)
|
void GEOMToolsGUI_TransparencyDlg::ValueHasChanged(int newValue)
|
||||||
{
|
{
|
||||||
if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_VTK) {
|
if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_VTK) {
|
||||||
// VTK
|
// VTK
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// File : GEOMBase_TransparencyDlg.h
|
// File : GEOMToolsGUI_TransparencyDlg.h
|
||||||
// Author : Lucien PIGNOLONI
|
// Author : Lucien PIGNOLONI
|
||||||
// Module : GEOM
|
// Module : GEOM
|
||||||
// $Header$
|
// $Header$
|
||||||
@ -51,23 +51,23 @@ class QSlider;
|
|||||||
|
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : GEOMBase_TransparencyDlg
|
// class : GEOMToolsGUI_TransparencyDlg
|
||||||
// purpose :
|
// purpose :
|
||||||
// : WARNING : that is a MODAL dialog.
|
// : WARNING : that is a MODAL dialog.
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
class GEOMBase_TransparencyDlg : public QDialog
|
class GEOMToolsGUI_TransparencyDlg : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GEOMBase_TransparencyDlg( QWidget* parent = 0,
|
GEOMToolsGUI_TransparencyDlg( QWidget* parent = 0,
|
||||||
const char* name = 0,
|
const char* name = 0,
|
||||||
SALOME_Selection* Sel = 0,
|
SALOME_Selection* Sel = 0,
|
||||||
const Handle(AIS_InteractiveContext)& ic = 0,
|
const Handle(AIS_InteractiveContext)& ic = 0,
|
||||||
bool modal = TRUE,
|
bool modal = TRUE,
|
||||||
WFlags fl = 0 );
|
WFlags fl = 0 );
|
||||||
|
|
||||||
~GEOMBase_TransparencyDlg();
|
~GEOMToolsGUI_TransparencyDlg();
|
||||||
|
|
||||||
private :
|
private :
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ public slots:
|
|||||||
void ValueHasChanged( int newValue ) ;
|
void ValueHasChanged( int newValue ) ;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QGridLayout* GEOMBase_TransparencyDlgLayout;
|
QGridLayout* GEOMToolsGUI_TransparencyDlgLayout;
|
||||||
QHBoxLayout* Layout1;
|
QHBoxLayout* Layout1;
|
||||||
QHBoxLayout* Layout2;
|
QHBoxLayout* Layout2;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user