Version: 6.3.1
Public Member Functions | Protected Slots | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes

SMESHGUI_GroupOpDlg Class Reference

#include <SMESHGUI_GroupOpDlg.h>

Inheritance diagram for SMESHGUI_GroupOpDlg:
Inheritance graph
[legend]

Public Member Functions

 SMESHGUI_GroupOpDlg (SMESHGUI *)
 Class : SMESHGUI_GroupOpDlg Description : Perform boolean operations on groups.
virtual ~SMESHGUI_GroupOpDlg ()
 Destructor.
void Init ()
 Init dialog fields, connect signals and slots, show dialog.

Protected Slots

virtual bool onApply ()
 This virtual slot does nothing and should be redefined in derived classes.
virtual void onSelectionDone ()
 SLOT, called when selection is changed.
virtual void setVisible (bool visible)
 Calls onSelectionDone() and setVisible() method of base class.

Protected Member Functions

virtual void reset ()
 Resets state of the dialog, initializes its fields with default value, etc.
QString getName () const
 Gets name of group to be created.
void setName (const QString &theName)
 Sets name of group to be created.
QGroupBoxgetArgGrp () const
 Gets pointer on arguments group box.
void setHelpFileName (const QString &theFName)
 Sets help file name.
SMESHGUIgetSMESHGUI () const
 Gets pointer to the module instance.
bool isValid (const QList< SMESH::SMESH_GroupBase_var > &theListGrp)
 Validate list of groups used for operation.
bool getSelectedGroups (QList< SMESH::SMESH_GroupBase_var > &theOutList, QStringList &theOutNames)
 Gets list of currently selected groups from selection manager.
SMESH::ListOfGroupsconvert (const QList< SMESH::SMESH_GroupBase_var > &)
 Converts QT-list of group to the list acceptable by IDL interface.
SALOMEDS::Color getColor () const
 Get color to be assigned to group.
void setIsApplyAndClose (const bool theFlag)
 Set value of the flag indicating that the dialog is accepted by Apply & Close button.
bool isApplyAndClose () const
 Get value of the flag indicating that the dialog is accepted by Apply & Close button.

Private Slots

void onOk ()
 SLOT called when "Ok" button pressed performs operation and closes dialog box.
void onClose ()
 SLOT called when "Close" button pressed closes dialog.
void onHelp ()
 SLOT called when "Help" button pressed shows "Help" page.
void onDeactivate ()
 SLOT called when dialog must be deativated.

Private Member Functions

void closeEvent (QCloseEvent *)
 Provides reaction on close event, closes the dialog box.
void enterEvent (QEvent *)
 Event filter updates selection mode and selection filter.
void keyPressEvent (QKeyEvent *)
 Provides reaction on “F1” button pressing.
QWidgetcreateButtonFrame (QWidget *)
 Create frame containing buttons.
QWidgetcreateMainFrame (QWidget *)
 Creates frame containing dialog's input fields.

Private Attributes

QPushButton * myOkBtn
QPushButton * myApplyBtn
QPushButton * myCloseBtn
QPushButton * myHelpBtn
QLineEdit * myNameEdit
QGroupBoxmyArgGrp
QtxColorButton * myColorBtn
SMESHGUImySMESHGUI
LightApp_SelectionMgr * mySelectionMgr
SVTK_Selector * mySelector
QString myHelpFileName
bool myIsApplyAndClose

Detailed Description

Definition at line 55 of file SMESHGUI_GroupOpDlg.h.


Constructor & Destructor Documentation

SMESHGUI_GroupOpDlg::SMESHGUI_GroupOpDlg ( SMESHGUI theModule)

Class : SMESHGUI_GroupOpDlg Description : Perform boolean operations on groups.

Constructor

Parameters:
theModulepointer on module instance

Definition at line 78 of file SMESHGUI_GroupOpDlg.cxx.

