SCOPE_HISTOGRAM, SCOPE_HISTOGRAM_RGB,
SCOPE_WAVEFORM, SCOPE_WAVEFORM_RGB, SCOPE_WAVEFORM_PLY,
SCOPE_VECTORSCOPE, SCOPE_VECTORWHEEL,
+ SCOPE_SMOOTH, SCOPE_REFRESH, SCOPE_RELEASE,
};
// Number of divisions in histogram.
ScopeScopesOn *vect_wheel;
};
+class ScopeSettingOn : public BC_MenuItem
+{
+public:
+ ScopeSettingOn(ScopeSettings *settings, const char *text, int id);
+ int handle_event();
+
+ ScopeSettings *settings;
+ int id;
+};
class ScopeGratPaths : public ArrayList<const char *>
{
class ScopeGratItem : public BC_MenuItem
{
public:
- ScopeGratItem(ScopeVectGrats *vect_grats, const char *text, int idx);
+ ScopeGratItem(ScopeSettings *settings, const char *text, int idx);
int handle_event();
- ScopeVectGrats *vect_grats;
+ ScopeSettings *settings;
int idx;
};
-class ScopeVectGrats : public BC_PopupMenu
+class ScopeSettings : public BC_PopupMenu
{
public:
- ScopeVectGrats(ScopeGUI *gui, int x, int y);
+ ScopeSettings(ScopeGUI *gui, int x, int y);
void create_objects();
+ void update_toggles();
ScopeGUI *gui;
+ ScopeSettingOn *smooth_on;
+ ScopeSettingOn *refresh_on;
+ ScopeSettingOn *release_on;
};
};
-class ScopeSmooth : public BC_CheckBox
-{
-public:
- ScopeSmooth(ScopeGUI *gui, int x, int y);
- int handle_event();
- ScopeGUI *gui;
-};
-
-class ScopeRefresh : public BC_CheckBox
-{
-public:
- ScopeRefresh(ScopeGUI *gui, int x, int y);
- int handle_event();
- ScopeGUI *gui;
-};
-
-
class ScopeGUI : public PluginClientWindow
{
public:
ScopeMenu *scope_menu;
ScopeWaveSlider *wave_slider;
ScopeVectSlider *vect_slider;
- ScopeVectGrats *vect_grats;
- ScopeSmooth *smooth;
- ScopeRefresh *refresh;
+ ScopeSettings *settings;
VFrame *grat_image;
OverlayFrame *overlay;
int use_hist_parade, use_wave_parade;
int bins[HIST_SECTIONS][TOTAL_BINS];
- int frame_w, use_smooth, use_refresh;
+ int frame_w, use_smooth;
+ int use_refresh, use_release;
int use_wave_gain, use_vect_gain;
};