Beispiel #1
0
        public CurvesDialog(CurvesData effectData) : base(Translations.GetString("Curves"), PintaCore.Chrome.MainWindow,
                                                          DialogFlags.Modal,
                                                          GtkExtensions.DialogButtonsCancelOk())
        {
            Build();

            EffectData = effectData;

            comboMap.Changed          += HandleComboMapChanged;
            buttonReset.Clicked       += HandleButtonResetClicked;
            checkRed.Toggled          += HandleCheckToggled;
            checkGreen.Toggled        += HandleCheckToggled;
            checkBlue.Toggled         += HandleCheckToggled;
            drawing.Drawn             += HandleDrawingDrawnEvent;
            drawing.MotionNotifyEvent += HandleDrawingMotionNotifyEvent;
            drawing.LeaveNotifyEvent  += HandleDrawingLeaveNotifyEvent;
            drawing.ButtonPressEvent  += HandleDrawingButtonPressEvent;

            ResetControlPoints();
        }
Beispiel #2
0
        public CurvesDialog(CurvesData effectData)
        {
            this.Build();

            EffectData = effectData;

            drawing.DoubleBuffered = true;

            comboMap.Changed          += HandleComboMapChanged;
            buttonReset.Clicked       += HandleButtonResetClicked;
            checkRed.Toggled          += HandleCheckToggled;
            checkGreen.Toggled        += HandleCheckToggled;
            checkBlue.Toggled         += HandleCheckToggled;
            drawing.ExposeEvent       += HandleDrawingExposeEvent;
            drawing.MotionNotifyEvent += HandleDrawingMotionNotifyEvent;
            drawing.LeaveNotifyEvent  += HandleDrawingLeaveNotifyEvent;
            drawing.ButtonPressEvent  += HandleDrawingButtonPressEvent;

            ResetControlPoints();
            AlternativeButtonOrder = new int[] { (int)Gtk.ResponseType.Ok, (int)Gtk.ResponseType.Cancel };
        }
Beispiel #3
0
        public CurvesDialog(CurvesData effectData) : base(Catalog.GetString("Curves"), PintaCore.Chrome.MainWindow,
                                                          DialogFlags.Modal,
                                                          Gtk.Stock.Cancel, Gtk.ResponseType.Cancel,
                                                          Gtk.Stock.Ok, Gtk.ResponseType.Ok)
        {
            Build();

            EffectData = effectData;

            drawing.DoubleBuffered = true;

            comboMap.Changed          += HandleComboMapChanged;
            buttonReset.Clicked       += HandleButtonResetClicked;
            checkRed.Toggled          += HandleCheckToggled;
            checkGreen.Toggled        += HandleCheckToggled;
            checkBlue.Toggled         += HandleCheckToggled;
            drawing.ExposeEvent       += HandleDrawingExposeEvent;
            drawing.MotionNotifyEvent += HandleDrawingMotionNotifyEvent;
            drawing.LeaveNotifyEvent  += HandleDrawingLeaveNotifyEvent;
            drawing.ButtonPressEvent  += HandleDrawingButtonPressEvent;

            ResetControlPoints();
            AlternativeButtonOrder = new int[] { (int)Gtk.ResponseType.Ok, (int)Gtk.ResponseType.Cancel };
        }
Beispiel #4
0
 public CurvesEffect()
 {
     EffectData = new CurvesData();
 }