References createButtonFrame(), createMainFrame(), SMESH.GetSelector(), SMESH.GetViewWindow(), Init(), MARGIN, mySelector, mySMESHGUI, and SPACING.

  : QDialog( SMESH::GetDesktop( theModule ) ),
    mySMESHGUI( theModule ),
    mySelectionMgr( SMESH::GetSelectionMgr( theModule ) ),
    myIsApplyAndClose( false )
{
  setModal(false);

  mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();

  QVBoxLayout* aDlgLay = new QVBoxLayout (this);
  aDlgLay->setMargin(MARGIN);
  aDlgLay->setSpacing(SPACING);

  QWidget* aMainFrame = createMainFrame  (this);
  QWidget* aBtnFrame  = createButtonFrame(this);

  aDlgLay->addWidget(aMainFrame);
  aDlgLay->addWidget(aBtnFrame);

  Init();
}
SMESHGUI_GroupOpDlg::~SMESHGUI_GroupOpDlg ( ) [virtual]

Destructor.

Definition at line 217 of file SMESHGUI_GroupOpDlg.cxx.

{
}

Member Function Documentation

void SMESHGUI_GroupOpDlg::closeEvent ( QCloseEvent *  ) [private]

Provides reaction on close event, closes the dialog box.

Definition at line 473 of file SMESHGUI_GroupOpDlg.cxx.

References onClose().

{
  onClose();
}
SMESH::ListOfGroups * SMESHGUI_GroupOpDlg::convert ( const QList< SMESH::SMESH_GroupBase_var > &  theIn) [protected]

Converts QT-list of group to the list acceptable by IDL interface.

Parameters:
theIninput list
Returns:
list acceptable by IDL interface

Definition at line 396 of file SMESHGUI_GroupOpDlg.cxx.

Referenced by SMESHGUI_DimGroupDlg.onApply(), SMESHGUI_CutGroupsDlg.onApply(), SMESHGUI_IntersectGroupsDlg.onApply(), and SMESHGUI_UnionGroupsDlg.onApply().

{
  SMESH::ListOfGroups_var aList = new SMESH::ListOfGroups();
  aList->length( theIn.count() );

  QList<SMESH::SMESH_GroupBase_var>::const_iterator anIter = theIn.begin();
  for ( int i = 0; anIter != theIn.end(); ++anIter, ++i )
    aList[ i ] = *anIter;

  return aList._retn();
}
QWidget * SMESHGUI_GroupOpDlg::createButtonFrame ( QWidget theParent) [private]

Create frame containing buttons.

Parameters:
theParentparent widget
Returns:
pointer to the created frame

Definition at line 184 of file SMESHGUI_GroupOpDlg.cxx.

References MARGIN, myApplyBtn, myCloseBtn, myHelpBtn, myOkBtn, onApply(), onClose(), onHelp(), onOk(), and SPACING.

Referenced by SMESHGUI_GroupOpDlg().

{
  QGroupBox* aFrame = new QGroupBox(theParent);

  myOkBtn    = new QPushButton(tr("SMESH_BUT_APPLY_AND_CLOSE"), aFrame);
  myApplyBtn = new QPushButton(tr("SMESH_BUT_APPLY"), aFrame);
  myCloseBtn = new QPushButton(tr("SMESH_BUT_CLOSE"), aFrame);
  myHelpBtn  = new QPushButton(tr("SMESH_BUT_HELP"),  aFrame);

  QHBoxLayout* aLay = new QHBoxLayout(aFrame);
  aLay->setMargin(MARGIN);
  aLay->setSpacing(SPACING);

  aLay->addWidget(myOkBtn);
  aLay->addSpacing(10);
  aLay->addWidget(myApplyBtn);
  aLay->addSpacing(10);
  aLay->addStretch();
  aLay->addWidget(myCloseBtn);
  aLay->addWidget(myHelpBtn);

  // connect signals and slots
  connect(myOkBtn,    SIGNAL(clicked()), SLOT(onOk()));
  connect(myCloseBtn, SIGNAL(clicked()), SLOT(onClose()));
  connect(myApplyBtn, SIGNAL(clicked()), SLOT(onApply()));
  connect(myHelpBtn,  SIGNAL(clicked()), SLOT(onHelp()));

  return aFrame;
}
QWidget * SMESHGUI_GroupOpDlg::createMainFrame ( QWidget theParent) [private]

