Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mooiman committed Nov 25, 2024
2 parents 3fd24e8 + 01f8b1d commit ab9ea92
Show file tree
Hide file tree
Showing 13 changed files with 103 additions and 48 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ packages/Release/
packages/x64/
bin/x64/Release/qgis_umesh.lib
packages/qgis_umesh.vcxproj.user
*.bak
*.obj
packages/generated/moc_create_vector_layers.cpp
packages/generated/moc_handle_vector_layers.cpp
/_build
*.pdb
packages/generated/moc_qgis_sumesh.cpp
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ At this moment the development environment is based on Visual Studio 2017.

## Environment variables
Environment variables (example)
QT5DIR64=c:\Qt\Qt5.12.6\5.12.6\msvc2017_64\
QT5DIR64OSGEO=c:\OSGeo4W64\apps\Qt5
QT5DIR_OSGEO=c:\OSGeo4W64\apps\Qt5
BOOST_ROOT_DIR=c:\boost\boost_1_85_0\

## Link Libraries
netCDF library:
Expand Down
8 changes: 4 additions & 4 deletions dispatch_release_dll_to_qgis.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ copy .\doc\qgis_umesh_installation.pdf "c:\Program Files\Deltares\qgis_umesh\do
copy .\icons\*.* "c:\Program Files\Deltares\qgis_umesh\icons\*.*"

