SetFormatWindow::SetFormatWindow(MWindow *mwindow,
- SetFormatThread *thread,
- int x,
- int y)
- : BC_Window(_(PROGRAM_NAME ": Set Format"),
- x,
- y,
- mwindow->theme->setformat_w,
- mwindow->theme->setformat_h,
- -1,
- -1,
- 0,
- 0,
- 1)
+ SetFormatThread *thread, int x, int y)
+ : BC_Window(_(PROGRAM_NAME ": Set Format"), x, y,
+ mwindow->theme->setformat_w, mwindow->theme->setformat_h,
+ -1, -1, 0, 0, 1)
{
this->mwindow = mwindow;
this->thread = thread;
+ presets = 0;
+}
+SetFormatWindow::~SetFormatWindow()
+{
+ delete presets;
}
void SetFormatWindow::create_objects()
{
+ lock_window("SetFormatWindow::create_objects");
int x = 10, y = mwindow->theme->setformat_y1;
BC_TextBox *textbox;
BC_Title *title;
-
- lock_window("SetFormatWindow::create_objects");
mwindow->theme->draw_setformat_bg(this);
-
-
presets = new SetFormatPresets(mwindow, this, x, y);
presets->create_objects();
x = presets->x; // y = presets->y;