Changeset 3098 for libpipi/trunk/ThePimp/gtk-gui/ThePimp.NewFile.cs
- Timestamp:
- Oct 25, 2008, 3:05:00 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/ThePimp/gtk-gui/ThePimp.NewFile.cs
r2948 r3098 24 24 private Gtk.Table table1; 25 25 26 private Gtk.Entry entry1;27 28 private Gtk.Entry entry2;29 30 26 private Gtk.Label label1; 31 27 … … 35 31 36 32 private Gtk.Label label4; 33 34 private Gtk.SpinButton spinbutton1; 35 36 private Gtk.SpinButton spinbutton2; 37 37 38 38 private Gtk.Label GtkLabel3; … … 60 60 this.Title = Mono.Unix.Catalog.GetString("New Image"); 61 61 this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-new", Gtk.IconSize.Menu, 16); 62 this.TypeHint = ((Gdk.WindowTypeHint)(1)); 62 63 this.WindowPosition = ((Gtk.WindowPosition)(4)); 64 this.Modal = true; 63 65 this.HasSeparator = false; 64 66 // Internal child ThePimp.NewFile.VBox … … 89 91 this.table1.ColumnSpacing = ((uint)(6)); 90 92 // Container child table1.Gtk.Table+TableChild 91 this.entry1 = new Gtk.Entry();92 this.entry1.CanFocus = true;93 this.entry1.Name = "entry1";94 this.entry1.Text = Mono.Unix.Catalog.GetString("1024");95 this.entry1.IsEditable = true;96 this.entry1.WidthChars = 6;97 this.entry1.InvisibleChar = '●';98 this.entry1.Xalign = 1F;99 this.table1.Add(this.entry1);100 Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.entry1]));101 w2.LeftAttach = ((uint)(1));102 w2.RightAttach = ((uint)(2));103 w2.XOptions = ((Gtk.AttachOptions)(4));104 w2.YOptions = ((Gtk.AttachOptions)(4));105 // Container child table1.Gtk.Table+TableChild106 this.entry2 = new Gtk.Entry();107 this.entry2.CanFocus = true;108 this.entry2.Name = "entry2";109 this.entry2.Text = Mono.Unix.Catalog.GetString("768");110 this.entry2.IsEditable = true;111 this.entry2.WidthChars = 6;112 this.entry2.InvisibleChar = '●';113 this.entry2.Xalign = 1F;114 this.table1.Add(this.entry2);115 Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.entry2]));116 w3.TopAttach = ((uint)(1));117 w3.BottomAttach = ((uint)(2));118 w3.LeftAttach = ((uint)(1));119 w3.RightAttach = ((uint)(2));120 w3.XOptions = ((Gtk.AttachOptions)(4));121 w3.YOptions = ((Gtk.AttachOptions)(4));122 // Container child table1.Gtk.Table+TableChild123 93 this.label1 = new Gtk.Label(); 124 94 this.label1.Name = "label1"; 125 95 this.label1.LabelProp = Mono.Unix.Catalog.GetString("px"); 126 96 this.table1.Add(this.label1); 127 Gtk.Table.TableChild w 4= ((Gtk.Table.TableChild)(this.table1[this.label1]));128 w 4.LeftAttach = ((uint)(2));129 w 4.RightAttach = ((uint)(3));130 w 4.XOptions = ((Gtk.AttachOptions)(4));131 w 4.YOptions = ((Gtk.AttachOptions)(4));97 Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1])); 98 w2.LeftAttach = ((uint)(2)); 99 w2.RightAttach = ((uint)(3)); 100 w2.XOptions = ((Gtk.AttachOptions)(4)); 101 w2.YOptions = ((Gtk.AttachOptions)(4)); 132 102 // Container child table1.Gtk.Table+TableChild 133 103 this.label2 = new Gtk.Label(); … … 135 105 this.label2.LabelProp = Mono.Unix.Catalog.GetString("px"); 136 106 this.table1.Add(this.label2); 137 Gtk.Table.TableChild w 5= ((Gtk.Table.TableChild)(this.table1[this.label2]));138 w 5.TopAttach = ((uint)(1));139 w 5.BottomAttach = ((uint)(2));140 w 5.LeftAttach = ((uint)(2));141 w 5.RightAttach = ((uint)(3));142 w 5.XOptions = ((Gtk.AttachOptions)(4));143 w 5.YOptions = ((Gtk.AttachOptions)(4));107 Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2])); 108 w3.TopAttach = ((uint)(1)); 109 w3.BottomAttach = ((uint)(2)); 110 w3.LeftAttach = ((uint)(2)); 111 w3.RightAttach = ((uint)(3)); 112 w3.XOptions = ((Gtk.AttachOptions)(4)); 113 w3.YOptions = ((Gtk.AttachOptions)(4)); 144 114 // Container child table1.Gtk.Table+TableChild 145 115 this.label3 = new Gtk.Label(); … … 148 118 this.label3.Justify = ((Gtk.Justification)(1)); 149 119 this.table1.Add(this.label3); 150 Gtk.Table.TableChild w 6= ((Gtk.Table.TableChild)(this.table1[this.label3]));151 w 6.XOptions = ((Gtk.AttachOptions)(0));152 w 6.YOptions = ((Gtk.AttachOptions)(4));120 Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label3])); 121 w4.XOptions = ((Gtk.AttachOptions)(0)); 122 w4.YOptions = ((Gtk.AttachOptions)(4)); 153 123 // Container child table1.Gtk.Table+TableChild 154 124 this.label4 = new Gtk.Label(); … … 157 127 this.label4.Justify = ((Gtk.Justification)(1)); 158 128 this.table1.Add(this.label4); 159 Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label4])); 129 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label4])); 130 w5.TopAttach = ((uint)(1)); 131 w5.BottomAttach = ((uint)(2)); 132 w5.XOptions = ((Gtk.AttachOptions)(0)); 133 w5.YOptions = ((Gtk.AttachOptions)(4)); 134 // Container child table1.Gtk.Table+TableChild 135 this.spinbutton1 = new Gtk.SpinButton(1, 1000000, 1); 136 this.spinbutton1.CanFocus = true; 137 this.spinbutton1.Name = "spinbutton1"; 138 this.spinbutton1.Adjustment.PageIncrement = 10; 139 this.spinbutton1.ClimbRate = 1; 140 this.spinbutton1.Numeric = true; 141 this.spinbutton1.Value = 1600; 142 this.table1.Add(this.spinbutton1); 143 Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.spinbutton1])); 144 w6.LeftAttach = ((uint)(1)); 145 w6.RightAttach = ((uint)(2)); 146 w6.XOptions = ((Gtk.AttachOptions)(4)); 147 w6.YOptions = ((Gtk.AttachOptions)(4)); 148 // Container child table1.Gtk.Table+TableChild 149 this.spinbutton2 = new Gtk.SpinButton(1, 1000000, 1); 150 this.spinbutton2.CanFocus = true; 151 this.spinbutton2.Name = "spinbutton2"; 152 this.spinbutton2.Adjustment.PageIncrement = 10; 153 this.spinbutton2.ClimbRate = 1; 154 this.spinbutton2.Numeric = true; 155 this.spinbutton2.Value = 1200; 156 this.table1.Add(this.spinbutton2); 157 Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.spinbutton2])); 160 158 w7.TopAttach = ((uint)(1)); 161 159 w7.BottomAttach = ((uint)(2)); 162 w7.XOptions = ((Gtk.AttachOptions)(0)); 160 w7.LeftAttach = ((uint)(1)); 161 w7.RightAttach = ((uint)(2)); 162 w7.XOptions = ((Gtk.AttachOptions)(4)); 163 163 w7.YOptions = ((Gtk.AttachOptions)(4)); 164 164 this.vbox3.Add(this.table1); … … 262 262 } 263 263 this.DefaultWidth = 240; 264 this.DefaultHeight = 2 02;264 this.DefaultHeight = 221; 265 265 this.Show(); 266 266 }
Note: See TracChangeset
for help on using the changeset viewer.