Back to index

salome-smesh  6.5.0
Public Member Functions
SMESHGUI_FileInfoDlg Class Reference

#include <SMESHGUI_FileInfoDlg.h>

List of all members.

Public Member Functions

 SMESHGUI_FileInfoDlg (QWidget *, SALOME_MED::MedFileInfo *)
virtual ~SMESHGUI_FileInfoDlg ()

Detailed Description

Definition at line 32 of file SMESHGUI_FileInfoDlg.h.


Constructor & Destructor Documentation

SMESHGUI_FileInfoDlg::SMESHGUI_FileInfoDlg ( QWidget *  parent,
SALOME_MED::MedFileInfo *  inf 
)

Definition at line 32 of file SMESHGUI_FileInfoDlg.cxx.

  : QtxDialog( parent, true, true, QtxDialog::OK )
{
  setWindowTitle( tr( "CAPTION" ) );
  setSizeGripEnabled( true );
  
  QLineEdit* fname = new QLineEdit( mainFrame() );
  fname->setReadOnly( true );
  QLineEdit* fsize = new QLineEdit( mainFrame() );
  fsize->setReadOnly( true );
  QLineEdit* medversion = new QLineEdit( mainFrame() );
  medversion->setReadOnly( true );
  fname->setMinimumWidth( 300 );
  
  QGridLayout* lay = new QGridLayout( mainFrame() );
  lay->setMargin( 5 ); lay->setSpacing( 5 );
  lay->addWidget( new QLabel( tr( "FILE_NAME" ), mainFrame() ), 0, 0 );
  lay->addWidget( fname, 0, 1 );
  lay->addWidget( new QLabel( tr( "FILE_SIZE" ), mainFrame() ), 1, 0 );
  lay->addWidget( fsize, 1, 1 );
  lay->addWidget( new QLabel( tr( "MED_VERSION" ), mainFrame() ), 2, 0 );
  lay->addWidget( medversion, 2, 1 );

  fname->setText( (char*)inf->fileName );
  fname->home( false );
  fsize->setText( QString::number( inf->fileSize ) );

  QString version;
  if( inf->major>=0 )
  {
    version = QString::number( inf->major );
    if( inf->minor>=0 )
    {
      version += "." + QString::number( inf->minor );
      if( inf->release>=0 )
        version += "." + QString::number( inf->release );
    }
  }
  medversion->setText( version );
}

Definition at line 73 of file SMESHGUI_FileInfoDlg.cxx.

{
}

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