void VisuGUI_BuildProgressDlg::onHelp()
{
- QString aHelpFileName = "/files/importing_med_objects.htm"; // ?
+ QString aHelpFileName = "importing_med_objects_page.html"; // ?
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
if (app) {
VisuGUI* aVisuGUI = dynamic_cast<VisuGUI*>( app->activeModule() );
void VisuGUI_CacheDlg::onHelp()
{
- QString aHelpFileName;// = "types_of_gauss_points_presentations.htm";
+ QString aHelpFileName;// = "types_of_gauss_points_presentations_page.html";
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
if (app)
app->onHelpContextModule(app->activeModule() ?
//=================================================================================
void VisuGUI_ClippingDlg::ClickOnHelp()
{
- QString aHelpFileName = "clipping.htm";
+ QString aHelpFileName = "clipping_page.html";
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
if (app)
app->onHelpContextModule(myVisuGUI ? app->moduleName(myVisuGUI->moduleName()) : QString(""), aHelpFileName);
else {
- QString platform;
+ QString platform;
#ifdef WIN32
- platform = "winapplication";
+ platform = "winapplication";
#else
- platform = "application";
+ platform = "application";
#endif
SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
// 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
//
//
//
*/
void VisuGUI_CursorDlg::onHelp()
{
- QString aHelpFileName = "/files/changing_visualization_parameters_of_the_presenetation.htm#Width";
+ QString aHelpFileName = "viewing_3d_presentations_intro_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;
+ QString platform;
#ifdef WIN32
- platform = "winapplication";
+ platform = "winapplication";
#else
- platform = "application";
+ platform = "application";
#endif
SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
hasInit = true;
myCutLines = VISU::TSameAsFactory<VISU::TCUTLINES>().Create(myPrsCopy, VISU::ColoredPrs3d_i::EDoNotPublish);
myCutLines->CopyCurvesInverted(myPrsCopy->GetCurvesInverted());
- if (myCutLines->IsAllCurvesInverted())
+ if (myCutLines->IsAllCurvesInverted())
myAllCurvesInvertedCheck->setChecked(true);
myBasePlanePos->setText( QString::number(myCutLines->GetBasePlanePosition()) );
myCBSetDef->setChecked(myPrsCopy->IsDefault());
{
if(!myInputPane->check() || !GetScalarPane()->check())
return 0;
-
+
int anIsOk = myInputPane->storeToPrsObject( myPrsCopy );
anIsOk &= GetScalarPane()->storeToPrsObject( myPrsCopy );
vtkDataSetMapper* aPlaneMapper = vtkDataSetMapper::New();
aPlaneMapper->SetInput(aPolyData->GetOutput());
aPlaneMapper->ScalarVisibilityOff();
-
+
myPreviewActorGlyphs = SALOME_Actor::New();
myPreviewActorGlyphs->PickableOff();
updateGlyphs(false);
-
+
myPreviewActor = SALOME_Actor::New();
myPreviewActor->PickableOff();
myPreviewActor->SetMapper(aPlaneMapper);
if (myPreviewActor == 0) return;
vtkRenderer* aRend = myPreviewActor->GetRenderer();
vtkRenderer* aRendGlyphs = myPreviewActorGlyphs->GetRenderer();
-
+
vtkRenderWindow* aWnd1 = aRend->GetRenderWindow();
vtkRenderWindow* aWnd2 = aRendGlyphs->GetRenderWindow();
if(aRend && aWnd1)
aPlaneMapper->GetBounds(bounds);
for(int i=0; i<3; i++) aBoundCenter[i] = (bounds[i*2] + bounds[i*2+1])/2.0;
- for(int i=0; i<3; i++){
+ for(int i=0; i<3; i++){
if (!myAllCurvesInvertedCheck->isChecked())
aSecondPnt[i] = aDirLn[i];
else
aSecondPnt[i] = - aDirLn[i];
}
-
+
vtkFloatingPointType max_bound = 0;
max_bound < bounds[1]-bounds[0] ? max_bound = bounds[1] - bounds[0] : max_bound = max_bound;
max_bound < bounds[3]-bounds[2] ? max_bound = bounds[3] - bounds[2] : max_bound = max_bound;
QString VisuGUI_CutLinesDlg::GetContextHelpFilePath()
{
- return "/files/cut_lines_presentation.htm";
+ return "cut_lines_page.html";
}
// 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
//
//
//
VisuGUI_CutPlanesPane::VisuGUI_CutPlanesPane (QWidget* theParent)
: QFrame(theParent), myPreviewActor(0)
{
- QGridLayout* TopLayout = new QGridLayout( this );
- TopLayout->setSpacing( 6 );
- TopLayout->setMargin( 10 );
+ QGridLayout* TopLayout = new QGridLayout(this);
+ TopLayout->setSpacing(6);
+ TopLayout->setMargin(10);
QButtonGroup* SelPlane = new QButtonGroup (tr("TXT_ORIENTATION"), this, "SelPlane");
//SelPlane->setTitle(tr("TXT_ORIENTATION"));
QCheckTableItem* aItem = (QCheckTableItem*)myPosTable->item( i, 1 );
if (aItem == 0) break;
if (!aItem->isChecked())
- myCutPlanes->SetPlanePosition(i, myPosTable->text(i, 0).toDouble());
+ myCutPlanes->SetPlanePosition(i, myPosTable->text(i, 0).toDouble());
}
if (aNbPlanes > aNbRows)
VisuGUI_ScalarBarBaseDlg::accept();
}
-void VisuGUI_CutPlanesDlg::reject()
+void VisuGUI_CutPlanesDlg::reject()
{
VisuGUI_ScalarBarBaseDlg::reject();
}
QString VisuGUI_CutPlanesDlg::GetContextHelpFilePath()
{
- return "/files/cut_lines_resentation.htm";
+ return "cut_planes_page.html";
}
//###################################################################
// 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
//
//
//
VisuGUI_DeformedShapeDlg::~VisuGUI_DeformedShapeDlg()
{}
-void VisuGUI_DeformedShapeDlg::initFromPrsObject ( VISU::ColoredPrs3d_i* thePrs,
- bool theInit )
+void VisuGUI_DeformedShapeDlg::initFromPrsObject (VISU::ColoredPrs3d_i* thePrs,
+ bool theInit)
{
if( theInit )
myPrsCopy = VISU::TSameAsFactory<VISU::TDEFORMEDSHAPE>().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish);
setFactor(myPrsCopy->GetScale());
UseMagn->setChecked(myPrsCopy->IsColored());
- if( !theInit )
+ if (!theInit)
return;
- myInputPane->initFromPrsObject( myPrsCopy );
- myTabBox->setCurrentPage( 0 );
+ myInputPane->initFromPrsObject(myPrsCopy);
+ myTabBox->setCurrentPage(0);
}
-int VisuGUI_DeformedShapeDlg::storeToPrsObject(VISU::ColoredPrs3d_i* thePrs)
+int VisuGUI_DeformedShapeDlg::storeToPrsObject(VISU::ColoredPrs3d_i* thePrs)
{
if(!myInputPane->check() || !GetScalarPane()->check())
return 0;
return anIsOk;
}
-void VisuGUI_DeformedShapeDlg::accept()
+void VisuGUI_DeformedShapeDlg::accept()
{
VisuGUI_ScalarBarBaseDlg::accept();
}
QString VisuGUI_DeformedShapeDlg::GetContextHelpFilePath()
{
- return "/files/deformed_shape_presentation.htm";
+ return "deformed_shape_page.html";
}
// 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
//
// File : VisuGUI_EditContainerDlg.cxx
// Author : VSV
void VisuGUI_EditContainerDlg::onHelp()
{
- QString aHelpFileName = "/files/creating_xy_plot.htm";
+ QString aHelpFileName = "creating_xy_plot_page.html";
SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
if (app)
app->onHelpContextModule(myVisuGUI ? app->moduleName(myVisuGUI->moduleName()) : QString(""), aHelpFileName);
else {
- QString platform;
+ QString platform;
#ifdef WIN32
- platform = "winapplication";
+ platform = "winapplication";
#else
- platform = "application";
+ platform = "application";
#endif
SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
QString VisuGUI_GaussPointsDlg::GetContextHelpFilePath()
{
- return "types_of_gauss_points_presentations.htm";
+ return "types_of_gauss_points_presentations_page.html";
}
tr("MSG_MINMAX_VALUES"),
tr("BUT_OK"));
return false;
- }
+ }
return true;
}
{
if(!myInputPane->check() || !GetScalarPane()->check())
return 0;
-
+
int anIsOk = myInputPane->storeToPrsObject( myPrsCopy );
anIsOk &= GetScalarPane()->storeToPrsObject( myPrsCopy );
anIsOk &= myIsoPane->storeToPrsObject( myPrsCopy );
QString VisuGUI_IsoSurfacesDlg::GetContextHelpFilePath()
{
- return "/files/iso_surfaces_presentation.htm";
+ return "iso_surfaces_page.html";
}
Constructor
*/
VisuGUI_NameDlg::VisuGUI_NameDlg( QWidget* parent )
- : QDialog( parent ? parent : SUIT_Session::session()->activeApplication()->desktop(),
- "VisuGUI_NameDlg",
- true,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu )
+ : QDialog(parent ? parent : SUIT_Session::session()->activeApplication()->desktop(),
+ "VisuGUI_NameDlg",
+ true,
+ WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
setCaption( tr("TLT_RENAME") );
setSizeGripEnabled( TRUE );
-
+
QVBoxLayout* topLayout = new QVBoxLayout( this );
topLayout->setMargin( 11 ); topLayout->setSpacing( 6 );
QHBoxLayout* GroupC1Layout = new QHBoxLayout( GroupC1->layout() );
GroupC1Layout->setAlignment( Qt::AlignTop );
GroupC1Layout->setMargin( 11 ); GroupC1Layout->setSpacing( 6 );
-
+
QLabel* TextLabel = new QLabel( GroupC1, "TextLabel1" );
TextLabel->setText( tr( "NAME_LBL" ) );
GroupC1Layout->addWidget( TextLabel );
-
+
myLineEdit = new QLineEdit( GroupC1, "LineEdit1" );
myLineEdit->setMinimumSize( 250, 0 );
GroupC1Layout->addWidget( myLineEdit );
-
+
/***************************************************************/
QGroupBox* GroupButtons = new QGroupBox( this, "GroupButtons" );
GroupButtons->setColumnLayout(0, Qt::Vertical );
- GroupButtons->layout()->setMargin( 0 ); GroupButtons->layout()->setSpacing( 0 );
+ GroupButtons->layout()->setMargin( 0 ); GroupButtons->layout()->setSpacing( 0 );
QHBoxLayout* GroupButtonsLayout = new QHBoxLayout( GroupButtons->layout() );
GroupButtonsLayout->setAlignment( Qt::AlignTop );
GroupButtonsLayout->setMargin( 11 ); GroupButtonsLayout->setSpacing( 6 );
-
+
myButtonOk = new QPushButton( GroupButtons, "buttonOk" );
myButtonOk->setText( tr( "BUT_OK" ) );
myButtonOk->setAutoDefault( TRUE ); myButtonOk->setDefault( TRUE );
void VisuGUI_NameDlg::onHelp()
{
- QString aHelpFileName = "/files/renaming_presentations.htm";
+ QString aHelpFileName = "viewing_3d_presentations_intro_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;
+ QString platform;
#ifdef WIN32
- platform = "winapplication";
+ platform = "winapplication";
#else
- platform = "application";
+ platform = "application";
#endif
SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
- QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
arg(app->resourceMgr()->stringValue("ExternalBrowser", platform)).arg(aHelpFileName),
QObject::tr("BUT_OK"));
}
VisuGUI_NameDlg* dlg = new VisuGUI_NameDlg( parent );
if ( !oldName.isNull() )
dlg->setName( oldName );
- if ( dlg->exec() == QDialog::Accepted )
+ if ( dlg->exec() == QDialog::Accepted )
n = dlg->name();
delete dlg;
return n;
bool VisuGUI_Plot3DPane::check()
{
if(!myPreviewActor) return true;
-
+
vtkRenderer* aRend = myPreviewActor->GetRenderer();
vtkRenderWindow* aWnd = aRend->GetRenderWindow();
if(aRend && aWnd){
myPreviewActor->Delete();
myPreviewActor = 0;
}
-
+
return true;
}
//function : initFromPrsObject
//purpose :
//=======================================================================
-void VisuGUI_Plot3DDlg::initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
- bool theInit )
+void VisuGUI_Plot3DDlg::initFromPrsObject (VISU::ColoredPrs3d_i* thePrs,
+ bool theInit)
{
if( theInit )
myPrsCopy = VISU::TSameAsFactory<VISU::TPLOT3D>().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish);
//purpose :
//=======================================================================
int VisuGUI_Plot3DDlg::storeToPrsObject (VISU::ColoredPrs3d_i* thePrs)
-{
+{
if(!myInputPane->check() || !GetScalarPane()->check())
return 0;
-
+
int anIsOk = myInputPane->storeToPrsObject( myPrsCopy );
anIsOk &= GetScalarPane()->storeToPrsObject( myPrsCopy );
anIsOk &= myIsoPane->storeToPrsObject( myPrsCopy );
//=======================================================================
QString VisuGUI_Plot3DDlg::GetContextHelpFilePath()
{
- return "plot_3d_presentation.htm";
+ return "plot_3d_page.html";
}
//=======================================================================
//----------------------------------------------------------------------------
void VisuGUI_TextPrefDlg::onHelp()
{
- QString aHelpFileName = "/files/scalar_map_presentation.htm";
+ QString aHelpFileName = "scalar_map_page.html";
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
if (app) {
VisuGUI* aVisuGUI = dynamic_cast<VisuGUI*>( app->activeModule() );
Constructor
*/
VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane (QWidget * parent):
- QVBox(parent),
+ QVBox(parent),
myPreviewActor(0),
myScalarMap(NULL),
myScalarMapPL(NULL)
myVerY = aResourceMgr->doubleValue("VISU", propertyName + "y", 0.);
myVerW = aResourceMgr->doubleValue("VISU", propertyName + "width", 0.);
myVerH = aResourceMgr->doubleValue("VISU", propertyName + "height",0.);
-
+
propertyName = QString("scalar_bar_horizontal_");
myHorX = aResourceMgr->doubleValue("VISU", propertyName + "x", 0.);
myHorY = aResourceMgr->doubleValue("VISU", propertyName + "y", 0.);
myHorW = aResourceMgr->doubleValue("VISU", propertyName + "width", 0.);
myHorH = aResourceMgr->doubleValue("VISU", propertyName + "height",0.);
-
+
setSpacing(6);
//setMargin(11);
CheckGroup->layout()->setSpacing( 0 );
CheckGroup->layout()->setMargin( 0 );
QGridLayout* CheckGroupLayout = new QGridLayout( CheckGroup->layout() );
-
+
myPreviewCheck = new QCheckBox(tr("LBL_SHOW_PREVIEW"), CheckGroup);
myPreviewCheck->setChecked(false);
CheckGroupLayout->addWidget(myPreviewCheck , 0, 0 );
*/
QString VisuGUI_ScalarBarDlg::GetContextHelpFilePath()
{
- return "/files/scalar_map_presentation.htm";
+ return "scalar_map_page.html";
}
/*!
myPrsCopy = VISU::TSameAsFactory<VISU::TSCALARMAP>().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish);
VisuGUI_ScalarBarBaseDlg::initFromPrsObject(myPrsCopy, theInit);
-
+
if( !theInit )
return;
- myInputPane->initFromPrsObject( myPrsCopy );
+ myInputPane->initFromPrsObject(myPrsCopy);
myTabBox->setCurrentPage( 0 );
}
*/
int VisuGUI_ScalarBarDlg::storeToPrsObject(VISU::ColoredPrs3d_i* thePrs)
{
- if(!myInputPane->check() || !GetScalarPane()->check())
+ if (!myInputPane->check() || !GetScalarPane()->check())
return 0;
-
+
int anIsOk = myInputPane->storeToPrsObject( myPrsCopy );
anIsOk &= GetScalarPane()->storeToPrsObject( myPrsCopy );
-
+
VISU::TSameAsFactory<VISU::TSCALARMAP>().Copy(myPrsCopy, thePrs);
-
+
return anIsOk;
}
myPrsCopy = VISU::TSameAsFactory<VISU::TSCALARMAPONDEFORMEDSHAPE>().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish);
setFactor(myPrsCopy->GetScale());
myTimeStampsCombo->setDisabled(myIsAnimation);
-
+
CORBA::String_var aFieldName(myPrsCopy->GetScalarFieldName());
QString aIteration = GetFloatValueOfTimeStamp(myPrsCopy->GetScalarEntity(),
aFieldName.in(),
if (aType == VISU::TTIMESTAMP) {
QString aMeshName = aRestoringMap["myMeshName"];
CORBA::String_var aName = myPrsCopy->GetMeshName();
- if (aMeshName != aName.in())
+ if (aMeshName != aName.in())
continue;
QString aFieldName = aRestoringMap["myFieldName"];
QString aTimeIter = aRestoringMap["myTimeStampId"];
QString VisuGUI_ScalarMapOnDeformedShapeDlg::GetContextHelpFilePath()
{
- return "scalar_map_on_deformed_shape_presentation.htm";
+ return "scalar_map_on_deformed_shape_page.html";
}
void VisuGUI_ScalarMapOnDeformedShapeDlg::AddAllFieldNames(){
static VisuGUI_SelectionDlg* mySelectionDlg = NULL;
VisuGUI_SelectionDlg::VisuGUI_SelectionDlg (const SalomeApp_Module* theModule):
- QDialog(VISU::GetDesktop(theModule),
- 0,
- false,
+ QDialog(VISU::GetDesktop(theModule),
+ 0,
+ false,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose),
mySelectionMgr(NULL),
myModule(theModule)
void VisuGUI_SelectionDlg::onSelectionEvent() {
SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>(myModule);
- if (!aViewWindow)
+ if (!aViewWindow)
return;
switch (aViewWindow->SelectionMode()) {
return;
}
- if (myFl)
+ if (myFl)
return;
myFl = true;
void VisuGUI_SelectionDlg::onHelp()
{
- QString aHelpFileName = "/files/getting_elements_attributes.htm";
+ QString aHelpFileName = "selection_info_page.html";
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
if (app)
app->onHelpContextModule(myModule ? app->moduleName(myModule->moduleName()) : QString(""), aHelpFileName);
else {
- QString platform;
+ QString platform;
#ifdef WIN32
- platform = "winapplication";
+ platform = "winapplication";
#else
- platform = "application";
+ platform = "application";
#endif
SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
// 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
//
// File : VisuGUI_SetupPlot2dDlg.cxx
// Author : Vadim SANDLER
using namespace std;
-#define DLG_SIZE_WIDTH 500
+#define DLG_SIZE_WIDTH 500
#define DLG_SIZE_HEIGHT 400
#define MAX_LINE_WIDTH 100
#define MARGIN_SIZE 11
Constructor
*/
VisuGUI_SetupPlot2dDlg::VisuGUI_SetupPlot2dDlg( _PTR(SObject) object, QWidget* parent )
- : QDialog( parent,
- "VisuGUI_SetupPlot2dDlg",
- true,
+ : QDialog( parent,
+ "VisuGUI_SetupPlot2dDlg",
+ true,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu )
{
setCaption( tr("TLT_SETUP_PLOT2D") );
setSizeGripEnabled( TRUE );
- QGridLayout* topLayout = new QGridLayout( this );
+ QGridLayout* topLayout = new QGridLayout( this );
topLayout->setSpacing( SPACING_SIZE );
topLayout->setMargin( MARGIN_SIZE );
frame->setFrameStyle( QFrame::Plain | QFrame::NoFrame );
QGridLayout* frameLayout = new QGridLayout( frame, 1, 12 );
frameLayout->setMargin( MARGIN_SIZE ); frameLayout->setSpacing( SPACING_SIZE );
-
+
QFrame* lin;
QLabel* labAxis = new QLabel( tr( "AXIS_LBL" ), frame );
_PTR(GenericAttribute) anAttr;
_PTR(AttributeTableOfInteger) tblIntAttr;
_PTR(AttributeTableOfReal) tblRealAttr;
-
+
/* Try table of integer */
if ( myObject->FindAttribute( anAttr, "AttributeTableOfInteger" ) ) {
tblIntAttr = anAttr;
if ( tblIntAttr ) {
try {
- int nbRows = tblIntAttr->GetNbRows() ;
+ int nbRows = tblIntAttr->GetNbRows() ;
vector<string> rowTitles = tblIntAttr->GetRowTitles();
vector<string> rowUnits = tblIntAttr->GetRowUnits();
QStringList rows;
tblRealAttr = anAttr;
if ( tblRealAttr ) {
try {
- int nbRows = tblRealAttr->GetNbRows() ;
+ int nbRows = tblRealAttr->GetNbRows();
vector<string> rowTitles = tblRealAttr->GetRowTitles();
vector<string> rowUnits = tblRealAttr->GetRowUnits();
QStringList rows;
myView->addChild( frame, 0, 0 );
myView->setResizePolicy( QScrollView::AutoOneFit );
-
+
myView->setMinimumWidth( frame->sizeHint().width() + MARGIN_SIZE * 2 );
/* OK/Cancel/Help buttons */
verIndexes.append( i );
zIndices.append( myItems.at( i )->assigned() );
}
-
+
}
}
/*!
Gets curve attributes
*/
-bool VisuGUI_SetupPlot2dDlg::getCurveAttributes( const int vIndex,
- bool& isAuto,
- int& marker,
- int& line,
- int& lineWidth,
- QColor& color)
+bool VisuGUI_SetupPlot2dDlg::getCurveAttributes (const int vIndex,
+ bool& isAuto,
+ int& marker,
+ int& line,
+ int& lineWidth,
+ QColor& color)
{
if ( vIndex >= 0 && vIndex < myItems.count() ) {
isAuto = myItems.at( vIndex )->isAutoAssign();
_PTR(GenericAttribute) anAttr;
_PTR(AttributeTableOfInteger) tblIntAttr;
_PTR(AttributeTableOfReal) tblRealAttr;
-
+
/* clearing container contents */
container.clear();
getCurvesSource( horIndex, verIndex, zIndices );
if ( horIndex < 0 || verIndex.isEmpty() ) /* no curves can be created */
return;
-
+
/* Try table of integer */
if ( myObject->FindAttribute( anAttr, "AttributeTableOfInteger" ) ) {
tblIntAttr = anAttr;
if ( tblIntAttr ) {
try {
- int nbCols = tblIntAttr->GetNbColumns() ;
+ int nbCols = tblIntAttr->GetNbColumns();
vector<string> rowTitles = tblIntAttr->GetRowTitles();
vector<string> rowUnits = tblIntAttr->GetRowUnits();
tblRealAttr = anAttr;
if ( tblRealAttr ) {
try {
- int nbCols = tblRealAttr->GetNbColumns() ;
+ int nbCols = tblRealAttr->GetNbColumns();
vector<string> rowTitles = tblRealAttr->GetRowTitles();
vector<string> rowUnits = tblRealAttr->GetRowUnits();
}
}
}
- if ( totalOn == 0 && !itemList.isEmpty() &&
- SUIT_MessageBox::info2( this,
- this->caption(),
+ if ( totalOn == 0 && !itemList.isEmpty() &&
+ SUIT_MessageBox::info2( this,
+ this->caption(),
tr( "QUE_WANT_SAME_UNITS" ),
- tr( "BUT_YES" ),
- tr( "BUT_NO" ),
+ tr( "BUT_YES" ),
+ tr( "BUT_NO" ),
0, 1, 1 ) == 0 ) {
for ( i = 0; i < itemList.count(); i++ ) {
itemList.at( i )->blockSignals( true );
*/
void VisuGUI_SetupPlot2dDlg::onHelp()
{
- QString aHelpFileName = "/files/creating_curves.htm";
+ QString aHelpFileName = "plot2d_viewer_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;
+ QString platform;
#ifdef WIN32
- platform = "winapplication";
+ platform = "winapplication";
#else
- platform = "application";
+ platform = "application";
#endif
SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
}
}
/*!
- Enables/disables buttons
+ Enables/disables buttons
*/
void VisuGUI_SetupPlot2dDlg::enableControls()
{
Constructor
*/
VisuGUI_ItemContainer::VisuGUI_ItemContainer( QObject* parent, const char* name )
- : QObject( parent, name ),
+ : QObject( parent, name ),
myEnabled( true )
{
}
myVBtn->setText( tr( "V" ) );
myVBtn->setToggleButton( true );
myVBtn->setOn( false );
-
+
myTitleLab = new QLabel( parentWidget );
myUnitLab = new QLabel( parentWidget );
myUnitLab->setAlignment( AlignCenter);
-
+
myAutoCheck = new QCheckBox( tr( "AUTO_CHECK_LBL" ), parentWidget );
myAutoCheck->setChecked( true );
for( ; anIt!=aLast; anIt++ )
myAssigned->insertItem( *anIt );
myAssigned->setEnabled( false );
-
+
connect( myAutoCheck, SIGNAL( clicked() ), this, SLOT( onAutoChanged() ) );
connect( myColorBtn, SIGNAL( clicked() ), this, SLOT( onColorChanged() ) );
connect( myHBtn, SIGNAL( toggled( bool ) ), this, SLOT( onHVToggled( bool ) ) );
void VisuGUI_ItemContainer::updateState()
{
myAutoCheck->setEnabled( myEnabled );
- myLineCombo->setEnabled( myEnabled && !myAutoCheck->isChecked() );
- myLineSpin->setEnabled( myEnabled && !myAutoCheck->isChecked() );
- myMarkerCombo->setEnabled( myEnabled && !myAutoCheck->isChecked() );
- myColorBtn->setEnabled( myEnabled && !myAutoCheck->isChecked() );
+ myLineCombo->setEnabled( myEnabled && !myAutoCheck->isChecked() );
+ myLineSpin->setEnabled( myEnabled && !myAutoCheck->isChecked() );
+ myMarkerCombo->setEnabled( myEnabled && !myAutoCheck->isChecked() );
+ myColorBtn->setEnabled( myEnabled && !myAutoCheck->isChecked() );
}
/*!
Slot, called when user clickes <Auto assign> check box
*/
int VisuGUI_ItemContainer::assigned() const
{
- if( isVerticalOn() )
+ if ( isVerticalOn() )
return myAssigned->currentItem()-1;
else
return -1;
// 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
//
// File : VisuGUI_StreamLinesDlg.cxx
// Author : Vitaly SMETANNIKOV
{
if(!myInputPane->check() || !GetScalarPane()->check())
return 0;
-
+
int anIsOk = myInputPane->storeToPrsObject( myPrsCopy );
anIsOk &= GetScalarPane()->storeToPrsObject( myPrsCopy );
return VISU::Mesh::_nil();
}
-void VisuGUI_StreamLinesDlg::accept()
+void VisuGUI_StreamLinesDlg::accept()
{
VisuGUI_ScalarBarBaseDlg::accept();
}
QString VisuGUI_StreamLinesDlg::GetContextHelpFilePath()
{
- return "/files/stream_lines_presentation.htm";
+ return "stream_lines_page.html";
}
//------------------------------------------------------------------------
void VisuGUI_TimeAnimationDlg::onHelp()
{
- QString aHelpFileName = "/files/animating_presentations.htm";
+ QString aHelpFileName = "animating_page.html";
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
if (app)
app->onHelpContextModule(myModule ? app->moduleName(myModule->moduleName()) : QString(""), aHelpFileName);
// 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
//
//
//
// purpose :
//
//=================================================================================
-VisuGUI_TransparencyDlg::VisuGUI_TransparencyDlg( VisuGUI* theModule,
- const char* name,
- bool modal,
- WFlags fl)
- : QDialog( VISU::GetDesktop( theModule ), name, modal, WStyle_Customize | WStyle_NormalBorder |
- WStyle_Title | WStyle_SysMenu | WDestructiveClose ),
- myModule(theModule),
- mySelectionMgr( VISU::GetSelectionMgr( theModule ) ),
- myViewWindow( VISU::GetActiveViewWindow<SVTK_ViewWindow>(theModule) )
+VisuGUI_TransparencyDlg::VisuGUI_TransparencyDlg (VisuGUI* theModule,
+ const char* name,
+ bool modal,
+ WFlags fl)
+ : QDialog(VISU::GetDesktop(theModule), name, modal, WStyle_Customize | WStyle_NormalBorder |
+ WStyle_Title | WStyle_SysMenu | WDestructiveClose),
+ myModule(theModule),
+ mySelectionMgr(VISU::GetSelectionMgr(theModule)),
+ myViewWindow(VISU::GetActiveViewWindow<SVTK_ViewWindow>(theModule))
{
if (!name)
setName("VisuGUI_TransparencyDlg");
//=======================================================================
void VisuGUI_TransparencyDlg::ClickOnHelp()
{
- QString aHelpFileName = "/files/changing_visualization_parameters_of_the_presenetation.htm#Changing3";
+ QString aHelpFileName = "viewing_3d_presentations_intro_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;
+ QString platform;
#ifdef WIN32
- platform = "winapplication";
+ platform = "winapplication";
#else
- platform = "application";
+ platform = "application";
#endif
SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
Handle(SALOME_InteractiveObject) anIO = anIter.Value();
VISU_Actor* anActor = VISU::FindActor(VISU::GetAppStudy(myModule), myViewWindow, anIO->getEntry());
if (anActor)
- anActor->SetOpacity(opacity);
+ anActor->SetOpacity(opacity);
}
myViewWindow->Repaint();
}
// 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
//
//
//
setCaption(tr("DLG_TITLE"));
setSizeGripEnabled(TRUE);
- QVBoxLayout* TopLayout = new QVBoxLayout( this );
+ QVBoxLayout* TopLayout = new QVBoxLayout( this );
TopLayout->setSpacing( 6 );
TopLayout->setMargin( 11 );
// top layout
myTabBox->addTab(aBox, "Vectors");
myInputPane = new VisuGUI_InputPane(VISU::TVECTORS, theModule, this);
- myTabBox->addTab(GetScalarPane(), "Scalar Bar");
+ myTabBox->addTab(GetScalarPane(), "Scalar Bar");
myTabBox->addTab(myInputPane, "Input");
TopLayout->addWidget( myTabBox );
void VisuGUI_VectorsDlg::initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
bool theInit )
{
- if( theInit )
+ if ( theInit )
myPrsCopy = VISU::TSameAsFactory<VISU::TVECTORS>().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish);
VisuGUI_ScalarBarBaseDlg::initFromPrsObject(myPrsCopy, theInit);
setUseGlyphs(true);
setGlyphType(myPrsCopy->GetGlyphType());
setGlyphPos(myPrsCopy->GetGlyphPos());
- } else
+ } else
setUseGlyphs(false);
enableSetColor();
if (getUseGlyphs()) {
myPrsCopy->SetGlyphPos(getGlyphPos());
myPrsCopy->SetGlyphType(getGlyphType());
- } else
+ } else
myPrsCopy->SetGlyphType(VISU::Vectors::NONE);
VISU::TSameAsFactory<VISU::TVECTORS>().Copy(myPrsCopy, thePrs);
/*!
Gets Line width
*/
-int VisuGUI_VectorsDlg::getLineWidth()
+int VisuGUI_VectorsDlg::getLineWidth()
{
return LinWid->value();
}
/*!
Sets "Use Glyphs" flag
*/
-void VisuGUI_VectorsDlg::setUseGlyphs( bool on )
+void VisuGUI_VectorsDlg::setUseGlyphs( bool on )
{
UseGlyph->setChecked( on );
enableGlyphType();
*/
void VisuGUI_VectorsDlg::setGlyphType(VISU::Vectors::GlyphType type )
{
- if ( type == VISU::Vectors::CONE2)
+ if ( type == VISU::Vectors::CONE2)
RBCones2->setChecked( true );
else if ( type == VISU::Vectors::CONE6)
RBCones6->setChecked( true );
*/
void VisuGUI_VectorsDlg::setGlyphPos(VISU::Vectors::GlyphPos pos)
{
- if ( pos == VISU::Vectors::TAIL)
+ if ( pos == VISU::Vectors::TAIL)
RBTail->setChecked(true);
else if ( pos == VISU::Vectors::HEAD)
RBHead->setChecked(true);
QString VisuGUI_VectorsDlg::GetContextHelpFilePath()
{
- return "/files/vectors_presentation.htm";
+ return "vectors_page.html";
}