rework histogram_bezier, init wm icon set_icon(gg), update de.po+msg/txt
[goodguy/history.git] / cinelerra-5.1 / plugins / histogram_bezier / bistogramwindow.h
index dbc8565850750304663e8441d6194d71e59f2f13..5051607f0f5bda4fd5ff40bfe402d2fc727225db 100644 (file)
@@ -2,21 +2,21 @@
 /*
  * CINELERRA
  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- * 
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- * 
+ *
  */
 
 #ifndef HISTOGRAMWINDOW_H
 class HistogramSmoothMode : public BC_PopupMenu
 {
 public:
-       HistogramSmoothMode(HistogramMain *client, 
-               HistogramWindow *window, 
-               int x, 
+       HistogramSmoothMode(HistogramMain *client,
+               HistogramWindow *window,
+               int x,
                int y);
        void create_objects();
+       int set_mode(int mode);
+       int get_mode();
        static char* to_text(int shape);
        static int from_text(char *text);
        int handle_event();
@@ -47,10 +49,10 @@ public:
 class HistogramSlider : public BC_SubWindow
 {
 public:
-       HistogramSlider(HistogramMain *plugin, 
+       HistogramSlider(HistogramMain *plugin,
                HistogramWindow *gui,
-               int x, 
-               int y, 
+               int x,
+               int y,
                int w,
                int h,
                int is_input);
@@ -77,8 +79,8 @@ public:
 class HistogramAuto : public BC_CheckBox
 {
 public:
-       HistogramAuto(HistogramMain *plugin, 
-               int x, 
+       HistogramAuto(HistogramMain *plugin,
+               int x,
                int y);
        int handle_event();
        HistogramMain *plugin;
@@ -87,8 +89,8 @@ public:
 class HistogramSplit : public BC_CheckBox
 {
 public:
-       HistogramSplit(HistogramMain *plugin, 
-               int x, 
+       HistogramSplit(HistogramMain *plugin,
+               int x,
                int y);
        int handle_event();
        HistogramMain *plugin;
@@ -97,20 +99,27 @@ public:
 class HistogramMode : public BC_Radial
 {
 public:
-       HistogramMode(HistogramMain *plugin, 
-               int x, 
-               int y,
-               int value,
-               char *text);
+       HistogramMode(HistogramMain *plugin, int x, int y,
+               int value, const char *text);
        int handle_event();
+
        HistogramMain *plugin;
        int value;
 };
 
+class HistogramClear : public BC_GenericButton
+{
+public:
+       HistogramClear(HistogramMain *plugin, int x, int y, const char *text);
+       int handle_event();
+
+       HistogramMain *plugin;
+};
+
 class HistogramReset : public BC_GenericButton
 {
 public:
-       HistogramReset(HistogramMain *plugin, 
+       HistogramReset(HistogramMain *plugin,
                int x,
                int y);
        int handle_event();
@@ -177,6 +186,7 @@ public:
        void draw_canvas_overlay();
        void update_input();
        void update_output();
+       int delete_current_point();
        int keypress_event();
 
        HistogramSlider *output;
@@ -184,6 +194,7 @@ public:
        HistogramSplit *split;
        HistogramSmoothMode *smoothModeChoser;
        HistogramMode *mode_v, *mode_r, *mode_g, *mode_b /*,  *mode_a */;
+       HistogramClear *clear;
        HistogramOutputText *output_min;
        HistogramOutputText *output_max;
        HistogramOutputText *threshold;