mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-15 23:41:27 +05:00
Removed qt3 support and replaced qt macros
This commit is contained in:
parent
9230651287
commit
8a13383ac0
@ -203,7 +203,7 @@ namespace SMESH
|
|||||||
aType = aHistogram->getPointList().empty() ? RemoveFrom2dViewer : aType;
|
aType = aHistogram->getPointList().empty() ? RemoveFrom2dViewer : aType;
|
||||||
|
|
||||||
SUIT_ViewManager* aViewManager;
|
SUIT_ViewManager* aViewManager;
|
||||||
foreach( aViewManager, aViewManagerList ) {
|
Q_FOREACH( aViewManager, aViewManagerList ) {
|
||||||
if (Plot2d_ViewManager* aManager = dynamic_cast<Plot2d_ViewManager*>(aViewManager)) {
|
if (Plot2d_ViewManager* aManager = dynamic_cast<Plot2d_ViewManager*>(aViewManager)) {
|
||||||
if (SPlot2d_Viewer* aViewer = dynamic_cast<SPlot2d_Viewer*>(aManager->getViewModel())) {
|
if (SPlot2d_Viewer* aViewer = dynamic_cast<SPlot2d_Viewer*>(aManager->getViewModel())) {
|
||||||
if (Plot2d_ViewFrame* aViewFrame = aViewer->getActiveViewFrame()) {
|
if (Plot2d_ViewFrame* aViewFrame = aViewer->getActiveViewFrame()) {
|
||||||
|
@ -54,7 +54,7 @@ SMESH_LogicalFilter::~SMESH_LogicalFilter()
|
|||||||
bool SMESH_LogicalFilter::isOk (const SUIT_DataOwner* owner) const
|
bool SMESH_LogicalFilter::isOk (const SUIT_DataOwner* owner) const
|
||||||
{
|
{
|
||||||
SUIT_SelectionFilter* filter;
|
SUIT_SelectionFilter* filter;
|
||||||
foreach( filter, myFilters )
|
Q_FOREACH( filter, myFilters )
|
||||||
{
|
{
|
||||||
if (myOperation == LO_OR && filter->isOk(owner))
|
if (myOperation == LO_OR && filter->isOk(owner))
|
||||||
return true;
|
return true;
|
||||||
@ -114,7 +114,7 @@ void SMESH_LogicalFilter::deleteFilters()
|
|||||||
if ( myOwnership )
|
if ( myOwnership )
|
||||||
{
|
{
|
||||||
SUIT_SelectionFilter* filter;
|
SUIT_SelectionFilter* filter;
|
||||||
foreach( filter, myFilters )
|
Q_FOREACH( filter, myFilters )
|
||||||
delete filter;
|
delete filter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2188,7 +2188,7 @@ void SMESHGUI::ResetState()
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
void SMESHGUI::EmitSignalDeactivateDialog()
|
void SMESHGUI::EmitSignalDeactivateDialog()
|
||||||
{
|
{
|
||||||
emit SignalDeactivateActiveDialog();
|
Q_EMIT SignalDeactivateActiveDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -2198,7 +2198,7 @@ void SMESHGUI::EmitSignalDeactivateDialog()
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
void SMESHGUI::EmitSignalStudyFrameChanged()
|
void SMESHGUI::EmitSignalStudyFrameChanged()
|
||||||
{
|
{
|
||||||
emit SignalStudyFrameChanged();
|
Q_EMIT SignalStudyFrameChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -2208,7 +2208,7 @@ void SMESHGUI::EmitSignalStudyFrameChanged()
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
void SMESHGUI::EmitSignalCloseAllDialogs()
|
void SMESHGUI::EmitSignalCloseAllDialogs()
|
||||||
{
|
{
|
||||||
emit SignalCloseAllDialogs();
|
Q_EMIT SignalCloseAllDialogs();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -2218,7 +2218,7 @@ void SMESHGUI::EmitSignalCloseAllDialogs()
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
void SMESHGUI::EmitSignalVisibilityChanged()
|
void SMESHGUI::EmitSignalVisibilityChanged()
|
||||||
{
|
{
|
||||||
emit SignalVisibilityChanged();
|
Q_EMIT SignalVisibilityChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -4705,7 +4705,7 @@ bool SMESHGUI::activateModule( SUIT_Study* study )
|
|||||||
if ( aDesk ) {
|
if ( aDesk ) {
|
||||||
QList<SUIT_ViewWindow*> wndList = aDesk->windows();
|
QList<SUIT_ViewWindow*> wndList = aDesk->windows();
|
||||||
SUIT_ViewWindow* wnd;
|
SUIT_ViewWindow* wnd;
|
||||||
foreach ( wnd, wndList )
|
Q_FOREACH ( wnd, wndList )
|
||||||
connectView( wnd );
|
connectView( wnd );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,13 +156,13 @@ public :
|
|||||||
|
|
||||||
SMESHGUI_ClippingPlaneInfoMap& getClippingPlaneInfoMap() { return myClippingPlaneInfoMap; }
|
SMESHGUI_ClippingPlaneInfoMap& getClippingPlaneInfoMap() { return myClippingPlaneInfoMap; }
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
virtual bool deactivateModule( SUIT_Study* );
|
virtual bool deactivateModule( SUIT_Study* );
|
||||||
virtual bool activateModule( SUIT_Study* );
|
virtual bool activateModule( SUIT_Study* );
|
||||||
virtual void studyClosed( SUIT_Study* );
|
virtual void studyClosed( SUIT_Study* );
|
||||||
void onViewClosed( SUIT_ViewWindow* );
|
void onViewClosed( SUIT_ViewWindow* );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void OnGUIEvent();
|
void OnGUIEvent();
|
||||||
void onViewManagerActivated( SUIT_ViewManager* );
|
void onViewManagerActivated( SUIT_ViewManager* );
|
||||||
void onViewManagerRemoved( SUIT_ViewManager* );
|
void onViewManagerRemoved( SUIT_ViewManager* );
|
||||||
@ -170,7 +170,7 @@ private slots:
|
|||||||
void onOperationAborted( SUIT_Operation* );
|
void onOperationAborted( SUIT_Operation* );
|
||||||
void onHypothesisEdit( int result );
|
void onHypothesisEdit( int result );
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void SignalDeactivateActiveDialog();
|
void SignalDeactivateActiveDialog();
|
||||||
void SignalStudyFrameChanged();
|
void SignalStudyFrameChanged();
|
||||||
void SignalCloseAllDialogs();
|
void SignalCloseAllDialogs();
|
||||||
|
@ -179,7 +179,7 @@ void SMESHGUI_Add0DElemsOnAllNodesDlg::onSelTypeChange( int selType )
|
|||||||
|
|
||||||
myFilterBtn->setEnabled( selType != SEL_OBJECT );
|
myFilterBtn->setEnabled( selType != SEL_OBJECT );
|
||||||
|
|
||||||
emit selTypeChanged( selType );
|
Q_EMIT selTypeChanged( selType );
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
@ -53,12 +53,12 @@ class SMESHGUI_EXPORT SMESHGUI_Add0DElemsOnAllNodesDlg : public SMESHGUI_Dialog
|
|||||||
int getSelectionType() const;
|
int getSelectionType() const;
|
||||||
bool isValid();
|
bool isValid();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
|
|
||||||
void selTypeChanged( int selType );
|
void selTypeChanged( int selType );
|
||||||
|
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
|
|
||||||
void onGroupChecked ( bool on );
|
void onGroupChecked ( bool on );
|
||||||
void onSelTypeChange( int selType );
|
void onSelTypeChange( int selType );
|
||||||
@ -95,7 +95,7 @@ class SMESHGUI_EXPORT SMESHGUI_Add0DElemsOnAllNodesOp : public SMESHGUI_Selectio
|
|||||||
virtual void selectionDone();
|
virtual void selectionDone();
|
||||||
virtual SUIT_SelectionFilter* createFilter( const int ) const;
|
virtual SUIT_SelectionFilter* createFilter( const int ) const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
void onSelTypeChange(int);
|
void onSelTypeChange(int);
|
||||||
void onSetFilter();
|
void onSetFilter();
|
||||||
|
@ -116,11 +116,11 @@ private:
|
|||||||
|
|
||||||
QString myHelpFileName;
|
QString myHelpFileName;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
void onDiameterChanged();
|
void onDiameterChanged();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
void ClickOnApply();
|
void ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -126,10 +126,10 @@ private:
|
|||||||
|
|
||||||
QString myHelpFileName;
|
QString myHelpFileName;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onTextChange( const QString& );
|
void onTextChange( const QString& );
|
||||||
void onCellTextChange( int, int );
|
void onCellTextChange( int, int );
|
||||||
void onReverse( int );
|
void onReverse( int );
|
||||||
|
@ -113,10 +113,10 @@ private:
|
|||||||
|
|
||||||
bool myIsApplyAndClose;
|
bool myIsApplyAndClose;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -245,10 +245,10 @@ private:
|
|||||||
|
|
||||||
SMESH::Mode CurrentMode;
|
SMESH::Mode CurrentMode;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void onModeAbsolute();
|
void onModeAbsolute();
|
||||||
void onModeRelative();
|
void onModeRelative();
|
||||||
void ClickOnNew();
|
void ClickOnNew();
|
||||||
|
@ -465,7 +465,7 @@ namespace SMESH
|
|||||||
rows.clear();
|
rows.clear();
|
||||||
QList<QTableWidgetSelectionRange> selRanges = table->selectedRanges();
|
QList<QTableWidgetSelectionRange> selRanges = table->selectedRanges();
|
||||||
QTableWidgetSelectionRange range;
|
QTableWidgetSelectionRange range;
|
||||||
foreach( range, selRanges )
|
Q_FOREACH( range, selRanges )
|
||||||
{
|
{
|
||||||
for ( int row = range.topRow(); row <= range.bottomRow(); ++row )
|
for ( int row = range.topRow(); row <= range.bottomRow(); ++row )
|
||||||
if ( !rows.count( row ))
|
if ( !rows.count( row ))
|
||||||
@ -1225,7 +1225,7 @@ void SMESHGUI_BaseComputeOp::onPublishShape()
|
|||||||
QList<int> rows;
|
QList<int> rows;
|
||||||
SMESH::getSelectedRows( table(), rows );
|
SMESH::getSelectedRows( table(), rows );
|
||||||
int row;
|
int row;
|
||||||
foreach ( row, rows )
|
Q_FOREACH ( row, rows )
|
||||||
{
|
{
|
||||||
int curSub = table()->item(row, COL_SHAPEID)->text().toInt();
|
int curSub = table()->item(row, COL_SHAPEID)->text().toInt();
|
||||||
GEOM::GEOM_Object_wrap shape = SMESH::getSubShape( curSub, myMainShape );
|
GEOM::GEOM_Object_wrap shape = SMESH::getSubShape( curSub, myMainShape );
|
||||||
@ -1310,7 +1310,7 @@ void SMESHGUI_BaseComputeOp::onGroupOfBadMesh()
|
|||||||
QList<int> rows;
|
QList<int> rows;
|
||||||
SMESH::getSelectedRows( table(), rows );
|
SMESH::getSelectedRows( table(), rows );
|
||||||
int row;
|
int row;
|
||||||
foreach ( row, rows )
|
Q_FOREACH ( row, rows )
|
||||||
{
|
{
|
||||||
bool hasBadMesh = ( !table()->item(row, COL_BAD_MESH)->text().isEmpty() );
|
bool hasBadMesh = ( !table()->item(row, COL_BAD_MESH)->text().isEmpty() );
|
||||||
if ( hasBadMesh ) {
|
if ( hasBadMesh ) {
|
||||||
@ -1352,7 +1352,7 @@ void SMESHGUI_BaseComputeOp::currentCellChanged()
|
|||||||
QList<int> rows;
|
QList<int> rows;
|
||||||
int nbSelected = SMESH::getSelectedRows( table(), rows );
|
int nbSelected = SMESH::getSelectedRows( table(), rows );
|
||||||
int row;
|
int row;
|
||||||
foreach ( row, rows )
|
Q_FOREACH ( row, rows )
|
||||||
{
|
{
|
||||||
bool hasData = ( !table()->item( row, COL_SHAPE )->text().isEmpty() );
|
bool hasData = ( !table()->item( row, COL_SHAPE )->text().isEmpty() );
|
||||||
bool isPublished = ( !table()->item( row, COL_PUBLISHED )->text().isEmpty() );
|
bool isPublished = ( !table()->item( row, COL_PUBLISHED )->text().isEmpty() );
|
||||||
@ -1394,7 +1394,7 @@ void SMESHGUI_BaseComputeOp::onPreviewShape()
|
|||||||
|
|
||||||
bool showOnly = true;
|
bool showOnly = true;
|
||||||
int row;
|
int row;
|
||||||
foreach ( row, rows )
|
Q_FOREACH ( row, rows )
|
||||||
{
|
{
|
||||||
int curSub = table()->item( row, COL_SHAPEID )->text().toInt();
|
int curSub = table()->item( row, COL_SHAPEID )->text().toInt();
|
||||||
if ( curSub > 0 ) {
|
if ( curSub > 0 ) {
|
||||||
|
@ -95,7 +95,7 @@ protected:
|
|||||||
|
|
||||||
virtual bool isValid( SUIT_Operation* theOp ) const;
|
virtual bool isValid( SUIT_Operation* theOp ) const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
void onPreviewShape();
|
void onPreviewShape();
|
||||||
void onPublishShape();
|
void onPublishShape();
|
||||||
@ -133,7 +133,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void startOperation();
|
virtual void startOperation();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
};
|
};
|
||||||
|
|
||||||
class SMESHGUI_MeshOrderMgr;
|
class SMESHGUI_MeshOrderMgr;
|
||||||
@ -164,10 +164,10 @@ protected:
|
|||||||
|
|
||||||
virtual void initDialog();
|
virtual void initDialog();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onCancel();
|
virtual void onCancel();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onPreview();
|
void onPreview();
|
||||||
void onCompute();
|
void onCompute();
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void startOperation();
|
virtual void startOperation();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -256,7 +256,7 @@ public:
|
|||||||
|
|
||||||
SMESHGUI_MeshOrderBox* getMeshOrderBox() const;
|
SMESHGUI_MeshOrderBox* getMeshOrderBox() const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void preview();
|
void preview();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -310,7 +310,7 @@ protected:
|
|||||||
void timerEvent(QTimerEvent *timer);
|
void timerEvent(QTimerEvent *timer);
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event);
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onCancel();
|
void onCancel();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -170,5 +170,5 @@ void SMESHGUI_ConvToQuadDlg::SetEnabledRB( const int idx, const bool theCheck )
|
|||||||
|
|
||||||
myMedNdsOnGeom->setEnabled( theCheck );
|
myMedNdsOnGeom->setEnabled( theCheck );
|
||||||
|
|
||||||
emit onClicked( myBG->checkedId() );
|
Q_EMIT onClicked( myBG->checkedId() );
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ public:
|
|||||||
bool isWarningShown();
|
bool isWarningShown();
|
||||||
bool IsBiQuadratic() const;
|
bool IsBiQuadratic() const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void onClicked( int );
|
void onClicked( int );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -59,7 +59,7 @@ protected:
|
|||||||
MeshDestinationType DestinationMesh( const SMESH::SMESH_IDSource_var& ,
|
MeshDestinationType DestinationMesh( const SMESH::SMESH_IDSource_var& ,
|
||||||
bool* isMixOrder = 0) const;
|
bool* isMixOrder = 0) const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
void ConnectRadioButtons( int );
|
void ConnectRadioButtons( int );
|
||||||
void onWarningWinFinished();
|
void onWarningWinFinished();
|
||||||
|
@ -112,10 +112,10 @@ private:
|
|||||||
|
|
||||||
bool myIsApplyAndClose;
|
bool myIsApplyAndClose;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -418,7 +418,7 @@ void SMESHGUI_CreatePatternDlg::onSave()
|
|||||||
disconnect( mySMESHGUI, 0, this, 0 );
|
disconnect( mySMESHGUI, 0, this, 0 );
|
||||||
mySMESHGUI->ResetState();
|
mySMESHGUI->ResetState();
|
||||||
accept();
|
accept();
|
||||||
emit NewPattern();
|
Q_EMIT NewPattern();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch ( const SALOME::SALOME_Exception& S_ex ) {
|
catch ( const SALOME::SALOME_Exception& S_ex ) {
|
||||||
@ -471,7 +471,7 @@ void SMESHGUI_CreatePatternDlg::onOk()
|
|||||||
disconnect( mySMESHGUI, 0, this, 0 );
|
disconnect( mySMESHGUI, 0, this, 0 );
|
||||||
mySMESHGUI->ResetState();
|
mySMESHGUI->ResetState();
|
||||||
accept();
|
accept();
|
||||||
emit NewPattern();
|
Q_EMIT NewPattern();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch ( const SALOME::SALOME_Exception& S_ex ) {
|
catch ( const SALOME::SALOME_Exception& S_ex ) {
|
||||||
@ -493,7 +493,7 @@ void SMESHGUI_CreatePatternDlg::reject()
|
|||||||
disconnect( mySMESHGUI, 0, this, 0 );
|
disconnect( mySMESHGUI, 0, this, 0 );
|
||||||
mySMESHGUI->ResetState();
|
mySMESHGUI->ResetState();
|
||||||
QDialog::reject();
|
QDialog::reject();
|
||||||
emit Close();
|
Q_EMIT Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
@ -69,7 +69,7 @@ public:
|
|||||||
SMESH::SMESH_Pattern_ptr GetPattern();
|
SMESH::SMESH_Pattern_ptr GetPattern();
|
||||||
void SetMesh( SMESH::SMESH_Mesh_ptr );
|
void SetMesh( SMESH::SMESH_Mesh_ptr );
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void NewPattern();
|
void NewPattern();
|
||||||
void Close();
|
void Close();
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ private:
|
|||||||
void enterEvent( QEvent* );
|
void enterEvent( QEvent* );
|
||||||
void keyPressEvent( QKeyEvent* );
|
void keyPressEvent( QKeyEvent* );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onOk();
|
void onOk();
|
||||||
void onSave();
|
void onSave();
|
||||||
void reject();
|
void reject();
|
||||||
|
@ -1087,7 +1087,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onRemove()
|
|||||||
|
|
||||||
if ( selItems.count() > 0 ) myNbOkElements = 1;
|
if ( selItems.count() > 0 ) myNbOkElements = 1;
|
||||||
|
|
||||||
foreach( anItem, selItems )
|
Q_FOREACH( anItem, selItems )
|
||||||
delete anItem;
|
delete anItem;
|
||||||
|
|
||||||
RemoveButton->setEnabled( myFacesByNodes->count() > 0 );
|
RemoveButton->setEnabled( myFacesByNodes->count() > 0 );
|
||||||
@ -1113,7 +1113,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::onListSelectionChanged()
|
|||||||
|
|
||||||
QList<QListWidgetItem*> selItems = myFacesByNodes->selectedItems();
|
QList<QListWidgetItem*> selItems = myFacesByNodes->selectedItems();
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
foreach( anItem, selItems ) {
|
Q_FOREACH( anItem, selItems ) {
|
||||||
QStringList anIds = anItem->text().split( " ", QString::SkipEmptyParts );
|
QStringList anIds = anItem->text().split( " ", QString::SkipEmptyParts );
|
||||||
for (QStringList::iterator it = anIds.begin(); it != anIds.end(); ++it)
|
for (QStringList::iterator it = anIds.begin(); it != anIds.end(); ++it)
|
||||||
aIndexes.Add((*it).toInt());
|
aIndexes.Add((*it).toInt());
|
||||||
|
@ -119,14 +119,14 @@ private:
|
|||||||
|
|
||||||
QString myHelpFileName;
|
QString myHelpFileName;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void onAdd();
|
void onAdd();
|
||||||
void onRemove();
|
void onRemove();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
void ClickOnPreview( bool );
|
void ClickOnPreview( bool );
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
|
@ -62,10 +62,10 @@ private:
|
|||||||
void enterEvent( QEvent* );
|
void enterEvent( QEvent* );
|
||||||
void keyPressEvent( QKeyEvent* );
|
void keyPressEvent( QKeyEvent* );
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onOk();
|
void onOk();
|
||||||
bool onApply();
|
bool onApply();
|
||||||
void onHelp();
|
void onHelp();
|
||||||
|
@ -68,10 +68,10 @@ private:
|
|||||||
void enterEvent( QEvent* );
|
void enterEvent( QEvent* );
|
||||||
void keyPressEvent( QKeyEvent* );
|
void keyPressEvent( QKeyEvent* );
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onConstructorsClicked( int );
|
void onConstructorsClicked( int );
|
||||||
|
|
||||||
void onOk();
|
void onOk();
|
||||||
|
@ -1096,7 +1096,7 @@ void SMESHGUI_ExtrusionAlongPathDlg::OnAngleRemoved()
|
|||||||
{
|
{
|
||||||
QList<QListWidgetItem*> aList = AnglesList->selectedItems();
|
QList<QListWidgetItem*> aList = AnglesList->selectedItems();
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
foreach(anItem, aList) {
|
Q_FOREACH(anItem, aList) {
|
||||||
myAnglesList.removeAt(AnglesList->row(anItem));
|
myAnglesList.removeAt(AnglesList->row(anItem));
|
||||||
delete anItem;
|
delete anItem;
|
||||||
}
|
}
|
||||||
|
@ -146,11 +146,11 @@ private:
|
|||||||
QPushButton* myFilterBtn;
|
QPushButton* myFilterBtn;
|
||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
void reject();
|
void reject();
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
|
@ -143,11 +143,11 @@ private:
|
|||||||
QPushButton* myFilterBtn;
|
QPushButton* myFilterBtn;
|
||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
void CheckIsEnable();
|
void CheckIsEnable();
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
|
@ -48,7 +48,7 @@ class SMESHGUI_EXPORT SMESHGUI_FieldSelectorWdg : public QGroupBox
|
|||||||
|
|
||||||
bool GetSelectedFeilds();
|
bool GetSelectedFeilds();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
|
|
||||||
void onItemCheck(QTreeWidgetItem * item, int column);
|
void onItemCheck(QTreeWidgetItem * item, int column);
|
||||||
|
|
||||||
|
@ -846,7 +846,7 @@ QList<int> SMESHGUI_FilterTable::Table::selectedRows()
|
|||||||
QTableWidgetItem* anItem;
|
QTableWidgetItem* anItem;
|
||||||
QList<int> rows;
|
QList<int> rows;
|
||||||
|
|
||||||
foreach( anItem, selItems ) {
|
Q_FOREACH( anItem, selItems ) {
|
||||||
int r = row( anItem );
|
int r = row( anItem );
|
||||||
if ( !rows.contains( r ) ) rows.append( r );
|
if ( !rows.contains( r ) ) rows.append( r );
|
||||||
}
|
}
|
||||||
@ -1090,7 +1090,7 @@ void SMESHGUI_FilterTable::onEntityType (int theType)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
myIsValid = true;
|
myIsValid = true;
|
||||||
emit NeedValidation();
|
Q_EMIT NeedValidation();
|
||||||
if (!myIsValid)
|
if (!myIsValid)
|
||||||
{
|
{
|
||||||
myEntityTypeGrp->button(myEntityType)->setChecked(true);
|
myEntityTypeGrp->button(myEntityType)->setChecked(true);
|
||||||
@ -1113,7 +1113,7 @@ void SMESHGUI_FilterTable::onEntityType (int theType)
|
|||||||
myTables[ myEntityType ]->updateGeometry();
|
myTables[ myEntityType ]->updateGeometry();
|
||||||
adjustSize();
|
adjustSize();
|
||||||
|
|
||||||
emit EntityTypeChanged(theType);
|
Q_EMIT EntityTypeChanged(theType);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -1428,7 +1428,7 @@ void SMESHGUI_FilterTable::SetCriterion (const int theRow,
|
|||||||
myAddWidgets[ anItem ]->SetDouble(AdditionalWidget::Tolerance, theCriterion.Tolerance);
|
myAddWidgets[ anItem ]->SetDouble(AdditionalWidget::Tolerance, theCriterion.Tolerance);
|
||||||
}
|
}
|
||||||
|
|
||||||
emit CriterionChanged(theRow, aType);
|
Q_EMIT CriterionChanged(theRow, aType);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -1527,7 +1527,7 @@ void SMESHGUI_FilterTable::onRemoveBtn()
|
|||||||
|
|
||||||
QList<int> aRows = aTable->selectedRows(); // already sorted
|
QList<int> aRows = aTable->selectedRows(); // already sorted
|
||||||
int i;
|
int i;
|
||||||
foreach( i, aRows )
|
Q_FOREACH( i, aRows )
|
||||||
{
|
{
|
||||||
removeAdditionalWidget(aTable, i);
|
removeAdditionalWidget(aTable, i);
|
||||||
aTable->removeRow(i);
|
aTable->removeRow(i);
|
||||||
@ -1662,7 +1662,7 @@ void SMESHGUI_FilterTable::onCurrentChanged (int theRow, int theCol)
|
|||||||
{
|
{
|
||||||
if( !myIsLocked )
|
if( !myIsLocked )
|
||||||
updateAdditionalWidget();
|
updateAdditionalWidget();
|
||||||
emit CurrentChanged(theRow, theCol);
|
Q_EMIT CurrentChanged(theRow, theCol);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -1982,7 +1982,7 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con
|
|||||||
|
|
||||||
updateAdditionalWidget();
|
updateAdditionalWidget();
|
||||||
|
|
||||||
emit CriterionChanged(row, entityType);
|
Q_EMIT CriterionChanged(row, entityType);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -1995,7 +1995,7 @@ void SMESHGUI_FilterTable::onCriterionChanged (int row, int col)
|
|||||||
if( col == 0 )
|
if( col == 0 )
|
||||||
onCriterionChanged(row, col, -1);
|
onCriterionChanged(row, col, -1);
|
||||||
else if ( col == 2 )
|
else if ( col == 2 )
|
||||||
emit ThresholdChanged(row, GetType());
|
Q_EMIT ThresholdChanged(row, GetType());
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -2943,7 +2943,7 @@ void SMESHGUI_FilterDlg::onOk()
|
|||||||
disconnect(mySelectionMgr, 0, this, 0);
|
disconnect(mySelectionMgr, 0, this, 0);
|
||||||
mySMESHGUI->ResetState();
|
mySMESHGUI->ResetState();
|
||||||
accept();
|
accept();
|
||||||
emit Accepted();
|
Q_EMIT Accepted();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3100,7 +3100,7 @@ void SMESHGUI_FilterDlg::setIdsToWg (QWidget* theWg, const QList<int>& theIds)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
QStringList aStrList;
|
QStringList aStrList;
|
||||||
foreach(int id, theIds)
|
Q_FOREACH(int id, theIds)
|
||||||
aStrList << QString::number(id);
|
aStrList << QString::number(id);
|
||||||
|
|
||||||
if (theWg->inherits("QListWidget"))
|
if (theWg->inherits("QListWidget"))
|
||||||
|
@ -135,7 +135,7 @@ public:
|
|||||||
|
|
||||||
void Update();
|
void Update();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void CopyFromClicked();
|
void CopyFromClicked();
|
||||||
void AddToClicked();
|
void AddToClicked();
|
||||||
void EntityTypeChanged( const int );
|
void EntityTypeChanged( const int );
|
||||||
@ -144,7 +144,7 @@ signals:
|
|||||||
void ThresholdChanged( const int, const int );
|
void ThresholdChanged( const int, const int );
|
||||||
void CurrentChanged( int, int );
|
void CurrentChanged( int, int );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onAddBtn();
|
void onAddBtn();
|
||||||
void onInsertBtn();
|
void onInsertBtn();
|
||||||
void onRemoveBtn();
|
void onRemoveBtn();
|
||||||
@ -237,14 +237,14 @@ public:
|
|||||||
void SetFilter(SMESH::Filter_var filter, int type);
|
void SetFilter(SMESH::Filter_var filter, int type);
|
||||||
void UnRegisterFilters();
|
void UnRegisterFilters();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
|
|
||||||
void Accepted();
|
void Accepted();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
|
|
||||||
void onOk();
|
void onOk();
|
||||||
bool onApply();
|
bool onApply();
|
||||||
|
@ -80,10 +80,10 @@ private:
|
|||||||
void enterEvent( QEvent* );
|
void enterEvent( QEvent* );
|
||||||
void keyPressEvent( QKeyEvent* );
|
void keyPressEvent( QKeyEvent* );
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onOk();
|
void onOk();
|
||||||
bool onApply();
|
bool onApply();
|
||||||
void onHelp();
|
void onHelp();
|
||||||
|
@ -367,7 +367,7 @@ void SMESHGUI_FindElemByPointOp::onElemTypeChange(int index)
|
|||||||
|
|
||||||
void SMESHGUI_FindElemByPointDlg::reject()
|
void SMESHGUI_FindElemByPointDlg::reject()
|
||||||
{
|
{
|
||||||
emit rejectedDlg();
|
Q_EMIT rejectedDlg();
|
||||||
QtxDialog::reject();
|
QtxDialog::reject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,12 +56,12 @@ protected:
|
|||||||
|
|
||||||
virtual void activateSelection();
|
virtual void activateSelection();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
|
|
||||||
virtual void onFind();
|
virtual void onFind();
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
|
|
||||||
void onRejectedDlg();
|
void onRejectedDlg();
|
||||||
void onSelectionDone();
|
void onSelectionDone();
|
||||||
@ -107,13 +107,13 @@ private:
|
|||||||
|
|
||||||
friend class SMESHGUI_FindElemByPointOp;
|
friend class SMESHGUI_FindElemByPointOp;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void rejectedDlg();
|
void rejectedDlg();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
//void ButtonToggled( bool );
|
//void ButtonToggled( bool );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1231,7 +1231,7 @@ void SMESHGUI_GroupDlg::onListSelectionChanged()
|
|||||||
TColStd_MapOfInteger aIndexes;
|
TColStd_MapOfInteger aIndexes;
|
||||||
QList<QListWidgetItem*> selItems = myElements->selectedItems();
|
QList<QListWidgetItem*> selItems = myElements->selectedItems();
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
foreach(anItem, selItems) aIndexes.Add(anItem->text().toInt());
|
Q_FOREACH(anItem, selItems) aIndexes.Add(anItem->text().toInt());
|
||||||
mySelector->AddOrRemoveIndex(myActorsList.first()->getIO(), aIndexes, false);
|
mySelector->AddOrRemoveIndex(myActorsList.first()->getIO(), aIndexes, false);
|
||||||
SALOME_ListIO aList;
|
SALOME_ListIO aList;
|
||||||
aList.Append(myActorsList.first()->getIO());
|
aList.Append(myActorsList.first()->getIO());
|
||||||
@ -1527,13 +1527,13 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
|
|||||||
QStringList anElements = aListStr.split( " ", QString::SkipEmptyParts);
|
QStringList anElements = aListStr.split( " ", QString::SkipEmptyParts);
|
||||||
for (QStringList::iterator it = anElements.begin(); it != anElements.end(); ++it) {
|
for (QStringList::iterator it = anElements.begin(); it != anElements.end(); ++it) {
|
||||||
QList<QListWidgetItem*> found = myElements->findItems(*it, Qt::MatchExactly);
|
QList<QListWidgetItem*> found = myElements->findItems(*it, Qt::MatchExactly);
|
||||||
foreach(anItem, found)
|
Q_FOREACH(anItem, found)
|
||||||
if (!anItem->isSelected())
|
if (!anItem->isSelected())
|
||||||
listItemsToSel.push_back(anItem);
|
listItemsToSel.push_back(anItem);
|
||||||
}
|
}
|
||||||
bool blocked = myElements->signalsBlocked();
|
bool blocked = myElements->signalsBlocked();
|
||||||
myElements->blockSignals(true);
|
myElements->blockSignals(true);
|
||||||
foreach(anItem, listItemsToSel) anItem->setSelected(true);
|
Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
|
||||||
myElements->blockSignals(blocked);
|
myElements->blockSignals(blocked);
|
||||||
onListSelectionChanged();
|
onListSelectionChanged();
|
||||||
listItemsToSel.clear();
|
listItemsToSel.clear();
|
||||||
@ -1876,14 +1876,14 @@ void SMESHGUI_GroupDlg::onAdd()
|
|||||||
listItemsToSel.push_back(anItem);
|
listItemsToSel.push_back(anItem);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach(anItem, found)
|
Q_FOREACH(anItem, found)
|
||||||
if (!anItem->isSelected())
|
if (!anItem->isSelected())
|
||||||
listItemsToSel.push_back(anItem);
|
listItemsToSel.push_back(anItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool blocked = myElements->signalsBlocked();
|
bool blocked = myElements->signalsBlocked();
|
||||||
myElements->blockSignals(true);
|
myElements->blockSignals(true);
|
||||||
foreach(anItem, listItemsToSel) anItem->setSelected(true);
|
Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
|
||||||
myElements->blockSignals(blocked);
|
myElements->blockSignals(blocked);
|
||||||
onListSelectionChanged();
|
onListSelectionChanged();
|
||||||
listItemsToSel.clear();
|
listItemsToSel.clear();
|
||||||
@ -1914,14 +1914,14 @@ void SMESHGUI_GroupDlg::onAdd()
|
|||||||
listItemsToSel.push_back(anItem);
|
listItemsToSel.push_back(anItem);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach(anItem, found)
|
Q_FOREACH(anItem, found)
|
||||||
if (!anItem->isSelected())
|
if (!anItem->isSelected())
|
||||||
listItemsToSel.push_back(anItem);
|
listItemsToSel.push_back(anItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool blocked = myElements->signalsBlocked();
|
bool blocked = myElements->signalsBlocked();
|
||||||
myElements->blockSignals(true);
|
myElements->blockSignals(true);
|
||||||
foreach(anItem, listItemsToSel) anItem->setSelected(true);
|
Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
|
||||||
myElements->blockSignals(blocked);
|
myElements->blockSignals(blocked);
|
||||||
onListSelectionChanged();
|
onListSelectionChanged();
|
||||||
listItemsToSel.clear();
|
listItemsToSel.clear();
|
||||||
@ -1960,14 +1960,14 @@ void SMESHGUI_GroupDlg::onAdd()
|
|||||||
listItemsToSel.push_back(anItem);
|
listItemsToSel.push_back(anItem);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach(anItem, found)
|
Q_FOREACH(anItem, found)
|
||||||
if (!anItem->isSelected())
|
if (!anItem->isSelected())
|
||||||
listItemsToSel.push_back(anItem);
|
listItemsToSel.push_back(anItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool blocked = myElements->signalsBlocked();
|
bool blocked = myElements->signalsBlocked();
|
||||||
myElements->blockSignals(true);
|
myElements->blockSignals(true);
|
||||||
foreach(anItem, listItemsToSel) anItem->setSelected(true);
|
Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
|
||||||
myElements->blockSignals(blocked);
|
myElements->blockSignals(blocked);
|
||||||
onListSelectionChanged();
|
onListSelectionChanged();
|
||||||
listItemsToSel.clear();
|
listItemsToSel.clear();
|
||||||
@ -2018,14 +2018,14 @@ void SMESHGUI_GroupDlg::onAdd()
|
|||||||
listItemsToSel.push_back(anItem);
|
listItemsToSel.push_back(anItem);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach(anItem, found)
|
Q_FOREACH(anItem, found)
|
||||||
if (!anItem->isSelected())
|
if (!anItem->isSelected())
|
||||||
listItemsToSel.push_back(anItem);
|
listItemsToSel.push_back(anItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool blocked = myElements->signalsBlocked();
|
bool blocked = myElements->signalsBlocked();
|
||||||
myElements->blockSignals(true);
|
myElements->blockSignals(true);
|
||||||
foreach(anItem, listItemsToSel) anItem->setSelected(true);
|
Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
|
||||||
myElements->blockSignals(blocked);
|
myElements->blockSignals(blocked);
|
||||||
onListSelectionChanged();
|
onListSelectionChanged();
|
||||||
listItemsToSel.clear();
|
listItemsToSel.clear();
|
||||||
@ -2054,7 +2054,7 @@ void SMESHGUI_GroupDlg::onRemove()
|
|||||||
if (myCurrentLineEdit == 0) {
|
if (myCurrentLineEdit == 0) {
|
||||||
QList<QListWidgetItem*> selItems = myElements->selectedItems();
|
QList<QListWidgetItem*> selItems = myElements->selectedItems();
|
||||||
QListWidgetItem* item;
|
QListWidgetItem* item;
|
||||||
foreach(item, selItems) delete item;
|
Q_FOREACH(item, selItems) delete item;
|
||||||
} else {
|
} else {
|
||||||
SALOME_ListIO aList;
|
SALOME_ListIO aList;
|
||||||
mySelectionMgr->selectedObjects( aList );
|
mySelectionMgr->selectedObjects( aList );
|
||||||
@ -2092,7 +2092,7 @@ void SMESHGUI_GroupDlg::onRemove()
|
|||||||
QList<QListWidgetItem*> found =
|
QList<QListWidgetItem*> found =
|
||||||
myElements->findItems(QString::number(anElements[i]), Qt::MatchExactly);
|
myElements->findItems(QString::number(anElements[i]), Qt::MatchExactly);
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
foreach(anItem, found) delete anItem;
|
Q_FOREACH(anItem, found) delete anItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (const SALOME::SALOME_Exception& ex) {
|
catch (const SALOME::SALOME_Exception& ex) {
|
||||||
@ -2107,7 +2107,7 @@ void SMESHGUI_GroupDlg::onRemove()
|
|||||||
QList<QListWidgetItem*> found =
|
QList<QListWidgetItem*> found =
|
||||||
myElements->findItems(QString::number(anElements[i]), Qt::MatchExactly);
|
myElements->findItems(QString::number(anElements[i]), Qt::MatchExactly);
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
foreach(anItem, found) delete anItem;
|
Q_FOREACH(anItem, found) delete anItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (const SALOME::SALOME_Exception& ex) {
|
catch (const SALOME::SALOME_Exception& ex) {
|
||||||
@ -2136,7 +2136,7 @@ void SMESHGUI_GroupDlg::onRemove()
|
|||||||
QList<QListWidgetItem*> found =
|
QList<QListWidgetItem*> found =
|
||||||
myElements->findItems(QString::number(anElements[i]), Qt::MatchExactly);
|
myElements->findItems(QString::number(anElements[i]), Qt::MatchExactly);
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
foreach(anItem, found) delete anItem;
|
Q_FOREACH(anItem, found) delete anItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2185,7 +2185,7 @@ void SMESHGUI_GroupDlg::onSort()
|
|||||||
}
|
}
|
||||||
bool blocked = myElements->signalsBlocked();
|
bool blocked = myElements->signalsBlocked();
|
||||||
myElements->blockSignals(true);
|
myElements->blockSignals(true);
|
||||||
foreach(anItem, listItemsToSel) anItem->setSelected(true);
|
Q_FOREACH(anItem, listItemsToSel) anItem->setSelected(true);
|
||||||
myElements->blockSignals(blocked);
|
myElements->blockSignals(blocked);
|
||||||
listItemsToSel.clear();
|
listItemsToSel.clear();
|
||||||
myIsBusy = false;
|
myIsBusy = false;
|
||||||
|
@ -81,14 +81,14 @@ public:
|
|||||||
|
|
||||||
static QString GetDefaultName( const QString& );
|
static QString GetDefaultName( const QString& );
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void onAdd();
|
void onAdd();
|
||||||
void onRemove();
|
void onRemove();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onTypeChanged( int );
|
void onTypeChanged( int );
|
||||||
void onGrpTypeChanged( int );
|
void onGrpTypeChanged( int );
|
||||||
void onColorChanged( QColor );
|
void onColorChanged( QColor );
|
||||||
|
@ -50,7 +50,7 @@ public:
|
|||||||
virtual LightApp_Dialog* dlg() const;
|
virtual LightApp_Dialog* dlg() const;
|
||||||
static QString GetDefaultName(const QString& theOperation);
|
static QString GetDefaultName(const QString& theOperation);
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ protected:
|
|||||||
virtual SUIT_SelectionFilter* createFilter( const int ) const;
|
virtual SUIT_SelectionFilter* createFilter( const int ) const;
|
||||||
//virtual bool isValid( SUIT_Operation* ) const;
|
//virtual bool isValid( SUIT_Operation* ) const;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
|
|
||||||
bool onApply();
|
bool onApply();
|
||||||
void onButtonClick();
|
void onButtonClick();
|
||||||
@ -96,7 +96,7 @@ public:
|
|||||||
SMESHGUI_GroupOnShapeDlg();
|
SMESHGUI_GroupOnShapeDlg();
|
||||||
virtual ~SMESHGUI_GroupOnShapeDlg();
|
virtual ~SMESHGUI_GroupOnShapeDlg();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
|
|
||||||
void updateButtons();
|
void updateButtons();
|
||||||
void init();
|
void init();
|
||||||
|
@ -65,7 +65,7 @@ public:
|
|||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
|
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
virtual void onSelectionDone();
|
virtual void onSelectionDone();
|
||||||
@ -95,10 +95,10 @@ private:
|
|||||||
void enterEvent( QEvent* );
|
void enterEvent( QEvent* );
|
||||||
void keyPressEvent( QKeyEvent* );
|
void keyPressEvent( QKeyEvent* );
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onOk();
|
void onOk();
|
||||||
void onHelp();
|
void onHelp();
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ public:
|
|||||||
SMESHGUI_UnionGroupsDlg( SMESHGUI* );
|
SMESHGUI_UnionGroupsDlg( SMESHGUI* );
|
||||||
virtual ~SMESHGUI_UnionGroupsDlg();
|
virtual ~SMESHGUI_UnionGroupsDlg();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
virtual void onSelectionDone();
|
virtual void onSelectionDone();
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ public:
|
|||||||
SMESHGUI_IntersectGroupsDlg( SMESHGUI* );
|
SMESHGUI_IntersectGroupsDlg( SMESHGUI* );
|
||||||
virtual ~SMESHGUI_IntersectGroupsDlg();
|
virtual ~SMESHGUI_IntersectGroupsDlg();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
virtual void onSelectionDone();
|
virtual void onSelectionDone();
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ public:
|
|||||||
SMESHGUI_CutGroupsDlg( SMESHGUI* );
|
SMESHGUI_CutGroupsDlg( SMESHGUI* );
|
||||||
virtual ~SMESHGUI_CutGroupsDlg();
|
virtual ~SMESHGUI_CutGroupsDlg();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
virtual void onSelectionDone();
|
virtual void onSelectionDone();
|
||||||
|
|
||||||
@ -230,7 +230,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void reset();
|
virtual void reset();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
virtual void onSelectionDone();
|
virtual void onSelectionDone();
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ void SMESHGUI_GenericHypothesisCreator::editHypothesis( SMESH::SMESH_Hypothesis_
|
|||||||
Dlg->resize( Dlg->minimumSizeHint() );
|
Dlg->resize( Dlg->minimumSizeHint() );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
emit finished( QDialog::Accepted );
|
Q_EMIT finished( QDialog::Accepted );
|
||||||
delete myDlg;
|
delete myDlg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -309,7 +309,7 @@ void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result )
|
|||||||
myDlg->close();
|
myDlg->close();
|
||||||
//delete myDlg; since WA_DeleteOnClose==true
|
//delete myDlg; since WA_DeleteOnClose==true
|
||||||
myDlg = 0;
|
myDlg = 0;
|
||||||
emit finished( result );
|
Q_EMIT finished( result );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SMESHGUI_GenericHypothesisCreator::stdParams( ListOfStdParams& ) const
|
bool SMESHGUI_GenericHypothesisCreator::stdParams( ListOfStdParams& ) const
|
||||||
|
@ -72,7 +72,7 @@ public:
|
|||||||
QString getMainShapeEntry() const { return myMainShapeEntry; }
|
QString getMainShapeEntry() const { return myMainShapeEntry; }
|
||||||
void setMainShapeEntry( const QString& theEntry ) { myMainShapeEntry = theEntry; }
|
void setMainShapeEntry( const QString& theEntry ) { myMainShapeEntry = theEntry; }
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void finished( int );
|
void finished( int );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -120,10 +120,10 @@ protected:
|
|||||||
virtual QPixmap icon() const;
|
virtual QPixmap icon() const;
|
||||||
virtual QString type() const;
|
virtual QString type() const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onValueChanged();
|
virtual void onValueChanged();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
virtual void onDialogFinished( int );
|
virtual void onDialogFinished( int );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -154,7 +154,7 @@ public:
|
|||||||
void setCustomFrame( QFrame* );
|
void setCustomFrame( QFrame* );
|
||||||
void setType( const QString& );
|
void setType( const QString& );
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void accept();
|
virtual void accept();
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
void onHelp();
|
void onHelp();
|
||||||
|
@ -65,7 +65,7 @@ public:
|
|||||||
|
|
||||||
bool copySource() const;
|
bool copySource() const;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onTargetChanged();
|
void onTargetChanged();
|
||||||
void onGroupChecked();
|
void onGroupChecked();
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ protected:
|
|||||||
virtual SUIT_SelectionFilter* createFilter( const int ) const;
|
virtual SUIT_SelectionFilter* createFilter( const int ) const;
|
||||||
bool isValid( QString& ) const;
|
bool isValid( QString& ) const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
void onModeChanged();
|
void onModeChanged();
|
||||||
|
|
||||||
|
@ -64,10 +64,10 @@ protected:
|
|||||||
|
|
||||||
bool isValid( QString& );
|
bool isValid( QString& );
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onSelectionDone();
|
void onSelectionDone();
|
||||||
void redisplayPreview();
|
void redisplayPreview();
|
||||||
void onTextChange( const QString& );
|
void onTextChange( const QString& );
|
||||||
@ -131,7 +131,7 @@ private:
|
|||||||
|
|
||||||
friend class SMESHGUI_MakeNodeAtPointOp;
|
friend class SMESHGUI_MakeNodeAtPointOp;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ButtonToggled( bool );
|
void ButtonToggled( bool );
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
};
|
};
|
||||||
|
@ -1003,7 +1003,7 @@ void SMESHGUI_BoundingBox::sourceEdited()
|
|||||||
if ( !mySource->isReadOnly() )
|
if ( !mySource->isReadOnly() )
|
||||||
myIDs = mySource->text();
|
myIDs = mySource->text();
|
||||||
QStringList ids = myIDs.split( " ", QString::SkipEmptyParts );
|
QStringList ids = myIDs.split( " ", QString::SkipEmptyParts );
|
||||||
foreach ( QString id, ids )
|
Q_FOREACH ( QString id, ids )
|
||||||
ID.Add( id.trimmed().toLong() );
|
ID.Add( id.trimmed().toLong() );
|
||||||
selector->AddOrRemoveIndex( IO, ID, false );
|
selector->AddOrRemoveIndex( IO, ID, false );
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ private:
|
|||||||
void displayPreview();
|
void displayPreview();
|
||||||
void createPreview( double, double, double, double, double, double );
|
void createPreview( double, double, double, double, double, double );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void selectionChanged();
|
void selectionChanged();
|
||||||
void firstChanged();
|
void firstChanged();
|
||||||
void secondChanged();
|
void secondChanged();
|
||||||
@ -108,7 +108,7 @@ private:
|
|||||||
void displayPreview();
|
void displayPreview();
|
||||||
void createPreview( double, double, double, double, double, double );
|
void createPreview( double, double, double, double, double, double );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void selectionChanged();
|
void selectionChanged();
|
||||||
void sourceChanged();
|
void sourceChanged();
|
||||||
void sourceEdited();
|
void sourceEdited();
|
||||||
@ -152,7 +152,7 @@ public:
|
|||||||
void updateSelection();
|
void updateSelection();
|
||||||
void deactivate();
|
void deactivate();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void selectionChanged();
|
void selectionChanged();
|
||||||
void modeChanged( int);
|
void modeChanged( int);
|
||||||
void compute();
|
void compute();
|
||||||
@ -192,7 +192,7 @@ protected:
|
|||||||
void keyPressEvent( QKeyEvent* );
|
void keyPressEvent( QKeyEvent* );
|
||||||
void enterEvent( QEvent* );
|
void enterEvent( QEvent* );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void help();
|
void help();
|
||||||
void updateSelection();
|
void updateSelection();
|
||||||
void activate();
|
void activate();
|
||||||
|
@ -862,7 +862,7 @@ void SMESHGUI_MergeDlg::onSelectGroup()
|
|||||||
|
|
||||||
ListEdit->clear();
|
ListEdit->clear();
|
||||||
|
|
||||||
foreach(anItem, selItems) {
|
Q_FOREACH(anItem, selItems) {
|
||||||
aListIds = anItem->text().split(" ", QString::SkipEmptyParts);
|
aListIds = anItem->text().split(" ", QString::SkipEmptyParts);
|
||||||
for (int i = 0; i < aListIds.count(); i++)
|
for (int i = 0; i < aListIds.count(); i++)
|
||||||
anIndices.Add(aListIds[i].toInt());
|
anIndices.Add(aListIds[i].toInt());
|
||||||
@ -921,7 +921,7 @@ void SMESHGUI_MergeDlg::onSelectElementFromGroup()
|
|||||||
QList<QListWidgetItem*> selItems = ListEdit->selectedItems();
|
QList<QListWidgetItem*> selItems = ListEdit->selectedItems();
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
|
|
||||||
foreach(anItem, selItems)
|
Q_FOREACH(anItem, selItems)
|
||||||
anIndices.Add(anItem->text().toInt());
|
anIndices.Add(anItem->text().toInt());
|
||||||
|
|
||||||
SetFirstButton->setEnabled(selItems.count() == 1);
|
SetFirstButton->setEnabled(selItems.count() == 1);
|
||||||
@ -991,7 +991,7 @@ void SMESHGUI_MergeDlg::onRemoveGroup()
|
|||||||
QList<QListWidgetItem*> selItems = ListCoincident->selectedItems();
|
QList<QListWidgetItem*> selItems = ListCoincident->selectedItems();
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
|
|
||||||
foreach(anItem, selItems)
|
Q_FOREACH(anItem, selItems)
|
||||||
delete anItem;
|
delete anItem;
|
||||||
|
|
||||||
ListEdit->clear();
|
ListEdit->clear();
|
||||||
@ -1034,7 +1034,7 @@ void SMESHGUI_MergeDlg::onAddElement()
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
foreach(anItem, found) anItem->setSelected(true);
|
Q_FOREACH(anItem, found) anItem->setSelected(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1055,7 +1055,7 @@ void SMESHGUI_MergeDlg::onRemoveElement()
|
|||||||
QList<QListWidgetItem*> selItems = ListEdit->selectedItems();
|
QList<QListWidgetItem*> selItems = ListEdit->selectedItems();
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
|
|
||||||
foreach(anItem, selItems)
|
Q_FOREACH(anItem, selItems)
|
||||||
delete anItem;
|
delete anItem;
|
||||||
|
|
||||||
myIsBusy = false;
|
myIsBusy = false;
|
||||||
@ -1080,7 +1080,7 @@ void SMESHGUI_MergeDlg::onSetFirst()
|
|||||||
QList<QListWidgetItem*> selItems = ListEdit->selectedItems();
|
QList<QListWidgetItem*> selItems = ListEdit->selectedItems();
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
|
|
||||||
foreach(anItem, selItems) {
|
Q_FOREACH(anItem, selItems) {
|
||||||
ListEdit->takeItem(ListEdit->row(anItem));
|
ListEdit->takeItem(ListEdit->row(anItem));
|
||||||
ListEdit->insertItem(0, anItem);
|
ListEdit->insertItem(0, anItem);
|
||||||
}
|
}
|
||||||
|
@ -149,10 +149,10 @@ private:
|
|||||||
QString myEntry;
|
QString myEntry;
|
||||||
GrpList myGroups;
|
GrpList myGroups;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -403,7 +403,7 @@ void SMESHGUI_MeshTab::onCreateHyp()
|
|||||||
|
|
||||||
QAction* a = aPopup.exec( QCursor::pos() );
|
QAction* a = aPopup.exec( QCursor::pos() );
|
||||||
if ( a )
|
if ( a )
|
||||||
emit createHyp( isMainHyp ? MainHyp : AddHyp, actions.indexOf( a ) );
|
Q_EMIT createHyp( isMainHyp ? MainHyp : AddHyp, actions.indexOf( a ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
@ -421,7 +421,7 @@ void SMESHGUI_MeshTab::onEditHyp()
|
|||||||
for ( ; aHypType <= MoreAddHyp; ++aHypType )
|
for ( ; aHypType <= MoreAddHyp; ++aHypType )
|
||||||
if ( aSender == myEditHypBtn[ aHypType ])
|
if ( aSender == myEditHypBtn[ aHypType ])
|
||||||
break;
|
break;
|
||||||
emit editHyp( Min( aHypType, AddHyp ),
|
Q_EMIT editHyp( Min( aHypType, AddHyp ),
|
||||||
getCurrentIndex( aHypType ) - 1 ); // - 1 because there is NONE on the top
|
getCurrentIndex( aHypType ) - 1 ); // - 1 because there is NONE on the top
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,7 +439,7 @@ void SMESHGUI_MeshTab::onHyp( int theIndex )
|
|||||||
const QObject* aSender = sender();
|
const QObject* aSender = sender();
|
||||||
if ( aSender == myHypCombo[ Algo ] )
|
if ( aSender == myHypCombo[ Algo ] )
|
||||||
{
|
{
|
||||||
emit selectAlgo( theIndex - 1 ); // - 1 because there is NONE on the top
|
Q_EMIT selectAlgo( theIndex - 1 ); // - 1 because there is NONE on the top
|
||||||
}
|
}
|
||||||
else if ( aSender == myAddHypList )
|
else if ( aSender == myAddHypList )
|
||||||
{
|
{
|
||||||
@ -719,7 +719,7 @@ void SMESHGUI_MeshDlg::setHypoSets( const QStringList& theSets )
|
|||||||
|
|
||||||
void SMESHGUI_MeshDlg::onHypoSetPopup( QAction* a )
|
void SMESHGUI_MeshDlg::onHypoSetPopup( QAction* a )
|
||||||
{
|
{
|
||||||
emit hypoSet( a->text() );
|
Q_EMIT hypoSet( a->text() );
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
@ -798,7 +798,7 @@ void SMESHGUI_MeshDlg::onGeomSelectionButton(bool isBtnOn)
|
|||||||
|
|
||||||
void SMESHGUI_MeshDlg::onGeomPopup( QAction* a )
|
void SMESHGUI_MeshDlg::onGeomPopup( QAction* a )
|
||||||
{
|
{
|
||||||
emit geomSelectionByMesh( a->data().toInt() == GEOM_BY_MESH_INDEX );
|
Q_EMIT geomSelectionByMesh( a->data().toInt() == GEOM_BY_MESH_INDEX );
|
||||||
}
|
}
|
||||||
|
|
||||||
int SMESHGUI_MeshDlg::getActiveObject()
|
int SMESHGUI_MeshDlg::getActiveObject()
|
||||||
@ -829,7 +829,7 @@ void SMESHGUI_MeshDlg::setAvailableMeshType( const QStringList& theTypeMesh )
|
|||||||
//================================================================================
|
//================================================================================
|
||||||
void SMESHGUI_MeshDlg::onChangedMeshType( const int isIndex )
|
void SMESHGUI_MeshDlg::onChangedMeshType( const int isIndex )
|
||||||
{
|
{
|
||||||
emit selectMeshType( Dim3D - myTabWg->currentIndex(), isIndex );
|
Q_EMIT selectMeshType( Dim3D - myTabWg->currentIndex(), isIndex );
|
||||||
}
|
}
|
||||||
//================================================================================
|
//================================================================================
|
||||||
/*!
|
/*!
|
||||||
|
@ -79,12 +79,12 @@ public:
|
|||||||
int currentMeshType();
|
int currentMeshType();
|
||||||
void setCurrentMeshType( const int );
|
void setCurrentMeshType( const int );
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void hypoSet( const QString& );
|
void hypoSet( const QString& );
|
||||||
void geomSelectionByMesh( bool );
|
void geomSelectionByMesh( bool );
|
||||||
void selectMeshType( const int, const int );
|
void selectMeshType( const int, const int );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onHypoSetPopup( QAction* );
|
void onHypoSetPopup( QAction* );
|
||||||
void onGeomPopup( QAction* );
|
void onGeomPopup( QAction* );
|
||||||
void onGeomSelectionButton( bool );
|
void onGeomSelectionButton( bool );
|
||||||
@ -132,7 +132,7 @@ public:
|
|||||||
int nbAddHypTypes() const;
|
int nbAddHypTypes() const;
|
||||||
void reset();
|
void reset();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void createHyp( const int, const int );
|
void createHyp( const int, const int );
|
||||||
//!< Emited when "Create hypothesis" button clicked
|
//!< Emited when "Create hypothesis" button clicked
|
||||||
void editHyp( const int, const int );
|
void editHyp( const int, const int );
|
||||||
@ -140,7 +140,7 @@ signals:
|
|||||||
void selectAlgo( const int );
|
void selectAlgo( const int );
|
||||||
//!< Emited when an algorithm is selected
|
//!< Emited when an algorithm is selected
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onCreateHyp();
|
void onCreateHyp();
|
||||||
void onEditHyp();
|
void onEditHyp();
|
||||||
void onHyp( int );
|
void onHyp( int );
|
||||||
|
@ -792,7 +792,7 @@ void SMESHGUI_MeshInfo::setFieldsVisible( int start, int end, bool on )
|
|||||||
end = qMin( end, (int)iElementsEnd );
|
end = qMin( end, (int)iElementsEnd );
|
||||||
for ( int i = start; i < end; i++ ) {
|
for ( int i = start; i < end; i++ ) {
|
||||||
wlist wl = myWidgets[i];
|
wlist wl = myWidgets[i];
|
||||||
foreach ( QWidget* w, wl ) w->setVisible( on );
|
Q_FOREACH ( QWidget* w, wl ) w->setVisible( on );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1020,7 +1020,7 @@ QString SMESHGUI_ElemInfo::formatConnectivity( Connectivity connectivity, int ty
|
|||||||
if ( connectivity.contains( type ) ) {
|
if ( connectivity.contains( type ) ) {
|
||||||
QList<int> elements = connectivity[ type ];
|
QList<int> elements = connectivity[ type ];
|
||||||
qSort( elements );
|
qSort( elements );
|
||||||
foreach( int id, elements )
|
Q_FOREACH( int id, elements )
|
||||||
str << QString::number( id );
|
str << QString::number( id );
|
||||||
}
|
}
|
||||||
return str.join( " " );
|
return str.join( " " );
|
||||||
@ -1106,7 +1106,7 @@ void SMESHGUI_SimpleElemInfo::information( const QList<long>& ids )
|
|||||||
int cprecision = -1;
|
int cprecision = -1;
|
||||||
if ( SMESHGUI::resourceMgr()->booleanValue( "SMESH", "use_precision", false ) )
|
if ( SMESHGUI::resourceMgr()->booleanValue( "SMESH", "use_precision", false ) )
|
||||||
cprecision = SMESHGUI::resourceMgr()->integerValue( "SMESH", "controls_precision", -1 );
|
cprecision = SMESHGUI::resourceMgr()->integerValue( "SMESH", "controls_precision", -1 );
|
||||||
foreach ( long id, ids ) {
|
Q_FOREACH ( long id, ids ) {
|
||||||
if ( !isElements() ) {
|
if ( !isElements() ) {
|
||||||
//
|
//
|
||||||
// show node info
|
// show node info
|
||||||
@ -1594,7 +1594,7 @@ void SMESHGUI_TreeElemInfo::information( const QList<long>& ids )
|
|||||||
int cprecision = -1;
|
int cprecision = -1;
|
||||||
if ( SMESHGUI::resourceMgr()->booleanValue( "SMESH", "use_precision", false ) )
|
if ( SMESHGUI::resourceMgr()->booleanValue( "SMESH", "use_precision", false ) )
|
||||||
cprecision = SMESHGUI::resourceMgr()->integerValue( "SMESH", "controls_precision", -1 );
|
cprecision = SMESHGUI::resourceMgr()->integerValue( "SMESH", "controls_precision", -1 );
|
||||||
foreach ( long id, ids ) {
|
Q_FOREACH ( long id, ids ) {
|
||||||
if ( !isElements() ) {
|
if ( !isElements() ) {
|
||||||
//
|
//
|
||||||
// show node info
|
// show node info
|
||||||
@ -2163,9 +2163,9 @@ void SMESHGUI_TreeElemInfo::contextMenuEvent( QContextMenuEvent* e )
|
|||||||
QMenu menu;
|
QMenu menu;
|
||||||
QAction* a = menu.addAction( tr( "SHOW_ITEM_INFO" ) );
|
QAction* a = menu.addAction( tr( "SHOW_ITEM_INFO" ) );
|
||||||
if ( type == ElemConnectivity && id > 0 && menu.exec( e->globalPos() ) == a )
|
if ( type == ElemConnectivity && id > 0 && menu.exec( e->globalPos() ) == a )
|
||||||
emit( itemInfo( id ) );
|
Q_EMIT( itemInfo( id ) );
|
||||||
else if ( type == NodeConnectivity && menu.exec( e->globalPos() ) == a )
|
else if ( type == NodeConnectivity && menu.exec( e->globalPos() ) == a )
|
||||||
emit( itemInfo( aTreeItem->text( 1 ) ) );
|
Q_EMIT( itemInfo( aTreeItem->text( 1 ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void SMESHGUI_TreeElemInfo::itemDoubleClicked( QTreeWidgetItem* theItem, int theColumn )
|
void SMESHGUI_TreeElemInfo::itemDoubleClicked( QTreeWidgetItem* theItem, int theColumn )
|
||||||
@ -2174,9 +2174,9 @@ void SMESHGUI_TreeElemInfo::itemDoubleClicked( QTreeWidgetItem* theItem, int th
|
|||||||
int type = theItem->data( 1, TypeRole ).toInt();
|
int type = theItem->data( 1, TypeRole ).toInt();
|
||||||
int id = theItem->data( 1, IdRole ).toInt();
|
int id = theItem->data( 1, IdRole ).toInt();
|
||||||
if ( type == ElemConnectivity && id > 0 )
|
if ( type == ElemConnectivity && id > 0 )
|
||||||
emit( itemInfo( id ) );
|
Q_EMIT( itemInfo( id ) );
|
||||||
else if ( type == NodeConnectivity )
|
else if ( type == NodeConnectivity )
|
||||||
emit( itemInfo( theItem->text( 1 ) ) );
|
Q_EMIT( itemInfo( theItem->text( 1 ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2816,7 +2816,7 @@ void SMESHGUI_MeshInfoDlg::showInfo( const Handle(SALOME_InteractiveObject)& IO
|
|||||||
myID->setText( ID.trimmed() );
|
myID->setText( ID.trimmed() );
|
||||||
QSet<long> ids;
|
QSet<long> ids;
|
||||||
QStringList idTxt = ID.split( " ", QString::SkipEmptyParts );
|
QStringList idTxt = ID.split( " ", QString::SkipEmptyParts );
|
||||||
foreach ( ID, idTxt )
|
Q_FOREACH ( ID, idTxt )
|
||||||
ids << ID.trimmed().toLong();
|
ids << ID.trimmed().toLong();
|
||||||
myElemInfo->showInfo( ids, myMode->checkedId() == ElemMode );
|
myElemInfo->showInfo( ids, myMode->checkedId() == ElemMode );
|
||||||
}
|
}
|
||||||
@ -2973,7 +2973,7 @@ void SMESHGUI_MeshInfoDlg::idChanged()
|
|||||||
TColStd_MapOfInteger ID;
|
TColStd_MapOfInteger ID;
|
||||||
QSet<long> ids;
|
QSet<long> ids;
|
||||||
QStringList idTxt = myID->text().split( " ", QString::SkipEmptyParts );
|
QStringList idTxt = myID->text().split( " ", QString::SkipEmptyParts );
|
||||||
foreach ( QString tid, idTxt ) {
|
Q_FOREACH ( QString tid, idTxt ) {
|
||||||
long id = tid.trimmed().toLong();
|
long id = tid.trimmed().toLong();
|
||||||
const SMDS_MeshElement* e = myMode->checkedId() == ElemMode ?
|
const SMDS_MeshElement* e = myMode->checkedId() == ElemMode ?
|
||||||
myActor->GetObject()->GetMesh()->FindElement( id ) :
|
myActor->GetObject()->GetMesh()->FindElement( id ) :
|
||||||
|
@ -131,7 +131,7 @@ private:
|
|||||||
void setFontAttributes( QWidget*, int, bool = true );
|
void setFontAttributes( QWidget*, int, bool = true );
|
||||||
void setFieldsVisible( int, int, bool );
|
void setFieldsVisible( int, int, bool );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void loadMesh();
|
void loadMesh();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -177,11 +177,11 @@ protected:
|
|||||||
QString formatConnectivity( Connectivity, int );
|
QString formatConnectivity( Connectivity, int );
|
||||||
XYZ gravityCenter( const SMDS_MeshElement* );
|
XYZ gravityCenter( const SMDS_MeshElement* );
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void itemInfo( int );
|
void itemInfo( int );
|
||||||
void itemInfo( const QString& );
|
void itemInfo( const QString& );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void showPrevious();
|
void showPrevious();
|
||||||
void showNext();
|
void showNext();
|
||||||
void updateControls();
|
void updateControls();
|
||||||
@ -229,7 +229,7 @@ protected:
|
|||||||
void nodeInfo( const SMDS_MeshNode*, int, int, QTreeWidgetItem* );
|
void nodeInfo( const SMDS_MeshNode*, int, int, QTreeWidgetItem* );
|
||||||
void clearInternal();
|
void clearInternal();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void itemDoubleClicked( QTreeWidgetItem*, int );
|
void itemDoubleClicked( QTreeWidgetItem*, int );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -247,7 +247,7 @@ public:
|
|||||||
GrpComputor( SMESH::SMESH_GroupBase_ptr, QTreeWidgetItem*, QObject* );
|
GrpComputor( SMESH::SMESH_GroupBase_ptr, QTreeWidgetItem*, QObject* );
|
||||||
QTreeWidgetItem* getItem() { return myItem; }
|
QTreeWidgetItem* getItem() { return myItem; }
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void compute();
|
void compute();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -269,7 +269,7 @@ public:
|
|||||||
// void clear();
|
// void clear();
|
||||||
void saveInfo( QTextStream &out );
|
void saveInfo( QTextStream &out );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void changeLoadToCompute();
|
void changeLoadToCompute();
|
||||||
void showPreviousGroups();
|
void showPreviousGroups();
|
||||||
void showNextGroups();
|
void showNextGroups();
|
||||||
@ -311,7 +311,7 @@ private:
|
|||||||
Plot2d_Histogram* getHistogram( SMESH::NumericalFunctor_ptr functor );
|
Plot2d_Histogram* getHistogram( SMESH::NumericalFunctor_ptr functor );
|
||||||
void computeNb( int ft, int iBut, int iWdg );
|
void computeNb( int ft, int iBut, int iWdg );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void computeAspectRatio();
|
void computeAspectRatio();
|
||||||
void computeAspectRatio3D();
|
void computeAspectRatio3D();
|
||||||
void computeFreeNodesInfo();
|
void computeFreeNodesInfo();
|
||||||
@ -364,7 +364,7 @@ protected:
|
|||||||
void keyPressEvent( QKeyEvent* );
|
void keyPressEvent( QKeyEvent* );
|
||||||
void enterEvent( QEvent* );
|
void enterEvent( QEvent* );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void help();
|
void help();
|
||||||
void updateSelection();
|
void updateSelection();
|
||||||
void updateInfo();
|
void updateInfo();
|
||||||
@ -398,7 +398,7 @@ public:
|
|||||||
void showInfo( const Handle(SALOME_InteractiveObject)& );
|
void showInfo( const Handle(SALOME_InteractiveObject)& );
|
||||||
void reject();
|
void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void updateInfo();
|
void updateInfo();
|
||||||
void activate();
|
void activate();
|
||||||
void deactivate();
|
void deactivate();
|
||||||
|
@ -73,7 +73,7 @@ protected:
|
|||||||
virtual SUIT_SelectionFilter* createFilter( const int ) const;
|
virtual SUIT_SelectionFilter* createFilter( const int ) const;
|
||||||
virtual bool isValid( SUIT_Operation* ) const;
|
virtual bool isValid( SUIT_Operation* ) const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
void onCreateHyp( const int, const int );
|
void onCreateHyp( const int, const int );
|
||||||
void onEditHyp( const int, const int );
|
void onEditHyp( const int, const int );
|
||||||
|
@ -69,7 +69,7 @@ class SMESHGUI_EXPORT SMESHGUI_MeshOrderBox : public QGroupBox
|
|||||||
//! Returns result (ordered by user) mesh indeces
|
//! Returns result (ordered by user) mesh indeces
|
||||||
ListListName GetMeshNames() const;
|
ListListName GetMeshNames() const;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
/*! Private slots */
|
/*! Private slots */
|
||||||
//! update state of arrow buttons according to selection
|
//! update state of arrow buttons according to selection
|
||||||
void onSelectionChanged();
|
void onSelectionChanged();
|
||||||
|
@ -81,7 +81,7 @@ protected:
|
|||||||
//! sets the dialog widgets to state just after operation start
|
//! sets the dialog widgets to state just after operation start
|
||||||
virtual void initDialog();
|
virtual void initDialog();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
virtual void onCancel();
|
virtual void onCancel();
|
||||||
|
|
||||||
|
@ -75,10 +75,10 @@ public:
|
|||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onOk();
|
void onOk();
|
||||||
bool onApply();
|
bool onApply();
|
||||||
void onHelp();
|
void onHelp();
|
||||||
|
@ -386,7 +386,7 @@ void SMESHGUI_MultiEditDlg::Init()
|
|||||||
myIds.Clear();
|
myIds.Clear();
|
||||||
myBusy = false;
|
myBusy = false;
|
||||||
myActor = 0;
|
myActor = 0;
|
||||||
emit ListContensChanged();
|
Q_EMIT ListContensChanged();
|
||||||
|
|
||||||
// main buttons
|
// main buttons
|
||||||
connect(myOkBtn, SIGNAL(clicked()), SLOT(onOk()));
|
connect(myOkBtn, SIGNAL(clicked()), SLOT(onOk()));
|
||||||
@ -550,7 +550,7 @@ void SMESHGUI_MultiEditDlg::onSelectionDone()
|
|||||||
for (QStringList::iterator it = anElements.begin(); it != anElements.end(); ++it) {
|
for (QStringList::iterator it = anElements.begin(); it != anElements.end(); ++it) {
|
||||||
QList<QListWidgetItem*> items = myListBox->findItems(*it, Qt::MatchExactly);
|
QList<QListWidgetItem*> items = myListBox->findItems(*it, Qt::MatchExactly);
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
foreach(anItem, items)
|
Q_FOREACH(anItem, items)
|
||||||
anItem->setSelected(true);
|
anItem->setSelected(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -627,7 +627,7 @@ void SMESHGUI_MultiEditDlg::onFilterAccepted()
|
|||||||
for (int i = 0, n = myListBox->count(); i < n; i++)
|
for (int i = 0, n = myListBox->count(); i < n; i++)
|
||||||
myIds.Add(myListBox->item(i)->text().toInt());
|
myIds.Add(myListBox->item(i)->text().toInt());
|
||||||
|
|
||||||
emit ListContensChanged();
|
Q_EMIT ListContensChanged();
|
||||||
|
|
||||||
if (mySubmeshChk->isChecked() || myGroupChk->isChecked()) {
|
if (mySubmeshChk->isChecked() || myGroupChk->isChecked()) {
|
||||||
mySubmeshChk->blockSignals(true);
|
mySubmeshChk->blockSignals(true);
|
||||||
@ -718,7 +718,7 @@ void SMESHGUI_MultiEditDlg::onAddBtn()
|
|||||||
myListBox->selectAll();
|
myListBox->selectAll();
|
||||||
myBusy = false;
|
myBusy = false;
|
||||||
|
|
||||||
emit ListContensChanged();
|
Q_EMIT ListContensChanged();
|
||||||
|
|
||||||
if (isGroupOrSubmesh)
|
if (isGroupOrSubmesh)
|
||||||
onListSelectionChanged();
|
onListSelectionChanged();
|
||||||
@ -780,7 +780,7 @@ void SMESHGUI_MultiEditDlg::onRemoveBtn()
|
|||||||
|
|
||||||
QList<QListWidgetItem*> selItems = myListBox->selectedItems();
|
QList<QListWidgetItem*> selItems = myListBox->selectedItems();
|
||||||
QListWidgetItem* item;
|
QListWidgetItem* item;
|
||||||
foreach(item, selItems)
|
Q_FOREACH(item, selItems)
|
||||||
{
|
{
|
||||||
myIds.Remove(item->text().toInt());
|
myIds.Remove(item->text().toInt());
|
||||||
delete item;
|
delete item;
|
||||||
@ -788,7 +788,7 @@ void SMESHGUI_MultiEditDlg::onRemoveBtn()
|
|||||||
|
|
||||||
myBusy = false;
|
myBusy = false;
|
||||||
|
|
||||||
emit ListContensChanged();
|
Q_EMIT ListContensChanged();
|
||||||
updateButtons();
|
updateButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -913,7 +913,7 @@ void SMESHGUI_MultiEditDlg::onToAllChk()
|
|||||||
|
|
||||||
myIds.Clear();
|
myIds.Clear();
|
||||||
|
|
||||||
emit ListContensChanged();
|
Q_EMIT ListContensChanged();
|
||||||
|
|
||||||
updateButtons();
|
updateButtons();
|
||||||
setSelectionMode();
|
setSelectionMode();
|
||||||
@ -992,7 +992,7 @@ bool SMESHGUI_MultiEditDlg::onApply()
|
|||||||
|
|
||||||
myListBox->clear();
|
myListBox->clear();
|
||||||
myIds.Clear();
|
myIds.Clear();
|
||||||
emit ListContensChanged();
|
Q_EMIT ListContensChanged();
|
||||||
|
|
||||||
updateButtons();
|
updateButtons();
|
||||||
}
|
}
|
||||||
@ -1014,7 +1014,7 @@ void SMESHGUI_MultiEditDlg::on3d2dChanged (int type)
|
|||||||
myListBox->clear();
|
myListBox->clear();
|
||||||
myIds.Clear();
|
myIds.Clear();
|
||||||
|
|
||||||
emit ListContensChanged();
|
Q_EMIT ListContensChanged();
|
||||||
|
|
||||||
if (type)
|
if (type)
|
||||||
myFilterType = SMESH::VolumeFilter;
|
myFilterType = SMESH::VolumeFilter;
|
||||||
|
@ -80,10 +80,10 @@ public:
|
|||||||
|
|
||||||
bool eventFilter( QObject*, QEvent* );
|
bool eventFilter( QObject*, QEvent* );
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void ListContensChanged();
|
void ListContensChanged();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
void onOk();
|
void onOk();
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
@ -204,7 +204,7 @@ protected:
|
|||||||
SMESH::SMESH_IDSource_ptr obj );
|
SMESH::SMESH_IDSource_ptr obj );
|
||||||
virtual int nbElemsInMesh();
|
virtual int nbElemsInMesh();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -229,7 +229,7 @@ protected:
|
|||||||
SMESH::SMESH_IDSource_ptr obj);
|
SMESH::SMESH_IDSource_ptr obj);
|
||||||
virtual int nbElemsInMesh();
|
virtual int nbElemsInMesh();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
void onCriterionRB();
|
void onCriterionRB();
|
||||||
void onPreviewChk();
|
void onPreviewChk();
|
||||||
@ -255,7 +255,7 @@ public:
|
|||||||
SMESHGUI_SplitVolumesDlg( SMESHGUI* );
|
SMESHGUI_SplitVolumesDlg( SMESHGUI* );
|
||||||
virtual ~SMESHGUI_SplitVolumesDlg();
|
virtual ~SMESHGUI_SplitVolumesDlg();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
|
|
||||||
virtual void on3d2dChanged(int);
|
virtual void on3d2dChanged(int);
|
||||||
virtual void onSelectionDone();
|
virtual void onSelectionDone();
|
||||||
|
@ -106,10 +106,10 @@ private:
|
|||||||
|
|
||||||
QString myHelpFileName;
|
QString myHelpFileName;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -74,7 +74,7 @@ protected:
|
|||||||
QString myHelpFileName;
|
QString myHelpFileName;
|
||||||
bool myIsApplyAndClose;
|
bool myIsApplyAndClose;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onOk();
|
virtual void onOk();
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
virtual void onCancel();
|
virtual void onCancel();
|
||||||
|
@ -70,10 +70,10 @@ public:
|
|||||||
const double );
|
const double );
|
||||||
void initScalarBarFromResources();
|
void initScalarBarFromResources();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
void onOk();
|
void onOk();
|
||||||
bool onApply();
|
bool onApply();
|
||||||
void onHelp();
|
void onHelp();
|
||||||
|
@ -56,7 +56,7 @@ protected:
|
|||||||
virtual void setIsApplyAndClose( const bool theFlag );
|
virtual void setIsApplyAndClose( const bool theFlag );
|
||||||
virtual bool isApplyAndClose() const;
|
virtual bool isApplyAndClose() const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
void toDisplaySimulation();
|
void toDisplaySimulation();
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ protected:
|
|||||||
virtual void setIsApplyAndClose( const bool theFlag );
|
virtual void setIsApplyAndClose( const bool theFlag );
|
||||||
virtual bool isApplyAndClose() const;
|
virtual bool isApplyAndClose() const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
void toDisplaySimulation();
|
void toDisplaySimulation();
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ public:
|
|||||||
|
|
||||||
void showControls( int, bool );
|
void showControls( int, bool );
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onHelp();
|
void onHelp();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -94,10 +94,10 @@ private:
|
|||||||
|
|
||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
void ClickOnApply();
|
void ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -94,10 +94,10 @@ private:
|
|||||||
|
|
||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
void ClickOnApply();
|
void ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -87,10 +87,10 @@ private:
|
|||||||
|
|
||||||
QString myHelpFileName;
|
QString myHelpFileName;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
void ClickOnApply();
|
void ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -61,10 +61,10 @@ protected:
|
|||||||
|
|
||||||
bool isValid( QString& );
|
bool isValid( QString& );
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
virtual void onActivateObject( int );
|
virtual void onActivateObject( int );
|
||||||
void redisplayPreview();
|
void redisplayPreview();
|
||||||
void onTextChange( const QString& );
|
void onTextChange( const QString& );
|
||||||
@ -91,7 +91,7 @@ class SMESHGUI_EXPORT SMESHGUI_ReorientFacesDlg : public SMESHGUI_Dialog
|
|||||||
public:
|
public:
|
||||||
SMESHGUI_ReorientFacesDlg();
|
SMESHGUI_ReorientFacesDlg();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void constructorChange(int id);
|
void constructorChange(int id);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -116,7 +116,7 @@ private:
|
|||||||
|
|
||||||
friend class SMESHGUI_ReorientFacesOp;
|
friend class SMESHGUI_ReorientFacesOp;
|
||||||
|
|
||||||
//private slots:
|
//private Q_SLOTS:
|
||||||
//void ButtonToggled( bool );
|
//void ButtonToggled( bool );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -158,11 +158,11 @@ private:
|
|||||||
QPushButton* myFilterBtn;
|
QPushButton* myFilterBtn;
|
||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
|
@ -132,11 +132,11 @@ private:
|
|||||||
QPushButton* myFilterBtn;
|
QPushButton* myFilterBtn;
|
||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -128,11 +128,11 @@ private:
|
|||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
|
@ -135,7 +135,7 @@ protected:
|
|||||||
//! Return actor according to selected mesh if selection mode isn't ActorSelection
|
//! Return actor according to selected mesh if selection mode isn't ActorSelection
|
||||||
SMESH_Actor* actor() const;
|
SMESH_Actor* actor() const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
//! Installs filter corresponding to certain object selection widget
|
//! Installs filter corresponding to certain object selection widget
|
||||||
virtual void onActivateObject( int );
|
virtual void onActivateObject( int );
|
||||||
|
|
||||||
|
@ -116,10 +116,10 @@ private:
|
|||||||
|
|
||||||
QString myHelpFileName;
|
QString myHelpFileName;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
|
@ -94,10 +94,10 @@ protected:
|
|||||||
void activateSelection();
|
void activateSelection();
|
||||||
void setElementID( const QString& );
|
void setElementID( const QString& );
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onSelectionDone();
|
void onSelectionDone();
|
||||||
void onTypeChanged( int );
|
void onTypeChanged( int );
|
||||||
void onElemIdChanged( const QString& );
|
void onElemIdChanged( const QString& );
|
||||||
|
@ -59,7 +59,7 @@ public:
|
|||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
void onOk();
|
void onOk();
|
||||||
virtual bool onApply();
|
virtual bool onApply();
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
@ -122,10 +122,10 @@ private:
|
|||||||
QPushButton* myElemFilterBtn;
|
QPushButton* myElemFilterBtn;
|
||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
|
@ -61,7 +61,7 @@ public:
|
|||||||
QString GetString() const;
|
QString GetString() const;
|
||||||
QLineEdit* editor() const;
|
QLineEdit* editor() const;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void SetStep( double );
|
void SetStep( double );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -136,11 +136,11 @@ private:
|
|||||||
QPushButton* myFilterBtn;
|
QPushButton* myFilterBtn;
|
||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
|
@ -130,11 +130,11 @@ private:
|
|||||||
QPushButton* myFilterBtn;
|
QPushButton* myFilterBtn;
|
||||||
SMESHGUI_FilterDlg* myFilterDlg;
|
SMESHGUI_FilterDlg* myFilterDlg;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onDisplaySimulation( bool );
|
virtual void onDisplaySimulation( bool );
|
||||||
virtual void reject();
|
virtual void reject();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
bool ClickOnApply();
|
bool ClickOnApply();
|
||||||
|
@ -69,7 +69,7 @@ private:
|
|||||||
|
|
||||||
QString myHelpFileName;
|
QString myHelpFileName;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
void ClickOnHelp();
|
void ClickOnHelp();
|
||||||
void ValueHasChanged();
|
void ValueHasChanged();
|
||||||
|
@ -1002,9 +1002,9 @@ namespace SMESH
|
|||||||
//
|
//
|
||||||
ViewManagerList vmList;
|
ViewManagerList vmList;
|
||||||
app->viewManagers( SVTK_Viewer::Type(), vmList );
|
app->viewManagers( SVTK_Viewer::Type(), vmList );
|
||||||
foreach ( SUIT_ViewManager* vm, vmList ) {
|
Q_FOREACH ( SUIT_ViewManager* vm, vmList ) {
|
||||||
QVector<SUIT_ViewWindow*> views = vm->getViews();
|
QVector<SUIT_ViewWindow*> views = vm->getViews();
|
||||||
foreach ( SUIT_ViewWindow* vw, views ) {
|
Q_FOREACH ( SUIT_ViewWindow* vw, views ) {
|
||||||
// update VTK viewer properties
|
// update VTK viewer properties
|
||||||
if ( SVTK_ViewWindow* aVtkView = GetVtkViewWindow( vw ) ) {
|
if ( SVTK_ViewWindow* aVtkView = GetVtkViewWindow( vw ) ) {
|
||||||
// update actors
|
// update actors
|
||||||
|
@ -657,7 +657,7 @@ void SMESH_Swig::EraseActor( const char* Mesh_Entry, const bool allViewers )
|
|||||||
else {
|
else {
|
||||||
aManagers = anApp->viewManagers();
|
aManagers = anApp->viewManagers();
|
||||||
}
|
}
|
||||||
foreach( SUIT_ViewManager* aMgr, aManagers ) {
|
Q_FOREACH( SUIT_ViewManager* aMgr, aManagers ) {
|
||||||
if ( aMgr && aMgr->getType() == VTKViewer_Viewer::Type() ) {
|
if ( aMgr && aMgr->getType() == VTKViewer_Viewer::Type() ) {
|
||||||
SALOME_View* aSalomeView = dynamic_cast<SALOME_View*>(aMgr->getViewModel());
|
SALOME_View* aSalomeView = dynamic_cast<SALOME_View*>(aMgr->getViewModel());
|
||||||
if (aSalomeView) {
|
if (aSalomeView) {
|
||||||
|
@ -289,7 +289,7 @@ namespace StdMeshersGUI
|
|||||||
{
|
{
|
||||||
QList<QTreeWidgetItem *> selItems = mySpacingTreeWdg->selectedItems();
|
QList<QTreeWidgetItem *> selItems = mySpacingTreeWdg->selectedItems();
|
||||||
QTreeWidgetItem * item;
|
QTreeWidgetItem * item;
|
||||||
foreach ( item, selItems )
|
Q_FOREACH ( item, selItems )
|
||||||
{
|
{
|
||||||
int i = mySpacingTreeWdg->indexOfTopLevelItem( item );
|
int i = mySpacingTreeWdg->indexOfTopLevelItem( item );
|
||||||
if ( i == 0 ) continue;
|
if ( i == 0 ) continue;
|
||||||
|
@ -81,10 +81,10 @@ namespace StdMeshersGUI
|
|||||||
SMESH::double_array* getCoordinates();
|
SMESH::double_array* getCoordinates();
|
||||||
void getSpacing(SMESH::string_array_out funs, SMESH::double_array_out points) const;
|
void getSpacing(SMESH::string_array_out funs, SMESH::double_array_out points) const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void gridModeChanged(int);
|
void gridModeChanged(int);
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onInsert();
|
void onInsert();
|
||||||
void onDelete();
|
void onDelete();
|
||||||
void onMode(int);
|
void onMode(int);
|
||||||
@ -139,7 +139,7 @@ protected:
|
|||||||
virtual void retrieveParams() const;
|
virtual void retrieveParams() const;
|
||||||
virtual QString storeParams() const;
|
virtual QString storeParams() const;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
bool updateAxesPreview();
|
bool updateAxesPreview();
|
||||||
void onOrthogonalAxes(bool);
|
void onOrthogonalAxes(bool);
|
||||||
void onAxisDirChange(const QString&);
|
void onAxisDirChange(const QString&);
|
||||||
|
@ -59,7 +59,7 @@ static void sortData( QList<double>& d )
|
|||||||
d.append( prevX );
|
d.append( prevX );
|
||||||
d.append( pairs.count() > 0 ? pairs[0].second : prevY );
|
d.append( pairs.count() > 0 ? pairs[0].second : prevY );
|
||||||
|
|
||||||
foreach( p, pairs ) {
|
Q_FOREACH( p, pairs ) {
|
||||||
if ( p.first > prevX ) {
|
if ( p.first > prevX ) {
|
||||||
d.append( p.first );
|
d.append( p.first );
|
||||||
d.append( p.second );
|
d.append( p.second );
|
||||||
@ -495,7 +495,7 @@ selectedRows()
|
|||||||
QList<int> l;
|
QList<int> l;
|
||||||
QList<QTableWidgetItem*> selItems = selectedItems();
|
QList<QTableWidgetItem*> selItems = selectedItems();
|
||||||
QTableWidgetItem* i;
|
QTableWidgetItem* i;
|
||||||
foreach( i, selItems )
|
Q_FOREACH( i, selItems )
|
||||||
if ( !l.contains( i->row() ) ) l.append( i->row() );
|
if ( !l.contains( i->row() ) ) l.append( i->row() );
|
||||||
qSort( l );
|
qSort( l );
|
||||||
return l;
|
return l;
|
||||||
|
@ -68,11 +68,11 @@ public:
|
|||||||
private:
|
private:
|
||||||
QPushButton* button( const TableButton ) const;
|
QPushButton* button( const TableButton ) const;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onInsert();
|
void onInsert();
|
||||||
void onRemove();
|
void onRemove();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void valueChanged( int, int );
|
void valueChanged( int, int );
|
||||||
void currentChanged( int, int );
|
void currentChanged( int, int );
|
||||||
|
|
||||||
|
@ -285,7 +285,7 @@ void StdMeshersGUI_FixedPointsParamWdg::removePoints()
|
|||||||
{
|
{
|
||||||
QList<QListWidgetItem*> selItems = myListWidget->selectedItems();
|
QList<QListWidgetItem*> selItems = myListWidget->selectedItems();
|
||||||
QListWidgetItem* item;
|
QListWidgetItem* item;
|
||||||
foreach ( item, selItems ) {
|
Q_FOREACH ( item, selItems ) {
|
||||||
int idx = myListWidget->row( item );
|
int idx = myListWidget->row( item );
|
||||||
delete myTreeWidget->topLevelItem( idx );
|
delete myTreeWidget->topLevelItem( idx );
|
||||||
delete item;
|
delete item;
|
||||||
|
@ -61,7 +61,7 @@ public:
|
|||||||
|
|
||||||
QString GetValue() const { return myParamValue; }
|
QString GetValue() const { return myParamValue; }
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onAdd();
|
void onAdd();
|
||||||
void onRemove();
|
void onRemove();
|
||||||
void onCheckBoxChanged();
|
void onCheckBoxChanged();
|
||||||
|
@ -63,7 +63,7 @@ public:
|
|||||||
|
|
||||||
bool IsOk() const { return !myHyp->_is_nil(); }
|
bool IsOk() const { return !myHyp->_is_nil(); }
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onCreate();
|
void onCreate();
|
||||||
void onEdit();
|
void onEdit();
|
||||||
void onHypTypePopup( QAction* );
|
void onHypTypePopup( QAction* );
|
||||||
|
@ -72,7 +72,7 @@ protected:
|
|||||||
virtual void retrieveParams() const;
|
virtual void retrieveParams() const;
|
||||||
virtual QString storeParams() const;
|
virtual QString storeParams() const;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
virtual void onValueChanged();
|
virtual void onValueChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -152,7 +152,7 @@ void StdMeshersGUI_ObjectReferenceParamWdg::activateSelection()
|
|||||||
mySelectionMgr->installFilter( myFilter );
|
mySelectionMgr->installFilter( myFilter );
|
||||||
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), SLOT(onSelectionDone()));
|
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), SLOT(onSelectionDone()));
|
||||||
}
|
}
|
||||||
emit selectionActivated();
|
Q_EMIT selectionActivated();
|
||||||
onSelectionDone();
|
onSelectionDone();
|
||||||
|
|
||||||
mySelButton->setChecked( mySelectionActivated );
|
mySelButton->setChecked( mySelectionActivated );
|
||||||
@ -211,7 +211,7 @@ void StdMeshersGUI_ObjectReferenceParamWdg::SetObject(CORBA::Object_ptr obj)
|
|||||||
myObjects.push_back( CORBA::Object::_duplicate( obj ));
|
myObjects.push_back( CORBA::Object::_duplicate( obj ));
|
||||||
myParamValue = sobj->GetID().c_str();
|
myParamValue = sobj->GetID().c_str();
|
||||||
}
|
}
|
||||||
emit contentModified();
|
Q_EMIT contentModified();
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
@ -251,7 +251,7 @@ void StdMeshersGUI_ObjectReferenceParamWdg::SetObjects(SMESH::string_array_var&
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (selChanged)
|
if (selChanged)
|
||||||
emit contentModified();
|
Q_EMIT contentModified();
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
@ -93,7 +93,7 @@ public:
|
|||||||
|
|
||||||
void SetDefaultText(QString defaultText="", QString styleSheet="");
|
void SetDefaultText(QString defaultText="", QString styleSheet="");
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
/*!
|
/*!
|
||||||
* \brief Activates selection (if not yet done), emits selectionActivated()
|
* \brief Activates selection (if not yet done), emits selectionActivated()
|
||||||
*
|
*
|
||||||
@ -103,7 +103,7 @@ public slots:
|
|||||||
void activateSelection();
|
void activateSelection();
|
||||||
void deactivateSelection();
|
void deactivateSelection();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
/*!
|
/*!
|
||||||
* \brief Emitted when selection is activated
|
* \brief Emitted when selection is activated
|
||||||
*
|
*
|
||||||
@ -113,7 +113,7 @@ signals:
|
|||||||
void selectionActivated();
|
void selectionActivated();
|
||||||
void contentModified();
|
void contentModified();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onSelectionDone();
|
void onSelectionDone();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -63,7 +63,7 @@ class STDMESHERSGUI_EXPORT StdMeshersGUI_QuadrangleParamCreator : public StdMesh
|
|||||||
virtual void retrieveParams() const;
|
virtual void retrieveParams() const;
|
||||||
virtual QString storeParams() const;
|
virtual QString storeParams() const;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
|
|
||||||
void onTypeChanged(int type);
|
void onTypeChanged(int type);
|
||||||
void onAddShape();
|
void onAddShape();
|
||||||
@ -104,7 +104,7 @@ class STDMESHERSGUI_EXPORT StdMeshersGUI_QuadrangleParamWdg : public QWidget
|
|||||||
SMESH::nodes_array* GetPoints();
|
SMESH::nodes_array* GetPoints();
|
||||||
void Set( GEOM::ListOfGO_var shapes, SMESH::nodes_array_var points );
|
void Set( GEOM::ListOfGO_var shapes, SMESH::nodes_array_var points );
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
|
|
||||||
void typeChanged(int);
|
void typeChanged(int);
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ StdMeshersGUI_SubShapeSelectorWdg::~StdMeshersGUI_SubShapeSelectorWdg()
|
|||||||
delete myFilter; myFilter=0;
|
delete myFilter; myFilter=0;
|
||||||
|
|
||||||
SUIT_SelectionFilter* filter;
|
SUIT_SelectionFilter* filter;
|
||||||
foreach( filter, myGeomFilters )
|
Q_FOREACH( filter, myGeomFilters )
|
||||||
delete filter;
|
delete filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -312,7 +312,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::SelectionIntoArgument()
|
|||||||
QString anID = QString(" %1").arg( mySelectedIDs.at(i) );
|
QString anID = QString(" %1").arg( mySelectedIDs.at(i) );
|
||||||
QList<QListWidgetItem*> anItems = myListWidget->findItems ( anID, Qt::MatchExactly );
|
QList<QListWidgetItem*> anItems = myListWidget->findItems ( anID, Qt::MatchExactly );
|
||||||
QListWidgetItem* item;
|
QListWidgetItem* item;
|
||||||
foreach(item, anItems)
|
Q_FOREACH(item, anItems)
|
||||||
item->setSelected(true);
|
item->setSelected(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -356,7 +356,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::onRemove()
|
|||||||
myListWidget->blockSignals( true );
|
myListWidget->blockSignals( true );
|
||||||
QList<QListWidgetItem*> selItems = myListWidget->selectedItems();
|
QList<QListWidgetItem*> selItems = myListWidget->selectedItems();
|
||||||
QListWidgetItem* item;
|
QListWidgetItem* item;
|
||||||
foreach(item, selItems) {
|
Q_FOREACH(item, selItems) {
|
||||||
QString idStr = item->text();
|
QString idStr = item->text();
|
||||||
int id = idStr.toInt();
|
int id = idStr.toInt();
|
||||||
|
|
||||||
@ -406,7 +406,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::onListSelectionChanged()
|
|||||||
TColStd_MapOfInteger aIndexes;
|
TColStd_MapOfInteger aIndexes;
|
||||||
QList<QListWidgetItem*> selItems = myListWidget->selectedItems();
|
QList<QListWidgetItem*> selItems = myListWidget->selectedItems();
|
||||||
QListWidgetItem* anItem;
|
QListWidgetItem* anItem;
|
||||||
foreach(anItem, selItems)
|
Q_FOREACH(anItem, selItems)
|
||||||
myPreviewActor->HighlightID( anItem->text().toInt() );
|
myPreviewActor->HighlightID( anItem->text().toInt() );
|
||||||
|
|
||||||
// update remove button
|
// update remove button
|
||||||
|
@ -89,7 +89,7 @@ private:
|
|||||||
void setFilter();
|
void setFilter();
|
||||||
void updateButtons();
|
void updateButtons();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onAdd();
|
void onAdd();
|
||||||
void onRemove();
|
void onRemove();
|
||||||
void onPrevious();
|
void onPrevious();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user