diff options
author | sr55 <[email protected]> | 2008-10-25 20:36:04 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-10-25 20:36:04 +0000 |
commit | 54f291c822357595718264fe167cf63c25e5fbb8 (patch) | |
tree | 1c555cf958f438c87511488d74ea6dd29d918a98 /win/C#/Presets/preset.cs | |
parent | 4539e3ea182732e2faa265dbecc1029ed0f3fa72 (diff) |
WinGui:
- Nested Presets bar (Built-in presets only)
- Both user and built-in presets are now stored in XML files
- Preset bar now has right-click menu with: Expand All, Collapse All and Delete
Known Issues:
- When a preset is removed, all items in the preset bar with child presets are collapsed.
- Right Click menu only works if the preset was selected before right clicking.
Code is probably a bit buggy so all feedback on this new bar is welcome.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1866 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Presets/preset.cs')
-rw-r--r-- | win/C#/Presets/preset.cs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/win/C#/Presets/preset.cs b/win/C#/Presets/preset.cs new file mode 100644 index 000000000..9f7eed8bd --- /dev/null +++ b/win/C#/Presets/preset.cs @@ -0,0 +1,60 @@ +using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.IO;
+using System.Text.RegularExpressions;
+using System.Diagnostics;
+
+namespace Handbrake.Presets
+{
+ public class Preset
+ {
+
+ private int level = 0;
+ private string category = null;
+ private string name;
+ private string query;
+
+ public Preset()
+ {
+ }
+
+ /// <summary>
+ /// Get or Set the preset's level. This indicated if it is a root or child node
+ /// </summary>
+ public int Level
+ {
+ get { return level; }
+ set { this.level = value; }
+ }
+
+ /// <summary>
+ /// Get or Set the category which the preset resides under
+ /// </summary>
+ public string Category
+ {
+ get { return category; }
+ set { this.category = value; }
+ }
+
+ /// <summary>
+ /// Get or Set the preset name
+ /// </summary>
+ public string Name
+ {
+ get { return name; }
+ set { this.name = value; }
+ }
+
+ /// <summary>
+ /// Get or set the preset query
+ /// </summary>
+ public string Query
+ {
+ get { return query; }
+ set { this.query = value; }
+ }
+
+ }
+}
\ No newline at end of file |