X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmainerror.C;h=e206a22d6a7c8579acb2cd13ac875f83fed5f62d;hp=4fdc592f49bd00cea67db480960150ef84236548;hb=1db0dacec8f9d7f5687e582bd282d9bf83bd58f0;hpb=17c1843cd537108ae6e852546a39f15ac5e33e40 diff --git a/cinelerra-5.1/cinelerra/mainerror.C b/cinelerra-5.1/cinelerra/mainerror.C index 4fdc592f..e206a22d 100644 --- a/cinelerra-5.1/cinelerra/mainerror.C +++ b/cinelerra-5.1/cinelerra/mainerror.C @@ -40,19 +40,9 @@ MainError* MainError::main_error = 0; MainErrorGUI::MainErrorGUI(MWindow *mwindow, MainError *thread, int x, int y) - : BC_Window(_(PROGRAM_NAME ": Errors"), - x, - y, - mwindow->session->ewindow_w, - mwindow->session->ewindow_h, - 50, - 50, - 1, - 0, - 1, - -1, - "", - 1) + : BC_Window(_(PROGRAM_NAME ": Messages"), + 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; @@ -67,11 +57,11 @@ void MainErrorGUI::create_objects() lock_window("MainErrorGUI::create_objects"); BC_Button *button; add_subwindow(button = new BC_OKButton(this)); - int x = 10, y = 10; - add_subwindow(title = new BC_Title(x, y, _("The following errors occurred:"))); - y += title->get_h() + 5; + int x = xS(10), y = yS(10); + add_subwindow(title = new BC_Title(x, y, _("Message log:"))); + 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 @@ -105,10 +95,6 @@ int MainErrorGUI::resize_event(int w, int h) } - - - - MainError::MainError(MWindow *mwindow) : BC_DialogThread() { @@ -197,9 +183,3 @@ void MainError::show_error(const char *string) printf("%s%s", string, len>0 && string[len-1] == '\n' ? "" : "\n"); } - - - - - -