Example #1
0
        private void AddEffect(string category, Gtk.Action action)
        {
            HBox command_map_box;

            if (command_map_boxes.Count > 0)
            {
                var last_box = command_map_boxes[command_map_boxes.Count - 1];

                const int widgets_per_box = 10;
                if (last_box.Children.Length == widgets_per_box)
                {
                    last_box = new HBox();
                    command_map_boxes.Add(last_box);
                    EffectsCommandMapBox.Add(last_box);
                }

                command_map_box = last_box;
            }
            else
            {
                command_map_box = new HBox();
                command_map_boxes.Add(command_map_box);
                EffectsCommandMapBox.Add(command_map_box);
            }

            var button = new CommandMapButton("Effects", action);

            command_map_button_boxes[action] = command_map_box;
            command_map_box.Add(button);
            command_map_buttons.Add(action, button);
        }
Example #2
0
        private void AddAdjustment(BaseEffect adjustment, Gtk.Action action)
        {
            var button = new CommandMapButton("Adjustments", action);

            AdjustmentsCommandMapBox.Add(button);
            adjustment_command_map_buttons.Add(adjustment, button);
        }
Example #3
0
        private void AddEffect(string category, Gtk.Action action)
        {
            HBox command_map_box;

            if (command_map_boxes.Count > 0)
            {
                var last_box = command_map_boxes[command_map_boxes.Count - 1];

                const int widgets_per_box = 10;
                if (last_box.Children.Length == widgets_per_box)
                {
                    last_box = new HBox ();
                    command_map_boxes.Add (last_box);
                    EffectsCommandMapBox.Add (last_box);
                }

                command_map_box = last_box;
            }
            else
            {
                command_map_box = new HBox ();
                command_map_boxes.Add (command_map_box);
                EffectsCommandMapBox.Add (command_map_box);
            }

            var button = new CommandMapButton ("Effects", action);

            command_map_button_boxes[action] = command_map_box;
            command_map_box.Add (button);
            command_map_buttons.Add (action, button);
        }
Example #4
0
 private void AddAdjustment(BaseEffect adjustment, Gtk.Action action)
 {
     var button = new CommandMapButton ("Adjustments", action);
     AdjustmentsCommandMapBox.Add (button);
     adjustment_command_map_buttons.Add (adjustment, button);
 }