Index: Ringtoets/Demo/src/Ringtoets.Demo/Properties/Resources.Designer.cs
===================================================================
diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -r1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc
--- Ringtoets/Demo/src/Ringtoets.Demo/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120)
+++ Ringtoets/Demo/src/Ringtoets.Demo/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -70,11 +70,11 @@
}
///
- /// Looks up a localized string similar to Demo project.
+ /// Looks up a localized string similar to Demo dijk traject.
///
- public static string DemoProject {
+ public static string DemoDikeAssessmentSection {
get {
- return ResourceManager.GetString("DemoProject", resourceCulture);
+ return ResourceManager.GetString("DemoDikeAssessmentSection", resourceCulture);
}
}
Index: Ringtoets/Demo/src/Ringtoets.Demo/Properties/Resources.resx
===================================================================
diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -r1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc
--- Ringtoets/Demo/src/Ringtoets.Demo/Properties/Resources.resx (.../Resources.resx) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120)
+++ Ringtoets/Demo/src/Ringtoets.Demo/Properties/Resources.resx (.../Resources.resx) (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -120,8 +120,8 @@
Demo
-
- Demo project
+
+ Demo dijk traject
Voorbeeld data
Index: Ringtoets/Demo/src/Ringtoets.Demo/Ringtoets.Demo.csproj
===================================================================
diff -u -r31d7b5552adb7b89eaf1552855f88c5df887e4f9 -r1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc
--- Ringtoets/Demo/src/Ringtoets.Demo/Ringtoets.Demo.csproj (.../Ringtoets.Demo.csproj) (revision 31d7b5552adb7b89eaf1552855f88c5df887e4f9)
+++ Ringtoets/Demo/src/Ringtoets.Demo/Ringtoets.Demo.csproj (.../Ringtoets.Demo.csproj) (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -124,6 +124,7 @@
PublicResXFileCodeGenerator
Resources.Designer.cs
+ Designer
Index: Ringtoets/Demo/src/Ringtoets.Demo/RingtoetsDemoProjectRibbon.xaml
===================================================================
diff -u -rfca19abd4b2c9638276f02f1a748874c5043d2e6 -r1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc
--- Ringtoets/Demo/src/Ringtoets.Demo/RingtoetsDemoProjectRibbon.xaml (.../RingtoetsDemoProjectRibbon.xaml) (revision fca19abd4b2c9638276f02f1a748874c5043d2e6)
+++ Ringtoets/Demo/src/Ringtoets.Demo/RingtoetsDemoProjectRibbon.xaml (.../RingtoetsDemoProjectRibbon.xaml) (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -13,7 +13,7 @@
-
+
Fisheye: Tag 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Forms/NodePresenters/AssessmentSectionNodePresenter.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/NodePresenters/DikeAssessmentSectionNodePresenter.cs
===================================================================
diff -u
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/NodePresenters/DikeAssessmentSectionNodePresenter.cs (revision 0)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/NodePresenters/DikeAssessmentSectionNodePresenter.cs (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -0,0 +1,111 @@
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Windows.Forms;
+
+using Core.Common.Base;
+using Core.Common.Controls;
+using Core.Common.Utils.Collections;
+
+using Ringtoets.Integration.Data;
+
+using RingtoetsFormsResources = Ringtoets.Integration.Forms.Properties.Resources;
+
+namespace Ringtoets.Integration.Forms.NodePresenters
+{
+ ///
+ /// Node presenter for items in the tree view.
+ ///
+ public class DikeAssessmentSectionNodePresenter : ITreeNodePresenter
+ {
+ public ITreeView TreeView { get; set; }
+
+ public Type NodeTagType
+ {
+ get
+ {
+ return typeof(DikeAssessmentSection);
+ }
+ }
+
+ public void UpdateNode(ITreeNode parentNode, ITreeNode node, object nodeData)
+ {
+ var assessmentSection = (DikeAssessmentSection)nodeData;
+ node.Text = assessmentSection.Name;
+ node.Image = RingtoetsFormsResources.AssessmentSectionFolderIcon;
+ }
+
+ public IEnumerable GetChildNodeObjects(object parentNodeData, ITreeNode node)
+ {
+ var assessmentSection = (DikeAssessmentSection)parentNodeData;
+ if (assessmentSection.PipingFailureMechanism != null)
+ {
+ yield return assessmentSection.PipingFailureMechanism;
+ }
+ }
+
+ public bool CanRenameNode(ITreeNode node)
+ {
+ return true;
+ }
+
+ public bool CanRenameNodeTo(ITreeNode node, string newName)
+ {
+ return true;
+ }
+
+ public void OnNodeRenamed(object nodeData, string newName)
+ {
+ var assessmentSection = (DikeAssessmentSection)nodeData;
+
+ assessmentSection.Name = newName;
+ assessmentSection.NotifyObservers();
+ }
+
+ public void OnNodeChecked(ITreeNode node) {}
+
+ public DragOperations CanDrag(object nodeData)
+ {
+ return DragOperations.None;
+ }
+
+ public DragOperations CanDrop(object item, ITreeNode sourceNode, ITreeNode targetNode, DragOperations validOperations)
+ {
+ return DragOperations.None;
+ }
+
+ public bool CanInsert(object item, ITreeNode sourceNode, ITreeNode targetNode)
+ {
+ return false;
+ }
+
+ public void OnDragDrop(object item, object sourceParentNodeData, object targetParentNodeData, DragOperations operation, int position) {}
+
+ public void OnNodeSelected(object nodeData) {}
+
+ public ContextMenuStrip GetContextMenu(ITreeNode sender, object nodeData)
+ {
+ return null;
+ }
+
+ public void OnPropertyChanged(object sender, ITreeNode node, PropertyChangedEventArgs e) {}
+
+ public void OnCollectionChanged(object sender, NotifyCollectionChangingEventArgs e) {}
+
+ public bool CanRemove(object parentNodeData, object nodeData)
+ {
+ return true;
+ }
+
+ public bool RemoveNodeData(object parentNodeData, object nodeData)
+ {
+ var parentProject = (Project) parentNodeData;
+ var assessmentSection = (DikeAssessmentSection) nodeData;
+
+ parentProject.Items.Remove(assessmentSection);
+ parentProject.NotifyObservers();
+
+ return true;
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.Designer.cs
===================================================================
diff -u -raa5c3620f316831e71797c558a13a0b73a8109df -r1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -61,24 +61,6 @@
}
///
- /// Looks up a localized string similar to Naam van het toetstraject..
- ///
- internal static string AssessmentSection_Name_Description {
- get {
- return ResourceManager.GetString("AssessmentSection_Name_Description", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Naam.
- ///
- internal static string AssessmentSection_Name_DisplayName {
- get {
- return ResourceManager.GetString("AssessmentSection_Name_DisplayName", resourceCulture);
- }
- }
-
- ///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap AssessmentSectionFolderIcon {
@@ -89,52 +71,42 @@
}
///
- /// Looks up a localized string similar to Voeg piping faalmechanisme toe.
+ /// Looks up a localized string similar to Algemeen.
///
- internal static string AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism {
+ internal static string Categories_General {
get {
- return ResourceManager.GetString("AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism", resourceCulture);
+ return ResourceManager.GetString("Categories_General", resourceCulture);
}
}
///
- /// Looks up a localized string similar to Start een nieuwe piping toetsing voor dit project..
+ /// Looks up a localized string similar to Dijktraject.
///
- internal static string AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism_Tooltip {
+ internal static string DikeAssessmentSection_DisplayName {
get {
- return ResourceManager.GetString("AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism_Tooltip", resourceCulture);
+ return ResourceManager.GetString("DikeAssessmentSection_DisplayName", resourceCulture);
}
}
///
- /// Looks up a localized string similar to Kan geen nieuwe piping toetsing starten, omdat er al een piping toetsing is gestart voor dit project..
+ /// Looks up a localized string similar to Naam van het dijktraject..
///
- internal static string AssessmentSectionNodePresenter_ContextMenu_PipingFailureMechanism_Already_Added_Tooltip {
+ internal static string DikeAssessmentSection_Name_Description {
get {
- return ResourceManager.GetString("AssessmentSectionNodePresenter_ContextMenu_PipingFailureMechanism_Already_Added_T" +
- "ooltip", resourceCulture);
+ return ResourceManager.GetString("DikeAssessmentSection_Name_Description", resourceCulture);
}
}
///
- /// Looks up a localized string similar to Toetstraject.
+ /// Looks up a localized string similar to Naam.
///
- internal static string AssessmentSectionProperties_DisplayName {
+ internal static string DikeAssessmentSection_Name_DisplayName {
get {
- return ResourceManager.GetString("AssessmentSectionProperties_DisplayName", resourceCulture);
+ return ResourceManager.GetString("DikeAssessmentSection_Name_DisplayName", resourceCulture);
}
}
///
- /// Looks up a localized string similar to Algemeen.
- ///
- internal static string Categories_General {
- get {
- return ResourceManager.GetString("Categories_General", resourceCulture);
- }
- }
-
- ///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap FailureMechanismIcon {
@@ -143,14 +115,5 @@
return ((System.Drawing.Bitmap)(obj));
}
}
-
- ///
- /// Looks up a localized string similar to Algemeen.
- ///
- internal static string Ringtoets_Category {
- get {
- return ResourceManager.GetString("Ringtoets_Category", resourceCulture);
- }
- }
}
}
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.resx
===================================================================
diff -u -raa5c3620f316831e71797c558a13a0b73a8109df -r1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.resx (.../Resources.resx) (revision aa5c3620f316831e71797c558a13a0b73a8109df)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.resx (.../Resources.resx) (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -117,16 +117,13 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- Algemeen
+
+ Dijktraject
-
- Toetstraject
+
+ Naam van het dijktraject.
-
- Naam van het toetstraject.
-
-
+
Naam
@@ -136,15 +133,6 @@
..\Resources\folder-stand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- Voeg piping faalmechanisme toe
-
-
- Start een nieuwe piping toetsing voor dit project.
-
-
- Kan geen nieuwe piping toetsing starten, omdat er al een piping toetsing is gestart voor dit project.
-
..\Resources\control_equalizer_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Fisheye: Tag 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/AssessmentSectionProperties.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DikeAssessmentSectionProperties.cs
===================================================================
diff -u
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DikeAssessmentSectionProperties.cs (revision 0)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DikeAssessmentSectionProperties.cs (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -0,0 +1,31 @@
+using Core.Common.Gui;
+using Core.Common.Utils;
+
+using Ringtoets.Integration.Data;
+using Ringtoets.Integration.Forms.Properties;
+
+namespace Ringtoets.Integration.Forms.PropertyClasses
+{
+ ///
+ /// ViewModel of for properties panel.
+ ///
+ [ResourcesDisplayName(typeof(Resources), "DikeAssessmentSection_DisplayName")]
+ public class DikeAssessmentSectionProperties : ObjectProperties
+ {
+ [ResourcesCategory(typeof(Resources), "Categories_General")]
+ [ResourcesDisplayName(typeof(Resources), "DikeAssessmentSection_Name_DisplayName")]
+ [ResourcesDescription(typeof(Resources), "DikeAssessmentSection_Name_Description")]
+ public string Name
+ {
+ get
+ {
+ return data.Name;
+ }
+ set
+ {
+ data.Name = value;
+ data.NotifyObservers();
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj
===================================================================
diff -u -r29573f70a58e541743a83a5c5c0d2d4febb7ff1c -r1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (.../Ringtoets.Integration.Forms.csproj) (revision 29573f70a58e541743a83a5c5c0d2d4febb7ff1c)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (.../Ringtoets.Integration.Forms.csproj) (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -54,14 +54,14 @@
Properties\GlobalAssembly.cs
-
+
True
True
Resources.resx
-
+
@@ -97,6 +97,7 @@
ResXFileCodeGenerator
Resources.Designer.cs
+ Designer
Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Ringtoets.Integration.Plugin.csproj
===================================================================
diff -u -r29573f70a58e541743a83a5c5c0d2d4febb7ff1c -r1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc
--- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Ringtoets.Integration.Plugin.csproj (.../Ringtoets.Integration.Plugin.csproj) (revision 29573f70a58e541743a83a5c5c0d2d4febb7ff1c)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Ringtoets.Integration.Plugin.csproj (.../Ringtoets.Integration.Plugin.csproj) (revision 1e08e4d88dc94cddaf7cbd38bdc2b42f263225bc)
@@ -40,11 +40,23 @@
MinimumRecommendedRules.ruleset
+
+ ..\..\..\..\packages\Fluent.Ribbon.3.4.0\lib\net40\Fluent.dll
+ True
+
+
+ ..\..\..\..\packages\Fluent.Ribbon.3.4.0\lib\net40\Microsoft.Windows.Shell.dll
+ True
+
+
+ ..\..\..\..\packages\Fluent.Ribbon.3.4.0\lib\net40\System.Windows.Interactivity.dll
+ True
+
@@ -60,6 +72,9 @@
+
+ RingtoetsRibbon.xaml
+
@@ -78,6 +93,10 @@
{c90b77da-e421-43cc-b82e-529651bc21ac}
Core.Common.Version
+
+ {4d840673-3812-4338-a352-84854e32b8a0}
+ Ringtoets.Common.Forms
+
{ce994cc9-6f6a-48ac-b4be-02c30a21f4db}
Ringtoets.Piping.Data
@@ -103,6 +122,15 @@
Ringtoets.Integration.Forms
+
+
+ Designer
+ MSBuild:Compile
+
+
+
+
+