IA插件文件编写

文档结构

代码示例如下

<?xml version="1.0" encoding="utf-8" ?>
<PluginFile Name="IASystem.ProjectManage"
            Author="Zhan zhao"
                Version="1.0"
            Description="projectManage Plugin.">

  <Manifest>
  </Manifest>

  <Runtime Assembly="IA.ProjectManagePlugin.dll"/>

  <Resources>
      <String Language="zh_cn" File="Language/zh_cn/ia.projectmanageplugin_zh.qm"></String>
      <String Language="en"  File="Language/en/ia.projectmanageplugin_en.qm"></String>
      <Icon File="resource/projectmanageplugin.res"></Icon>
  </Resources>


  <!--Initialize some plugin node Path-->
  <Extension Path="/System/MainWindow/DockWindow">
    <DockWindow Name="LayerListView" Text="LayerListView" DefaultPosition="Left" ></DockWindow>
    <DockWindow Name="ResourceView" Text="ResourceView" DefaultPosition="Left" ></DockWindow>
    <DockWindow Name="TaskView" Text="TaskView" DefaultPosition="Left" ></DockWindow>
    <DockWindow Name="LogView" Text="LogView" DefaultPosition="Bottom"></DockWindow>
    <DockWindow Name="ToolBoxView" Text="ToolBoxView" DefaultPosition="Right"></DockWindow>
  </Extension>

  <Extension Path="/System/MainWindow/View">
    <View Name="MapView" Text="MapView" DefaultPosition="Left"></View>
  </Extension>

  <Extension Path="/System/MainWindow/StatusBar">
    <Item Name="ProgressItem" Type="Item" Class="ProgressItem"/>
    <Item Name="CoordsLabel" Type="Item" Class="CoordsLabel"/>
    <Item Name="CoordsItem" Type="Item" Class="CoordsItem"/>
    <Item Name="RenderSuppressionItem"  Type="Item" Class="RenderSuppressionItem"/>
  </Extension>

  <Extension Path="/System/MainWindow/Menu">
    <CategoryItem Name="project management" Text="project management" Type="Category">
        <CategoryItem Name="openProject" Text="open" Icon=":/icon/mOpen.svg" ToolButtonStyle="ToolButtonTextOnly"
                      Type="Command" Class="OpenProjectCommand" />
    </CategoryItem>
  </Extension>

  <Extension Path="/System/MainWindow/Toolbar">
    <CategoryItem Name="MapTools" Text="Map Tools" Type="Category">
      <CategoryItem Name="AddData" Text="Add Data" Icon=":/Home/AddData32.png" Type="Command" Class="AddDataCommand"/>
    </CategoryItem>
  </Extension>
</PluginFile>
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值