#include "SUIT_Tools.h"
#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
+#include "SUIT_Session.h"
+
+#include "LightApp_Application.h"
#include "SALOMEDSClient_Study.hxx"
#include "SALOMEDSClient_GenericAttribute.hxx"
btnLayout->setMargin( 0 ); btnLayout->setSpacing( SPACING_SIZE );
myOKBtn = new QPushButton( tr( "BUT_OK" ), this );
+ myHelpBtn = new QPushButton( tr( "BUT_HELP" ), this );
if ( edit ) {
myCancelBtn = new QPushButton( tr( "BUT_CANCEL" ), this );
btnLayout->addWidget( myOKBtn );
btnLayout->addItem( new QSpacerItem( SPACER_SIZE, SPACER_SIZE, QSizePolicy::Expanding, QSizePolicy::Minimum ) );
btnLayout->addWidget( myCancelBtn );
+ btnLayout->addWidget( myHelpBtn );
connect( myOKBtn, SIGNAL( clicked() ), this, SLOT( onOK() ) );
connect( myCancelBtn, SIGNAL( clicked() ), this, SLOT( reject() ) );
}
else {
- btnLayout->addItem( new QSpacerItem( SPACER_SIZE, SPACER_SIZE, QSizePolicy::Expanding, QSizePolicy::Minimum ) );
btnLayout->addWidget( myOKBtn );
btnLayout->addItem( new QSpacerItem( SPACER_SIZE, SPACER_SIZE, QSizePolicy::Expanding, QSizePolicy::Minimum ) );
+ btnLayout->addWidget( myHelpBtn );
connect( myOKBtn, SIGNAL( clicked() ), this, SLOT( accept() ) );
}
+ connect( myHelpBtn, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
mainLayout->addWidget( top );
mainLayout->addLayout( btnLayout );
accept();
}
+/*!
+ <Help> button slot, shows corresponding help page
+*/
+void VisuGUI_TableDlg::onHelp()
+{
+ QString aHelpFileName = "/files/displaying_tables.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(app->activeModule() ? app->moduleName(app->activeModule()->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
/*!
Populates table with data
*/
public slots:
void onOK();
+ void onHelp();
private:
void initDlg();
VisuGUI_TableWidget* myRealTable;
QPushButton* myOKBtn;
QPushButton* myCancelBtn;
+ QPushButton* myHelpBtn;
_PTR(SObject) myObject;
};
msgid "VisuGUI_BuildProgressDlg::CLOSE"
msgstr "Close"
+msgid "VisuGUI_BuildProgressDlg::HELP"
+msgstr "Help"
+
msgid "VisuGUI_BuildProgressDlg::ERR_ERROR_IN_THE_FILE"
msgstr "Error in the file"
#include "VisuGUI_BuildProgressDlg.h"
+#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
#include "SUIT_FileDlg.h"
+#include "SUIT_Session.h"
#include "SUIT_MessageBox.h"
#include "SUIT_ResourceMgr.h"
+#include "LightApp_Application.h"
+
#include <vtkTimerLog.h>
#include <qcheckbox.h>
aCloseButton->setAutoDefault( true );
CommonGroupLayout->addWidget( aCloseButton, 0, 2 );
+ QPushButton* aHelpButton = new QPushButton( tr( "HELP" ), CommonGroup );
+ aHelpButton->setAutoDefault( true );
+ CommonGroupLayout->addWidget( aHelpButton, 0, 3 );
+
connect( myStartButton, SIGNAL( clicked() ), this, SLOT( onStart() ) );
connect( aCloseButton, SIGNAL( clicked() ), this, SLOT( onClose() ) );
+ connect( aHelpButton, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
myTimer = new QTimer( this );
connect( myTimer, SIGNAL( timeout() ), this, SLOT( onTimer() ) );
done( 0 );
}
+void VisuGUI_BuildProgressDlg::onHelp()
+{
+ QString aHelpFileName = "/files/importing_med_objects.htm"; // ?
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
bool VisuGUI_BuildProgressDlg::onBrowseFile()
{
QString aRootDir = QString( getenv( "VISU_ROOT_DIR") );
void onStart();
void onClose();
+ void onHelp();
bool onBrowseFile();
void onTimer();
#include "VISU_PipeLine.hxx"
#include "LightApp_SelectionMgr.h"
+#include "LightApp_Application.h"
#include "SVTK_ViewWindow.h"
GroupButtonsLayout->setAlignment(Qt::AlignTop);
GroupButtonsLayout->setSpacing(6);
GroupButtonsLayout->setMargin(11);
+ buttonHelp = new QPushButton (GroupButtons, "buttonHelp");
+ buttonHelp->setText(tr("BUT_HELP"));
+ buttonHelp->setAutoDefault(TRUE);
+ GroupButtonsLayout->addWidget(buttonHelp, 0, 4);
buttonCancel = new QPushButton (GroupButtons, "buttonCancel");
buttonCancel->setText(tr("BUT_CLOSE"));
buttonCancel->setAutoDefault(TRUE);
connect(buttonOk , SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply , SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
+ connect(buttonHelp , SIGNAL(clicked()), this, SLOT(ClickOnHelp()));
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionChanged()));
close();
}
+//=================================================================================
+// function : ClickOnHelp()
+// purpose :
+//=================================================================================
+void VisuGUI_ClippingDlg::ClickOnHelp()
+{
+ QString aHelpFileName = "clipping.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(myVisuGUI ? app->moduleName(myVisuGUI->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
//=================================================================================
// function : onSelectionChanged()
// purpose : Called when selection is changed
QPushButton* buttonOk;
QPushButton* buttonCancel;
QPushButton* buttonApply;
+ QPushButton* buttonHelp;
bool myIsSelectPlane;
void ClickOnOk();
void ClickOnCancel();
void ClickOnApply();
+ void ClickOnHelp();
};
#endif // DIALOGBOX_TRANSPARENCYDLG_H
// $Header$
using namespace std;
+
+#include "VisuGUI.h"
#include "VisuGUI_CursorDlg.h"
+
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
+
+#include "LightApp_Application.h"
+
#include <qlayout.h>
/*!
buttonCancel->setAutoDefault(TRUE);
GroupButtonsLayout->addWidget(buttonCancel, 0, 2);
+ buttonHelp = new QPushButton(tr("&Help") , GroupButtons, "buttonHelp");
+ buttonHelp->setAutoDefault(TRUE);
+ GroupButtonsLayout->addWidget(buttonHelp, 0, 3);
+
TopLayout->addWidget(TopGroupBox, 0, 0);
TopLayout->addWidget(GroupButtons, 1, 0);
// signals and slots connections
connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+ connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
}
/*!
VisuGUI_CursorDlg::~VisuGUI_CursorDlg()
{
}
+
+/*!
+ function : onHelp()
+ purpose :
+*/
+void VisuGUI_CursorDlg::onHelp()
+{
+ QString aHelpFileName = "/files/changing_visualization_parameters_of_the_presenetation.htm#Width";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
QGroupBox* GroupButtons;
QPushButton* buttonOk;
QPushButton* buttonCancel;
+ QPushButton* buttonHelp;
+
+private slots:
+ void onHelp();
+
};
#endif // VISUGUI_CURSORDLG_H
#include "SVTK_ViewWindow.h"
-#include "SalomeApp_Application.h"
+#include "LightApp_Application.h"
#include "SalomeApp_Study.h"
#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
#include "OB_Browser.h"
QPushButton* aCloseBtn = new QPushButton(tr("BUT_CANCEL"), aBtnBox);
aBtnLayout->addWidget(aCloseBtn);
+ QPushButton* aHelpBtn = new QPushButton(tr("BUT_HELP"), aBtnBox);
+ aBtnLayout->addWidget(aHelpBtn);
+
aMainLayout->addWidget(aBtnBox);
myCutLines = NULL;
connect(aOkBtn, SIGNAL(clicked()), this, SLOT(accept()));
connect(aCloseBtn, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(aHelpBtn, SIGNAL(clicked()), this, SLOT(onHelp()));
//connect(myMgr, SIGNAL(closeAllViews()), this, SLOT(reject()));
//connect(VisuGUI::application()->desktop(),
// SIGNAL(windowActivated(SUIT_ViewWindow*)),
}
}
+void VisuGUI_CutLinesDlg::onHelp()
+{
+ QString aHelpFileName = "/files/cut_lines_presentation.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
//jfa tmp:void VisuGUI_CutLinesDlg::onWindowActivated (SUIT_ViewWindow* theWnd)
//jfa tmp:{
//jfa tmp: if (theWnd != myStudyWnd)
void onAllCurvesInvertedCheck(bool theInvert);
void onRotation (double theValue);
void onPlanePos (const QString& theValue);
+ void onHelp();
//jfa tmp:void onWindowActivated (SUIT_ViewWindow*);
private:
#include "SVTK_ViewWindow.h"
-#include "SalomeApp_Application.h"
+#include "LightApp_Application.h"
#include "SUIT_Application.h"
#include "SUIT_Desktop.h"
#include "SUIT_ViewWindow.h"
#include "SUIT_ViewManager.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
#include <qlayout.h>
#include <qcheckbox.h>
buttonCancel->setAutoDefault(TRUE);
GroupButtonsLayout->addWidget(buttonCancel, 0, 2);
+ QPushButton* buttonHelp = new QPushButton(tr("&Help"), GroupButtons, "buttonHelp");
+ buttonHelp->setAutoDefault(TRUE);
+ GroupButtonsLayout->addWidget(buttonHelp, 0, 3);
+
TopLayout->addWidget(GroupButtons);
connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(buttonHelp, SIGNAL(clicked()), this, SLOT(onHelp()));
//connect(myMgr, SIGNAL(closeAllViews()), this, SLOT(reject()));
//connect(VisuGUI::application()->desktop(),
// SIGNAL(windowActivated(SUIT_ViewWindow*)),
QDialog::reject();
}
+void VisuGUI_CutPlanesDlg::onHelp()
+{
+ QString aHelpFileName = "/files/cut_lines_resentation.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
//void VisuGUI_CutPlanesDlg::onWindowActivated (SUIT_ViewWindow* theWnd)
//{
// if (theWnd != myStudyWnd)
void accept();
void reject();
void onWindowActivated (SUIT_ViewWindow*);
+ void onHelp();
private:
VisuGUI_CutPlanesPane* myCutPane;
#include "VisuGUI_DeformedShapeDlg.h"
+#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
#include "VISU_DeformedShape_i.hh"
#include "SalomeApp_Module.h"
+#include "LightApp_Application.h"
#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
#include <qlayout.h>
#include <qtabwidget.h>
buttonCancel->setAutoDefault(TRUE);
GroupButtonsLayout->addWidget(buttonCancel, 0, 2);
+ QPushButton* buttonHelp = new QPushButton (tr("&Help") , GroupButtons, "buttonHelp");
+ buttonHelp->setAutoDefault(TRUE);
+ GroupButtonsLayout->addWidget(buttonHelp, 0, 3);
+
// Add Tab box and Buttons to the top layout
TopLayout->addWidget(aTabBox);
TopLayout->addWidget(GroupButtons);
// signals and slots connections
connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(buttonHelp, SIGNAL(clicked()), this, SLOT(onHelp()));
}
void VisuGUI_DeformedShapeDlg::initFromPrsObject (VISU::DeformedShape_i* thePrs)
myScalarPane->deletePreview();
QDialog::reject();
}
+
+void VisuGUI_DeformedShapeDlg::onHelp()
+{
+ QString aHelpFileName = "/files/deformed_shape_presentation.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
protected slots:
void accept();
void reject();
+ void onHelp();
private:
QtxDblSpinBox* ScalFact;
#include "SalomeApp_Application.h"
#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
#include <qlayout.h>
#include <qcheckbox.h>
buttonCancel->setAutoDefault(TRUE);
GroupButtonsLayout->addWidget(buttonCancel, 0, 2);
+ QPushButton* buttonHelp = new QPushButton(tr("&Help") , GroupButtons, "buttonHelp");
+ buttonHelp->setAutoDefault(TRUE);
+ GroupButtonsLayout->addWidget(buttonHelp, 0, 3);
+
TopLayout->addWidget(GroupButtons);
connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(buttonHelp, SIGNAL(clicked()), this, SLOT(onHelp()));
}
void VisuGUI_EditContainerDlg::initFromPrsObject (VISU::Container_i* theContainer)
}
myLeftBtn->setEnabled(isSelected);
}
+
+void VisuGUI_EditContainerDlg::onHelp()
+{
+ QString aHelpFileName = "/files/creating_xy_plot.htm";
+ SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(myVisuGUI ? app->moduleName(myVisuGUI->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
void onRightClicked();
void onLeftSelected();
void onRightSelected();
+ void onHelp();
private:
QString getSObjectName (_PTR(SObject) theSObject);
#include "VVTK_PrimitiveBox.h"
#include "VVTK_SizeBox.h"
-#include "SalomeApp_Application.h"
+#include "LightApp_Application.h"
#include "SalomeApp_Module.h"
#include "SUIT_Desktop.h"
#include "SUIT_ResourceMgr.h"
buttonCancel->setAutoDefault( TRUE );
GroupButtonsLayout->addWidget( buttonCancel, 0, 2 );
+ QPushButton* buttonHelp = new QPushButton( tr( "&Help" ) , GroupButtons, "buttonHelp" );
+ buttonHelp->setAutoDefault( TRUE );
+ GroupButtonsLayout->addWidget( buttonHelp, 0, 3 );
+
TopLayout->addWidget( PrsGroup );
TopLayout->addWidget( aTabBox );
TopLayout->addWidget( GroupButtons );
connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+ connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
}
void VisuGUI_GaussPointsDlg::initFromPrsObject( VISU::GaussPoints_i* thePrs )
//if( myScalarPane->check() )
QDialog::accept();
}
+
+void VisuGUI_GaussPointsDlg::onHelp()
+{
+ QString aHelpFileName = "types_of_gauss_points_presentations.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(app->activeModule() ? app->moduleName(app->activeModule()->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
protected slots:
void onToggleDefShape( bool );
+ void onHelp();
void accept();
#include "VisuGUI.h"
#include "VisuGUI_Tools.h"
-#include "SalomeApp_Application.h"
+#include "LightApp_Application.h"
#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
#include <limits.h>
QPushButton* buttonCancel = new QPushButton( tr( "&Cancel" ) , GroupButtons, "buttonCancel" );
buttonCancel->setAutoDefault( TRUE );
GroupButtonsLayout->addWidget( buttonCancel, 0, 2 );
+ QPushButton* buttonHelp = new QPushButton( tr( "&Help" ) , GroupButtons, "buttonHelp" );
+ buttonHelp->setAutoDefault( TRUE );
+ GroupButtonsLayout->addWidget( buttonHelp, 0, 3 );
TopLayout->addWidget(GroupButtons);
// signals and slots connections
connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+ connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
}
void VisuGUI_IsoSurfacesDlg::accept()
myScalarPane->deletePreview();
QDialog::reject();
}
+
+void VisuGUI_IsoSurfacesDlg::onHelp()
+{
+ QString aHelpFileName = "/files/iso_surfaces_presentation.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
protected slots:
void accept();
void reject();
+ void onHelp();
private:
VisuGUI_IsoSurfPane* myIsoPane;
// $Header$
#include "VisuGUI_NameDlg.h"
+#include "VisuGUI.h"
#include <SUIT_Session.h>
#include <SUIT_Application.h>
#include <SUIT_Desktop.h>
#include <SUIT_Tools.h>
+#include <SUIT_MessageBox.h>
+#include <SUIT_ResourceMgr.h>
+
+#include <LightApp_Application.h>
#include <qgroupbox.h>
#include <qlabel.h>
myButtonCancel->setText( tr( "BUT_CANCEL" ) );
myButtonCancel->setAutoDefault( TRUE );
GroupButtonsLayout->addWidget( myButtonCancel );
+
+ myButtonHelp = new QPushButton( GroupButtons, "buttonHelp" );
+ myButtonHelp->setText( tr( "BUT_HELP" ) );
+ myButtonHelp->setAutoDefault( TRUE );
+ GroupButtonsLayout->addWidget( myButtonHelp );
/***************************************************************/
topLayout->addWidget( GroupC1 );
// signals and slots connections
connect( myButtonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( myButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+ connect( myButtonHelp, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
/* Move widget on the botton right corner of main widget */
SUIT_Tools::centerWidget( this, parent );
QDialog::accept();
}
+void VisuGUI_NameDlg::onHelp()
+{
+ QString aHelpFileName = "/files/renaming_presentations.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
/*!
Creates modal <Rename> dialog and returns name entered [ static ]
*/
protected slots:
void accept();
+ void onHelp();
private:
QPushButton* myButtonOk;
QPushButton* myButtonCancel;
+ QPushButton* myButtonHelp;
QLineEdit* myLineEdit;
};
#include "VISU_ViewManager_i.hh"
#include "VISU_Actor.h"
+#include "LightApp_Application.h"
#include "SalomeApp_Application.h"
#include "SVTK_ViewWindow.h"
#include "SVTK_ViewModel.h"
#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
#include "QtxDblSpinBox.h"
QPushButton* buttonCancel = new QPushButton(tr("&Cancel") , GroupButtons, "buttonCancel");
buttonCancel->setAutoDefault(TRUE);
GroupButtonsLayout->addWidget(buttonCancel, 0, 4);
+ GroupButtonsLayout->addItem(new QSpacerItem(5, 5, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 5);
+
+ QPushButton* buttonHelp = new QPushButton(tr("&Help") , GroupButtons, "buttonHelp");
+ buttonHelp->setAutoDefault(TRUE);
+ GroupButtonsLayout->addWidget(buttonHelp, 0, 6);
TopLayout->addWidget(GroupButtons);
connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(onApply()));
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(buttonHelp, SIGNAL(clicked()), this, SLOT(onHelp()));
}
void VisuGUI_OffsetDlg::addPresentation (VISU::Prs3d_i* thePrs)
updateOffset(myPrsList.at(i), aOffset);
}
}
+
+void VisuGUI_OffsetDlg::onHelp()
+{
+ QString aHelpFileName = "/files/scaling_presentations.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(myModule ? app->moduleName(myModule->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
virtual void accept();
virtual void reject();
void onApply();
+ void onHelp();
private:
void updateOffset (VISU::Prs3d_i* thePrs, float* theOffset);
#include "SALOME_Actor.h"
#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
+#include "LightApp_Application.h"
#include <qlayout.h>
#include <qvalidator.h>
QPushButton* buttonCancel = new QPushButton (tr("&Cancel") , GroupButtons, "buttonCancel");
buttonCancel->setAutoDefault(TRUE);
GroupButtonsLayout->addWidget(buttonCancel, 0, 2);
+ QPushButton* buttonHelp = new QPushButton (tr("&Help") , GroupButtons, "buttonHelp");
+ buttonHelp->setAutoDefault(TRUE);
+ GroupButtonsLayout->addWidget(buttonHelp, 0, 3);
TopLayout->addWidget(GroupButtons);
// signals and slots connections
connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(buttonHelp, SIGNAL(clicked()), this, SLOT(onHelp()));
}
//=======================================================================
QDialog::reject();
}
+
+//=======================================================================
+//function : onHelp
+//purpose :
+//=======================================================================
+void VisuGUI_Plot3DDlg::onHelp()
+{
+ QString aHelpFileName = "plot_3d_presentation.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
protected slots:
void accept();
void reject();
+ void onHelp();
private:
VisuGUI_Plot3DPane* myIsoPane;
#include "VISU_ScalarMap_i.hh"
#include "VISU_ScalarMapAct.h"
-#include "SalomeApp_Application.h"
+#include "LightApp_Application.h"
+#include "SUIT_Session.h"
#include "SUIT_MessageBox.h"
#include "SUIT_ResourceMgr.h"
buttonCancel->setAutoDefault( TRUE );
GroupButtonsLayout->addWidget( buttonCancel, 0, 2 );
+ QPushButton* buttonHelp = new QPushButton( tr( "&Help" ) , GroupButtons, "buttonHelp" );
+ buttonHelp->setAutoDefault( TRUE );
+ GroupButtonsLayout->addWidget( buttonHelp, 0, 3 );
+
TopLayout->addWidget( GroupButtons );
connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+ connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
}
/*!
QDialog::reject();
}
+/*!
+ Called when <Help> button is clicked, shows the corresponding help page in defined browser
+*/
+void VisuGUI_ScalarBarDlg::onHelp()
+{
+ QString aHelpFileName = "/files/scalar_map_presentation.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
//#######################################################################################
VisuGUI_TextPrefDlg::VisuGUI_TextPrefDlg (QWidget* parent)
buttonCancel->setAutoDefault( TRUE );
GroupButtonsLayout->addWidget( buttonCancel, 0, 2 );
+ QPushButton* buttonHelp = new QPushButton( tr( "&Help" ) , GroupButtons, "buttonHelp" );
+ buttonHelp->setAutoDefault( TRUE );
+ GroupButtonsLayout->addWidget( buttonHelp, 0, 3 );
+
TopLayout->addWidget( GroupButtons );
connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(buttonHelp, SIGNAL(clicked()), this, SLOT(onHelp()));
+}
+
+void VisuGUI_TextPrefDlg::onHelp()
+{
+ QString aHelpFileName = "/files/scalar_map_presentation.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
}
void VisuGUI_TextPrefDlg::storeBeginValues()
protected slots:
void accept();
void reject();
+ void onHelp();
private:
QLineEdit* myTitleEdt;
protected slots:
void accept();
void reject();
+ void onHelp();
protected:
VisuGUI_ScalarBarPane* myScalarPane;
#include "VISU_Convertor.hxx"
#include "SalomeApp_Module.h"
+#include "LightApp_Application.h"
#include "LightApp_SelectionMgr.h"
#include "SUIT_Desktop.h"
+#include "SUIT_ResourceMgr.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
#include "SALOME_ListIO.hxx"
buttonCancel->setAutoDefault(TRUE);
GroupButtonsLayout->addWidget(buttonCancel, 0, 2);
+ QPushButton* buttonHelp = new QPushButton (tr("&Help") , GroupButtons, "buttonHelp");
+ buttonHelp->setAutoDefault(TRUE);
+ GroupButtonsLayout->addWidget(buttonHelp, 0, 3);
+
// Add Tab box and Buttons to the top layout
TopLayout->addWidget(aTabBox);
TopLayout->addWidget(GroupButtons);
// signals and slots connections
connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(buttonHelp, SIGNAL(clicked()), this, SLOT(onHelp()));
connect(myFieldsCombo, SIGNAL(activated(int)), this, SLOT(onFieldChanged(int)));
connect(myTimeStampsCombo, SIGNAL(activated(int)), this, SLOT(onTimeStampChanged(int)));
}
QDialog::reject();
}
+void VisuGUI_ScalarMapOnDeformedShapeDlg::onHelp()
+{
+ QString aHelpFileName = "scalar_map_on_deformed_shape_presentation.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(myVisuGUI ? app->moduleName(myVisuGUI->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
void VisuGUI_ScalarMapOnDeformedShapeDlg::AddAllFieldNames(){
TMF::const_iterator aIterMesh = myMeshFieldsTimes.begin();
for(;aIterMesh != myMeshFieldsTimes.end();aIterMesh++){
protected slots:
void accept();
void reject();
+ void onHelp();
private slots:
void onFieldChanged(int i=0);
#include "SalomeApp_Study.h"
#include "SalomeApp_Application.h"
+#include "LightApp_Application.h"
#include "LightApp_SelectionMgr.h"
#include "LightApp_VTKSelector.h"
#include "SUIT_MessageBox.h"
#include "SUIT_ViewWindow.h"
#include "SUIT_Session.h"
+#include "SUIT_ResourceMgr.h"
#include "SALOME_ListIO.hxx"
#include "SALOME_ListIteratorOfListIO.hxx"
QPushButton* aCloseBtn = new QPushButton (tr("BUT_CLOSE"), aBtnBox);
connect(aCloseBtn, SIGNAL(clicked()), this, SLOT(close()));
+ QPushButton* aHelpBtn = new QPushButton (tr("BUT_HELP"), aBtnBox);
+ connect(aHelpBtn, SIGNAL(clicked()), this, SLOT(onHelp()));
+
TopLayout->addWidget(aBtnBox, 3, 0);
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>
else
clearFields();
}
+
+void VisuGUI_SelectionDlg::onHelp()
+{
+ QString aHelpFileName = "/files/getting_elements_attributes.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(myModule ? app->moduleName(myModule->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
void onSelectionEvent ();
void onPointIdEdit (const QString& theText);
void onCellIdEdit (const QString& theText);
+ void onHelp();
private:
void clearFields ();
// $Header$
#include "VisuGUI_SetupPlot2dDlg.h"
+#include "VisuGUI.h"
#include "SPlot2d_Curve.h"
#include "SUIT_Tools.h"
#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
+#include "SUIT_Session.h"
+
+#include "LightApp_Application.h"
#include <SALOMEDSClient_AttributeTableOfInteger.hxx>
#include <SALOMEDSClient_AttributeTableOfReal.hxx>
myView->setMinimumWidth( frame->sizeHint().width() + MARGIN_SIZE * 2 );
- /* OK/Cancel buttons */
+ /* OK/Cancel/Help buttons */
myOkBtn = new QPushButton( tr( "BUT_OK" ), this, "buttonOk" );
myOkBtn->setAutoDefault( TRUE );
myOkBtn->setDefault( TRUE );
myCancelBtn = new QPushButton( tr( "BUT_CANCEL" ), this, "buttonCancel" );
myCancelBtn->setAutoDefault( TRUE );
+ myHelpBtn = new QPushButton( tr( "BUT_HELP" ), this, "buttonHelp" );
+ myHelpBtn->setAutoDefault( TRUE );
- topLayout->addMultiCellWidget( myView, 0, 0, 0, 2 );
+ topLayout->addMultiCellWidget( myView, 0, 0, 0, 3 );
topLayout->addWidget( myOkBtn, 1, 0 );
topLayout->setColStretch( 1, 5 );
topLayout->addWidget( myCancelBtn, 1, 2 );
+ topLayout->addWidget( myHelpBtn, 1, 3 );
connect( myOkBtn, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( myCancelBtn, SIGNAL( clicked() ), this, SLOT( reject() ) );
+ connect( myHelpBtn, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
enableControls();
}
enableControls();
}
+/*!
+ Slot, called when <Help> button is clicked
+*/
+void VisuGUI_SetupPlot2dDlg::onHelp()
+{
+ QString aHelpFileName = "/files/creating_curves.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
/*!
Enables/disables buttons
*/
private slots:
void onHBtnToggled( bool );
void onVBtnToggled( bool );
+ void onHelp();
void enableControls();
private:
QScrollView* myView;
QPushButton* myOkBtn;
QPushButton* myCancelBtn;
+ QPushButton* myHelpBtn;
QPtrList<VisuGUI_ItemContainer> myItems;
_PTR(SObject) myObject;
#include "VISU_Actor.h"
#include "SalomeApp_Application.h"
+#include "LightApp_Application.h"
#include "LightApp_SelectionMgr.h"
#include "SVTK_ViewWindow.h"
#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
#include "SUIT_ResourceMgr.h"
#include "SUIT_MessageBox.h"
QPushButton* aCancelBtn = new QPushButton( tr( "&Cancel" ) , aGroupButtons, "buttonCancel" );
aCancelBtn->setAutoDefault( TRUE );
aGroupButtonsLayout->addWidget( aCancelBtn, 0, 2 );
+
+ QPushButton* aHelpBtn = new QPushButton( tr( "&Help" ) , aGroupButtons, "buttonHelp" );
+ aHelpBtn->setAutoDefault( TRUE );
+ aGroupButtonsLayout->addWidget( aHelpBtn, 0, 3 );
+
connect( aOkBtn, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( aCancelBtn, SIGNAL( clicked() ), this, SLOT( reject() ) );
+ connect( aHelpBtn, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
aBoxLayout->addWidget(aGroupButtons);
myScalarPane->deletePreview();
QDialog::reject();
}
+
+void VisuGUI_StreamLinesDlg::onHelp()
+{
+ QString aHelpFileName = "/files/stream_lines_presentation.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(myVisuGUI ? app->moduleName(myVisuGUI->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
protected slots:
void accept();
void reject();
+ void onHelp();
private slots:
void onSelectionActive(bool theActive);
#include "VISU_Actor.h"
#include "SalomeApp_Study.h"
-#include "SalomeApp_Application.h"
+#include "LightApp_Application.h"
#include "SVTK_ViewWindow.h"
#include "SUIT_OverrideCursor.h"
#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
+#include "SUIT_Session.h"
#include "SUIT_Desktop.h"
#include "SUIT_FileDlg.h"
QPushButton* aCloseBtn = new QPushButton(tr("BUT_CLOSE"), aBtnBox);
connect(aCloseBtn, SIGNAL(clicked()), this, SLOT(close()));
+ QPushButton* aHelpBtn = new QPushButton(tr("BUT_HELP"), aBtnBox);
+ connect(aHelpBtn, SIGNAL(clicked()), this, SLOT(onHelp()));
+
SUIT_Study* aStudy = VISU::GetAppStudy(myModule);
connect(aStudy, SIGNAL(destroyed()), this, SLOT(close()));
}
}
+//------------------------------------------------------------------------
+void VisuGUI_TimeAnimationDlg::onHelp()
+{
+ QString aHelpFileName = "/files/animating_presentations.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(myModule ? app->moduleName(myModule->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
//------------------------------------------------------------------------
void VisuGUI_TimeAnimationDlg::saveToStudy()
{
void onExecution(long theNewFrame, double theTime);
void onBrowse();
void onStop();
+ void onHelp();
void saveToStudy();
void publishToStudy();
#include "SUIT_Desktop.h"
#include "SUIT_OverrideCursor.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
#include "SALOME_ListIO.hxx"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "LightApp_Study.h"
#include "LightApp_SelectionMgr.h"
+#include "LightApp_Application.h"
#include "SVTK_ViewWindow.h"
buttonOk->setText(tr("BUT_CLOSE"));
buttonOk->setAutoDefault(TRUE);
buttonOk->setDefault(TRUE);
- GroupButtonsLayout->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 0);
- GroupButtonsLayout->addWidget(buttonOk, 0, 1);
- GroupButtonsLayout->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 2);
+
+ buttonHelp = new QPushButton(GroupButtons, "buttonHelp");
+ buttonHelp->setText(tr("BUT_HELP"));
+ buttonHelp->setAutoDefault(TRUE);
+
+ GroupButtonsLayout->addWidget(buttonOk, 0, 0);
+ GroupButtonsLayout->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 1);
+ GroupButtonsLayout->addWidget(buttonHelp, 0, 2);
VisuGUI_TransparencyDlgLayout->addWidget(GroupC1, 0, 0);
VisuGUI_TransparencyDlgLayout->addWidget(GroupButtons, 1, 0);
// signals and slots connections : after ValueHasChanged()
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
+ connect(buttonHelp, SIGNAL(clicked()), this, SLOT(ClickOnHelp()));
connect(Slider1, SIGNAL(valueChanged(int)), this, SLOT(SetTransparency()));
connect(Slider1, SIGNAL(sliderMoved(int)), this, SLOT(ValueHasChanged()));
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionChanged()));
close();
}
+//=======================================================================
+// function : ClickOnHelp()
+// purpose :
+//=======================================================================
+void VisuGUI_TransparencyDlg::ClickOnHelp()
+{
+ QString aHelpFileName = "/files/changing_visualization_parameters_of_the_presenetation.htm#Changing3";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
//=================================================================================
// function : SetTransparency()
// purpose : Called when value of slider change
SVTK_ViewWindow* myViewWindow;
QPushButton* buttonOk;
+ QPushButton* buttonHelp;
QLabel* TextLabelOpaque;
QLabel* ValueLab;
QLabel* TextLabelTransparent;
public slots:
void ClickOnOk();
+ void ClickOnHelp();
void ValueHasChanged();
void SetTransparency();
void onSelectionChanged();
#include "VisuGUI_Tools.h"
#include "VISU_Vectors_i.hh"
-
+#include "LightApp_Application.h"
#include "SalomeApp_Module.h"
+
#include "SUIT_Desktop.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
+#include "SUIT_Session.h"
#include <qlayout.h>
#include <qcolordialog.h>
buttonCancel = new QPushButton( tr( "&Cancel" ) , GroupButtons, "buttonCancel" );
buttonCancel->setAutoDefault( TRUE );
GroupButtonsLayout->addWidget( buttonCancel, 0, 2 );
+ buttonHelp = new QPushButton( tr( "&Help" ) , GroupButtons, "buttonHelp" );
+ buttonHelp->setAutoDefault( TRUE );
+ GroupButtonsLayout->addWidget( buttonHelp, 0, 3 );
// top layout
aTabBox->addTab(aBox, "Vectors");
connect( UseMagn, SIGNAL( clicked() ), this, SLOT( enableSetColor() ) );
connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
+ connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
// default values
UseMagn->setChecked( TRUE );
myScalarPane->deletePreview();
QDialog::reject();
}
+
+void VisuGUI_VectorsDlg::onHelp()
+{
+ QString aHelpFileName = "/files/vectors_presentation.htm";
+ 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 {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
protected slots:
void accept();
void reject();
+ void onHelp();
private:
QGroupBox* TopGroup;
QGroupBox* GroupButtons;
QPushButton* buttonOk;
QPushButton* buttonCancel;
+ QPushButton* buttonHelp;
QColor myColor;
VisuGUI_ScalarBarPane* myScalarPane;
#include "VISU_GaussPtsAct.h"
#include "VISU_GaussPtsSettings.h"
+#include "SUIT_MessageBox.h"
#include "SUIT_ResourceMgr.h"
#include "SUIT_Session.h"
#include "QtxDblSpinBox.h"
#include "QtxIntSpinBox.h"
+#include "LightApp_Application.h"
+
using namespace std;
VVTK_PickingDlg::VVTK_PickingDlg( QWidget* parent, const char* name )
buttonClose->setAutoDefault( TRUE );
GroupButtonsLayout->addWidget( buttonClose, 0, 2 );
+ QPushButton* buttonHelp = new QPushButton( tr( "&Help" ) , GroupButtons, "buttonHelp" );
+ buttonHelp->setAutoDefault( TRUE );
+ GroupButtonsLayout->addWidget( buttonHelp, 0, 3 );
+
TopLayout->addWidget( aBox );
TopLayout->addWidget( GroupButtons );
connect( buttonApply, SIGNAL( clicked() ), this, SLOT( onClickApply() ) );
connect( buttonClose, SIGNAL( clicked() ), this, SLOT( onClickClose() ) );
+ connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( onClickHelp() ) );
}
VVTK_PickingDlg::~VVTK_PickingDlg()
reject();
}
+void VVTK_PickingDlg::onClickHelp()
+{
+ QString aHelpFileName = "picking.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(app->activeModule() ? app->moduleName(app->activeModule()->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
void VVTK_PickingDlg::done( int r )
{
myAction->setOn( false );
void onClickApply();
void onClickClose();
+ void onClickHelp();
void onColorButtonPressed();
#include "VVTK_Recorder.h"
#include "SUIT_FileDlg.h"
+#include "SUIT_MessageBox.h"
#include "SUIT_ResourceMgr.h"
#include "SUIT_Session.h"
#include "QtxDblSpinBox.h"
#include "QtxIntSpinBox.h"
+#include "LightApp_Application.h"
+
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qgroupbox.h>
aCloseButton->setAutoDefault( true );
CommonGroupLayout->addWidget( aCloseButton, 0, 2 );
+ QPushButton* aHelpButton = new QPushButton( tr( "HELP" ), CommonGroup );
+ aHelpButton->setAutoDefault( true );
+ CommonGroupLayout->addWidget( aHelpButton, 0, 3 );
+
connect( aStartButton, SIGNAL( clicked() ), this, SLOT( onStart() ) );
connect( aCloseButton, SIGNAL( clicked() ), this, SLOT( onClose() ) );
+ connect( aHelpButton, SIGNAL( clicked() ), this, SLOT( onHelp() ) );
}
VVTK_RecorderDlg::~VVTK_RecorderDlg()
reject();
}
+void VVTK_RecorderDlg::onHelp()
+{
+ QString aHelpFileName = "animation_in_gauss_viewer.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(app->activeModule() ? app->moduleName(app->activeModule()->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
bool VVTK_RecorderDlg::onBrowseFile()
{
QString aRootDir = QString( getenv( "VISU_ROOT_DIR") );
protected slots:
void onStart();
void onClose();
+ void onHelp();
bool onBrowseFile();
#include "VISU_GaussPointsPL.hxx"
#include "VISU_OpenGLPointSpriteMapper.hxx"
+#include "LightApp_Application.h"
#include "SUIT_MessageBox.h"
#include "SUIT_ResourceMgr.h"
#include "SUIT_Session.h"
buttonClose->setAutoDefault( TRUE );
GroupButtonsLayout->addWidget( buttonClose, 0, 2 );
+ QPushButton* buttonHelp = new QPushButton( tr( "&Help" ) , GroupButtons, "buttonHelp" );
+ buttonHelp->setAutoDefault( TRUE );
+ GroupButtonsLayout->addWidget( buttonHelp, 0, 3 );
+
TopLayout->addWidget( myTabBox );
TopLayout->addWidget( GroupButtons );
connect( buttonApply, SIGNAL( clicked() ), this, SLOT( onClickApply() ) );
connect( buttonClose, SIGNAL( clicked() ), this, SLOT( onClickClose() ) );
+ connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( onClickHelp() ) );
}
VVTK_SegmentationCursorDlg::~VVTK_SegmentationCursorDlg()
reject();
}
+void VVTK_SegmentationCursorDlg::onClickHelp()
+{
+ QString aHelpFileName = "segmentation.htm";
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ app->onHelpContextModule(app->activeModule() ? app->moduleName(app->activeModule()->moduleName()) : QString(""), aHelpFileName);
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(aHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+}
+
void VVTK_SegmentationCursorDlg::done( int r )
{
myPlaneAction->setOn( false );
void onClickApply();
void onClickClose();
+ void onClickHelp();
signals:
void scgClose();