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

SMESHGUI_MeshOrderDlg Class Reference

Dialog contains mesh order box for modification operation. More...

#include <SMESHGUI_MeshOrderDlg.h>

Inheritance diagram for SMESHGUI_MeshOrderDlg:
Inheritance graph
[legend]

Public Member Functions

 SMESHGUI_MeshOrderDlg (QWidget *)
 Public methods.
 ~SMESHGUI_MeshOrderDlg ()
 Destructor.
SMESHGUI_MeshOrderBoxGetMeshOrderBox () const
 return Box widget to show mesh order
virtual void show ()
virtual void setContentActive (const bool)
 set all content to enable (parameter is true) or disable state

Static Public Member Functions

static int prefix (const QString &)
 Return hard-coded prefix using to differ overlapping types.

Protected Member Functions

SUIT_Desktop * desktop () const
 find desktop of active application
SUIT_ResourceMgr * resourceMgr () const
 gets resource manager

Private Attributes

SMESHGUI_MeshOrderBoxmyBox
 Private fields.

Detailed Description

Dialog contains mesh order box for modification operation.

Definition at line 96 of file SMESHGUI_MeshOrderDlg.h.


Constructor & Destructor Documentation

SMESHGUI_MeshOrderDlg::SMESHGUI_MeshOrderDlg ( QWidget theParent)

Public methods.

Constructor.

Definition at line 295 of file SMESHGUI_MeshOrderDlg.cxx.

References main(), myBox, and SPACING.

: SMESHGUI_Dialog( theParent, false, false, OK | Cancel | Help )
{
  setWindowTitle( tr( "SMESH_MESHORDER_TITLE") );
  QFrame* main = mainFrame();

  QVBoxLayout* aDlgLay = new QVBoxLayout (main);
  aDlgLay->setMargin( 0 );
  aDlgLay->setSpacing( SPACING );

  myBox = new SMESHGUI_MeshOrderBox( main );

  aDlgLay->addWidget(myBox);
  aDlgLay->setStretchFactor(main, 1);
}
SMESHGUI_MeshOrderDlg::~SMESHGUI_MeshOrderDlg ( )

Destructor.

Definition at line 317 of file SMESHGUI_MeshOrderDlg.cxx.

{
}

Member Function Documentation

SUIT_Desktop * SMESHGUI_Dialog::desktop ( ) const [protected, inherited]

find desktop of active application

Definition at line 93 of file SMESHGUI_Dialog.cxx.

References ex13_hole1partial.d.

{
  SUIT_Desktop* d = 0;
  SUIT_Session* s = SUIT_Session::session();
  if( s )
  {
    SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( s->activeApplication() );
    if( app )
      d = app->desktop();
  }
  return d;
}
SMESHGUI_MeshOrderBox * SMESHGUI_MeshOrderDlg::GetMeshOrderBox ( ) const

return Box widget to show mesh order

Definition at line 327 of file SMESHGUI_MeshOrderDlg.cxx.

References myBox.

Referenced by SMESHGUI_MeshOrderOp.initDialog().

{
  return myBox;
}
int SMESHGUI_Dialog::prefix ( const QString &  name) [static, inherited]

Return hard-coded prefix using to differ overlapping types.

Definition at line 110 of file SMESHGUI_Dialog.cxx.

Referenced by SMESHGUI_Dialog.SMESHGUI_Dialog(), and SMESHGUI_SelectionOp.typeById().

{
  if( name == "GEOM" )
    return 100;
  else if( name == "SMESH" )
    return 200;
  else if( name == "SMESH element" )
    return 300;
  else
    return 0;
}
SUIT_ResourceMgr * SMESHGUI_Dialog::resourceMgr ( ) const [protected, inherited]

gets resource manager

Definition at line 126 of file SMESHGUI_Dialog.cxx.

Referenced by SMESHGUI_ComputeDlg.createMainFrame(), and SMESHGUI_GroupOnShapeDlg.SMESHGUI_GroupOnShapeDlg().

{
  return SUIT_Session::session()->resourceMgr();
}
void SMESHGUI_Dialog::setContentActive ( const bool  active) [virtual, inherited]

set all content to enable (parameter is true) or disable state

Definition at line 79 of file SMESHGUI_Dialog.cxx.

Referenced by SMESHGUI_Operation.setDialogActive().

{
  mainFrame()->setEnabled( active );
  setButtonEnabled( active, OK );
  setButtonEnabled( active, Apply );
  setButtonEnabled( active, Cancel );
  setButtonEnabled( active, Close );
  setButtonEnabled( active, Help );
}
void SMESHGUI_Dialog::show ( ) [virtual, inherited]

Field Documentation

Private fields.

Definition at line 109 of file SMESHGUI_MeshOrderDlg.h.

Referenced by GetMeshOrderBox(), and SMESHGUI_MeshOrderDlg().

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