// // GenericBrowserPopup.Designer.cs // // Author: // Michael Becker // // Copyright (c) 2019 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . using System; using UniversalWidgetToolkit; using UniversalWidgetToolkit.Controls; using UniversalWidgetToolkit.Layouts; namespace UniversalEditor.UserInterface.Dialogs { partial class GenericBrowserPopup where TObj : class, References where TRef : class, ReferencedBy { private CheckBox chkShowAll = null; private TextBox txtSearch = null; private ListView lv = null; private Container ctSearchAndShowAll = null; private DefaultTreeModel tm = null; private void InitializeComponent() { this.Decorated = false; this.Layout = new BoxLayout(Orientation.Vertical); this.ctSearchAndShowAll = new Container(); this.ctSearchAndShowAll.Layout = new BoxLayout(Orientation.Horizontal); this.txtSearch = new TextBox(); this.txtSearch.Changed += txtSearch_Changed; this.ctSearchAndShowAll.Controls.Add(this.txtSearch, new BoxLayout.Constraints(true, true)); this.chkShowAll = new CheckBox(); this.chkShowAll.Text = "Show _all"; this.chkShowAll.Click += chkShowAll_Click; this.ctSearchAndShowAll.Controls.Add(this.chkShowAll, new BoxLayout.Constraints(false, false)); this.Controls.Add(ctSearchAndShowAll, new BoxLayout.Constraints(false, true)); this.tm = new DefaultTreeModel(new Type[] { typeof(string), typeof(string) }); this.lv = new ListView(); lv.Columns.Add(new ListViewColumnText(tm.Columns[0], "Name")); lv.Columns.Add(new ListViewColumnText(tm.Columns[1], "Description")); lv.RowActivated += this.lv_RowActivated; this.lv.Model = tm; this.Controls.Add(this.lv, new BoxLayout.Constraints(true, true)); } } }