Creates frame containing dialog's input fields.

Parameters:
theParentparent widget
Returns:
pointer on created widget

Definition at line 106 of file SMESHGUI_GroupOpDlg.cxx.

References MARGIN, myArgGrp, myColorBtn, myNameEdit, and SPACING.

Referenced by SMESHGUI_GroupOpDlg().

{
  QWidget* aMainGrp = new QWidget(theParent);
  QVBoxLayout* aLay = new QVBoxLayout(aMainGrp);
  aLay->setMargin(0);
  aLay->setSpacing(SPACING);
  
  // ------------------------------------------------------
  QGroupBox* aNameGrp = new QGroupBox(tr("NAME"), aMainGrp);
  QHBoxLayout* aNameGrpLayout = new QHBoxLayout(aNameGrp);
  aNameGrpLayout->setMargin(MARGIN);
  aNameGrpLayout->setSpacing(SPACING);

  QLabel* aNameLab = new QLabel(tr("RESULT_NAME"), aNameGrp);
  myNameEdit = new QLineEdit(aNameGrp);

  aNameGrpLayout->addWidget(aNameLab);
  aNameGrpLayout->addWidget(myNameEdit);

  // ------------------------------------------------------
  myArgGrp = new QGroupBox(tr("ARGUMENTS"), aMainGrp);


  // ------------------------------------------------------
  
  QGroupBox* aColorBox = new QGroupBox(tr( "SMESH_SET_COLOR" ), this);
  QHBoxLayout* aColorBoxLayout = new QHBoxLayout(aColorBox);
  aColorBoxLayout->setMargin(MARGIN);
  aColorBoxLayout->setSpacing(SPACING);

  QLabel* aColorLab = new QLabel(tr( "SMESH_CHECK_COLOR" ), aColorBox );
  myColorBtn = new QtxColorButton(aColorBox);
  myColorBtn->setSizePolicy( QSizePolicy::MinimumExpanding, 
                             myColorBtn->sizePolicy().verticalPolicy() );

  aColorBoxLayout->addWidget(aColorLab);
  aColorBoxLayout->addWidget(myColorBtn);

  // ------------------------------------------------------
  aLay->addWidget( aNameGrp );
  aLay->addWidget( myArgGrp );
  aLay->addWidget( aColorBox );

  return aMainGrp;
}
void SMESHGUI_GroupOpDlg::enterEvent ( QEvent *  ) [private]

Event filter updates selection mode and selection filter.

This virtual method is redefined from the base class it is called when dialog obtains input focus

Definition at line 461 of file SMESHGUI_GroupOpDlg.cxx.

References SMESHGUI.EmitSignalDeactivateDialog(), SMESH.GetViewWindow(), GROUP, mySelectionMgr, and mySMESHGUI.

{
  mySMESHGUI->EmitSignalDeactivateDialog();
  setEnabled(true);
  if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
    aViewWindow->SetSelectionMode(ActorSelection);
  mySelectionMgr->installFilter(new SMESH_TypeFilter (GROUP));
}
QGroupBox * SMESHGUI_GroupOpDlg::getArgGrp ( ) const [protected]

Gets pointer on arguments group box.

Returns:
pointer on arguments group box

Definition at line 156 of file SMESHGUI_GroupOpDlg.cxx.

References myArgGrp.

Referenced by SMESHGUI_CutGroupsDlg.SMESHGUI_CutGroupsDlg(), SMESHGUI_DimGroupDlg.SMESHGUI_DimGroupDlg(), SMESHGUI_IntersectGroupsDlg.SMESHGUI_IntersectGroupsDlg(), and SMESHGUI_UnionGroupsDlg.SMESHGUI_UnionGroupsDlg().

