diff --git a/test_container/testcontainer_linux.cpp b/test_container/testcontainer_linux.cpp index 1fad1c7c63b79dc5abcb1347c1f270c7798287e7..eb4269ac99946dd1647d4e3afb456e54a4e00913 100644 --- a/test_container/testcontainer_linux.cpp +++ b/test_container/testcontainer_linux.cpp @@ -491,3 +491,55 @@ void testcontainer::on_osmmap_map_event(QMap p) ui->tableView_msg->scrollToBottom(); } } +void testcontainer::on_pushButton_test_geo_displayMod_clicked() +{ + QString res = ui->osmmap->osm_layer_call_function(m_str_markerLayerName, + "function=set_mod;mod=0;"); + if (res.contains("error")) + QMessageBox::information(this,"geomarker::set_mod",res); + +} + +void testcontainer::on_pushButton_test_geo_selectionMod_clicked() +{ + QString res = ui->osmmap->osm_layer_call_function(m_str_markerLayerName, + "function=set_mod;mod=1;"); + if (res.contains("error")) + QMessageBox::information(this,"geomarker::set_mod",res); +} + +void testcontainer::on_pushButton_test_geo_selected_marks_clicked() +{ + QString res = ui->osmmap->osm_layer_call_function(m_str_markerLayerName, + "function=selected_items;"); + QMessageBox::information(this,"geomarker::selected_items",res); +} + +void testcontainer::on_pushButton_test_geo_clear_sel_clicked() +{ + QString res = ui->osmmap->osm_layer_call_function(m_str_markerLayerName, + "function=selection_clear;"); + if (res.contains("error")) + QMessageBox::information(this,"geomarker::selection_clear",res); + +} + +void testcontainer::on_pushButton_test_geo_del_sel_clicked() +{ + QString res = ui->osmmap->osm_layer_call_function(m_str_markerLayerName, + "function=selection_delete;"); + if (res.contains("error")) + QMessageBox::information(this,"geomarker::selection_delete",res); + +} +void testcontainer::on_pushButton_default_style_clicked() +{ + QString res = ui->osmmap->osm_layer_call_function(m_str_markerLayerName, + "function=default_style;"); + QMessageBox::information(this,"geomarker::default_style",res); + res = ui->osmmap->osm_layer_call_function(m_str_markerLayerName, + "function=set_default_style;" + res); + if (res.contains("error")) + QMessageBox::information(this,"geomarker::selection_delete",res); + +} diff --git a/test_container/testcontainer_linux.ui b/test_container/testcontainer_linux.ui index 0dca23e0bc8c09d2abf23cf70b99d84fc7854deb..376dc3fb38a79dab489be0fa53393b796cbbb2c7 100644 --- a/test_container/testcontainer_linux.ui +++ b/test_container/testcontainer_linux.ui @@ -37,13 +37,6 @@ - - - - marks save/load - - - @@ -142,7 +135,7 @@ - + Qt::Vertical @@ -176,6 +169,55 @@ + + + + selected_marks + + + + + + + marks save/load + + + + + + + selection mod + + + + + + + display mod + + + + + + + clear selection + + + + + + + delete selection + + + + + + + default_style + + +