diff options
author | sr55 <[email protected]> | 2012-07-13 21:28:03 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-07-13 21:28:03 +0000 |
commit | 2425840702b5e319165384f73a51874349ee6d84 (patch) | |
tree | 2e4868e7839f841a8127e2275577b7f797e15677 /win/CS/HandBrakeWPF/Model | |
parent | 252b183a32348050bbf9c23f3d70e9723db9271a (diff) |
WinGui: Improve the code behind the taskbar source menu. Note, The Disc insert detection still isn't in place, so it will only show the initial available drives, it won't detect disc changes yet.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4828 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Model')
-rw-r--r-- | win/CS/HandBrakeWPF/Model/SourceMenuItem.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Model/SourceMenuItem.cs b/win/CS/HandBrakeWPF/Model/SourceMenuItem.cs new file mode 100644 index 000000000..b0c4a9766 --- /dev/null +++ b/win/CS/HandBrakeWPF/Model/SourceMenuItem.cs @@ -0,0 +1,54 @@ +// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="SourceMenuItem.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the SourceMenuItem type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrakeWPF.Model
+{
+ using System.Collections.ObjectModel;
+ using System.Windows.Controls;
+ using System.Windows.Input;
+
+ /// <summary>
+ /// The source menu item.
+ /// </summary>
+ public class SourceMenuItem
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="SourceMenuItem"/> class.
+ /// </summary>
+ public SourceMenuItem()
+ {
+ this.Children = new ObservableCollection<SourceMenuItem>();
+ }
+
+ /// <summary>
+ /// Gets or sets the text.
+ /// </summary>
+ public string Text { get; set; }
+
+ /// <summary>
+ /// Gets or sets the command.
+ /// </summary>
+ public ICommand Command { get; set; }
+
+ /// <summary>
+ /// Gets or sets the image.
+ /// </summary>
+ public Image Image { get; set; }
+
+ /// <summary>
+ /// Gets or sets the children.
+ /// </summary>
+ public ObservableCollection<SourceMenuItem> Children { get; set; }
+
+ /// <summary>
+ /// Gets or sets the tag.
+ /// </summary>
+ public object Tag { get; set; }
+ }
+}
|