projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version update
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
plugins
/
sharpen
/
sharpenwindow.C
diff --git
a/cinelerra-5.1/plugins/sharpen/sharpenwindow.C
b/cinelerra-5.1/plugins/sharpen/sharpenwindow.C
index 18ddefd9d5ddd8604452c3fee3514d5f25f14aa6..61ab6b50b9c19980e14e0cb2e4c23146ce2ab6fd 100644
(file)
--- a/
cinelerra-5.1/plugins/sharpen/sharpenwindow.C
+++ b/
cinelerra-5.1/plugins/sharpen/sharpenwindow.C
@@
-33,7
+33,7
@@
SharpenWindow::SharpenWindow(SharpenMain *client)
SharpenWindow::SharpenWindow(SharpenMain *client)
- : PluginClientWindow(client,
280, 190, 280, 190
, 0) //195 was 150
+ : PluginClientWindow(client,
xS(280), yS(190), xS(280), yS(190)
, 0) //195 was 150
{
this->client = client;
}
{
this->client = client;
}
@@
-44,26
+44,28
@@
SharpenWindow::~SharpenWindow()
void SharpenWindow::create_objects()
{
void SharpenWindow::create_objects()
{
- int x = 10, y = 10;
- int x1 = 0; int clrBtn_w = 50;
- int defaultBtn_w = 100;
+ int xs10 = xS(10), xs50 = xS(50), xs100 = xS(100);
+ int ys10 = yS(10), ys20 = yS(20), ys30 = yS(30), ys40 = yS(40);
+ int x = xs10, y = ys10;
+ int x1 = 0; int clrBtn_w = xs50;
+ int defaultBtn_w = xs100;
add_tool(new BC_Title(x, y, _("Sharpness")));
add_tool(new BC_Title(x, y, _("Sharpness")));
- y += 20;
+ y +=
ys
20;
add_tool(sharpen_slider = new SharpenSlider(client, &(client->config.sharpness), x, y));
add_tool(sharpen_slider = new SharpenSlider(client, &(client->config.sharpness), x, y));
- x1 = x + sharpen_slider->get_w() + 10;
+ x1 = x + sharpen_slider->get_w() +
xs
10;
add_subwindow(sharpen_sliderClr = new SharpenSliderClr(client, this, x1, y, clrBtn_w));
add_subwindow(sharpen_sliderClr = new SharpenSliderClr(client, this, x1, y, clrBtn_w));
- y += 30;
+ y +=
ys
30;
add_tool(sharpen_interlace = new SharpenInterlace(client, x, y));
add_tool(sharpen_interlace = new SharpenInterlace(client, x, y));
- y += 30;
+ y +=
ys
30;
add_tool(sharpen_horizontal = new SharpenHorizontal(client, x, y));
add_tool(sharpen_horizontal = new SharpenHorizontal(client, x, y));
- y += 30;
+ y +=
ys
30;
add_tool(sharpen_luminance = new SharpenLuminance(client, x, y));
add_tool(sharpen_luminance = new SharpenLuminance(client, x, y));
- y += 40;
+ y +=
ys
40;
add_tool(reset = new SharpenReset(client, this, x, y));
add_subwindow(default_settings = new SharpenDefaultSettings(client, this,
add_tool(reset = new SharpenReset(client, this, x, y));
add_subwindow(default_settings = new SharpenDefaultSettings(client, this,
- (
280 -
10 - defaultBtn_w), y, defaultBtn_w));
+ (
xS(280) - xs
10 - defaultBtn_w), y, defaultBtn_w));
show_window();
flush();
show_window();
flush();
@@
-90,8
+92,8
@@
SharpenSlider::SharpenSlider(SharpenMain *client, float *output, int x, int y)
: BC_ISlider(x,
y,
0,
: BC_ISlider(x,
y,
0,
-
200
,
-
200
,
+
xS(200)
,
+
yS(200)
,
0,
MAXSHARPNESS,
(int)*output,
0,
MAXSHARPNESS,
(int)*output,
@@
-198,7
+200,7
@@
int SharpenDefaultSettings::handle_event()
SharpenSliderClr::SharpenSliderClr(SharpenMain *client, SharpenWindow *gui, int x, int y, int w)
SharpenSliderClr::SharpenSliderClr(SharpenMain *client, SharpenWindow *gui, int x, int y, int w)
- : BC_
GenericButton(x, y, w, _("⌂
"))
+ : BC_
Button(x, y, w, client->get_theme()->get_image_set("reset_button
"))
{
this->client = client;
this->gui = gui;
{
this->client = client;
this->gui = gui;