00001 #include "bcdisplayinfo.h"
00002 #include "agingwindow.h"
00003
00004
00005 #include <libintl.h>
00006 #define _(String) gettext(String)
00007 #define gettext_noop(String) String
00008 #define N_(String) gettext_noop (String)
00009
00010 PLUGIN_THREAD_OBJECT(AgingMain, AgingThread, AgingWindow)
00011
00012
00013
00014
00015
00016 AgingWindow::AgingWindow(AgingMain *client, int x, int y)
00017 : BC_Window(client->gui_string,
00018 x,
00019 y,
00020 300,
00021 170,
00022 300,
00023 170,
00024 0,
00025 0,
00026 1)
00027 {
00028 this->client = client;
00029 }
00030
00031 AgingWindow::~AgingWindow()
00032 {
00033 }
00034
00035 int AgingWindow::create_objects()
00036 {
00037 int x = 10, y = 10;
00038 add_subwindow(new BC_Title(x, y,
00039 _("Film aging from EffectTV\n"
00040 "Copyright (C) 2001 FUKUCHI Kentarou")
00041 ));
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 show_window();
00059 flush();
00060 return 0;
00061 }
00062
00063 WINDOW_CLOSE_EVENT(AgingWindow)
00064
00065
00066
00067
00068
00069
00070
00071 AgingColor::AgingColor(int x, int y, AgingMain *plugin)
00072 : BC_CheckBox(x, y, plugin->config.colorage, _("Grain"))
00073 {
00074 this->plugin = plugin;
00075 }
00076
00077 int AgingColor::handle_event()
00078 {
00079 return 1;
00080 }
00081
00082
00083
00084
00085
00086 AgingScratches::AgingScratches(int x, int y, AgingMain *plugin)
00087 : BC_CheckBox(x, y, plugin->config.scratch, _("Scratch"))
00088 {
00089 this->plugin;
00090 }
00091
00092 int AgingScratches::handle_event()
00093 {
00094 return 1;
00095 }
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105 AgingScratchCount::AgingScratchCount(int x, int y, AgingMain *plugin)
00106 : BC_ISlider(x,
00107 y,
00108 0,
00109 180,
00110 180,
00111 0,
00112 SCRATCH_MAX,
00113 plugin->config.scratch_lines)
00114 {
00115 this->plugin = plugin;
00116 }
00117
00118 int AgingScratchCount::handle_event()
00119 {
00120 return 1;
00121 }
00122
00123
00124
00125
00126
00127
00128 AgingPits::AgingPits(int x, int y, AgingMain *plugin)
00129 : BC_CheckBox(x, y, plugin->config.pits, _("Pits"))
00130 {
00131 this->plugin = plugin;
00132 }
00133
00134 int AgingPits::handle_event()
00135 {
00136 return 1;
00137 }
00138
00139
00140
00141
00142
00143
00144 AgingPitCount::AgingPitCount(int x, int y, AgingMain *plugin)
00145 : BC_ISlider(x,
00146 y,
00147 0,
00148 180,
00149 180,
00150 0,
00151 100,
00152 plugin->config.pit_count)
00153 {
00154 this->plugin = plugin;
00155 }
00156
00157 int AgingPitCount::handle_event()
00158 {
00159 return 1;
00160 }
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170 AgingDust::AgingDust(int x, int y, AgingMain *plugin)
00171 : BC_CheckBox(x, y, plugin->config.dust, _("Dust"))
00172 {
00173 this->plugin = plugin;
00174 }
00175
00176 int AgingDust::handle_event()
00177 {
00178 return 1;
00179 }
00180
00181
00182
00183
00184
00185 AgingDustCount::AgingDustCount(int x, int y, AgingMain *plugin)
00186 : BC_ISlider(x,
00187 y,
00188 0,
00189 180,
00190 180,
00191 0,
00192 100,
00193 plugin->config.dust_count)
00194 {
00195 this->plugin = plugin;
00196 }
00197
00198 int AgingDustCount::handle_event()
00199 {
00200 return 1;
00201 }
00202
00203
00204
00205
00206
00207