3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 * Namespace: System.Web.UI.Design.WebControls
24 * Class: RegexEditorDialog
26 * Author: Gaurav Vaish
27 * Maintainer: mastergaurav AT users DOT sf DOT net
29 * (C) Gaurav Vaish (2002)
34 using System.ComponentModel;
35 using System.Windows.Forms;
36 using System.Windows.Forms.Design;
38 namespace System.Web.UI.Design.WebControls
40 public class RegexEditorDialog : Form
43 private Container components;
44 private bool isActivated;
46 private string regularExpression = String.Empty;
48 private Button helpBtn;
49 private Button testValBtn;
51 private Button cancelBtn;
53 private Label inputLabel;
54 private Label testResultsLabel;
55 private Label stdExprLabel;
56 private Label exprLabel;
58 private ListBox stdExprsList;
60 private TextBox exprText;
61 private TextBox sampleText;
63 private GroupBox exprGrp;
65 public RegexEditorDialog(ISite site) : base()
68 this.isActivated = false;
71 InitializeComponents();
75 private void InitializeComponents()
77 components = new Container();
79 helpBtn = new Button();
80 testValBtn = new Button();
82 cancelBtn = new Button();
84 inputLabel = new Label();
85 testResultsLabel = new Label();
86 stdExprLabel = new Label();
87 exprLabel = new Label();
89 stdExprsList = new ListBox();
91 exprText = new TextBox();
92 sampleText = new TextBox();
94 exprGrp = new GroupBox();
96 System.Drawing.Font cFont = System.Windows.Forms.Control.DefaultFont;
97 IUIService service = (IUIService)site.GetService(typeof(IUIService));
100 cFont = (Font)(service.Styles["DialogFont"]);
102 throw new NotImplementedException();
105 public string RegularExpression
109 return regularExpression;
113 regularExpression = value;
117 protected override void Dispose(bool disposing)
121 components.Dispose();
123 base.Dispose(disposing);
127 private object[] CannedExpressions
131 throw new NotImplementedException();
135 private class CannedExpression
137 public string Description;
138 public string Expression;
140 public CannedExpression(string description, string expression)
142 Description = description;
143 Expression = expression;
146 public override string ToString()