MainErrorGUI::MainErrorGUI(MWindow *mwindow, MainError *thread, int x, int y)
: BC_Window(_(PROGRAM_NAME ": Messages"),
- x,
- y,
- mwindow->session->ewindow_w,
- mwindow->session->ewindow_h,
- 50,
- 50,
- 1,
- 0,
- 1,
- -1,
- "",
- 1)
+ x, y, mwindow->session->ewindow_w, mwindow->session->ewindow_h,
+ xS(50), yS(50), 1, 0, 1, -1, "", 1)
{
this->mwindow = mwindow;
this->thread = thread;
lock_window("MainErrorGUI::create_objects");
BC_Button *button;
add_subwindow(button = new BC_OKButton(this));
- int x = 10, y = 10;
+ int x = xS(10), y = yS(10);
add_subwindow(title = new BC_Title(x, y, _("Message log:")));
- y += title->get_h() + 5;
+ y += title->get_h() + yS(5);
add_subwindow(list = new BC_ListBox(x, y,
- get_w() - 20, button->get_y() - y - 5,
+ get_w() - xS(20), button->get_y() - y - yS(5),
LISTBOX_TEXT, // Display text list or icons
&thread->errors, // Each column has an ArrayList of BC_ListBoxItems.
0, // Titles for columns. Set to 0 for no titles
}
-
-
-
-
MainError::MainError(MWindow *mwindow)
: BC_DialogThread()
{
printf("%s%s", string, len>0 && string[len-1] == '\n' ? "" : "\n");
}
-
-
-
-
-
-