Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
qplanetosm
提交
2556a10f
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 搜索 >>
提交
2556a10f
编写于
4月 22, 2016
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
We complete activeX document, and C# examples in VC#2015
上级
2010fccb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
119 addition
and
1 deletion
+119
-1
documents/zh-CN/Qplanetosm_ActiveX.pdf
documents/zh-CN/Qplanetosm_ActiveX.pdf
+0
-0
windows_containers/CSharpContainer/Form1.Designer.cs
windows_containers/CSharpContainer/Form1.Designer.cs
+59
-1
windows_containers/CSharpContainer/Form1.cs
windows_containers/CSharpContainer/Form1.cs
+60
-0
未找到文件。
documents/zh-CN/Qplanetosm_ActiveX.pdf
浏览文件 @
2556a10f
无法预览此类型文件
windows_containers/CSharpContainer/Form1.Designer.cs
浏览文件 @
2556a10f
...
@@ -78,6 +78,12 @@
...
@@ -78,6 +78,12 @@
this
.
tabPage_map2
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
tabPage_map2
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
axqtaxviewer_planetosm2
=
new
Axqtaxviewer_planetosmLib
.
Axqtaxviewer_planetosm
();
this
.
axqtaxviewer_planetosm2
=
new
Axqtaxviewer_planetosmLib
.
Axqtaxviewer_planetosm
();
this
.
tabPage_msg
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
tabPage_msg
=
new
System
.
Windows
.
Forms
.
TabPage
();
this
.
toolStripSeparator2
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
selectinModToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
displayModToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
clearSelectedToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
delSelectedToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
selectedItemsToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
tabControl_map
.
SuspendLayout
();
this
.
tabControl_map
.
SuspendLayout
();
this
.
tabPage_map1
.
SuspendLayout
();
this
.
tabPage_map1
.
SuspendLayout
();
this
.
menuStrip1
.
SuspendLayout
();
this
.
menuStrip1
.
SuspendLayout
();
...
@@ -376,7 +382,13 @@
...
@@ -376,7 +382,13 @@
this
.
toolStripSeparator1
,
this
.
toolStripSeparator1
,
this
.
heavyTestToolStripMenuItem
,
this
.
heavyTestToolStripMenuItem
,
this
.
xMLToolStripMenuItem
,
this
.
xMLToolStripMenuItem
,
this
.
loadFromDiskToolStripMenuItem
});
this
.
loadFromDiskToolStripMenuItem
,
this
.
toolStripSeparator2
,
this
.
displayModToolStripMenuItem
,
this
.
selectinModToolStripMenuItem
,
this
.
clearSelectedToolStripMenuItem
,
this
.
delSelectedToolStripMenuItem
,
this
.
selectedItemsToolStripMenuItem
});
this
.
geomarkerPluginToolStripMenuItem
.
Name
=
"geomarkerPluginToolStripMenuItem"
;
this
.
geomarkerPluginToolStripMenuItem
.
Name
=
"geomarkerPluginToolStripMenuItem"
;
this
.
geomarkerPluginToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
21
);
this
.
geomarkerPluginToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
125
,
21
);
this
.
geomarkerPluginToolStripMenuItem
.
Text
=
"geomarker plugin"
;
this
.
geomarkerPluginToolStripMenuItem
.
Text
=
"geomarker plugin"
;
...
@@ -508,6 +520,46 @@
...
@@ -508,6 +520,46 @@
this
.
tabPage_msg
.
Text
=
"Messages"
;
this
.
tabPage_msg
.
Text
=
"Messages"
;
this
.
tabPage_msg
.
UseVisualStyleBackColor
=
true
;
this
.
tabPage_msg
.
UseVisualStyleBackColor
=
true
;
//
//
// toolStripSeparator2
//
this
.
toolStripSeparator2
.
Name
=
"toolStripSeparator2"
;
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
166
,
6
);
//
// selectinModToolStripMenuItem
//
this
.
selectinModToolStripMenuItem
.
Name
=
"selectinModToolStripMenuItem"
;
this
.
selectinModToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
169
,
22
);
this
.
selectinModToolStripMenuItem
.
Text
=
"selectin mod"
;
this
.
selectinModToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
selectinModToolStripMenuItem_Click
);
//
// displayModToolStripMenuItem
//
this
.
displayModToolStripMenuItem
.
Name
=
"displayModToolStripMenuItem"
;
this
.
displayModToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
169
,
22
);
this
.
displayModToolStripMenuItem
.
Text
=
"display mod"
;
this
.
displayModToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
displayModToolStripMenuItem_Click
);
//
// clearSelectedToolStripMenuItem
//
this
.
clearSelectedToolStripMenuItem
.
Name
=
"clearSelectedToolStripMenuItem"
;
this
.
clearSelectedToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
169
,
22
);
this
.
clearSelectedToolStripMenuItem
.
Text
=
"clear selected"
;
this
.
clearSelectedToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
clearSelectedToolStripMenuItem_Click
);
//
// delSelectedToolStripMenuItem
//
this
.
delSelectedToolStripMenuItem
.
Name
=
"delSelectedToolStripMenuItem"
;
this
.
delSelectedToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
169
,
22
);
this
.
delSelectedToolStripMenuItem
.
Text
=
"del selected"
;
this
.
delSelectedToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
delSelectedToolStripMenuItem_Click
);
//
// selectedItemsToolStripMenuItem
//
this
.
selectedItemsToolStripMenuItem
.
Name
=
"selectedItemsToolStripMenuItem"
;
this
.
selectedItemsToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
169
,
22
);
this
.
selectedItemsToolStripMenuItem
.
Text
=
"selected items"
;
this
.
selectedItemsToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
selectedItemsToolStripMenuItem_Click
);
//
// CSharpMapContainer
// CSharpMapContainer
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
...
@@ -580,6 +632,12 @@
...
@@ -580,6 +632,12 @@
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
heavyTestToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
heavyTestToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
xMLToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
xMLToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
loadFromDiskToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
loadFromDiskToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator2
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
displayModToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
selectinModToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
clearSelectedToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
delSelectedToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
selectedItemsToolStripMenuItem
;
}
}
}
}
windows_containers/CSharpContainer/Form1.cs
浏览文件 @
2556a10f
...
@@ -574,5 +574,65 @@ namespace CSharpContainer
...
@@ -574,5 +574,65 @@ namespace CSharpContainer
messageOutput
(
res
,
4
);
messageOutput
(
res
,
4
);
}
}
}
}
private
void
displayModToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
string
ret
=
axqtaxviewer_planetosm1
.
osm_layer_call_function
(
m_geomarkerLayerName
,
"function=set_mod;mod=0;"
);
messageOutput
(
"sel mod to display"
);
messageOutput
(
ret
,
4
);
}
private
void
selectinModToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
string
ret
=
axqtaxviewer_planetosm1
.
osm_layer_call_function
(
m_geomarkerLayerName
,
"function=set_mod;mod=1;"
);
messageOutput
(
"sel mod to selection"
);
messageOutput
(
ret
,
4
);
}
private
void
clearSelectedToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
string
ret
=
axqtaxviewer_planetosm1
.
osm_layer_call_function
(
m_geomarkerLayerName
,
"function=selection_clear;"
);
messageOutput
(
"clear selected items' status."
);
}
private
void
delSelectedToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
string
ret
=
axqtaxviewer_planetosm1
.
osm_layer_call_function
(
m_geomarkerLayerName
,
"function=selection_delete;"
);
messageOutput
(
"delete selected items."
);
}
private
void
selectedItemsToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
messageOutput
(
"geomarker1::enum all selected items"
);
//first, return all names
string
res
=
axqtaxviewer_planetosm1
.
osm_layer_call_function
(
m_geomarkerLayerName
,
"function=selected_items;"
);
Dictionary
<
string
,
string
>
dct_names
=
string2dict
(
res
);
//for each name, get detailed infomations
foreach
(
string
name
in
dct_names
.
Values
)
{
messageOutput
(
"info of "
+
name
+
":"
,
2
);
res
=
axqtaxviewer_planetosm1
.
osm_layer_call_function
(
m_geomarkerLayerName
,
"function=mark;name="
+
name
+
";"
);
messageOutput
(
string2dict
(
res
),
4
);
messageOutput
(
"prop of "
+
name
+
":"
,
2
);
res
=
axqtaxviewer_planetosm1
.
osm_layer_call_function
(
m_geomarkerLayerName
,
"function=props;name="
+
name
+
";"
);
messageOutput
(
string2dict
(
res
),
4
);
}
}
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录