Esempio n. 1
0
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() ;

} 
Esempio n. 2
0
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();
}
Esempio n. 3
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();
}