{
  return myArgGrp;
}
SALOMEDS::Color SMESHGUI_GroupOpDlg::getColor ( ) const [protected]

Get color to be assigned to group.

Returns:
color to be assigned to group

Definition at line 413 of file SMESHGUI_GroupOpDlg.cxx.

References myColorBtn.

Referenced by SMESHGUI_DimGroupDlg.onApply(), SMESHGUI_CutGroupsDlg.onApply(), SMESHGUI_IntersectGroupsDlg.onApply(), and SMESHGUI_UnionGroupsDlg.onApply().

{
  QColor aQColor = myColorBtn->color();

  SALOMEDS::Color aColor;
  aColor.R = (float)aQColor.red() / 255.0;
  aColor.G = (float)aQColor.green() / 255.0;
  aColor.B = (float)aQColor.blue() / 255.0;

  return aColor;
}
QString SMESHGUI_GroupOpDlg::getName ( ) const [protected]

Gets name of group to be created.

Returns:
name of group to be created
See also:
setName()

Definition at line 494 of file SMESHGUI_GroupOpDlg.cxx.

References myNameEdit.

Referenced by SMESHGUI_DimGroupDlg.onApply(), SMESHGUI_CutGroupsDlg.onApply(), SMESHGUI_IntersectGroupsDlg.onApply(), and SMESHGUI_UnionGroupsDlg.onApply().

{
  return myNameEdit->text();
}
bool SMESHGUI_GroupOpDlg::getSelectedGroups ( QList< SMESH::SMESH_GroupBase_var > &  theOutList,
QStringList &  theOutNames 
) [protected]

Gets list of currently selected groups from selection manager.

Parameters:
theOutListout list of groups
theOutNamesout list of group of group names
Returns:
TRUE if operation theOutList is not empty, FALSE otherwise

Definition at line 366 of file SMESHGUI_GroupOpDlg.cxx.

References SMESH_controls.aGroup, and mySelectionMgr.

Referenced by SMESHGUI_DimGroupDlg.onSelectionDone(), SMESHGUI_CutGroupsDlg.onSelectionDone(), SMESHGUI_IntersectGroupsDlg.onSelectionDone(), and SMESHGUI_UnionGroupsDlg.onSelectionDone().

{
  theOutList.clear();

  theOutList.clear();
  theOutNames.clear();

  SALOME_ListIO aListIO;
  mySelectionMgr->selectedObjects( aListIO );
  SALOME_ListIteratorOfListIO anIter ( aListIO );
  for ( ; anIter.More(); anIter.Next()) 
  {
    SMESH::SMESH_GroupBase_var aGroup =
      SMESH::IObjectToInterface<SMESH::SMESH_GroupBase>(anIter.Value());
    if ( !aGroup->_is_nil()) 
    {
      theOutList.append( aGroup );
      theOutNames.append( aGroup->GetName() );
    }
  }

  return theOutList.count() > 0;
}
SMESHGUI * SMESHGUI_GroupOpDlg::getSMESHGUI ( ) const [protected]

Gets pointer to the module instance.

Returns:
pointer to the module instance

Definition at line 174 of file SMESHGUI_GroupOpDlg.cxx.

References mySMESHGUI.

Referenced by SMESHGUI_DimGroupDlg.onApply(), SMESHGUI_CutGroupsDlg.onApply(), SMESHGUI_IntersectGroupsDlg.onApply(), SMESHGUI_UnionGroupsDlg.onApply(), and SMESHGUI_CutGroupsDlg.SMESHGUI_CutGroupsDlg().

{
  return mySMESHGUI;
}
void SMESHGUI_GroupOpDlg::Init ( )

Init dialog fields, connect signals and slots, show dialog.

Definition at line 224 of file SMESHGUI_GroupOpDlg.cxx.

References SMESH.GetViewWindow(), GROUP, mySelectionMgr, mySMESHGUI, onDeactivate(), onSelectionDone(), and SMESHGUI.SetActiveDialogBox().

