4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef DEINTERWINDOW_H
23 #define DEINTERWINDOW_H
26 class DeInterlaceThread;
27 class DeInterlaceWindow;
31 #include "deinterlace-cv.h"
32 #include "pluginclient.h"
35 class DeInterlaceOption;
36 class DeInterlaceMode;
37 class DeInterlaceDominanceTop;
38 class DeInterlaceDominanceBottom;
39 class DeInterlaceAdaptive;
40 class DeInterlaceThreshold;
42 class DeInterlaceWindow : public PluginClientWindow
45 DeInterlaceWindow(DeInterlaceMain *client);
48 void create_objects();
49 int set_mode(int mode, int recursive);
50 void get_status_string(char *string, int changed_rows);
52 DeInterlaceMain *client;
53 DeInterlaceMode *mode;
54 DeInterlaceAdaptive *adaptive;
55 DeInterlaceDominanceTop *dominance_top;
56 DeInterlaceDominanceBottom *dominance_bottom;
57 DeInterlaceThreshold *threshold;
58 int optional_controls_x,optional_controls_y;
62 class DeInterlaceOption : public BC_Radial
65 DeInterlaceOption(DeInterlaceMain *client,
66 DeInterlaceWindow *window,
74 DeInterlaceMain *client;
75 DeInterlaceWindow *window;
79 class DeInterlaceAdaptive : public BC_CheckBox
82 DeInterlaceAdaptive(DeInterlaceMain *client, int x, int y);
84 DeInterlaceMain *client;
87 class DeInterlaceDominanceTop : public BC_Radial
90 DeInterlaceDominanceTop(DeInterlaceMain *client, DeInterlaceWindow *window, int x, int y, char * title);
92 DeInterlaceMain *client;
93 DeInterlaceWindow *window;
96 class DeInterlaceDominanceBottom : public BC_Radial
99 DeInterlaceDominanceBottom(DeInterlaceMain *client, DeInterlaceWindow *window, int x, int y, const char * title);
101 DeInterlaceMain *client;
102 DeInterlaceWindow *window;
105 class DeInterlaceThreshold : public BC_IPot
108 DeInterlaceThreshold(DeInterlaceMain *client, int x, int y);
109 ~DeInterlaceThreshold();
112 DeInterlaceMain *client;
113 BC_Title *title_caption;
118 class DeInterlaceMode : public BC_PopupMenu
121 DeInterlaceMode(DeInterlaceMain *client,
122 DeInterlaceWindow *window,
125 void create_objects();
126 static char* to_text(int shape);
127 static int from_text(char *text);
129 DeInterlaceMain *plugin;
130 DeInterlaceWindow *gui;