rem copy to Bulletin
copy "c:\OSGeo4W\apps\qgis\plugins\qgis_umesh.dll" n:\Deltabox\Bulletin\mooiman\programs\QGIS_3.38.03_qgis_umesh\*.*
copy .\doc\qgis_umesh_um.pdf n:\Deltabox\Bulletin\mooiman\programs\QGIS_3.38.03_qgis_umesh\doc\*.*
copy .\doc\qgis_umesh_installation.pdf n:\Deltabox\Bulletin\mooiman\programs\QGIS_3.38.03_qgis_umesh\doc\*.*
copy .\icons\*.* n:\Deltabox\Bulletin\mooiman\programs\QGIS_3.38.03_qgis_umesh\icons\*.*
copy "c:\OSGeo4W\apps\qgis\plugins\qgis_umesh.dll" n:\Deltabox\Bulletin\mooiman\programs\QGIS_3.40.01_qgis_umesh\*.*
copy .\doc\qgis_umesh_um.pdf n:\Deltabox\Bulletin\mooiman\programs\QGIS_3.40.01_qgis_umesh\doc\*.*
copy .\doc\qgis_umesh_installation.pdf n:\Deltabox\Bulletin\mooiman\programs\QGIS_3.40.01_qgis_umesh\doc\*.*
copy .\icons\*.* n:\Deltabox\Bulletin\mooiman\programs\QGIS_3.40.01_qgis_umesh\icons\*.*
rem pause
Binary file modified lib/x64/debug/qgis_analysis.lib
Binary file not shown.
Binary file modified lib/x64/debug/qgis_core.lib
Binary file not shown.
Binary file modified lib/x64/debug/qgis_gui.lib
Binary file not shown.
Binary file modified lib/x64/release/qgis_analysis.lib
Binary file not shown.
Binary file modified lib/x64/release/qgis_core.lib
Binary file not shown.
Binary file modified lib/x64/release/qgis_gui.lib
Binary file not shown.
Binary file added packages/Debug/vc142.pdb
Binary file not shown.
44 changes: 22 additions & 22 deletions packages/qgis_umesh.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
</ItemGroup>
<ItemGroup>
<CustomBuild Include="include\qgis_umesh.h">
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
</CustomBuild>
</ItemGroup>
Expand All @@ -51,12 +51,12 @@
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
</CustomBuild>
<CustomBuild Include="include\MyDrawingCanvas.h">
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
Expand All @@ -65,8 +65,8 @@
<ClInclude Include="include\AbstractCanvas.h" />
<ClInclude Include="include\AbstractCanvasListener.h" />
<CustomBuild Include="include\my_date_time_edit.h">
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
Expand All @@ -77,28 +77,28 @@
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
</CustomBuild>
<CustomBuild Include="include\map_property_window.h">
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
</CustomBuild>
<CustomBuild Include="include\add_current_view_window.h">
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
</CustomBuild>
<CustomBuild Include="include\handle_vector_layers.h">
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
Expand All @@ -113,8 +113,8 @@
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">generated\moc_%(Filename).cpp;%(Outputs)</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Performing Custom Build Step: MOC%27ing %(FullPath)</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR64OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(QT5DIR_OSGEO)\bin\moc.exe %(FullPath) -o generated\moc_%(Filename).cpp</Command>
</CustomBuild>
<ClInclude Include="include\perf_timer.h" />
<ClInclude Include="include\qgis_umesh_version.h" />
Expand All @@ -134,13 +134,13 @@
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down Expand Up @@ -182,7 +182,7 @@ call ..\scripts\git_insert_hash.cmd .\include qqis_umesh_version.rc</Command>
<ClCompile>
<Optimization>MaxSpeed</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<AdditionalIncludeDirectories>.\include;c:\OSGeo4W\include\;c:\OSGeo4W\apps\qgis\include;$(QT5DIR64OSGEO)\include;$(QT5DIR64OSGEO)\include\ActiveQt\;$(QT5DIR64OSGEO)\include\Qt\;$(QT5DIR64OSGEO)\include\QtCore\;$(QT5DIR64OSGEO)\include\QtGui\;$(QT5DIR64OSGEO)\include\QtSvg\;$(QT5DIR64OSGEO)\include\QtWidgets\;$(QT5DIR64OSGEO)\include\QtXml\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\include;c:\OSGeo4W\include\;c:\OSGeo4W\apps\qgis\include;$(QT5DIR_OSGEO)\include;$(QT5DIR_OSGEO)\include\ActiveQt\;$(QT5DIR_OSGEO)\include\Qt\;$(QT5DIR_OSGEO)\include\QtCore\;$(QT5DIR_OSGEO)\include\QtGui\;$(QT5DIR_OSGEO)\include\QtSvg\;$(QT5DIR_OSGEO)\include\QtWidgets\;$(QT5DIR_OSGEO)\include\QtXml\;$(BOOST_ROOT_DIR);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;QT_DLL;QT_THREAD_SUPPORT;CORE_EXPORT=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -230,7 +230,7 @@ call ..\scripts\git_insert_hash.cmd .\include qqis_umesh_version.rc</Command>
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>.\include;c:\OSGeo4W\include\google;c:\OSGeo4W\apps\qgis\include;$(QT5DIR64OSGEO)\include;$(QT5DIR64OSGEO)\include\ActiveQt\;$(QT5DIR64OSGEO)\include\Qt\;$(QT5DIR64OSGEO)\include\QtCore\;$(QT5DIR64OSGEO)\include\QtGui\;$(QT5DIR64OSGEO)\include\QtSvg\;$(QT5DIR64OSGEO)\include\QtWidgets\;$(QT5DIR64OSGEO)\include\QtXml\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\include;c:\OSGeo4W\include\;c:\OSGeo4W\apps\qgis\include;$(QT5DIR_OSGEO)\include;$(QT5DIR_OSGEO)\include\ActiveQt\;$(QT5DIR_OSGEO)\include\Qt\;$(QT5DIR_OSGEO)\include\QtCore\;$(QT5DIR_OSGEO)\include\QtGui\;$(QT5DIR_OSGEO)\include\QtSvg\;$(QT5DIR_OSGEO)\include\QtWidgets\;$(QT5DIR_OSGEO)\include\QtXml\;$(BOOST_ROOT_DIR);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;CORE_EXPORT=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<AssemblerListingLocation>.\Debug/</AssemblerListingLocation>
Expand Down
23 changes: 13 additions & 10 deletions packages/src/map_time_manager_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ void MapTimeManagerWindow::create_window()
QFrame* line = new QFrame();
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
vl->addWidget(line);
vl->addWidget(m_slider);
vl->addWidget(line);

// Selection of parameter and/or vector

