// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg( GeometryGUI* GUI, QWidget* parent )
-: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_WhatisDlg" )
+MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg (GeometryGUI* GUI, QWidget* parent)
+ : MeasureGUI_Skeleton(GUI, parent, "MeasureGUI_WhatisDlg")
{
QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_WHATIS" ) ) );
setCaption( tr( "GEOM_WHATIS_TITLE" ) );
/***************************************************************/
-
+
GroupConstructors->setTitle( tr( "GEOM_WHATIS" ) );
RadioButton1->setPixmap( image0 );
myGrp = new MeasureGUI_1Sel1TextView_QTD( this, "myGrp" );
myGrp->GroupBox1->setTitle( tr( "GEOM_WHATIS_OBJECT" ) );
myGrp->TextLabel1->setText( tr( "GEOM_OBJECT" ) );
+
myGrp->TextEdit1->setReadOnly( TRUE );
+ // fix height to fit all text
+ myGrp->TextEdit1->setWordWrap(QTextEdit::NoWrap);
+ myGrp->TextEdit1->setTextFormat(Qt::PlainText);
+ QString allLines ("\n\n\n\n\n\n\n\n\n"); // 10 lines
+ myGrp->TextEdit1->setText(allLines);
+ int sbHeight = myGrp->TextEdit1->horizontalScrollBar()->height();
+ myGrp->TextEdit1->setFixedHeight(myGrp->TextEdit1->contentsHeight() + sbHeight);
+
myGrp->PushButton1->setPixmap( image1 );
myGrp->LineEdit1->setReadOnly( true );
/***************************************************************/
- myHelpFileName = "files/salome2_sp3_measuregui_functions.htm#Whatis";
+ myHelpFileName = "using_measurement_tools_page.html#whatis_anchor";
/* Initialisation */
Init();
MeasureGUI_Skeleton::Init();
}
+
//=================================================================================
// function : processObject
// purpose :
return getOperation()->IsDone();
}
}
-
-
-