コード例 #1
0
        public PreferencesWindow(MainWindow parent = null, EditorWindow edparent = null) : base(Gtk.WindowType.Toplevel)
        {
            Build();
            if (parent != null)
            {
                parentWindow   = parent;
                parentWindowEd = null;
            }
            else if (edparent != null)
            {
                parentWindow   = null;
                parentWindowEd = edparent;
            }
            else
            {
                throw new Exception("parent window needed");
            }
            MainClass.OpenWindow(this, "PreferencesWindow");

            // test:
            string all = "";

            foreach (string item in MainClass.GetThemes())
            {
                all += "\n" + item;
            }
            textview1.Buffer.Text = all;
        }
コード例 #2
0
ファイル: EditorWindow.cs プロジェクト: SjVer/GDscript-Shell
 public EditorWindow(MainWindow parent) : base(Gtk.WindowType.Toplevel)
 {
     Build();
     isAlive = true;
     MainClass.OpenWindow(this, "EditorWindow");
     parentWindow = parent;
     Console.WriteLine("Parent window: " + parentWindow.Name);
     Title = "GDScript Editor";
 }