public StageOperationTitleWidget() { this.Build(); // Edit ForeColoredSymbol edit_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.pen.png")) { edit_symbol.Symbol = buf; } edit_symbol.Show(); edit_togglebutton.Image = edit_symbol; // Freeze ForeColoredSymbol freeze_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.snowflake.png")) { freeze_symbol.Symbol = buf; } freeze_symbol.Show(); freeze_togglebutton.Image = freeze_symbol; // Up ForeColoredSymbol up_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.up.png")) { up_symbol.Symbol = buf; } up_symbol.Show(); up_button.Image = up_symbol; // Down ForeColoredSymbol down_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.down.png")) { down_symbol.Symbol = buf; } down_symbol.Show(); down_button.Image = down_symbol; // Remove ForeColoredSymbol remove_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.remove.png")) { remove_symbol.Symbol = buf; } remove_symbol.Show(); remove_button.Image = remove_symbol; }
public CrotateStageOperationParametersWidget(StageOperationParameters parameters) : base(parameters) { this.Build(); // Link to height (chain) ForeColoredSymbol link_w_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.chain.png")) { link_w_symbol.Symbol = buf; } link_w_symbol.Show(); link_w_togglebutton.Image = link_w_symbol; // Link to width (chain) ForeColoredSymbol link_h_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.chain.png")) { link_h_symbol.Symbol = buf; } link_h_symbol.Show(); link_h_togglebutton.Image = link_h_symbol; // Custom (line) ForeColoredSymbol custom_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.line.png")) { custom_symbol.Symbol = buf; } custom_symbol.Show(); custom_togglebutton.Image = custom_symbol; custom_togglebutton.Label = null; ls = new ListStore(typeof(string), typeof(int)); string[] ratioNames = ((CrotateStageOperationParameters)Parameters).PresetAspectRatioNames; for (int i = 0; i < ratioNames.Length; i++) { ls.AppendValues(ratioNames[i], i); } aspect_combobox.Model = ls; TreeIter ti; ls.GetIterFirst(out ti); mAspectComboboxSelfModifying = true; aspect_combobox.SetActiveIter(ti); mAspectComboboxSelfModifying = false; }
public StageOperationTitleWidget() { this.Build (); // Edit ForeColoredSymbol edit_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.pen.png")) { edit_symbol.Symbol = buf; } edit_symbol.Show(); edit_togglebutton.Image = edit_symbol; // Freeze ForeColoredSymbol freeze_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.snowflake.png")) { freeze_symbol.Symbol = buf; } freeze_symbol.Show(); freeze_togglebutton.Image = freeze_symbol; // Up ForeColoredSymbol up_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.up.png")) { up_symbol.Symbol = buf; } up_symbol.Show(); up_button.Image = up_symbol; // Down ForeColoredSymbol down_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.down.png")) { down_symbol.Symbol = buf; } down_symbol.Show(); down_button.Image = down_symbol; // Remove ForeColoredSymbol remove_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.remove.png")) { remove_symbol.Symbol = buf; } remove_symbol.Show(); remove_button.Image = remove_symbol; }
public CrotateStageOperationParametersWidget(StageOperationParameters parameters) : base(parameters) { this.Build (); // Link to height (chain) ForeColoredSymbol link_w_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.chain.png")) { link_w_symbol.Symbol = buf; } link_w_symbol.Show(); link_w_togglebutton.Image = link_w_symbol; // Link to width (chain) ForeColoredSymbol link_h_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.chain.png")) { link_h_symbol.Symbol = buf; } link_h_symbol.Show(); link_h_togglebutton.Image = link_h_symbol; // Custom (line) ForeColoredSymbol custom_symbol = new ForeColoredSymbol(); using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.line.png")) { custom_symbol.Symbol = buf; } custom_symbol.Show(); custom_togglebutton.Image = custom_symbol; custom_togglebutton.Label = null; ls = new ListStore(typeof(string), typeof(int)); string[] ratioNames = ((CrotateStageOperationParameters)Parameters).PresetAspectRatioNames; for (int i = 0; i < ratioNames.Length; i++) { ls.AppendValues(ratioNames[i], i); } aspect_combobox.Model = ls; TreeIter ti; ls.GetIterFirst(out ti); mAspectComboboxSelfModifying = true; aspect_combobox.SetActiveIter(ti); mAspectComboboxSelfModifying = false; }
/* public bool View { get { return view_togglebutton.Active; } set { view_togglebutton.Active = value; } } */ public FrozenPanel() { this.Build (); ForeColoredSymbol freeze_symbol = new ForeColoredSymbol(); int pic_width; using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.snowflake.png")) { freeze_symbol.Symbol = buf; pic_width = buf.Width; } hbox.Add (freeze_symbol); ((HBox.BoxChild)(hbox[freeze_symbol])).Position = 0; ((HBox.BoxChild)(hbox[freeze_symbol])).Expand = false; freeze_symbol.SetSizeRequest(pic_width + 4, 0); freeze_symbol.Show(); }
/* * public bool View * { * get { return view_togglebutton.Active; } * set { * view_togglebutton.Active = value; * } * } */ public FrozenPanel() { this.Build(); ForeColoredSymbol freeze_symbol = new ForeColoredSymbol(); int pic_width; using (Gdk.Pixbuf buf = Gdk.Pixbuf.LoadFromResource("CatEye.UI.Gtk.Widgets.res.snowflake.png")) { freeze_symbol.Symbol = buf; pic_width = buf.Width; } hbox.Add(freeze_symbol); ((HBox.BoxChild)(hbox[freeze_symbol])).Position = 0; ((HBox.BoxChild)(hbox[freeze_symbol])).Expand = false; freeze_symbol.SetSizeRequest(pic_width + 4, 0); freeze_symbol.Show(); }