Exemplo n.º 1
0
void Main_window::on_show_about_dialog_callback(void)
{
	Gtk::AboutDialog dialog;

	std::vector<std::string> authors;
	authors.push_back(
		_("Dmitry Konishchev") + std::string(" <*****@*****.**>\n") +
		std::string("http://konishchevdmitry.blogspot.com/")
	);

	dialog.set_transient_for(*this);
	dialog.set_position(Gtk::WIN_POS_CENTER_ON_PARENT);

	dialog.set_logo_icon_name(APP_UNIX_NAME);
	dialog.set_version(APP_VERSION_STRING);
	dialog.set_comments( _("GTK-based BitTorrent client") );
	dialog.set_authors(authors);
	dialog.set_copyright( m::get_copyright_string(_("Dmitry Konishchev"), APP_YEAR) );
	dialog.set_license(
		"This program is free software; you can redistribute it and/or modify\n"
		"it under the terms of the GNU General Public License as published by\n"
		"the Free Software Foundation; either version 3 of the License, or\n"
		"(at your option) any later version.\n"
		"\n"
		"This program is distributed in the hope that it will be useful,\n"
		"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
		"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
		"GNU General Public License for more details.\n"
	);
	dialog.set_website("http://sourceforge.net/projects/flush/");

	dialog.run();
}
Exemplo n.º 2
0
void MainWindow::onAction_About()
{
	Gtk::AboutDialog dlg;

	dlg.set_transient_for(*m_window);
	dlg.set_program_name(PACKAGE_NAME);
	dlg.set_version(PACKAGE_VERSION);
	dlg.set_logo_icon_name("gnethogs"),
	dlg.set_comments(_("Per-application bandwidth usage statistics."));
	dlg.set_authors({"<a href=\"mailto:[email protected]\">Mohamed Boussaffa</a>"});
	dlg.set_license_type(Gtk::LICENSE_GPL_3_0);
	dlg.run();
}
Exemplo n.º 3
0
void Window::vOnHelpAbout()
{
  Gtk::AboutDialog oAboutDialog;
  const char csGPLHeader[] = "This program is free software: you can redistribute it and/or modify\n"
    "it under the terms of the GNU General Public License as published by\n"
    "the Free Software Foundation, either version 2 of the License, or\n"
    "(at your option) any later version.\n\n"
    "This program is distributed in the hope that it will be useful,\n"
    "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
    "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
    "GNU General Public License for more details.\n\n"
    "You should have received a copy of the GNU General Public License\n"
    "along with this program.  If not, see <http://www.gnu.org/licenses/>.";
  const char csCopyright[] = "Copyright (C) 1999-2003 Forgotten\n"
                             "Copyright (C) 2004-2006 VBA development team\n"
                             "Copyright (C) 2007-2011 VBA-M development team";

  oAboutDialog.set_transient_for(*this);

  oAboutDialog.set_name(_("VBA-M"));
  oAboutDialog.set_version(VERSION);
  oAboutDialog.set_comments(_("Nintendo GameBoy Advance emulator."));
  oAboutDialog.set_license(csGPLHeader);
  oAboutDialog.set_copyright(csCopyright);
  oAboutDialog.set_logo_icon_name("vbam");

  oAboutDialog.set_website("http://www.vba-m.com/");

  std::list<Glib::ustring> list_authors;
  list_authors.push_back("Forgotten");
  list_authors.push_back("kxu");
  list_authors.push_back("Pokemonhacker");
  list_authors.push_back("Spacy51");
  list_authors.push_back("mudlord");
  list_authors.push_back("Nach");
  list_authors.push_back("jbo_85");
  list_authors.push_back("bgK");
  oAboutDialog.set_authors(list_authors);

  std::list<Glib::ustring> list_artists;
  list_artists.push_back("Matteo Drera");
  list_artists.push_back("Jakub Steiner");
  list_artists.push_back("Jones Lee");
  oAboutDialog.set_artists(list_artists);

  oAboutDialog.run();
}