Back to index

salome-med  6.5.0
Public Member Functions | Protected Attributes
MEDGUIDataBaseDockWidget Class Reference

#include <MEDGUIDataBaseDockWidget.hxx>

Collaboration diagram for MEDGUIDataBaseDockWidget:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MEDGUIDataBaseDockWidget (CAM_Application *, QWidget *parent)
void appendFieldLT (const std::vector< ParaMEDMEM::MEDCalculatorBrowserLiteStruct > &lts)

Protected Attributes

CAM_Application * _app
QTreeWidget * _tree_widget
QTreeWidgetItem * _fields
QTreeWidgetItem * _meshes
std::vector
< ParaMEDMEM::MEDCalculatorBrowserLiteStruct > 
_field_lts

Detailed Description

Definition at line 31 of file MEDGUIDataBaseDockWidget.hxx.


Constructor & Destructor Documentation

MEDGUIDataBaseDockWidget::MEDGUIDataBaseDockWidget ( CAM_Application *  app,
QWidget *  parent 
)

Definition at line 29 of file MEDGUIDataBaseDockWidget.cxx.

                                                                                        :QDockWidget(parent),_app(app)
{
  setWindowTitle("MEDUtils DataBase");
  setMinimumWidth(270);
  setMinimumHeight(300);
  QWidget *content = new QWidget;
  setWidget(content);
  QGridLayout *gridLayout1 = new QGridLayout(content);
  _tree_widget=new QTreeWidget(content);
  QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
  QTreeWidgetItem *item1 = new QTreeWidgetItem;
  item1->setText(0, QString::fromUtf8("Name"));
  _tree_widget->setHeaderItem(item1);
  sizePolicy.setHeightForWidth(_tree_widget->sizePolicy().hasHeightForWidth());
  _tree_widget->setSizePolicy(sizePolicy);
  _tree_widget->setMinimumSize(QSize(0, 0));
  _tree_widget->setSizeIncrement(QSize(0, 0));
  _tree_widget->header()->setCascadingSectionResizes(true);
  gridLayout1->addWidget(_tree_widget,0,0,1,1);
  //
  QPixmap pixmap;
  SUIT_ResourceMgr* mgr=_app->resourceMgr();
  pixmap=mgr->loadPixmap("MED","med_field.png");
  _fields=new QTreeWidgetItem((QTreeWidget*)0,QStringList(QString("Fields")));
  _fields->setIcon(0,QIcon(pixmap));
  _tree_widget->addTopLevelItem(_fields);
  pixmap=mgr->loadPixmap("MED","med_mesh.png");
  _meshes=new QTreeWidgetItem((QTreeWidget*)0,QStringList(QString("Meshes")));
  _meshes->setIcon(0,QIcon(pixmap));
  _tree_widget->addTopLevelItem(_meshes);
}

Member Function Documentation

void MEDGUIDataBaseDockWidget::appendFieldLT ( const std::vector< ParaMEDMEM::MEDCalculatorBrowserLiteStruct > &  lts)

Definition at line 61 of file MEDGUIDataBaseDockWidget.cxx.

{
}

Here is the caller graph for this function:


Member Data Documentation

CAM_Application* MEDGUIDataBaseDockWidget::_app [protected]

Definition at line 37 of file MEDGUIDataBaseDockWidget.hxx.

std::vector<ParaMEDMEM::MEDCalculatorBrowserLiteStruct> MEDGUIDataBaseDockWidget::_field_lts [protected]

Definition at line 42 of file MEDGUIDataBaseDockWidget.hxx.

QTreeWidgetItem* MEDGUIDataBaseDockWidget::_fields [protected]

Definition at line 39 of file MEDGUIDataBaseDockWidget.hxx.

QTreeWidgetItem* MEDGUIDataBaseDockWidget::_meshes [protected]

Definition at line 40 of file MEDGUIDataBaseDockWidget.hxx.

QTreeWidget* MEDGUIDataBaseDockWidget::_tree_widget [protected]

Definition at line 38 of file MEDGUIDataBaseDockWidget.hxx.


The documentation for this class was generated from the following files: