Added more information in About dialog.

This commit is contained in:
David Capello 2010-03-27 19:13:01 -03:00
parent e675e4e5fe
commit 9331e3e5d2

View File

@ -60,10 +60,12 @@ void AboutCommand::execute(Context* context)
label2 = jlabel_new(_("A pixel art program"));
separator1 = ji_separator_new(NULL, JI_HORIZONTAL);
view = textbox = separator2 = NULL;
label3 = jlabel_new(COPYRIGHT);
label4 = jlabel_new(WEBSITE);
textbox = jtextbox_new("Authors:\n"
" David Capello - Main developer\n"
" Ilija Melentijevic - Graphics\n"
" Trent Gamblin - Mac OS X packager", 0);
box2 = jbox_new(JI_HORIZONTAL);
box3 = jbox_new(JI_HORIZONTAL);
box4 = jbox_new(JI_HORIZONTAL);
@ -73,15 +75,21 @@ void AboutCommand::execute(Context* context)
jwidget_set_border(box1, 4 * jguiscale());
jwidget_add_children(box1, label1, label2, separator1, NULL);
if (textbox) {
view = jview_new();
separator2 = ji_separator_new(NULL, JI_HORIZONTAL);
jview_attach(view, textbox);
jview_maxsize(view);
jwidget_expansive(view, true);
jwidget_set_min_size(view, JI_SCREEN_W/3, JI_SCREEN_H/4);
jwidget_add_children(box1, view, separator2, NULL);
}
jwidget_expansive(box3, true);
jwidget_expansive(box4, true);
jwidget_add_children(box2, box3, button1, box4, NULL);
jwidget_add_children(box1, label3, label4, NULL);
jwidget_add_child(box1, box2);
jwidget_add_child(window, box1);