Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
qplanetosm
提交
25eeb825
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 搜索 >>
提交
25eeb825
编写于
4月 23, 2016
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test linux examples
上级
d1ad215c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
102 addition
and
8 deletion
+102
-8
test_container/testcontainer_linux.cpp
test_container/testcontainer_linux.cpp
+52
-0
test_container/testcontainer_linux.ui
test_container/testcontainer_linux.ui
+50
-8
未找到文件。
test_container/testcontainer_linux.cpp
浏览文件 @
25eeb825
...
...
@@ -491,3 +491,55 @@ void testcontainer::on_osmmap_map_event(QMap<QString, QVariant> 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
);
}
test_container/testcontainer_linux.ui
浏览文件 @
25eeb825
...
...
@@ -37,13 +37,6 @@
</property>
</widget>
</item>
<item
row=
"15"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"pushButton_test_xml"
>
<property
name=
"text"
>
<string>
marks save/load
</string>
</property>
</widget>
</item>
<item
row=
"11"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"pushButton_test_mark"
>
<property
name=
"text"
>
...
...
@@ -142,7 +135,7 @@
</property>
</widget>
</item>
<item
row=
"1
6
"
column=
"0"
>
<item
row=
"1
8
"
column=
"0"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
...
...
@@ -176,6 +169,55 @@
</property>
</widget>
</item>
<item
row=
"16"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"pushButton_test_geo_selected_marks"
>
<property
name=
"text"
>
<string>
selected_marks
</string>
</property>
</widget>
</item>
<item
row=
"14"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"pushButton_test_xml"
>
<property
name=
"text"
>
<string>
marks save/load
</string>
</property>
</widget>
</item>
<item
row=
"15"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"pushButton_test_geo_selectionMod"
>
<property
name=
"text"
>
<string>
selection mod
</string>
</property>
</widget>
</item>
<item
row=
"15"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"pushButton_test_geo_displayMod"
>
<property
name=
"text"
>
<string>
display mod
</string>
</property>
</widget>
</item>
<item
row=
"16"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"pushButton_test_geo_clear_sel"
>
<property
name=
"text"
>
<string>
clear selection
</string>
</property>
</widget>
</item>
<item
row=
"17"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"pushButton_test_geo_del_sel"
>
<property
name=
"text"
>
<string>
delete selection
</string>
</property>
</widget>
</item>
<item
row=
"17"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"pushButton_default_style"
>
<property
name=
"text"
>
<string>
default_style
</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录