void GUI::show_about(void) {
 
   Gtk::AboutDialog  dialog ;
 
   dialog.set_program_name(PRGNAME_STRING) ;
 
   dialog.set_version(VERSION_STRING) ;
 
   dialog.set_website("http://www.open-source-projects.net/Edip/Edip_presentation.html") ;
 
   dialog.set_website_label("Edip Website") ;
 
   dialog.set_wrap_license(true) ;
 
   dialog.set_copyright(LICENSE_STRING) ;
 
   dialog.set_license(Glib::file_get_contents(PATH_TO_EDIP_LICENSE)) ;
 
   dialog.set_logo_default() ;
 
   vector<Glib::ustring> authors = {AUTHOR_STRING "<*****@*****.**>"} ;
 
   dialog.set_authors(authors) ;
 
   vector<Glib::ustring> artists = {AUTHOR_STRING "<*****@*****.**>"} ;
 
   dialog.set_artists(artists) ;
 
   dialog.set_comments("Thanks to my beloved mother, my family and to the doctors.\nStay away from drugs: drugs destroy your brain and your life.") ;
 
   dialog.run() ;
 
   dialog.close() ;

} 
Exemple #2
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();
}
Exemple #3
0
void YarpScope::MainWindow::Private::on_action_help_about()
{
    debug() << "About clicked";

    Gtk::AboutDialog dialog;
    dialog.set_transient_for(*parent);

    dialog.set_comments("A simple graphical user interface for visualizing the numerical content of a yarp port.");

    std::list<Glib::ustring> authors;
    authors.push_back("Daniele E. Domenichelli <*****@*****.**>");
    dialog.set_authors(authors);

    dialog.set_license("Copyright (C) 2012  iCub Facility, Istituto Italiano di Tecnologia\n"
                       "\n"
                       "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/>.");

    dialog.run();
}
void jobManWindow::on_menu_help_about() {
	Gtk::AboutDialog aboutDialog;
	std::vector<Glib::ustring> authors;
	authors.push_back("Ivan Arandjelovic <*****@*****.**>");
	aboutDialog.set_authors(authors);
	aboutDialog.set_comments("Upstart Job Manager (wanabee)");
	aboutDialog.set_version(JOBMAN_VERSION);
	aboutDialog.run();
	aboutDialog.hide();
}
void MainWindow::_on_about_activate()
{
  Gtk::AboutDialog dialog;
  dialog.set_program_name(PACKAGE_NAME);
  dialog.set_version(PACKAGE_VERSION);
  dialog.set_authors(list<string>(1, PACKAGE_AUTHORS));
  // dialog.set_license(PACKAGE_LICENSE);
  dialog.set_copyright(PACKAGE_COPYRIGHT);

  dialog.run();
}
Exemple #6
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();
}
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();
}
void Creater::on_menu_help_about()
{
	Gtk::AboutDialog dlg;
	dlg.set_transient_for(*this);

	dlg.set_name(VersionInfo().PROGRAM_NAME());
	dlg.set_version(VersionInfo().PROGRAM_VERSION());
	dlg.set_copyright(VersionInfo().PROGRAM_COPYRIGHT());
	dlg.set_comments(VersionInfo().PROGRAM_COMMENTS());
	dlg.set_license(VersionInfo().PROGRAM_LICENSE());
	dlg.set_website(VersionInfo().PROGRAM_WEBSITE());
	dlg.set_website_label(VersionInfo().PROGRAM_WEBSITE_LABEL());
	  
	std::list<Glib::ustring> list_authors;
	for (int i=0;i<VersionInfo().PROGRAM_AUTHORS().size();++i)
		list_authors.push_back(VersionInfo().PROGRAM_AUTHORS()[i]);
	dlg.set_authors(list_authors);

	dlg.run();
}
Exemple #9
0
void ChessGui::on_About()
{
     g_debug("ChessGui::on_About");
     Gtk::AboutDialog  about;
     about.set_transient_for(*dynamic_cast<Gtk::Window *>( this));
     
     about.set_name("CS 240 Chess");
     
     about.set_logo(ChessGuiImages::GetImage(W_KING));

     about.set_copyright("Copyright © 2008 Owen Merkling\n Copyright © SEMESTER CS 240 Student");
     
     about.set_comments("For use by students of CS 240 at BYU");

     std::list<std::string> authors;
     authors.push_back("Graphical User Interface: Owen Merkling");
     authors.push_back("Chess Logic: CS240 Student");
     about.set_authors(authors);
     
     about.run();
     return;
}
Exemple #10
0
void
mainwnd::about_dialog( void )
{
    Gtk::AboutDialog dialog;
    dialog.set_transient_for(*this);
    dialog.set_name(PACKAGE_NAME);
    dialog.set_version(VERSION);
    dialog.set_comments("Interactive MIDI Sequencer\n");

    dialog.set_copyright(
            "(C) 2002 - 2006 Rob C. Buse\n"
            "(C) 2008 - 2010 Seq24team");
    dialog.set_website(
            "http://www.filter24.org/seq24\n"
            "http://edge.launchpad.net/seq24");

    std::list<Glib::ustring> list_authors;
    list_authors.push_back("Rob C. Buse <*****@*****.**>");
    list_authors.push_back("Ivan Hernandez <*****@*****.**>");
    list_authors.push_back("Guido Scholz <*****@*****.**>");
    list_authors.push_back("Jaakko Sipari <*****@*****.**>");
    list_authors.push_back("Peter Leigh <*****@*****.**>");
    list_authors.push_back("Anthony Green <*****@*****.**>");
    list_authors.push_back("Daniel Ellis <*****@*****.**>");
    list_authors.push_back("Sebastien Alaiwan <*****@*****.**>");
    list_authors.push_back("Kevin Meinert <*****@*****.**>");
    list_authors.push_back("Andrea delle Canne <*****@*****.**>");
    dialog.set_authors(list_authors);

    std::list<Glib::ustring> list_documenters;
    list_documenters.push_back("Dana Olson <*****@*****.**>");
    dialog.set_documenters(list_documenters);

    dialog.show_all_children();
    dialog.run();
}
Exemple #11
0
VRGuiBits::VRGuiBits() {
    setComboboxCallback("combobox4", VRGuiBits_on_camera_changed);
    setComboboxCallback("combobox9", VRGuiBits_on_navigation_changed);

    setToolButtonCallback("toolbutton4", VRGuiBits_on_save_clicked);
    setToolButtonCallback("toolbutton3", VRGuiBits_on_quit_clicked);
    setToolButtonCallback("toolbutton17", VRGuiBits_on_about_clicked);
    setToolButtonCallback("toolbutton18", VRGuiBits_on_internal_clicked);

    setButtonCallback("button14", VRGuiBits_on_new_cancel_clicked);
    setButtonCallback("button21", VRGuiBits_on_internal_close_clicked);

    setLabel("label24", "Project: None");

    // About Dialog

    Gtk::AboutDialog* diag;
    VRGuiBuilder()->get_widget("aboutdialog1", diag);
    diag->signal_response().connect( sigc::mem_fun(*this, &VRGuiBits::hideAbout) );
    ifstream f("ressources/gui/authors");
    vector<string> authors;
    for (string line; getline(f, line); ) authors.push_back(line);
    f.close();
    diag->set_authors(authors);

    // window fullscreen
    Gtk::Window* win;
    VRGuiBuilder()->get_widget("window1", win);
    win->signal_key_press_event().connect( sigc::mem_fun(*this, &VRGuiBits::toggleFullscreen) );

    // VTE

    GtkWidget* vte = vte_terminal_new();
    terminal = VTE_TERMINAL (vte);

    vte_terminal_set_background_transparent(terminal, FALSE);
    vte_terminal_set_scrollback_lines(terminal, -1);
    vte_terminal_set_size(terminal, 80, 20);

    char** argv=NULL;
    g_shell_parse_argv("/bin/bash", NULL, &argv, NULL);
    vte_terminal_fork_command_full(terminal, VTE_PTY_DEFAULT, NULL, argv, NULL, GSpawnFlags(0), NULL, NULL, NULL, NULL);

    vte_terminal_set_scroll_on_keystroke(terminal, TRUE);
    gtk_widget_set_size_request(vte, -1, 100);

    GtkWidget* scrollbar = gtk_vscrollbar_new(vte_terminal_get_adjustment(terminal));
    term_box = gtk_hbox_new(FALSE, 0);
    gtk_box_pack_start(GTK_BOX(term_box), vte, FALSE, TRUE, 0);
    gtk_box_pack_start(GTK_BOX(term_box), scrollbar, FALSE, FALSE, 0);

    Gtk::VPaned* paned;
    VRGuiBuilder()->get_widget("vpaned1", paned);
    gtk_paned_pack2(GTK_PANED (paned->gobj()), term_box, FALSE, FALSE);

    vte_terminal_get_emulation(VTE_TERMINAL (vte));

    gtk_widget_show (term_box);
    gtk_widget_show (vte);

    //int pos = paned->property_max_position () - 100;
    //paned->set_position(pos);

    VRFunction<int>* fkt = new VRFunction<int>( "IntMonitor_guiUpdate", VRGuiBits_on_internal_update );
    VRSceneManager::get()->addUpdateFkt(fkt);

    // view options
    setComboboxCallback("combobox20", VRGuiBits_on_viewoption_changed);
    Glib::RefPtr<Gtk::ListStore> opt_list = Glib::RefPtr<Gtk::ListStore>::cast_static(VRGuiBuilder()->get_object("view_options"));
    opt_list->clear();
    Gtk::ListStore::Row row;
    row = *opt_list->append();
    gtk_list_store_set (opt_list->gobj(), row.gobj(), 0, "referentials", -1);
    gtk_list_store_set (opt_list->gobj(), row.gobj(), 1, 0, -1);
    row = *opt_list->append();
    gtk_list_store_set (opt_list->gobj(), row.gobj(), 0, "setup", -1);
    gtk_list_store_set (opt_list->gobj(), row.gobj(), 1, 0, -1);
    row = *opt_list->append();
    gtk_list_store_set (opt_list->gobj(), row.gobj(), 0, "lights and cameras", -1);
    gtk_list_store_set (opt_list->gobj(), row.gobj(), 1, 0, -1);
}
Exemple #12
0
void MainFrame::on_infoBTN_clicked(void)
{
	int win_w, win_h;
	m_mainframe->get_size(win_w, win_h);	
	Gtk::AboutDialog dlg;
	dlg.set_name(APP);
	dlg.set_version(VERSION);
	dlg.set_comments("OZAXE :: Open Source ACCessibilty Software.");
	dlg.set_website_label("SiteWeb");
	dlg.set_website(OZAXE_WEBSITE);
	dlg.set_copyright(COPYRIGHT);
	
	dlg.set_logo(Gdk::Pixbuf::create_from_file("ui/images/ozaxe.png"));
	//dlg.set_logo_icon_name("ozaxe-logo");
	dlg.set_icon_from_file("ui/images/ozaxeico.png");
	
	std::deque<Glib::ustring> authors;
	authors.push_back("Développeurs:");
	authors.push_back("\tChristian KAKESA <*****@*****.**>");
	authors.push_back("");
	authors.push_back("Contributeurs:");
	authors.push_back("\tAucune");
	
	std::deque<Glib::ustring> artists;
	artists.push_back("Logo:");
	artists.push_back("\tAucune");
	artists.push_back("");
	artists.push_back("Autres éléments graphiques:");
	artists.push_back("\tAucune");
	
	dlg.set_authors(authors);
	dlg.set_artists(artists);
	
	dlg.set_translator_credits(
	        "Traduction anglaise:\n"
	        "\tAucune\n"
	        "\n"
	        "Traduction allemande:\n"
	        "\tAucune\n"
	        "\n"
	        "Traduction espagnole:\n"
	        "\tAucune\n"
	        );

	try
	{
		Glib::ustring license;
		Glib::RefPtr<Glib::IOChannel> ifile = Glib::IOChannel::create_from_file("data/licenses/gpl-3.0.txt", "r");
		ifile->read_to_end(license);
		ifile->close();
		dlg.set_license(license);
	}
	catch (Glib::IOChannelError& e)	
	{
		Utils::display_error( dlg, e.what() );
	}
	catch (Glib::ConvertError& e)
	{
		Utils::display_error( dlg, e.what() );
	}
	dlg.move(win_w+15, 0);

	dlg.run();
}