Referenced by SMESHGUI_GroupOpDlg().

{
  mySMESHGUI->SetActiveDialogBox((QDialog*)this);
  
  // selection and SMESHGUI
  connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), SLOT(onSelectionDone()));
  connect(mySMESHGUI, SIGNAL(SignalDeactivateActiveDialog()), SLOT(onDeactivate()));
  connect(mySMESHGUI, SIGNAL(SignalCloseAllDialogs()), SLOT(ClickOnClose()));

  // set selection mode
  if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
    aViewWindow->SetSelectionMode(ActorSelection);
  mySelectionMgr->installFilter(new SMESH_TypeFilter (GROUP));
}
bool SMESHGUI_GroupOpDlg::isApplyAndClose ( ) const [protected]

Get value of the flag indicating that the dialog is accepted by Apply & Close button.

Returns:
value of the flag
See also:
setApplyAndClose()

Definition at line 551 of file SMESHGUI_GroupOpDlg.cxx.

References myIsApplyAndClose.

Referenced by SMESHGUI_DimGroupDlg.onApply(), SMESHGUI_CutGroupsDlg.onApply(), SMESHGUI_IntersectGroupsDlg.onApply(), and SMESHGUI_UnionGroupsDlg.onApply().

{
  return myIsApplyAndClose;
}
bool SMESHGUI_GroupOpDlg::isValid ( const QList< SMESH::SMESH_GroupBase_var > &  theListGrp) [protected]

Validate list of groups used for operation.

Checks whether they corresponds to the same face and have one type

Parameters:
theListGrpinput list of groups
Returns:
TRUE if groups are valid, FALSE otherwise

Definition at line 245 of file SMESHGUI_GroupOpDlg.cxx.

Referenced by SMESHGUI_DimGroupDlg.onApply(), SMESHGUI_CutGroupsDlg.onApply(), SMESHGUI_IntersectGroupsDlg.onApply(), and SMESHGUI_UnionGroupsDlg.onApply().

{
  if ( theListGrp.isEmpty() )
  {
    SUIT_MessageBox::information( this, tr("SMESH_INSUFFICIENT_DATA"),
                                  tr("INCORRECT_ARGUMENTS") );
    return false;
  }

  int aMeshId = -1, aGrpType = -1;
  QList<SMESH::SMESH_GroupBase_var>::const_iterator anIter;
  for ( anIter = theListGrp.begin(); anIter != theListGrp.end(); ++anIter )
  {
    SMESH::SMESH_GroupBase_var aGrp = *anIter;
    if ( CORBA::is_nil( aGrp ) )
      continue; // nonsence

    SMESH::SMESH_Mesh_var aMesh = aGrp->GetMesh();
    if ( CORBA::is_nil( aMesh ) )
      continue;

    // mesh id
    int aCurrId = aMesh->GetId();
    if ( aMeshId == -1 )
      aMeshId = aCurrId;
    else 
    {
      if ( aMeshId != aCurrId )
      {
        aMeshId = -1; // different meshes
        break;
      }
    }

    // group type
    int aCurrType = aGrp->GetType();
    if ( aGrpType == -1 )
      aGrpType = aCurrType;
    else 
    {
      if ( aGrpType != aCurrType )
      {
        aGrpType = -1; // different types
        break;
      }
    }

  }

  if ( aMeshId == -1 )
  {
    SUIT_MessageBox::information(this, tr("SMESH_INSUFFICIENT_DATA"),
                                 tr("DIFF_MESHES"));
    return false;
  }

  if ( aGrpType == -1 ) 
  {
    SUIT_MessageBox::information(this, tr("SMESH_INSUFFICIENT_DATA"),
                                 tr("DIFF_TYPES"));
    return false;
  }

  return true;
}
void SMESHGUI_GroupOpDlg::keyPressEvent ( QKeyEvent *  e) [private]

Provides reaction on “F1” button pressing.

Parameters:
ekey press event

Definition at line 513 of file SMESHGUI_GroupOpDlg.cxx.

