Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c657c28
commit daaf7ff
Showing
16 changed files
with
469 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
############################################################################### | ||
# Set default behavior to automatically normalize line endings. | ||
############################################################################### | ||
* text=auto | ||
|
||
############################################################################### | ||
# Set default behavior for command prompt diff. | ||
# | ||
# This is need for earlier builds of msysgit that does not have it on by | ||
# default for csharp files. | ||
# Note: This is only used by command line | ||
############################################################################### | ||
#*.cs diff=csharp | ||
|
||
############################################################################### | ||
# Set the merge driver for project and solution files | ||
# | ||
# Merging from the command prompt will add diff markers to the files if there | ||
# are conflicts (Merging from VS is not affected by the settings below, in VS | ||
# the diff markers are never inserted). Diff markers may cause the following | ||
# file extensions to fail to load in VS. An alternative would be to treat | ||
# these files as binary and thus will always conflict and require user | ||
# intervention with every merge. To do so, just uncomment the entries below | ||
############################################################################### | ||
#*.sln merge=binary | ||
#*.csproj merge=binary | ||
#*.vbproj merge=binary | ||
#*.vcxproj merge=binary | ||
#*.vcproj merge=binary | ||
#*.dbproj merge=binary | ||
#*.fsproj merge=binary | ||
#*.lsproj merge=binary | ||
#*.wixproj merge=binary | ||
#*.modelproj merge=binary | ||
#*.sqlproj merge=binary | ||
#*.wwaproj merge=binary | ||
|
||
############################################################################### | ||
# behavior for image files | ||
# | ||
# image files are treated as binary by default. | ||
############################################################################### | ||
#*.jpg binary | ||
#*.png binary | ||
#*.gif binary | ||
|
||
############################################################################### | ||
# diff behavior for common document formats | ||
# | ||
# Convert binary document formats to text before diffing them. This feature | ||
# is only available from the command line. Turn it on by uncommenting the | ||
# entries below. | ||
############################################################################### | ||
#*.doc diff=astextplain | ||
#*.DOC diff=astextplain | ||
#*.docx diff=astextplain | ||
#*.DOCX diff=astextplain | ||
#*.dot diff=astextplain | ||
#*.DOT diff=astextplain | ||
#*.pdf diff=astextplain | ||
#*.PDF diff=astextplain | ||
#*.rtf diff=astextplain | ||
#*.RTF diff=astextplain |
22 changes: 22 additions & 0 deletions
22
...istanceAndDirection/ProAppDistanceAndDirectionModule/ProAppDistanceAndDirectionModule.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2013 | ||
VisualStudioVersion = 12.0.40629.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProAppDistanceAndDirectionModule", "ProAppDistanceAndDirectionModule\ProAppDistanceAndDirectionModule.csproj", "{AB2934C1-011A-49FE-BD1C-9368CCE0358E}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{AB2934C1-011A-49FE-BD1C-9368CCE0358E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{AB2934C1-011A-49FE-BD1C-9368CCE0358E}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{AB2934C1-011A-49FE-BD1C-9368CCE0358E}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{AB2934C1-011A-49FE-BD1C-9368CCE0358E}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
46 changes: 46 additions & 0 deletions
46
...ndDirection/ProAppDistanceAndDirectionModule/ProAppDistanceAndDirectionModule/Config.daml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<ArcGIS defaultAssembly="ProAppDistanceAndDirectionModule.dll" defaultNamespace="ProAppDistanceAndDirectionModule" xmlns="http://schemas.esri.com/DADF/Registry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.esri.com/DADF/Registry file:///C:/Program%20Files/ArcGIS/Pro/bin/ArcGIS.Desktop.Framework.xsd"> | ||
<AddInInfo id="{32a3d6f6-fabb-4a17-bf18-8b1ebf42bfaf}" version="1.0" desktopVersion="1.2.5023"> | ||
<Name>ProAppDistanceAndDirectionModule</Name> | ||
<Description>ProAppDistanceAndDirectionModule description</Description> | ||
<Image>Images\AddinDesktop32.png</Image> | ||
<Author>jose5467</Author> | ||
<Company>Microsoft</Company> | ||
<Date>3/30/2016 10:44:50 AM, 2016</Date> | ||
<Subject>Framework</Subject> | ||
<!-- Note subject can be one or more of these topics: | ||
Content, Framework, Editing, Geodatabase, Geometry, Geoprocessing, Layouts, Map Authoring, Map Exploration --> | ||
</AddInInfo> | ||
<modules> | ||
<insertModule id="ProAppDistanceAndDirectionModule_Module" className="DistanceAndDirectionModule" autoLoad="false" caption="DistanceAndDirectionModule"> | ||
<!-- uncomment to have the control hosted on a separate tab--> | ||
<tabs> | ||
<!--<tab id="ProAppDistanceAndDirectionModule_Tab1" caption="New Tab"> | ||
<group refID="ProAppDistanceAndDirectionModule_Group1"/> | ||
</tab>--> | ||
</tabs> | ||
<groups> | ||
<!-- comment this out if you have no controls on the Addin tab to avoid | ||
an empty group--> | ||
<group id="ProAppDistanceAndDirectionModule_Group1" caption="Distance and Direction" appearsOnAddInTab="true"> | ||
<!-- host controls within groups --> | ||
<button refID="ProAppDistanceAndDirectionModule_DistanceAndDirectionDockpane_ShowButton" size="large" /> | ||
<button refID="ProAppDistanceAndDirectionModule_PropertiesButton" size="large" /> | ||
</group> | ||
</groups> | ||
<controls> | ||
<!-- add your controls here --> | ||
<button id="ProAppDistanceAndDirectionModule_DistanceAndDirectionDockpane_ShowButton" caption="Show" className="DistanceAndDirectionDockpane_ShowButton" loadOnClick="true" smallImage="Images\GenericButtonPurple16.png" largeImage="Images\GenericButtonPurple32.png"> | ||
<tooltip heading="Show Dockpane">Show Distance and Direction Dockpane<disabledText /></tooltip> | ||
</button> | ||
<button id="ProAppDistanceAndDirectionModule_PropertiesButton" caption="Properties" className="PropertiesButton" loadOnClick="true" smallImage="Images\GenericButtonBlue16.png" largeImage="Images\GenericButtonBlue32.png"> | ||
<tooltip heading="Distance and Direction Properties">Edit Properties<disabledText /></tooltip> | ||
</button> | ||
</controls> | ||
<dockPanes> | ||
<dockPane id="ProAppDistanceAndDirectionModule_DistanceAndDirectionDockpane" caption="DistanceAndDirectionDockpane " className="DistanceAndDirectionDockpaneViewModel" dock="group" dockWith="esri_core_contentsDockPane"> | ||
<content className="DistanceAndDirectionDockpaneView" /> | ||
</dockPane> | ||
</dockPanes> | ||
</insertModule> | ||
</modules> | ||
</ArcGIS> |
32 changes: 32 additions & 0 deletions
32
...anceAndDirectionModule/ProAppDistanceAndDirectionModule/DistanceAndDirectionDockpane.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<UserControl x:Class="ProAppDistanceAndDirectionModule.DistanceAndDirectionDockpaneView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" d:DesignWidth="300"> | ||
<UserControl.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</UserControl.Resources> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
|
||
<DockPanel Grid.Row="0" LastChildFill="true" KeyboardNavigation.TabNavigation="Local" Height="30"> | ||
<TextBlock Grid.Column="1" Text="{Binding Heading}" VerticalAlignment="Center" HorizontalAlignment="Center" | ||
FontSize="16" FontWeight="Light"> | ||
<TextBlock.ToolTip> | ||
<WrapPanel Orientation="Vertical" MaxWidth="300"> | ||
<TextBlock Text="{Binding Heading}" TextWrapping="Wrap"/> | ||
</WrapPanel> | ||
</TextBlock.ToolTip> | ||
</TextBlock> | ||
</DockPanel> | ||
</Grid> | ||
</UserControl> |
29 changes: 29 additions & 0 deletions
29
...eAndDirectionModule/ProAppDistanceAndDirectionModule/DistanceAndDirectionDockpane.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
|
||
|
||
namespace ProAppDistanceAndDirectionModule | ||
{ | ||
/// <summary> | ||
/// Interaction logic for DistanceAndDirectionDockpaneView.xaml | ||
/// </summary> | ||
public partial class DistanceAndDirectionDockpaneView : UserControl | ||
{ | ||
public DistanceAndDirectionDockpaneView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...DirectionModule/ProAppDistanceAndDirectionModule/DistanceAndDirectionDockpaneViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using ArcGIS.Desktop.Framework; | ||
using ArcGIS.Desktop.Framework.Contracts; | ||
|
||
namespace ProAppDistanceAndDirectionModule | ||
{ | ||
internal class DistanceAndDirectionDockpaneViewModel : DockPane | ||
{ | ||
private const string _dockPaneID = "ProAppDistanceAndDirectionModule_DistanceAndDirectionDockpane"; | ||
|
||
protected DistanceAndDirectionDockpaneViewModel() { } | ||
|
||
/// <summary> | ||
/// Show the DockPane. | ||
/// </summary> | ||
internal static void Show() | ||
{ | ||
DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID); | ||
if (pane == null) | ||
return; | ||
|
||
pane.Activate(); | ||
} | ||
|
||
/// <summary> | ||
/// Text shown near the top of the DockPane. | ||
/// </summary> | ||
private string _heading = "My DockPane"; | ||
public string Heading | ||
{ | ||
get { return _heading; } | ||
set | ||
{ | ||
SetProperty(ref _heading, value, () => Heading); | ||
} | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Button implementation to show the DockPane. | ||
/// </summary> | ||
internal class DistanceAndDirectionDockpane_ShowButton : Button | ||
{ | ||
protected override void OnClick() | ||
{ | ||
DistanceAndDirectionDockpaneViewModel.Show(); | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...DistanceAndDirectionModule/ProAppDistanceAndDirectionModule/DistanceAndDirectionModule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Windows.Input; | ||
using ArcGIS.Desktop.Framework; | ||
using ArcGIS.Desktop.Framework.Contracts; | ||
using System.Threading.Tasks; | ||
|
||
namespace ProAppDistanceAndDirectionModule | ||
{ | ||
internal class DistanceAndDirectionModule : Module | ||
{ | ||
private static DistanceAndDirectionModule _this = null; | ||
|
||
/// <summary> | ||
/// Retrieve the singleton instance to this module here | ||
/// </summary> | ||
public static DistanceAndDirectionModule Current | ||
{ | ||
get | ||
{ | ||
return _this ?? (_this = (DistanceAndDirectionModule)FrameworkApplication.FindModule("ProAppDistanceAndDirectionModule_Module")); | ||
} | ||
} | ||
|
||
#region Overrides | ||
/// <summary> | ||
/// Called by Framework when ArcGIS Pro is closing | ||
/// </summary> | ||
/// <returns>False to prevent Pro from closing, otherwise True</returns> | ||
protected override bool CanUnload() | ||
{ | ||
//TODO - add your business logic | ||
//return false to ~cancel~ Application close | ||
return true; | ||
} | ||
|
||
#endregion Overrides | ||
|
||
} | ||
} |
Binary file added
BIN
+524 Bytes
...ceAndDirectionModule/ProAppDistanceAndDirectionModule/Images/AddInDesktop16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+948 Bytes
...ceAndDirectionModule/ProAppDistanceAndDirectionModule/Images/AddInDesktop32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.03 KB
...DirectionModule/ProAppDistanceAndDirectionModule/Images/GenericButtonBlue16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.22 KB
...DirectionModule/ProAppDistanceAndDirectionModule/Images/GenericButtonBlue32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.03 KB
...rectionModule/ProAppDistanceAndDirectionModule/Images/GenericButtonPurple16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.23 KB
...rectionModule/ProAppDistanceAndDirectionModule/Images/GenericButtonPurple32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.