if( !myBarPrs )
return;
- switch(myBarPrs->GetScaling()){
- case VISU::LOGARITHMIC :
- CBLog->setChecked( true );
- break;
- default:
- CBLog->setChecked( false );
+ if (myBarPrs->IsPositiveTable()) {
+ switch(myBarPrs->GetScaling()){
+ case VISU::LOGARITHMIC :
+ CBLog->setChecked( true );
+ break;
+ default:
+ CBLog->setChecked( false );
+ }
}
+ else
+ CBLog->setEnabled(false);
setRange( myBarPrs->GetMin(), myBarPrs->GetMax(), myBarPrs->IsRangeFixed() );
VisuGUI_Table3DDlg::VisuGUI_Table3DDlg ( SalomeApp_Module* theModule )
: QDialog ( VISU::GetDesktop(theModule), 0, false )
{
- setCaption(tr("TITLE"));
+ setCaption(tr("Point Map 3D Definition"));
setSizeGripEnabled(TRUE);
QVBoxLayout* TopLayout = new QVBoxLayout(this);
//=======================================================================
void VisuGUI_Table3DDlg::onHelp()
{
- // "table_3d_page.html";
+ QString aHelpFileName = "table_3d_page.html";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app) {
+ VisuGUI* aVisuGUI = dynamic_cast<VisuGUI*>( app->activeModule() );
+ app->onHelpContextModule(aVisuGUI ? app->moduleName(aVisuGUI->moduleName()) : QString(""), aHelpFileName);
+ }
+ else {
+ QString platform;
+#ifdef WIN32
+ platform = "winapplication";
+#else
+ platform = "application";
+#endif
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+
}
//=======================================================================