提交 b8acc242 编写于 作者: 丁劲犇's avatar 丁劲犇 😸

Add all functions for the geomarker plugin.

上级 6bc305d6
......@@ -133,6 +133,7 @@ private:
QMap<QString, QVariant> func_delete_props (const QMap<QString, QVariant> &);
QMap<QString, QVariant> func_mark_names (const QMap<QString, QVariant> &);
QMap<QString, QVariant> func_mark (const QMap<QString, QVariant> &);
QMap<QString, QVariant> func_props (const QMap<QString, QVariant> &);
//overloaded virtual funtions
protected:
......
......@@ -152,7 +152,7 @@ void testcontainer::on_pushButton_test_layers_clicked()
{
QVariant vt_name = ui->axWidget_map1->dynamicCall("osm_layer_get_name(int)",i);
QString strname = vt_name.toString();
strLayerNames += strname + ";";
strLayerNames += strname + ";\n";
}
QMessageBox::information(this,"layer count",QString("osm_layer_get_count() returns %1\n%2").arg(n_num).arg(strLayerNames) );
......@@ -249,6 +249,8 @@ void testcontainer::on_pushButton_test_grid_getPolygon_clicked()
"osm_layer_call_function(QString,QString)",
"grid1",
"function=get_polygon;").toString();
res.replace(";",";\n");
res.replace("=","=\t");
QMessageBox::information(this,"grid1::get_polygon",res);
}
......@@ -374,3 +376,24 @@ void testcontainer::timerEvent(QTimerEvent * e)
}
}
void testcontainer::on_pushButton_test_request_clicked()
{
QString res = ui->axWidget_map1->dynamicCall("osm_layer_call_function(QString,QString)","geomarker1",
"function=mark_names;").toString();
res.replace(";",";\n");
res.replace("=","\t=");
QMessageBox::information(this,"geomarker1::mark_names",res);
res = ui->axWidget_map1->dynamicCall("osm_layer_call_function(QString,QString)","geomarker1",
"function=mark;name=ID1").toString();
res.replace(";",";\n");
res.replace("=","\t=");
QMessageBox::information(this,"geomarker1::mark",res);
res = ui->axWidget_map1->dynamicCall("osm_layer_call_function(QString,QString)","geomarker1",
"function=props;name=ID1").toString();
res.replace(";",";\n");
res.replace("=","\t=");
QMessageBox::information(this,"geomarker1::props",res);
}
......@@ -35,6 +35,7 @@ protected slots:
void on_pushButton_test_mark_clicked();
void on_pushButton_test_line_clicked();
void on_pushButton_test_polygon_clicked();
void on_pushButton_test_request_clicked();
};
#endif // TESTCONTAINER_H
......@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<width>811</width>
<height>600</height>
</rect>
</property>
......@@ -149,6 +149,13 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_test_request">
<property name="text">
<string>request</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册