2 // Radegast Metaverse Client
3 // Copyright (c) 2009-2013, Radegast Development Team
4 // All rights reserved.
6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are met:
9 // * Redistributions of source code must retain the above copyright notice,
10 // this list of conditions and the following disclaimer.
11 // * Redistributions in binary form must reproduce the above copyright
12 // notice, this list of conditions and the following disclaimer in the
13 // documentation and/or other materials provided with the distribution.
14 // * Neither the name of the application "Radegast", nor the names of its
15 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission.
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26 // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 partial class TabsConsole
36 /// Required designer variable.
38 private System.ComponentModel.IContainer components = null;
41 /// Clean up any resources being used.
43 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
44 protected override void Dispose(bool disposing)
48 // if (!instance.MonoRuntime || IsHandleCreated)
50 // Invoke(new System.Windows.Forms.MethodInvoker(() => Dispose(disposing)));
55 if (disposing && (components != null))
64 System.Collections.Generic.List<string> tabNames = new System.Collections.Generic.List<string>(tabs.Keys);
65 for (int i = 0; i < tabNames.Count; i++)
67 if (tabNames[i] != "chat")
68 ForceCloseTab(tabNames[i]);
70 ForceCloseTab("chat");
74 base.Dispose(disposing);
77 #region Component Designer generated code
80 /// Required method for Designer support - do not modify
81 /// the contents of this method with the code editor.
83 private void InitializeComponent()
85 this.components = new System.ComponentModel.Container();
86 this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer();
87 this.tstTabs = new System.Windows.Forms.ToolStrip();
88 this.ctxTabs = new Radegast.RadegastContextMenuStrip(this.components);
89 this.ctxBtnDetach = new System.Windows.Forms.ToolStripMenuItem();
90 this.ctxBtnMerge = new System.Windows.Forms.ToolStripMenuItem();
91 this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
92 this.ctxBtnClose = new System.Windows.Forms.ToolStripMenuItem();
93 this.tbtnCloseTab = new System.Windows.Forms.ToolStripButton();
94 this.tbtnTabOptions = new System.Windows.Forms.ToolStripDropDownButton();
95 this.tmnuMergeWith = new System.Windows.Forms.ToolStripMenuItem();
96 this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
97 this.tmnuDetachTab = new System.Windows.Forms.ToolStripMenuItem();
98 this.toolStripContainer1.TopToolStripPanel.SuspendLayout();
99 this.toolStripContainer1.SuspendLayout();
100 this.tstTabs.SuspendLayout();
101 this.ctxTabs.SuspendLayout();
102 this.SuspendLayout();
104 // toolStripContainer1
107 // toolStripContainer1.ContentPanel
109 this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(623, 436);
110 this.toolStripContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
111 this.toolStripContainer1.Location = new System.Drawing.Point(0, 0);
112 this.toolStripContainer1.Name = "toolStripContainer1";
113 this.toolStripContainer1.Size = new System.Drawing.Size(623, 461);
114 this.toolStripContainer1.TabIndex = 9;
115 this.toolStripContainer1.Text = "toolStripContainer1";
117 // toolStripContainer1.TopToolStripPanel
119 this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.tstTabs);
123 this.tstTabs.ContextMenuStrip = this.ctxTabs;
124 this.tstTabs.Dock = System.Windows.Forms.DockStyle.None;
125 this.tstTabs.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
126 this.tstTabs.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
128 this.tbtnTabOptions});
129 this.tstTabs.Location = new System.Drawing.Point(0, 0);
130 this.tstTabs.Name = "tstTabs";
131 this.tstTabs.Size = new System.Drawing.Size(623, 25);
132 this.tstTabs.Stretch = true;
133 this.tstTabs.TabIndex = 0;
134 this.tstTabs.Text = "toolStrip1";
138 this.ctxTabs.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
141 this.toolStripMenuItem2,
143 this.ctxTabs.Name = "ctxTabs";
144 this.ctxTabs.Size = new System.Drawing.Size(135, 76);
145 this.ctxTabs.Opening += new System.ComponentModel.CancelEventHandler(this.ctxTabs_Opening);
149 this.ctxBtnDetach.Name = "ctxBtnDetach";
150 this.ctxBtnDetach.Size = new System.Drawing.Size(134, 22);
151 this.ctxBtnDetach.Text = "Detach";
152 this.ctxBtnDetach.Click += new System.EventHandler(this.tmnuDetachTab_Click);
156 this.ctxBtnMerge.Name = "ctxBtnMerge";
157 this.ctxBtnMerge.Size = new System.Drawing.Size(134, 22);
158 this.ctxBtnMerge.Text = "Merge with";
160 // toolStripMenuItem2
162 this.toolStripMenuItem2.Name = "toolStripMenuItem2";
163 this.toolStripMenuItem2.Size = new System.Drawing.Size(131, 6);
167 this.ctxBtnClose.Name = "ctxBtnClose";
168 this.ctxBtnClose.Size = new System.Drawing.Size(134, 22);
169 this.ctxBtnClose.Text = "Close";
170 this.ctxBtnClose.ToolTipText = " Close ";
171 this.ctxBtnClose.Click += new System.EventHandler(this.tbtnCloseTab_Click);
175 this.tbtnCloseTab.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
176 this.tbtnCloseTab.AutoToolTip = false;
177 this.tbtnCloseTab.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
178 this.tbtnCloseTab.Enabled = false;
179 this.tbtnCloseTab.Image = global::Radegast.Properties.Resources.delete_16;
180 this.tbtnCloseTab.ImageTransparentColor = System.Drawing.Color.Magenta;
181 this.tbtnCloseTab.Name = "tbtnCloseTab";
182 this.tbtnCloseTab.Size = new System.Drawing.Size(23, 22);
183 this.tbtnCloseTab.ToolTipText = "Close Tab";
184 this.tbtnCloseTab.Click += new System.EventHandler(this.tbtnCloseTab_Click);
188 this.tbtnTabOptions.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
189 this.tbtnTabOptions.AutoToolTip = false;
190 this.tbtnTabOptions.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
191 this.tbtnTabOptions.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
193 this.toolStripMenuItem1,
194 this.tmnuDetachTab});
195 this.tbtnTabOptions.Image = global::Radegast.Properties.Resources.applications_16;
196 this.tbtnTabOptions.ImageTransparentColor = System.Drawing.Color.Magenta;
197 this.tbtnTabOptions.Name = "tbtnTabOptions";
198 this.tbtnTabOptions.Size = new System.Drawing.Size(29, 22);
199 this.tbtnTabOptions.Visible = false;
200 this.tbtnTabOptions.Click += new System.EventHandler(this.tbtnTabOptions_Click);
204 this.tmnuMergeWith.Name = "tmnuMergeWith";
205 this.tmnuMergeWith.Size = new System.Drawing.Size(136, 22);
206 this.tmnuMergeWith.Text = "Merge With";
208 // toolStripMenuItem1
210 this.toolStripMenuItem1.Name = "toolStripMenuItem1";
211 this.toolStripMenuItem1.Size = new System.Drawing.Size(133, 6);
215 this.tmnuDetachTab.Image = global::Radegast.Properties.Resources.copy_16;
216 this.tmnuDetachTab.Name = "tmnuDetachTab";
217 this.tmnuDetachTab.Size = new System.Drawing.Size(136, 22);
218 this.tmnuDetachTab.Text = "Detach Tab";
219 this.tmnuDetachTab.Click += new System.EventHandler(this.tmnuDetachTab_Click);
223 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
224 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
225 this.Controls.Add(this.toolStripContainer1);
226 this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
227 this.Name = "TabsConsole";
228 this.Size = new System.Drawing.Size(623, 461);
229 this.Load += new System.EventHandler(this.TabsConsole_Load);
230 this.toolStripContainer1.TopToolStripPanel.ResumeLayout(false);
231 this.toolStripContainer1.TopToolStripPanel.PerformLayout();
232 this.toolStripContainer1.ResumeLayout(false);
233 this.toolStripContainer1.PerformLayout();
234 this.tstTabs.ResumeLayout(false);
235 this.tstTabs.PerformLayout();
236 this.ctxTabs.ResumeLayout(false);
237 this.ResumeLayout(false);
243 public System.Windows.Forms.ToolStripContainer toolStripContainer1;
244 public System.Windows.Forms.ToolStrip tstTabs;
245 public System.Windows.Forms.ToolStripDropDownButton tbtnTabOptions;
246 public System.Windows.Forms.ToolStripMenuItem tmnuMergeWith;
247 public System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
248 public System.Windows.Forms.ToolStripMenuItem tmnuDetachTab;
249 public System.Windows.Forms.ToolStripButton tbtnCloseTab;
250 public RadegastContextMenuStrip ctxTabs;
251 public System.Windows.Forms.ToolStripMenuItem ctxBtnDetach;
252 public System.Windows.Forms.ToolStripMenuItem ctxBtnClose;
253 public System.Windows.Forms.ToolStripMenuItem ctxBtnMerge;
254 public System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;