References onHelp().

{
  QDialog::keyPressEvent( e );
  if ( e->isAccepted() )
    return;

  if ( e->key() == Qt::Key_F1 ) {
    e->accept();
    onHelp();
  }
}
bool SMESHGUI_GroupOpDlg::onApply ( ) [protected, virtual, slot]

This virtual slot does nothing and should be redefined in derived classes.

Returns:
return false;

Reimplemented in SMESHGUI_UnionGroupsDlg, SMESHGUI_IntersectGroupsDlg, SMESHGUI_CutGroupsDlg, and SMESHGUI_DimGroupDlg.

Definition at line 529 of file SMESHGUI_GroupOpDlg.cxx.

Referenced by createButtonFrame(), and onOk().

{
  return false;
}
void SMESHGUI_GroupOpDlg::onClose ( ) [private, slot]

SLOT called when "Close" button pressed closes dialog.

Definition at line 325 of file SMESHGUI_GroupOpDlg.cxx.

References SMESH.GetViewWindow(), mySelectionMgr, mySMESHGUI, reset(), and SMESHGUI.ResetState().

Referenced by closeEvent(), createButtonFrame(), and onOk().

{
  if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
    aViewWindow->SetSelectionMode(ActorSelection);
  disconnect( mySelectionMgr, 0, this, 0 );
  disconnect( mySMESHGUI, 0, this, 0 );
  mySMESHGUI->ResetState();
  mySelectionMgr->clearFilters();
  reset();
  reject();
}
void SMESHGUI_GroupOpDlg::onDeactivate ( ) [private, slot]

SLOT called when dialog must be deativated.

Definition at line 451 of file SMESHGUI_GroupOpDlg.cxx.

References mySelectionMgr.

Referenced by Init().

{
  setEnabled(false);
  mySelectionMgr->clearFilters();
}
void SMESHGUI_GroupOpDlg::onHelp ( ) [private, slot]

SLOT called when "Help" button pressed shows "Help" page.

Definition at line 340 of file SMESHGUI_GroupOpDlg.cxx.

References myHelpFileName, and mySMESHGUI.

Referenced by createButtonFrame(), and keyPressEvent().

{
  LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
  if (app) 
    app->onHelpContextModule(mySMESHGUI ? app->moduleName(mySMESHGUI->moduleName()) : QString(""), myHelpFileName);
  else {
    QString platform;
#ifdef WIN32
    platform = "winapplication";
#else
    platform = "application";
#endif
    SUIT_MessageBox::warning(this, tr("WRN_WARNING"),
                             tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
                             arg(app->resourceMgr()->stringValue("ExternalBrowser",
                                                                 platform)).
                             arg(myHelpFileName));
  }
}
void SMESHGUI_GroupOpDlg::onOk ( ) [private, slot]

SLOT called when "Ok" button pressed performs operation and closes dialog box.

Definition at line 314 of file SMESHGUI_GroupOpDlg.cxx.

References onApply(), onClose(), and setIsApplyAndClose().

Referenced by createButtonFrame().

{
  setIsApplyAndClose( true );
  if ( onApply() )
    onClose();
  setIsApplyAndClose( false );
}
void SMESHGUI_GroupOpDlg::onSelectionDone ( ) [protected, virtual, slot]

SLOT, called when selection is changed.

Current implementation does nothing. The method should be redefined in derived classes to update corresponding GUI controls

Reimplemented in SMESHGUI_UnionGroupsDlg, SMESHGUI_IntersectGroupsDlg, SMESHGUI_CutGroupsDlg, and SMESHGUI_DimGroupDlg.

Definition at line 430 of file SMESHGUI_GroupOpDlg.cxx.

Referenced by Init(), and setVisible().

{
}
void SMESHGUI_GroupOpDlg::reset ( ) [protected, virtual]

Resets state of the dialog, initializes its fields with default value, etc.

Usually called by onApply() slot to reinitialize dialog fields. This virtual method should be redefined in derived class to update its own fileds

