Fixed initialisation of tf in file_open(). Without setting the memory to 0,
[cinelerra_cv/mob.git] / plugins / threshold / thresholdwindow.h
blobddffeefafda760e12dff479c4469d345148f775c
1 #ifndef THRESHOLDWINDOW_H
2 #define THRESHOLDWINDOW_H
4 #include "guicast.h"
5 #include "pluginvclient.h"
6 #include "threshold.inc"
7 #include "thresholdwindow.inc"
9 class ThresholdMin : public BC_TumbleTextBox
11 public:
12 ThresholdMin(ThresholdMain *plugin,
13 ThresholdWindow *gui,
14 int x,
15 int y,
16 int w);
17 int handle_event();
18 ThresholdMain *plugin;
19 ThresholdWindow *gui;
22 class ThresholdMax : public BC_TumbleTextBox
24 public:
25 ThresholdMax(ThresholdMain *plugin,
26 ThresholdWindow *gui,
27 int x,
28 int y,
29 int w);
30 int handle_event();
31 ThresholdMain *plugin;
32 ThresholdWindow *gui;
35 class ThresholdPlot : public BC_CheckBox
37 public:
38 ThresholdPlot(ThresholdMain *plugin,
39 int x,
40 int y);
41 int handle_event();
42 ThresholdMain *plugin;
45 class ThresholdCanvas : public BC_SubWindow
47 public:
48 ThresholdCanvas(ThresholdMain *plugin,
49 ThresholdWindow *gui,
50 int x,
51 int y,
52 int w,
53 int h);
54 int button_press_event();
55 int button_release_event();
56 int cursor_motion_event();
57 void draw();
59 ThresholdMain *plugin;
60 ThresholdWindow *gui;
61 int state;
62 enum
64 NO_OPERATION,
65 DRAG_SELECTION
67 int x1;
68 int x2;
69 int center_x;
72 class ThresholdWindow : public BC_Window
74 public:
75 ThresholdWindow(ThresholdMain *plugin, int x, int y);
76 ~ThresholdWindow();
78 int create_objects();
79 int close_event();
81 ThresholdMain *plugin;
82 ThresholdMin *min;
83 ThresholdMax *max;
84 ThresholdCanvas *canvas;
85 ThresholdPlot *plot;
88 PLUGIN_THREAD_HEADER(ThresholdMain, ThresholdThread, ThresholdWindow)
91 #endif