コード例 #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();
        }
コード例 #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 };
        }
コード例 #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 };
        }
コード例 #4
0
ファイル: CurvesEffect.cs プロジェクト: ywscr/Pinta
 public CurvesEffect()
 {
     EffectData = new CurvesData();
 }