Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
qplanetosm
提交
b8acc242
qplanetosm
项目概览
colorEagleStdio
/
qplanetosm
通知
118
Star
10
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
qplanetosm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b8acc242
编写于
1月 11, 2016
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add all functions for the geomarker plugin.
上级
6bc305d6
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
350 addition
and
28 deletion
+350
-28
qtvplugin_geomarker/qtvplugin_geomarker.h
qtvplugin_geomarker/qtvplugin_geomarker.h
+1
-0
qtvplugin_geomarker/qtvplugin_geomarker_func.cpp
qtvplugin_geomarker/qtvplugin_geomarker_func.cpp
+316
-26
test_container/testcontainer.cpp
test_container/testcontainer.cpp
+24
-1
test_container/testcontainer.h
test_container/testcontainer.h
+1
-0
test_container/testcontainer.ui
test_container/testcontainer.ui
+8
-1
未找到文件。
qtvplugin_geomarker/qtvplugin_geomarker.h
浏览文件 @
b8acc242
...
...
@@ -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:
...
...
qtvplugin_geomarker/qtvplugin_geomarker_func.cpp
浏览文件 @
b8acc242
此差异已折叠。
点击以展开。
test_container/testcontainer.cpp
浏览文件 @
b8acc242
...
...
@@ -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
);
}
test_container/testcontainer.h
浏览文件 @
b8acc242
...
...
@@ -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
test_container/testcontainer.ui
浏览文件 @
b8acc242
...
...
@@ -6,7 +6,7 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
8
00
</width>
<width>
8
11
</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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录