mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-07 00:03:52 -05:00
Connect every layer properties tabs to their respective documentation
when the section is available and fix some links
This commit is contained in:
parent
7125779e1f
commit
83a9715e1a
@ -1246,7 +1246,8 @@ mOptsPage_Information, mOptsPage_Source, mOptsPage_Style, mOptsPage_StyleContent
|
||||
mOptsPage_Rendering, mOptsPage_Temporal, mOptsPage_Metadata
|
||||
|
||||
Point Cloud Layer:
|
||||
mOptsPage_Information, mOptsPage_Source, mOptsPage_Metadata, mOptsPage_Statistics
|
||||
mOptsPage_Information, mOptsPage_Source, mOptsPage_Metadata, mOptsPage_Statistics,
|
||||
mOptsPage_Rendering
|
||||
|
||||
Vector Tile Layer:
|
||||
mOptsPage_Information, mOptsPage_Style, mOptsPage_Labeling, mOptsPage_Metadata
|
||||
|
||||
@ -28,6 +28,7 @@ QgsMeshLayer3DRendererWidget::QgsMeshLayer3DRendererWidget( QgsMeshLayer *layer,
|
||||
: QgsMapLayerConfigWidget( layer, canvas, parent )
|
||||
{
|
||||
setPanelTitle( tr( "3D View" ) );
|
||||
setObjectName( QStringLiteral( "mOptsPage_3DView" ) );
|
||||
|
||||
QgsVScrollArea *scrollArea = new QgsVScrollArea( this );
|
||||
scrollArea->setFrameShape( QFrame::NoFrame );
|
||||
@ -52,6 +53,8 @@ QgsMeshLayer3DRendererWidget::QgsMeshLayer3DRendererWidget( QgsMeshLayer *layer,
|
||||
|
||||
connect( mChkEnabled, &QCheckBox::clicked, this, &QgsMeshLayer3DRendererWidget::onEnabledClicked );
|
||||
connect( mWidgetMesh, &QgsMesh3dSymbolWidget::changed, this, &QgsMeshLayer3DRendererWidget::widgetChanged );
|
||||
|
||||
setProperty( "helpPage", QStringLiteral( "working_with_mesh/mesh_properties.html#d-view-properties" ) );
|
||||
}
|
||||
|
||||
void QgsMeshLayer3DRendererWidget::setRenderer( const QgsMeshLayer3DRenderer *renderer )
|
||||
|
||||
@ -28,6 +28,7 @@ QgsPointCloudLayer3DRendererWidget::QgsPointCloudLayer3DRendererWidget( QgsPoint
|
||||
: QgsMapLayerConfigWidget( layer, canvas, parent )
|
||||
{
|
||||
setPanelTitle( tr( "3D View" ) );
|
||||
setObjectName( QStringLiteral( "mOptsPage_3DView" ) );
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout( this );
|
||||
layout->setContentsMargins( 0, 0, 0, 0 );
|
||||
@ -38,6 +39,7 @@ QgsPointCloudLayer3DRendererWidget::QgsPointCloudLayer3DRendererWidget( QgsPoint
|
||||
mWidgetPointCloudSymbol->connectChildPanels( this );
|
||||
|
||||
connect( mWidgetPointCloudSymbol, &QgsPointCloud3DSymbolWidget::changed, this, &QgsPointCloudLayer3DRendererWidget::widgetChanged );
|
||||
setProperty( "helpPage", QStringLiteral( "working_with_point_clouds/point_clouds.html#d-view-properties" ) );
|
||||
}
|
||||
|
||||
void QgsPointCloudLayer3DRendererWidget::setRenderer( const QgsPointCloudLayer3DRenderer *renderer )
|
||||
|
||||
@ -84,6 +84,7 @@ QgsVectorLayer3DRendererWidget::QgsVectorLayer3DRendererWidget( QgsMapLayer *lay
|
||||
: QgsMapLayerConfigWidget( layer, canvas, parent )
|
||||
{
|
||||
setPanelTitle( tr( "3D View" ) );
|
||||
setObjectName( QStringLiteral( "mOptsPage_3DView" ) );
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout( this );
|
||||
layout->setContentsMargins( 0, 0, 0, 0 );
|
||||
@ -114,6 +115,8 @@ QgsVectorLayer3DRendererWidget::QgsVectorLayer3DRendererWidget( QgsMapLayer *lay
|
||||
connect( widgetRuleBasedRenderer, &QgsRuleBased3DRendererWidget::showPanel, this, &QgsPanelWidget::openPanel );
|
||||
connect( widgetBaseProperties, &QgsVectorLayer3DPropertiesWidget::changed, this, &QgsVectorLayer3DRendererWidget::widgetChanged );
|
||||
|
||||
setProperty( "helpPage", QStringLiteral( "working_with_vector/vector_properties.html#d-view-properties" ) );
|
||||
|
||||
syncToLayer( layer );
|
||||
}
|
||||
|
||||
|
||||
@ -55,6 +55,8 @@ QgsMeshElevationPropertiesWidget::QgsMeshElevationPropertiesWidget( QgsMeshLayer
|
||||
|
||||
onChanged();
|
||||
} );
|
||||
|
||||
setProperty( "helpPage", QStringLiteral( "working_with_mesh/mesh_properties.html#elevation-properties" ) );
|
||||
}
|
||||
|
||||
void QgsMeshElevationPropertiesWidget::syncToLayer( QgsMapLayer *layer )
|
||||
|
||||
@ -57,6 +57,8 @@ QgsPointCloudElevationPropertiesWidget::QgsPointCloudElevationPropertiesWidget(
|
||||
connect( mPointColorButton, &QgsColorButton::colorChanged, this, &QgsPointCloudElevationPropertiesWidget::onChanged );
|
||||
connect( mCheckBoxRespectLayerColors, &QCheckBox::toggled, this, &QgsPointCloudElevationPropertiesWidget::onChanged );
|
||||
connect( mOpacityByDistanceCheckBox, &QCheckBox::toggled, this, &QgsPointCloudElevationPropertiesWidget::onChanged );
|
||||
|
||||
setProperty( "helpPage", QStringLiteral( "working_with_point_clouds/point_clouds.html#elevation-properties" ) );
|
||||
}
|
||||
|
||||
void QgsPointCloudElevationPropertiesWidget::syncToLayer( QgsMapLayer *layer )
|
||||
|
||||
@ -110,6 +110,13 @@ QgsPointCloudLayerProperties::QgsPointCloudLayerProperties( QgsPointCloudLayer *
|
||||
mBtnMetadata->setMenu( menuMetadata );
|
||||
buttonBox->addButton( mBtnMetadata, QDialogButtonBox::ResetRole );
|
||||
|
||||
//Add help page references
|
||||
mOptsPage_Information->setProperty( "helpPage", QStringLiteral( "working_with_point_clouds/point_clouds.html#information-properties" ) );
|
||||
mOptsPage_Source->setProperty( "helpPage", QStringLiteral( "working_with_point_clouds/point_clouds.html#source-properties" ) );
|
||||
mOptsPage_Rendering->setProperty( "helpPage", QStringLiteral( "working_with_point_clouds/point_clouds.html#rendering-properties" ) );
|
||||
mOptsPage_Metadata->setProperty( "helpPage", QStringLiteral( "working_with_point_clouds/point_clouds.html#metadata-properties" ) );
|
||||
mOptsPage_Statistics->setProperty( "helpPage", QStringLiteral( "working_with_point_clouds/point_clouds.html#statistics-properties" ) );
|
||||
|
||||
mStatisticsTableView->setModel( new QgsPointCloudAttributeStatisticsModel( mLayer, mStatisticsTableView ) );
|
||||
mStatisticsTableView->verticalHeader()->hide();
|
||||
|
||||
@ -441,7 +448,7 @@ void QgsPointCloudLayerProperties::showHelp()
|
||||
}
|
||||
else
|
||||
{
|
||||
QgsHelp::openHelp( QStringLiteral( "working_with_vector_tiles/vector_tiles_properties.html" ) );
|
||||
QgsHelp::openHelp( QStringLiteral( "working_with_point_clouds/point_clouds.html" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -31,6 +31,7 @@ QgsVectorLayerDigitizingPropertiesPage::QgsVectorLayerDigitizingPropertiesPage(
|
||||
: QgsMapLayerConfigWidget( layer, canvas, parent )
|
||||
{
|
||||
setupUi( this );
|
||||
setObjectName( QStringLiteral( "mOptsPage_Digitizing" ) );
|
||||
|
||||
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( mLayer );
|
||||
|
||||
|
||||
@ -58,6 +58,8 @@ QgsRasterElevationPropertiesWidget::QgsRasterElevationPropertiesWidget( QgsRaste
|
||||
|
||||
onChanged();
|
||||
} );
|
||||
|
||||
setProperty( "helpPage", QStringLiteral( "working_with_raster/raster_properties.html#elevation-properties" ) );
|
||||
}
|
||||
|
||||
void QgsRasterElevationPropertiesWidget::syncToLayer( QgsMapLayer *layer )
|
||||
|
||||
@ -105,6 +105,8 @@ QgsVectorElevationPropertiesWidget::QgsVectorElevationPropertiesWidget( QgsVecto
|
||||
connect( mSurfaceLineStyleButton, &QgsSymbolButton::changed, this, &QgsVectorElevationPropertiesWidget::onChanged );
|
||||
connect( mSurfaceMarkerStyleButton, &QgsSymbolButton::changed, this, &QgsVectorElevationPropertiesWidget::onChanged );
|
||||
connect( mExtrusionGroupBox, &QGroupBox::toggled, this, &QgsVectorElevationPropertiesWidget::toggleSymbolWidgets );
|
||||
|
||||
setProperty( "helpPage", QStringLiteral( "working_with_vector/vector_properties.html#elevation-properties" ) );
|
||||
}
|
||||
|
||||
void QgsVectorElevationPropertiesWidget::syncToLayer( QgsMapLayer *layer )
|
||||
|
||||
@ -135,6 +135,8 @@ QgsMeshLayerProperties::QgsMeshLayerProperties( QgsMapLayer *lyr, QgsMapCanvas *
|
||||
mOptsPage_Source->setProperty( "helpPage", QStringLiteral( "working_with_mesh/mesh_properties.html#source-properties" ) );
|
||||
mOptsPage_Style->setProperty( "helpPage", QStringLiteral( "working_with_mesh/mesh_properties.html#symbology-properties" ) );
|
||||
mOptsPage_Rendering->setProperty( "helpPage", QStringLiteral( "working_with_mesh/mesh_properties.html#rendering-properties" ) );
|
||||
mOptsPage_Temporal->setProperty( "helpPage", QStringLiteral( "working_with_mesh/mesh_properties.html#temporal-properties" ) );
|
||||
mOptsPage_Metadata->setProperty( "helpPage", QStringLiteral( "working_with_mesh/mesh_properties.html#metadata-properties" ) );
|
||||
|
||||
mBtnStyle = new QPushButton( tr( "Style" ) );
|
||||
QMenu *menuStyle = new QMenu( this );
|
||||
@ -172,8 +174,6 @@ void QgsMeshLayerProperties::addPropertiesPageFactory( const QgsMapLayerConfigWi
|
||||
QgsMapLayerConfigWidget *page = factory->createWidget( mMeshLayer, mCanvas, false, this );
|
||||
mConfigWidgets << page;
|
||||
|
||||
page->setProperty( "helpPage", QStringLiteral( "working_with_mesh/mesh_properties.html#d-view-properties" ) );
|
||||
|
||||
const QString beforePage = factory->layerPropertiesPagePositionHint();
|
||||
if ( beforePage.isEmpty() )
|
||||
addPage( factory->title(), factory->title(), factory->icon(), page );
|
||||
|
||||
@ -1078,7 +1078,8 @@ class GUI_EXPORT QgisInterface : public QObject
|
||||
* mOptsPage_Rendering, mOptsPage_Temporal, mOptsPage_Metadata
|
||||
*
|
||||
* Point Cloud Layer:
|
||||
* mOptsPage_Information, mOptsPage_Source, mOptsPage_Metadata, mOptsPage_Statistics
|
||||
* mOptsPage_Information, mOptsPage_Source, mOptsPage_Metadata, mOptsPage_Statistics,
|
||||
* mOptsPage_Rendering
|
||||
*
|
||||
* Vector Tile Layer:
|
||||
* mOptsPage_Information, mOptsPage_Style, mOptsPage_Labeling, mOptsPage_Metadata
|
||||
|
||||
@ -525,6 +525,7 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer *lyr, QgsMapCanv
|
||||
mOptsPage_Histogram->setProperty( "helpPage", QStringLiteral( "working_with_raster/raster_properties.html#histogram-properties" ) );
|
||||
|
||||
mOptsPage_Rendering->setProperty( "helpPage", QStringLiteral( "working_with_raster/raster_properties.html#rendering-properties" ) );
|
||||
mOptsPage_Temporal->setProperty( "helpPage", QStringLiteral( "working_with_raster/raster_properties.html#temporal-properties" ) );
|
||||
|
||||
if ( mOptsPage_Pyramids )
|
||||
mOptsPage_Pyramids->setProperty( "helpPage", QStringLiteral( "working_with_raster/raster_properties.html#pyramids-properties" ) );
|
||||
|
||||
@ -454,6 +454,7 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
|
||||
mOptsPage_Actions->setProperty( "helpPage", QStringLiteral( "working_with_vector/vector_properties.html#actions-properties" ) );
|
||||
mOptsPage_Display->setProperty( "helpPage", QStringLiteral( "working_with_vector/vector_properties.html#display-properties" ) );
|
||||
mOptsPage_Rendering->setProperty( "helpPage", QStringLiteral( "working_with_vector/vector_properties.html#rendering-properties" ) );
|
||||
mOptsPage_Temporal->setProperty( "helpPage", QStringLiteral( "working_with_vector/vector_properties.html#temporal-properties" ) );
|
||||
mOptsPage_Variables->setProperty( "helpPage", QStringLiteral( "working_with_vector/vector_properties.html#variables-properties" ) );
|
||||
mOptsPage_Metadata->setProperty( "helpPage", QStringLiteral( "working_with_vector/vector_properties.html#metadata-properties" ) );
|
||||
mOptsPage_DataDependencies->setProperty( "helpPage", QStringLiteral( "working_with_vector/vector_properties.html#dependencies-properties" ) ) ;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user