Commit 3040fbb9 authored by daniel_e's avatar daniel_e
Browse files

Refine the design a bit, and mention Ross Burton (Debian packager) as major

contributor.
parent 4b4ef3ad
2002-11-18 Daniel Elstner <daniel.elstner@gmx.net>
* src/aboutdialog.cc: Refine the design a bit, and mention Ross
Burton (Debian packager) as major contributor.
2002-11-18 Daniel Elstner <daniel.elstner@gmx.net>
* src/controller.cc (create_menubar): Don't use "<control>f" as
......
......@@ -36,8 +36,37 @@ namespace
const char regexxer_icon_filename[] = REGEXXER_DATADIR G_DIR_SEPARATOR_S
"pixmaps" G_DIR_SEPARATOR_S "regexxer.png";
const char regexxer_author_list[] = "Daniel Elstner <daniel.elstner@gmx.net>";
const char regexxer_project_url[] = "http://regexxer.sourceforge.net/";
const char regexxer_author_mail[] = "Daniel Elstner <daniel.elstner@gmx.net>";
const char regexxer_debian_mail[] = "Ross Burton <ross@burtonini.com>";
class ContributorBox : public Gtk::VBox
{
public:
ContributorBox(const Glib::ustring& what, const Glib::ustring& who);
virtual ~ContributorBox();
};
ContributorBox::ContributorBox(const Glib::ustring& what, const Glib::ustring& who)
:
Gtk::VBox(false, 2)
{
using namespace Gtk;
Label *const label_what = new Label();
pack_start(*manage(label_what), PACK_SHRINK);
label_what->set_markup("<span size=\"small\">" + what + "</span>");
Label *const label_who = new Label(who);
pack_start(*manage(label_who), PACK_SHRINK);
label_who->set_selectable(true);
show_all_children();
}
ContributorBox::~ContributorBox()
{}
} // anonymous namespace
......@@ -56,31 +85,38 @@ AboutDialog::AboutDialog(Gtk::Window& parent)
Box& box_dialog = *get_vbox();
Alignment *const alignment = new Alignment(0.5, 0.33, 0.0, 0.0);
box_dialog.pack_start(*manage(alignment), PACK_EXPAND_WIDGET);
alignment->set_border_width(20);
Box *const box = new VBox(false, 10);
Box *const box = new VBox(false, 20);
alignment->add(*manage(box));
box->set_border_width(10);
Box *const box_title = new HBox(false, 10);
box->pack_start(*manage(box_title), PACK_SHRINK);
box_title->set_border_width(10);
Image *const image = new Image(regexxer_icon_filename);
box_title->pack_start(*manage(image), PACK_EXPAND_WIDGET);
image->set_alignment(1.0, 0.5);
Label *const label_title = new Label();
box_title->pack_start(*manage(label_title), PACK_EXPAND_WIDGET);
label_title->set_alignment(0.0, 0.5);
label_title->set_markup("<span size=\"xx-large\" weight=\"heavy\">" PACKAGE_STRING "</span>");
Label *const label_mail = new Label(regexxer_author_list);
box->pack_start(*manage(label_mail), PACK_SHRINK);
label_mail->set_selectable(true);
Label *const label_url = new Label(regexxer_project_url);
box->pack_start(*manage(label_url), PACK_SHRINK);
label_url->set_selectable(true);
{
Box *const box_title = new HBox(false, 10);
box->pack_start(*manage(box_title), PACK_SHRINK);
Image *const image = new Image(regexxer_icon_filename);
box_title->pack_start(*manage(image), PACK_EXPAND_WIDGET);
image->set_alignment(1.0, 0.5);
Label *const label_title = new Label();
box_title->pack_start(*manage(label_title), PACK_EXPAND_WIDGET);
label_title->set_alignment(0.0, 0.5);
label_title->set_markup("<span size=\"xx-large\" weight=\"heavy\">" PACKAGE_STRING "</span>");
}
{
Box *const box_text = new VBox(false, 10);
box->pack_start(*manage(box_text), PACK_SHRINK);
Label *const label_url = new Label(regexxer_project_url);
box_text->pack_start(*manage(label_url), PACK_SHRINK, 5);
label_url->set_selectable(true);
Widget *const box_author = new ContributorBox("written by", regexxer_author_mail);
box_text->pack_start(*manage(box_author), PACK_SHRINK);
Widget *const box_debian = new ContributorBox("Debian package by", regexxer_debian_mail);
box_text->pack_start(*manage(box_debian), PACK_SHRINK);
}
alignment->show_all();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment