mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 17:20:33 +05:00
Only some code style changes
This commit is contained in:
parent
8ad9cef463
commit
7140a309e3
@ -428,7 +428,7 @@ QString SMESHGUI_FilterTable::Table::text (int row, int col) const
|
|||||||
// Purpose : Constructor
|
// Purpose : Constructor
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
SMESHGUI_FilterTable::SMESHGUI_FilterTable( SMESHGUI* theModule,
|
SMESHGUI_FilterTable::SMESHGUI_FilterTable( SMESHGUI* theModule,
|
||||||
QWidget* parent,
|
QWidget* parent,
|
||||||
const int type)
|
const int type)
|
||||||
: QFrame(parent),
|
: QFrame(parent),
|
||||||
myIsLocked( false ),
|
myIsLocked( false ),
|
||||||
@ -443,7 +443,7 @@ SMESHGUI_FilterTable::SMESHGUI_FilterTable( SMESHGUI* theModule,
|
|||||||
// Purpose : Constructor
|
// Purpose : Constructor
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
SMESHGUI_FilterTable::SMESHGUI_FilterTable( SMESHGUI* theModule,
|
SMESHGUI_FilterTable::SMESHGUI_FilterTable( SMESHGUI* theModule,
|
||||||
QWidget* parent,
|
QWidget* parent,
|
||||||
const QValueList<int>& types)
|
const QValueList<int>& types)
|
||||||
: QFrame(parent),
|
: QFrame(parent),
|
||||||
myIsLocked( false ),
|
myIsLocked( false ),
|
||||||
@ -674,7 +674,7 @@ bool SMESHGUI_FilterTable::IsValid (const bool theMess, const int theEntityType)
|
|||||||
aCriterion == FT_BelongToGeom ||
|
aCriterion == FT_BelongToGeom ||
|
||||||
aCriterion == FT_BelongToPlane ||
|
aCriterion == FT_BelongToPlane ||
|
||||||
aCriterion == FT_BelongToCylinder ||
|
aCriterion == FT_BelongToCylinder ||
|
||||||
aCriterion == FT_LyingOnGeom) {
|
aCriterion == FT_LyingOnGeom) {
|
||||||
if (aTable->text(i, 2).isEmpty()) {
|
if (aTable->text(i, 2).isEmpty()) {
|
||||||
if (theMess)
|
if (theMess)
|
||||||
QMessageBox::information(SMESHGUI::desktop(), tr("SMESH_INSUFFICIENT_DATA"),
|
QMessageBox::information(SMESHGUI::desktop(), tr("SMESH_INSUFFICIENT_DATA"),
|
||||||
@ -984,7 +984,7 @@ void SMESHGUI_FilterTable::updateAdditionalWidget()
|
|||||||
GetCriterionType(aRow) != FT_LyingOnGeom &&
|
GetCriterionType(aRow) != FT_LyingOnGeom &&
|
||||||
GetCriterionType(aRow) != FT_RangeOfIds &&
|
GetCriterionType(aRow) != FT_RangeOfIds &&
|
||||||
GetCriterionType(aRow) != FT_FreeEdges &&
|
GetCriterionType(aRow) != FT_FreeEdges &&
|
||||||
GetCriterionType(aRow) != FT_BadOrientedVolume;
|
GetCriterionType(aRow) != FT_BadOrientedVolume;
|
||||||
if (!myAddWidgets.contains(anItem))
|
if (!myAddWidgets.contains(anItem))
|
||||||
{
|
{
|
||||||
myAddWidgets[ anItem ] = new AdditionalWidget(myWgStack);
|
myAddWidgets[ anItem ] = new AdditionalWidget(myWgStack);
|
||||||
@ -1065,10 +1065,10 @@ void SMESHGUI_FilterTable::onCriterionChanged (const int row, const int col, con
|
|||||||
aTable->SetEditable(false, row, 2);
|
aTable->SetEditable(false, row, 2);
|
||||||
}
|
}
|
||||||
else if (aCriterionType == SMESH::FT_RangeOfIds ||
|
else if (aCriterionType == SMESH::FT_RangeOfIds ||
|
||||||
aCriterionType == SMESH::FT_BelongToGeom ||
|
aCriterionType == SMESH::FT_BelongToGeom ||
|
||||||
aCriterionType == SMESH::FT_BelongToPlane ||
|
aCriterionType == SMESH::FT_BelongToPlane ||
|
||||||
aCriterionType == SMESH::FT_BelongToCylinder ||
|
aCriterionType == SMESH::FT_BelongToCylinder ||
|
||||||
aCriterionType == SMESH::FT_LyingOnGeom)
|
aCriterionType == SMESH::FT_LyingOnGeom)
|
||||||
{
|
{
|
||||||
QMap<int, QString> aMap;
|
QMap<int, QString> aMap;
|
||||||
aMap[ FT_EqualTo ] = tr("EQUAL_TO");
|
aMap[ FT_EqualTo ] = tr("EQUAL_TO");
|
||||||
@ -1608,7 +1608,7 @@ SMESHGUI_FilterDlg::SMESHGUI_FilterDlg( SMESHGUI* theModule,
|
|||||||
{
|
{
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
mySelector = aViewWindow->GetSelector();
|
mySelector = aViewWindow->GetSelector();
|
||||||
|
|
||||||
construct(theTypes);
|
construct(theTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1887,7 +1887,7 @@ void SMESHGUI_FilterDlg::onClose()
|
|||||||
|
|
||||||
mySelector->AddOrRemoveIndex( anIter.Key(), aResMap, false);
|
mySelector->AddOrRemoveIndex( anIter.Key(), aResMap, false);
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
aViewWindow->highlight( anIter.Key(), true, true );
|
aViewWindow->highlight( anIter.Key(), true, true );
|
||||||
}
|
}
|
||||||
mySelectionMgr->setSelectedObjects(aList, false);
|
mySelectionMgr->setSelectedObjects(aList, false);
|
||||||
}
|
}
|
||||||
@ -2038,9 +2038,9 @@ bool SMESHGUI_FilterDlg::isValid() const
|
|||||||
{
|
{
|
||||||
int aType = myTable->GetCriterionType(i);
|
int aType = myTable->GetCriterionType(i);
|
||||||
if (aType == FT_BelongToGeom ||
|
if (aType == FT_BelongToGeom ||
|
||||||
aType == FT_BelongToPlane ||
|
aType == FT_BelongToPlane ||
|
||||||
aType == FT_BelongToCylinder ||
|
aType == FT_BelongToCylinder ||
|
||||||
aType == FT_LyingOnGeom) {
|
aType == FT_LyingOnGeom) {
|
||||||
QString aName;
|
QString aName;
|
||||||
myTable->GetThreshold(i, aName);
|
myTable->GetThreshold(i, aName);
|
||||||
|
|
||||||
@ -2494,10 +2494,10 @@ void SMESHGUI_FilterDlg::updateSelection()
|
|||||||
int aRow, aCol;
|
int aRow, aCol;
|
||||||
|
|
||||||
if (myTable->CurrentCell(aRow, aCol) &&
|
if (myTable->CurrentCell(aRow, aCol) &&
|
||||||
(myTable->GetCriterionType(aRow) == FT_BelongToGeom ||
|
(myTable->GetCriterionType(aRow) == FT_BelongToGeom ||
|
||||||
myTable->GetCriterionType(aRow) == FT_BelongToPlane ||
|
myTable->GetCriterionType(aRow) == FT_BelongToPlane ||
|
||||||
myTable->GetCriterionType(aRow) == FT_BelongToCylinder ||
|
myTable->GetCriterionType(aRow) == FT_BelongToCylinder ||
|
||||||
myTable->GetCriterionType(aRow) == FT_LyingOnGeom)) {
|
myTable->GetCriterionType(aRow) == FT_LyingOnGeom)) {
|
||||||
|
|
||||||
if (myTable->GetCriterionType(aRow) == FT_BelongToGeom ||
|
if (myTable->GetCriterionType(aRow) == FT_BelongToGeom ||
|
||||||
myTable->GetCriterionType(aRow) == FT_LyingOnGeom) {
|
myTable->GetCriterionType(aRow) == FT_LyingOnGeom) {
|
||||||
|
Loading…
Reference in New Issue
Block a user