Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 9aa5ec74 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

UIParamDialog added.

parent 8bc4b75c
/*
* (c) LSIIT, UMR CNRS/UdS
* Authors: F. Larue.
*
* See licence.txt for additional information.
*/
#include "UIParamDialog.h"
UIParamDialog::UIParamDialog( const QString& title, QWidget *parent ) : QDialog( parent )
{
m_Params = new UIParamSet( title, this );
QDialogButtonBox *dlgButtons = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel );
connect( dlgButtons, SIGNAL(accepted()), this, SLOT(accept()) );
connect( dlgButtons, SIGNAL(rejected()), this, SLOT(reject()) );
QVBoxLayout *l = new QVBoxLayout();
l->addWidget( m_Params );
l->addWidget( dlgButtons );
setLayout( l );
}
/*
* (c) LSIIT, UMR CNRS/UdS
* Authors: F. Larue.
*
* See licence.txt for additional information.
*/
#ifndef __UIPARAMDIALOG_H__
#define __UIPARAMDIALOG_H__
#include <QString>
#include <QtWidgets>
#include "UIParamSet.h"
class UIParamDialog : public QDialog
{
Q_OBJECT
protected:
UIParamSet *m_Params;
public:
UIParamDialog( const QString& title, QWidget *parent = NULL );
inline ~UIParamDialog() { delete m_Params; }
inline void Add( UIParam *param ) { m_Params->Add( param ); }
inline UIParamSet& GetParameters() const { return *m_Params; }
};
#endif // __UIPARAMDIALOG_H__
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment