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; }
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(); }