X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Faging%2Fagingwindow.h;h=5f0bce88654bc7e4ce0e6db2ec1827d24d36bf11;hb=7e5a0760f40ff787cc3d93cb7768a901ebe52809;hp=1abd10139539802b99f22b2a971a689967da8e7c;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/aging/agingwindow.h b/cinelerra-5.1/plugins/aging/agingwindow.h index 1abd1013..5f0bce88 100644 --- a/cinelerra-5.1/plugins/aging/agingwindow.h +++ b/cinelerra-5.1/plugins/aging/agingwindow.h @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * 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 AGINGWINDOW_H @@ -31,108 +31,46 @@ class AgingWindow; #include "mutex.h" #include "aging.h" - -class AgingColor; -class AgingScratches; -class AgingScratchCount; -class AgingPits; -class AgingPitCount; -class AgingDust; -class AgingDustCount; +class AgingCheckBox; +class AgingISlider; class AgingWindow : public PluginClientWindow { public: - AgingWindow(AgingMain *client); + AgingWindow(AgingMain *plugin); ~AgingWindow(); void create_objects(); - - AgingMain *client; - - - AgingColor *color; - AgingScratches *scratches; - AgingScratchCount *scratch_count; - AgingPits *pits; - AgingPitCount *pit_count; - AgingDust *dust; - AgingDustCount *dust_count; -}; - - - - - -class AgingColor : public BC_CheckBox -{ -public: - AgingColor(int x, int y, AgingMain *plugin); - int handle_event(); AgingMain *plugin; -}; - -class AgingScratches : public BC_CheckBox -{ -public: - AgingScratches(int x, int y, AgingMain *plugin); - int handle_event(); - AgingMain *plugin; + AgingCheckBox *color; + AgingCheckBox *scratches; + AgingISlider *scratch_count; + AgingCheckBox *pits; + AgingISlider *pit_count; + AgingCheckBox *dust; + AgingISlider *dust_count; }; - -class AgingScratchCount : public BC_ISlider +class AgingISlider : public BC_ISlider { public: - AgingScratchCount(int x, int y, AgingMain *plugin); + AgingISlider(AgingWindow *win, + int x, int y, int w, int min, int max, int *output); + ~AgingISlider(); int handle_event(); - AgingMain *plugin; -}; -class AgingPits : public BC_CheckBox -{ -public: - AgingPits(int x, int y, AgingMain *plugin); - int handle_event(); - AgingMain *plugin; + AgingWindow *win; + int *output; }; -class AgingPitCount : public BC_ISlider +class AgingCheckBox : public BC_CheckBox { public: - AgingPitCount(int x, int y, AgingMain *plugin); + AgingCheckBox(AgingWindow *win, int x, int y, int *output, const char *text); int handle_event(); - AgingMain *plugin; -}; - - - - - - - - -class AgingDust : public BC_CheckBox -{ -public: - AgingDust(int x, int y, AgingMain *plugin); - int handle_event(); - AgingMain *plugin; -}; -class AgingDustCount : public BC_ISlider -{ -public: - AgingDustCount(int x, int y, AgingMain *plugin); - int handle_event(); - AgingMain *plugin; + AgingWindow *win; }; - - - - - - #endif