Expand Down Expand Up @@ -687,7 +687,7 @@ QVBoxLayout * MapTimeManagerWindow::create_scalar_selection_1d_2d_3d()
{
m_layerLabelPrefix = new QLabel(tr("Layer"));
m_layerLabelSuffix = new QLabel(tr("[0,0]"));
m_layerLabelSuffix->setText(tr("z/sigma: %1").arg(var->layer_center[var->nr_hydro_layers - 1]));
m_layerLabelSuffix->setText(tr("[1,%1]").arg(var->layer_center[var->nr_hydro_layers - 1]));
m_sb_hydro_layer = spinbox_layer(var->nr_hydro_layers);
connect(m_sb_hydro_layer, SIGNAL(valueChanged(int)), this, SLOT(spinbox_value_changed(int)));

Expand Down Expand Up @@ -768,7 +768,7 @@ QVBoxLayout * MapTimeManagerWindow::create_vector_selection_2d_3d()
struct _variable * var = m_vars->variable[strings[3].toInt()];
m_layerLabelPrefix_vec = new QLabel(tr("Layer"));
m_layerLabelSuffix_vec = new QLabel(tr("[0,0]"));
m_layerLabelSuffix_vec->setText(tr("z/sigma: %1").arg(var->layer_center[var->nr_hydro_layers - 1]));
m_layerLabelSuffix_vec->setText(tr("[1,%1]").arg(var->layer_center[var->nr_hydro_layers - 1]));
m_sb_hydro_layer_vec = spinbox_layer(var->nr_hydro_layers);
connect(m_sb_hydro_layer_vec, SIGNAL(valueChanged(int)), this, SLOT(spinbox_vec_value_changed(int)));

Expand Down Expand Up @@ -1220,7 +1220,7 @@ void MapTimeManagerWindow::cb_clicked_3d(int item)
m_sb_hydro_layer->setValue(var->nr_hydro_layers);
}
int i_lay = m_sb_hydro_layer->value();
m_layerLabelSuffix->setText(tr("z/sigma: %1").arg(var->layer_center[i_lay - 1]));
m_layerLabelSuffix->setText(tr("[1,%1]").arg(var->layer_center[i_lay - 1]));
}

if (var->nr_bed_layers > 0)
Expand Down Expand Up @@ -1311,7 +1311,7 @@ void MapTimeManagerWindow::cb_clicked_vec_3d(int item)
m_sb_hydro_layer_vec->setValue(var->nr_hydro_layers);
}
int i_lay = m_sb_hydro_layer_vec->value();
m_layerLabelSuffix_vec->setText(tr("z/sigma: %1").arg(var->layer_center[i_lay - 1]));
m_layerLabelSuffix_vec->setText(tr("[1,%1]").arg(var->layer_center[i_lay - 1]));

m_MyCanvas->reset_min_max();
if (!m_show_map_vector_3d)
Expand Down Expand Up @@ -1424,20 +1424,20 @@ void MapTimeManagerWindow::draw_time_dependent_data_1d(QComboBox * cb, int item)
// begin HACK edge vs contact
if (location == "edge" || location == "contact")
{
var->draw = true;;
var->draw = true;
int i = m_q_times.indexOf(curr_date_time->dateTime());
m_MyCanvas->set_current_step(i);
m_MyCanvas->draw_all();
}
else if (location == "face")
{
var->draw = true;;
var->draw = true;
//int i = m_q_times.indexOf(curr_date_time->dateTime());
m_MyCanvas->draw_all();
}
else if (location == "node")
{
var->draw = true;;
var->draw = true;
int i = m_q_times.indexOf(curr_date_time->dateTime());
m_MyCanvas->set_current_step(i);
m_MyCanvas->draw_all();
Expand Down Expand Up @@ -1567,13 +1567,14 @@ void MapTimeManagerWindow::spinbox_value_changed(int i_lay)
struct _variable * var = m_vars->variable[jj];
if (var->nr_hydro_layers > 0)
{
m_layerLabelSuffix->setText(tr("z/sigma: %1").arg(var->layer_center[i_lay - 1]));
m_layerLabelSuffix->setText(tr("[1,%1]").arg(var->layer_center[i_lay - 1]));
}
if (var->nr_bed_layers > 0)
{
m_layerLabelSuffix->setText(tr("Bed layer: %1").arg(var->layer_center[i_lay - 1]));
}
m_show_check_3d->setChecked(false);
m_show_check_3d->setChecked(true);

return;
}
Expand All @@ -1585,7 +1586,9 @@ void MapTimeManagerWindow::spinbox_vec_value_changed(int i_lay)
int jj = slist[3].toInt();

struct _variable * var = m_vars->variable[jj];
m_layerLabelSuffix_vec->setText(tr("z/sigma: %1").arg(var->layer_center[i_lay - 1]));
m_layerLabelSuffix_vec->setText(tr("[1,%1]").arg(var->layer_center[i_lay - 1]));
m_show_check_vec_3d->setChecked(false);
m_show_check_vec_3d->setChecked(true);
return;
}
void MapTimeManagerWindow::clicked_current_view()
Expand Down
Loading

0 comments on commit ab9ea92

Please sign in to comment.