Back to index

salome-smesh  6.5.0
Defines | Enumerations | Functions
SMESHGUI_MeshInfosBox.cxx File Reference
#include "SMESHGUI_MeshInfosBox.h"
#include "SMDSAbs_ElementType.hxx"
#include <QFrame>
#include <QLabel>
#include <QGridLayout>

Go to the source code of this file.

Defines

#define SPACING   6
#define MARGIN   11
#define COLONIZE(str)   (QString(str).contains(":") > 0 ? QString(str) : QString(str) + " :" )

Enumerations

enum  TCol {
  COL_ALGO = 0, COL_SHAPE, COL_ERROR, COL_SHAPEID,
  COL_PUBLISHED, COL_BAD_MESH, NB_COLUMNS, COL_ALGO = 0,
  COL_SHAPE, COL_ERROR, COL_SHAPEID, COL_PUBLISHED,
  COL_BAD_MESH, NB_COLUMNS
}

Functions

static void addSeparator (QWidget *parent)

Define Documentation

#define COLONIZE (   str)    (QString(str).contains(":") > 0 ? QString(str) : QString(str) + " :" )

Definition at line 36 of file SMESHGUI_MeshInfosBox.cxx.

#define MARGIN   11

Definition at line 34 of file SMESHGUI_MeshInfosBox.cxx.

#define SPACING   6

Definition at line 33 of file SMESHGUI_MeshInfosBox.cxx.


Enumeration Type Documentation

enum TCol
Enumerator:
COL_ALGO 
COL_SHAPE 
COL_ERROR 
COL_SHAPEID 
COL_PUBLISHED 
COL_BAD_MESH 
NB_COLUMNS 
COL_ALGO 
COL_SHAPE 
COL_ERROR 
COL_SHAPEID 
COL_PUBLISHED 
COL_BAD_MESH 
NB_COLUMNS 

Definition at line 50 of file SMESHGUI_MeshInfosBox.cxx.


Function Documentation

static void addSeparator ( QWidget *  parent) [static]

Definition at line 38 of file SMESHGUI_MeshInfosBox.cxx.

{
  QGridLayout* l = qobject_cast<QGridLayout*>( parent->layout() );
  int row  = l->rowCount();
  int cols = l->columnCount();
  for ( int i = 0; i < cols; i++ ) {
    QFrame* hline = new QFrame( parent );
    hline->setFrameStyle( QFrame::HLine | QFrame::Sunken );
    l->addWidget( hline, row, i );
  }
}