/*
* 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();
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);
class HistogramAuto : public BC_CheckBox
{
public:
- HistogramAuto(HistogramMain *plugin,
- int x,
+ HistogramAuto(HistogramMain *plugin,
+ int x,
int y);
int handle_event();
HistogramMain *plugin;
class HistogramSplit : public BC_CheckBox
{
public:
- HistogramSplit(HistogramMain *plugin,
- int x,
+ HistogramSplit(HistogramMain *plugin,
+ int x,
int y);
int handle_event();
HistogramMain *plugin;
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();
void draw_canvas_overlay();
void update_input();
void update_output();
+ int delete_current_point();
int keypress_event();
HistogramSlider *output;
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;