/*
* CINELERRA
* Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- *
+ *
* 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
- *
+ *
*/
#include "bcdisplayinfo.h"
TimeAvgWindow::TimeAvgWindow(TimeAvgMain *client)
: PluginClientWindow(client, 250, 400, 250, 400, 0)
-{
- this->client = client;
+{
+ this->client = client;
}
TimeAvgWindow::~TimeAvgWindow()
int x = 10, y = 10;
BC_Bar *bar;
BC_Title *title;
-
+
add_tool(title = new BC_Title(x, y, _("Frame count:")));
y += title->get_h() + 5;
add_tool(total_frames = new TimeAvgSlider(client, x, y));
y += bar->get_h() + 5;
-
+
add_tool(avg = new TimeAvgAvg(client, this, x, y));
y += 30;
add_tool(accum = new TimeAvgAccum(client, this, x, y));
TimeAvgSlider::TimeAvgSlider(TimeAvgMain *client, int x, int y)
- : BC_ISlider(x,
- y,
+ : BC_ISlider(x,
+ y,
0,
- 190,
- 200,
- 1,
- MAX_FRAMES,
+ 190,
+ 200,
+ 1,
+ MAX_FRAMES,
client->config.frames)
{
this->client = client;
TimeThresholdSlider::TimeThresholdSlider(TimeAvgMain *client, int x, int y)
- : BC_ISlider(x,
- y,
+ : BC_ISlider(x,
+ y,
0,
- 190,
- 200,
- 1,
- 255,
+ 190,
+ 200,
+ 1,
+ 255,
client->config.threshold)
{
this->client = client;
TimeBorderSlider::TimeBorderSlider(TimeAvgMain *client, int x, int y)
- : BC_ISlider(x,
- y,
+ : BC_ISlider(x,
+ y,
+ 0,
+ 190,
+ 200,
0,
- 190,
- 200,
- 0,
- 8,
+ 8,
client->config.border)
{
this->client = client;
TimeAvgAvg::TimeAvgAvg(TimeAvgMain *client, TimeAvgWindow *gui, int x, int y)
- : BC_Radial(x, y,
+ : BC_Radial(x, y,
client->config.mode == TimeAvgConfig::AVERAGE,
_("Average"))
{
TimeAvgAccum::TimeAvgAccum(TimeAvgMain *client, TimeAvgWindow *gui, int x, int y)
- : BC_Radial(x, y,
+ : BC_Radial(x, y,
client->config.mode == TimeAvgConfig::ACCUMULATE,
_("Accumulate"))
{
TimeAvgReplace::TimeAvgReplace(TimeAvgMain *client, TimeAvgWindow *gui, int x, int y)
- : BC_Radial(x, y,
+ : BC_Radial(x, y,
client->config.mode == TimeAvgConfig::REPLACE,
_("Replace"))
{
TimeAvgGreater::TimeAvgGreater(TimeAvgMain *client, TimeAvgWindow *gui, int x, int y)
- : BC_Radial(x, y,
+ : BC_Radial(x, y,
client->config.mode == TimeAvgConfig::GREATER,
_("Greater"))
{
TimeAvgLess::TimeAvgLess(TimeAvgMain *client, TimeAvgWindow *gui, int x, int y)
- : BC_Radial(x, y,
+ : BC_Radial(x, y,
client->config.mode == TimeAvgConfig::LESS,
_("Less"))
{
TimeAvgParanoid::TimeAvgParanoid(TimeAvgMain *client, int x, int y)
- : BC_CheckBox(x, y,
+ : BC_CheckBox(x, y,
client->config.paranoid,
_("Restart for every frame"))
{
TimeAvgNoSubtract::TimeAvgNoSubtract(TimeAvgMain *client, int x, int y)
- : BC_CheckBox(x, y,
+ : BC_CheckBox(x, y,
client->config.nosubtract,
_("Don't buffer frames"))
{