#include <SUIT_Session.h>
#include <SUIT_ResourceMgr.h>
-#include <SUIT_MessageBox.h>
#include <SalomeApp_Tools.h>
#include <QGroupBox>
#include <QScrollBar>
+#include <QMessageBox>
class MeasureGUI_WhatisDlg::Whatis : public QGroupBox
{
layout->setMargin( 0 ); layout->setSpacing( 6 );
layout->addWidget( myGrp );
+ // Properties dialog
+ myParamsDlg = new QMessageBox(QMessageBox::Information, "", "", QMessageBox::Ok, this);
+ myParamsDlg->setModal( false );
+
/***************************************************************/
myHelpFileName = "using_measurement_tools_page.html#whatis_anchor";
QString aKind = getKindOfShape( aParameters );
myGrp->LineEdit2->setText( aKind );
myGrp->PushButton2->setEnabled( !aParameters.isEmpty());
+ myParamsDlg->setWindowTitle(aKind + " " + tr("GEOM_PROPERTIES"));
+ myParamsDlg->setText(aParameters);
+ myParamsDlg->adjustSize();
}
//=================================================================================
//=================================================================================
void MeasureGUI_WhatisDlg::ClickOnProperties()
{
- QString aParameters;
- QString aKind = getKindOfShape( aParameters );
-
- SUIT_MessageBox::information( this,
- aKind + " " + tr( "GEOM_PROPERTIES" ),
- aParameters );
+ myParamsDlg->show();
}
//=================================================================================
#include "MeasureGUI_Skeleton.h"
+class QMessageBox;
+
//=================================================================================
// class : MeasureGUI_WhatisDlg
// purpose :
private:
Whatis* myGrp;
+ QMessageBox* myParamsDlg;
};
#endif // MEASUREGUI_WHATISDLG_H