Reimplemented in SMESHGUI_UnionGroupsDlg, SMESHGUI_IntersectGroupsDlg, SMESHGUI_CutGroupsDlg, and SMESHGUI_DimGroupDlg.

Definition at line 483 of file SMESHGUI_GroupOpDlg.cxx.

References myNameEdit.

Referenced by onClose().

{
  myNameEdit->setText("");
  myNameEdit->setFocus();
}
void SMESHGUI_GroupOpDlg::setHelpFileName ( const QString &  theFName) [protected]
void SMESHGUI_GroupOpDlg::setIsApplyAndClose ( const bool  theFlag) [protected]

Set value of the flag indicating that the dialog is accepted by Apply & Close button.

Parameters:
theFlagvalue of the flag
See also:
isApplyAndClose()

Definition at line 540 of file SMESHGUI_GroupOpDlg.cxx.

References myIsApplyAndClose.

Referenced by onOk().

{
  myIsApplyAndClose = theFlag;
}
void SMESHGUI_GroupOpDlg::setName ( const QString &  theName) [protected]

Sets name of group to be created.

Parameters:
theNamename of group to be created
See also:
getName()

Definition at line 504 of file SMESHGUI_GroupOpDlg.cxx.

References myNameEdit.

{
  myNameEdit->setText( theName );
}
void SMESHGUI_GroupOpDlg::setVisible ( bool  visible) [protected, virtual, slot]

Calls onSelectionDone() and setVisible() method of base class.

Parameters:
visiblethe visible state of the dialog

Definition at line 438 of file SMESHGUI_GroupOpDlg.cxx.

References ex21_lamp.height, and onSelectionDone().

{
  if ( visible )
  {
    onSelectionDone();
    resize( minimumSizeHint().width(), sizeHint().height() );
  }
  QDialog::setVisible( visible );
}

Field Documentation

QPushButton* SMESHGUI_GroupOpDlg.myApplyBtn [private]

Definition at line 112 of file SMESHGUI_GroupOpDlg.h.

Referenced by createButtonFrame().

Definition at line 117 of file SMESHGUI_GroupOpDlg.h.

Referenced by createMainFrame(), and getArgGrp().

QPushButton* SMESHGUI_GroupOpDlg.myCloseBtn [private]

Definition at line 113 of file SMESHGUI_GroupOpDlg.h.

Referenced by createButtonFrame().

QtxColorButton* SMESHGUI_GroupOpDlg.myColorBtn [private]

Definition at line 118 of file SMESHGUI_GroupOpDlg.h.

Referenced by createMainFrame(), and getColor().

QPushButton* SMESHGUI_GroupOpDlg.myHelpBtn [private]

Definition at line 114 of file SMESHGUI_GroupOpDlg.h.

Referenced by createButtonFrame().

Definition at line 124 of file SMESHGUI_GroupOpDlg.h.

Referenced by onHelp(), and setHelpFileName().

Definition at line 126 of file SMESHGUI_GroupOpDlg.h.

Referenced by isApplyAndClose(), and setIsApplyAndClose().

QLineEdit* SMESHGUI_GroupOpDlg.myNameEdit [private]

Definition at line 116 of file SMESHGUI_GroupOpDlg.h.

Referenced by createMainFrame(), getName(), reset(), and setName().

QPushButton* SMESHGUI_GroupOpDlg.myOkBtn [private]

Definition at line 111 of file SMESHGUI_GroupOpDlg.h.

Referenced by createButtonFrame().

LightApp_SelectionMgr* SMESHGUI_GroupOpDlg.mySelectionMgr [private]

Definition at line 121 of file SMESHGUI_GroupOpDlg.h.

Referenced by enterEvent(), getSelectedGroups(), Init(), onClose(), and onDeactivate().

SVTK_Selector* SMESHGUI_GroupOpDlg.mySelector [private]

Definition at line 122 of file SMESHGUI_GroupOpDlg.h.

Referenced by SMESHGUI_GroupOpDlg().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS