Beispiel #1
0
    protected void OnAbout(object o, EventArgs e)
    {
//		string[] authors = new string[]{
//			"<autors?>",
//		};

        Gtk.AboutDialog dialog = new Gtk.AboutDialog();
//		dialog.Icon = <icon>;
        dialog.ProgramName = "SuperTux Tiler";
        dialog.Version     = "0.0.3";
        dialog.Comments    = "A tileset editor for SuperTux 0.1.x";
//		dialog.Authors = authors;
        dialog.Copyright = "Copyright (c) 2006 SuperTux Devel Team";
        dialog.License   =
            "This program is free software; you can redistribute it and/or modify" + Environment.NewLine +
            "it under the terms of the GNU General Public License as published by" + Environment.NewLine +
            "the Free Software Foundation; either version 2 of the License, or" + Environment.NewLine +
            "(at your option) any later version." + Environment.NewLine +
            Environment.NewLine +
            "This program is distributed in the hope that it will be useful," + Environment.NewLine +
            "but WITHOUT ANY WARRANTY; without even the implied warranty of" + Environment.NewLine +
            "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" + Environment.NewLine +
            "GNU General Public License for more details." + Environment.NewLine +
            Environment.NewLine +
            "You should have received a copy of the GNU General Public License" + Environment.NewLine +
            "along with this program; if not, write to the Free Software Foundation, Inc.," + Environment.NewLine +
            "59 Temple Place, Suite 330, Boston, MA 02111-1307 USA" + Environment.NewLine;
        dialog.Website      = "http://supertux.lethargik.org/";
        dialog.WebsiteLabel = "SuperTux on the Web";
        dialog.Run();
        dialog.Destroy();
    }
Beispiel #2
0
        public void OnAboutClicked(object o, EventArgs args)
        {
            TreeModel model;
            TreeIter  iter;

            if (pluginTreeView.Selection.GetSelected(out model, out iter))
            {
                string     name = (string)pluginStore.GetValue(iter, 1);
                ViewPlugin vp   = Global.Plugins.GetViewPlugin(name, conn.Settings.Name);

                if (vp != null)
                {
                    Gtk.AboutDialog ab = new Gtk.AboutDialog();
                    ab.Authors     = vp.Authors;
                    ab.Comments    = vp.Description;
                    ab.Copyright   = vp.Copyright;
                    ab.ProgramName = vp.Name;
                    ab.Version     = vp.Version;
                    ab.Icon        = vp.Icon;

                    ab.Run();
                    ab.Destroy();
                }
            }
        }
Beispiel #3
0
        private void OnAbout(object sender, EventArgs args)
        {
            string [] authors = new string [] {
                "Calvin Gaisford <*****@*****.**>",
                "Scott Reeves <*****@*****.**>"
            };

            /* string [] documenters = new string [] {
             *   "Calvin Gaisford <*****@*****.**>"
             * };
             *
             *           string translators = Services.PlatformService.GetString ("translator-credits");
             * if (translators == "translator-credits")
             *   translators = null;
             */

            Gtk.AboutDialog about = new Gtk.AboutDialog();
            about.Name      = "Giver";
            about.Version   = Defines.Version;
            about.Logo      = Utilities.GetIcon("giver-48", 48);
            about.Copyright =
                Services.PlatformService.GetString("Copyright \xa9 2007 Novell, Inc.");
            about.Comments     = Services.PlatformService.GetString("Easy File Sharing");
            about.Website      = "http://idea.opensuse.org/content/ideas/easy-file-sharing";
            about.WebsiteLabel = Services.PlatformService.GetString("Homepage");
            about.Authors      = authors;
            //about.Documenters = documenters;
            //about.TranslatorCredits = translators;
            about.IconName = "giver";
            about.Run();
            about.Destroy();
        }
Beispiel #4
0
		private void Activated (object sender, EventArgs e)
		{
			AboutDialog dlg = new AboutDialog ();

			try {
				dlg.Run ();
			} finally {
				dlg.Destroy ();
			}
		}
Beispiel #5
0
        protected virtual void OnAboutActivated(object sender, System.EventArgs e)
        {
            AboutDialog ad = new AboutDialog();
            ad.Authors = new string[] { "Jérémie \"Garuma\" Laval" };
            ad.Copyright = "Copyright (c) 2007-2009 Jérémie Laval <*****@*****.**>";
            ad.License = "See the COPYING file";
            ad.Version = "0.6";

            ad.Run();
            ad.Destroy();
        }
Beispiel #6
0
 protected void OnAboutActionActivated(object sender, EventArgs e)
 {
     Gtk.AboutDialog about = new Gtk.AboutDialog
     {
         ProgramName = "Your Music",
         Version     = "0.1",
         Copyright   = "(c) Dunkelwind"
     };
     about.Run();
     about.Destroy();
 }
		void OnAboutActivated(object sender, EventArgs args)
		{
			AboutDialog about = new AboutDialog();
			about.ProgramName = "Hype Machine Downloader GTK";
			about.Version = "0.1";
			about.Copyright = "(c) Jonathan Amend, Tony Belanger";
			about.Comments = @"Hype Machine Downloader is a simple application to download songs from the HypeMachine website.";
			about.Website = "https://github.com/tsbelanger/HypeMachineDownloader-GTK";
			about.Run();
			about.Destroy();
		}
Beispiel #8
0
		private void HandleAboutActivated (object sender, EventArgs e)
		{
			AboutDialog about = new AboutDialog {
				ProgramName = AppInfos.AppName,
				Version = AppInfos.Version, 
				Website = AppInfos.WebSite, 
				Comments = AppInfos.Comments
			};

			about.Run ();
			about.Destroy ();
		}
Beispiel #9
0
 protected void OnAProposDeActionActivated(object sender, EventArgs e)
 {
     Gtk.AboutDialog about = new Gtk.AboutDialog();
     about.ProgramName = "EntretienAuto";
     about.Version     = "1.0";
     about.Copyright   = "(c) S.DI MERCURIO";
     about.Comments    = @"EntretienAuto est un outil pour gerer l'entretien de sa voiture";
     about.Website     = "http://www.zetcode.com";
     about.Logo        = new Gdk.Pixbuf("voiture.png");
     about.Run();
     about.Destroy();
 }
Beispiel #10
0
 private void OnHelpAbout(object o, EventArgs args)
 {
     Gtk.AboutDialog aboutDialog;
     aboutDialog              = new Gtk.AboutDialog();
     aboutDialog.Name         = "GMan";
     aboutDialog.Version      = "0.1";
     aboutDialog.Copyright    = "\u00a9 2007 Elliott Hughes";
     aboutDialog.Comments     = "Documentation viewer for programmers.";
     aboutDialog.Authors      = new string[] { "Elliott Hughes <*****@*****.**>" };
     aboutDialog.Logo         = new Gdk.Pixbuf("/home/elliotth/Projects/evergreen/lib/evergreen-32.png");
     aboutDialog.TransientFor = window;
     aboutDialog.Run();
     aboutDialog.Destroy();
 }
Beispiel #11
0
        public AboutDialog()
        {
            Gtk.AboutDialog ab = new Gtk.AboutDialog ();
            ab.Authors = _author;
            ab.Comments = _desc;
            ab.Copyright = _copy;
            ab.Documenters = _docs;
            ab.ProgramName = Defines.PACKAGE;
            ab.TranslatorCredits = _translators;
            ab.Version = Defines.VERSION;
            ab.Icon = Global.latIcon;

            ab.Run ();
            ab.Destroy ();
        }
Beispiel #12
0
        public AboutDialog()
        {
            Gtk.AboutDialog ab = new Gtk.AboutDialog();
            ab.Authors           = _author;
            ab.Comments          = _desc;
            ab.Copyright         = _copy;
            ab.Documenters       = _docs;
            ab.ProgramName       = Defines.PACKAGE;
            ab.TranslatorCredits = _translators;
            ab.Version           = Defines.VERSION;
            ab.Icon = Global.latIcon;

            ab.Run();
            ab.Destroy();
        }
Beispiel #13
0
        void AddHelpActions(ActionGroup actionGroup)
        {
            var help = new Gtk.Action ("help", Catalog.GetString ("_Help"));
            actionGroup.Add (help);

            var about = new Gtk.Action ("about", null, null, Gtk.Stock.About);
            about.Activated += delegate {
                var dialog = new AboutDialog ();
                dialog.Authors = new string[] { "Christian Hergert" };
                dialog.License = Util.ReadResource ("Resources.license.txt");
                dialog.Copyright = "Copyright © 2008 Christian Hergert";
                dialog.Run ();
                dialog.Destroy ();
            };
            actionGroup.Add (about);
        }
Beispiel #14
0
        void HandleAbout_toolbuttonhandleClicked(object sender, EventArgs e)
        {
            Gtk.AboutDialog ad = new Gtk.AboutDialog();
            ad.SetPosition(Gtk.WindowPosition.CenterOnParent);
            Assembly asm = Assembly.GetExecutingAssembly();

            ad.ProgramName = (asm.GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0] as AssemblyTitleAttribute).Title;
            ad.Version     = asm.GetName().Version.ToString();
            ad.Comments    = (asm.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false)[0] as AssemblyDescriptionAttribute).Description;
            ad.Copyright   = (asm.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as AssemblyCopyrightAttribute).Copyright;
            ad.Authors     = new string[] { "Ronaldo Nascimento <*****@*****.**" };
            ad.License     = "GPL 3";
            ad.Logo        = Battle.Gui.MediaManager.GetPixbufFromBaseFile("BLLogo-small.jpg");
            ad.Website     = "http://battle.sourceforge.net";

            ad.Run();
            ad.Destroy();
        }
Beispiel #15
0
 public static void AboutProgramDialog(object sender, EventArgs e)
 {
     string text = "Vše vzniklo jako ročníkový projekt na MFF UK v roce 2011.\n"+
             "Implementačním jazykem je C#, grafickou knihovnou GTK#";
     Gtk.AboutDialog aboutWin = new Gtk.AboutDialog();
     aboutWin.Copyright = "GPL";
     aboutWin.Documenters = new string[] {"Ondřej Profant"};
     aboutWin.ProgramName = "gScrabble";
     aboutWin.Authors = new string[] {"Ondřej Profant"};
     aboutWin.Artists = new string[] {"Ondřej Profant", "Lada Švadlenková"};
     aboutWin.Website = "https://github.com/Kedrigern/scrabble";
     aboutWin.Title = "O programu gScrabble";
     aboutWin.WebsiteLabel = "Projekt na GitHubu";
     aboutWin.WrapLicense = true;
     aboutWin.Logo = Scrabble.Game.InitialConfig.icon;
     aboutWin.Comments = text;
     aboutWin.Run();
     aboutWin.Hide();
     aboutWin.Destroy();
 }
Beispiel #16
0
        public static void AboutProgramDialog(object sender, EventArgs e)
        {
            string text = "Vše vzniklo jako ročníkový projekt na MFF UK v roce 2011.\n" +
                          "Implementačním jazykem je C#, grafickou knihovnou GTK#";

            Gtk.AboutDialog aboutWin = new Gtk.AboutDialog();
            aboutWin.Copyright    = "GPL";
            aboutWin.Documenters  = new string[] { "Ondřej Profant" };
            aboutWin.ProgramName  = "gScrabble";
            aboutWin.Authors      = new string[] { "Ondřej Profant" };
            aboutWin.Artists      = new string[] { "Ondřej Profant", "Lada Švadlenková" };
            aboutWin.Website      = "https://github.com/Kedrigern/scrabble";
            aboutWin.Title        = "O programu gScrabble";
            aboutWin.WebsiteLabel = "Projekt na GitHubu";
            aboutWin.WrapLicense  = true;
            aboutWin.Logo         = Scrabble.Game.InitialConfig.icon;
            aboutWin.Comments     = text;
            aboutWin.Run();
            aboutWin.Hide();
            aboutWin.Destroy();
        }
Beispiel #17
0
        private void OnAbout(object sender, EventArgs args)
        {
            string [] authors = new string [] {
                "Boyd Timothy <*****@*****.**>",
                "Calvin Gaisford <*****@*****.**>",
                "Sandy Armstrong <*****@*****.**>",
                "Brian G. Merrell <*****@*****.**>"
            };

            /* string [] documenters = new string [] {
             * "Calvin Gaisford <*****@*****.**>"
             * };
             */

            string translators = Catalog.GetString("translator-credits");

            if (translators == "translator-credits")
            {
                translators = null;
            }

            Gtk.AboutDialog about = new Gtk.AboutDialog();
            about.Name      = "Tasque";
            about.Version   = Defines.Version;
            about.Logo      = Utilities.GetIcon("tasque-48", 48);
            about.Copyright =
                Catalog.GetString("Copyright \xa9 2008 Novell, Inc.");
            about.Comments     = Catalog.GetString("A Useful Task List");
            about.Website      = "http://live.gnome.org/Tasque";
            about.WebsiteLabel = Catalog.GetString("Tasque Project Homepage");
            about.Authors      = authors;
            //about.Documenters = documenters;
            about.TranslatorCredits = translators;
            about.IconName          = "tasque";
            about.SetSizeRequest(300, 300);
            about.Run();
            about.Destroy();
        }
Beispiel #18
0
    protected void OnAbout(object o, EventArgs e)
    {
        string[] authors = new string[] {
            "Matthias \"MatzeB\" Braun",
            "",
            "Wolfgang Becker",
            "Christoph Sommer",
            "Arvid Norlander",
        };

        Gtk.AboutDialog dialog = new Gtk.AboutDialog();
        dialog.Icon        = EditorStock.WindowIcon;
        dialog.ProgramName = "SuperTux Editor";
        dialog.Version     = Constants.PACKAGE_VERSION;
        dialog.Comments    = "A level and worldmap editor for SuperTux 0.3.x";
        dialog.Authors     = authors;
        dialog.Copyright   = "Copyright (c) 2006-2013 SuperTux Devel Team";
        dialog.License     =
            "This program is free software; you can redistribute it and/or modify" + Environment.NewLine +
            "it under the terms of the GNU General Public License as published by" + Environment.NewLine +
            "the Free Software Foundation; either version 3 of the License, or" + Environment.NewLine +
            "(at your option) any later version." + Environment.NewLine +
            Environment.NewLine +
            "This program is distributed in the hope that it will be useful," + Environment.NewLine +
            "but WITHOUT ANY WARRANTY; without even the implied warranty of" + Environment.NewLine +
            "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" + Environment.NewLine +
            "GNU General Public License for more details." + Environment.NewLine +
            Environment.NewLine +
            "You should have received a copy of the GNU General Public License" + Environment.NewLine +
            "along with this program; if not, write to the Free Software Foundation, Inc.," + Environment.NewLine +
            "59 Temple Place, Suite 330, Boston, MA 02111-1307 USA" + Environment.NewLine;
        dialog.Website      = "http://supertux.lethargik.org/";
        dialog.WebsiteLabel = "SuperTux on the Web";
        dialog.Run();
        dialog.Destroy();
    }
Beispiel #19
0
        protected virtual void OnAboutAction1Activated(object sender, System.EventArgs e)
        {
            var d = new AboutDialog ();
            d.Version = "1.0";
            d.Website = "http://sisyphus.teil.cc/~mru";
            d.Authors = new string[] { "mru" };

            d.Run ();
            d.Destroy ();
        }
Beispiel #20
0
    protected virtual void OnAboutActionActivated(object sender, System.EventArgs e)
    {
        AboutDialog about = new Gtk.AboutDialog();

        about.Version = "0.6";
        about.License =  Catalog.GetString("Licensed under the terms of GPLv3");
        about.License += "\nhttp://www.gnu.org/licenses/gpl-3.0.html";

        about.Copyright += Catalog.GetString("(c) 2009 by Couturier contributors");
        about.Copyright += "\n";
        about.Copyright += Catalog.GetString("(c) 1999-2009 by itextsharp.sourceforge.net");

        about.TranslatorCredits += "Charalampos Emmanouilidis <*****@*****.**>\n";
        about.TranslatorCredits += "Emmanuel <*****@*****.**>\n";
        about.TranslatorCredits += "Kleomenis Katevas <*****@*****.**>\n";

        about.Artists = new String[] { "Charalampos Emmanouilidis <*****@*****.**>" };
        about.Authors = new String[] { "Charalampos Emmanouilidis <*****@*****.**>" };
        about.Website = "http://sites.google.com/site/couturierapp/";

        about.Run();
        about.Destroy();
    }
Beispiel #21
0
        private void OnAbout(object sender, EventArgs args)
        {
            string [] authors = new string [] {
                "Boyd Timothy <*****@*****.**>",
                "Calvin Gaisford <*****@*****.**>",
                "Sandy Armstrong <*****@*****.**>",
                "Brian G. Merrell <*****@*****.**>"
            };

            /* string [] documenters = new string [] {
               "Calvin Gaisford <*****@*****.**>"
               };
               */

            string translators = Catalog.GetString ("translator-credits");
            if (translators == "translator-credits")
                translators = null;

            Gtk.AboutDialog about = new Gtk.AboutDialog ();
            about.Name = "Tasque";
            about.Version = Defines.Version;
            about.Logo = Utilities.GetIcon("tasque-48", 48);
            about.Copyright =
                Catalog.GetString ("Copyright \xa9 2008 Novell, Inc.");
            about.Comments = Catalog.GetString ("A Useful Task List");
            about.Website = "http://live.gnome.org/Tasque";
            about.WebsiteLabel = Catalog.GetString("Tasque Project Homepage");
            about.Authors = authors;
            //about.Documenters = documenters;
            about.TranslatorCredits = translators;
            about.IconName = "tasque";
            about.SetSizeRequest(300, 300);
            about.Run ();
            about.Destroy ();
        }
Beispiel #22
0
    protected void MostraSobre(object sender, System.EventArgs e)
    {
        Gtk.AboutDialog sobre = new Gtk.AboutDialog();
        sobre.ProgramName = "bCalc";
        sobre.Version = "1.0";
        sobre.Copyright = @"Desenvolvido por Bruno Costa de Morais © 2012";
        sobre.Website = @"https://github.com/brunocmorais";
        sobre.DestroyWithParent = true;
        sobre.Comments = @"Esta é uma pequena calculadora criada para
        realizar cálculos básicos, além de funções
        trigonométricas e cálculos estatísticos.

        Este programa não possui quaisquer restrições
        quanto à sua utilização ou modificação.
        Foi desenvolvido com a linguagem C#, sob o uso
        do framework Mono e da biblioteca gráfica GTK#.

        Licenciado sob a GPL 3.";
        sobre.Resizable = false;
        sobre.LogoIconName = "calc";
        sobre.Title = "Sobre o bCalc";
        sobre.Run();
        sobre.Destroy();
    }
Beispiel #23
0
        public static void ShowAbout()
        {
            Gtk.AboutDialog about = new Gtk.AboutDialog();
            about.ProgramName  = "Docky";
            about.Version      = AssemblyInfo.DisplayVersion + "\n" + AssemblyInfo.VersionDetails;
            about.IconName     = "docky";
            about.LogoIconName = "docky";
            about.Website      = "https://launchpad.net/docky";
            about.WebsiteLabel = "Website";
            Gtk.AboutDialog.SetUrlHook((dialog, link) => DockServices.System.Open(link));
            about.Copyright = "Copyright \xa9 2009-2015 Docky Developers";
            about.Comments  = "Docky. Simply Powerful.";
            about.Authors   = new[] {
                "Jason Smith <*****@*****.**>",
                "Robert Dyer <*****@*****.**>",
                "Chris Szikszoy <*****@*****.**>",
                "Rico Tzschichholz <*****@*****.**>",
                "Seif Lotfy <*****@*****.**>",
                "Chris Halse Rogers <*****@*****.**>",
                "Alex Launi <*****@*****.**>",
                "Florian Dorn <*****@*****.**>",
            };
            about.Artists = new[] {
                "Daniel Foré <*****@*****.**>",
            };
            about.Documenters = new[] {
                "Sven Mauhar <*****@*****.**>",
                "Robert Dyer <*****@*****.**>",
                "Daniel Foré <*****@*****.**>",
                "Chris Szikszoy <*****@*****.**>",
                "Rico Tzschichholz <*****@*****.**>",
            };
            about.TranslatorCredits =
                "Asturian\n" +
                " Xuacu Saturio\n" +
                "\n" +

                "Basque\n" +
                " Ibai Oihanguren\n" +
                "\n" +

                "Bengali\n" +
                " Scio\n" +
                "\n" +

                "Brazilian Portuguese\n" +
                " André Gondim, Fabio S Monteiro, Flávio Etrusco, Glauco Vinicius\n" +
                " Lindeval, Thiago Bellini, Victor Mello\n" +
                "\n" +

                "Bulgarian\n" +
                " Boyan Sotirov, Krasimir Chonov\n" +
                "\n" +

                "Catalan\n" +
                " BadChoice, Siegfried Gevatter\n" +
                "\n" +

                "Chinese (Simplified)\n" +
                " Chen Tao, G.S.Alex, Xhacker Liu, fighterlyt, lhquark, skatiger, 冯超\n" +
                "\n" +

                "Croatian\n" +
                " Saša Teković, zekopeko\n" +
                "\n" +

                "English (United Kingdom)\n" +
                " Alex Denvir, Daniel Bell, David Wood, Joel Auterson, SteVe Cook\n" +
                "\n" +

                "Finnish\n" +
                " Jiri Grönroos\n" +
                "\n" +

                "French\n" +
                " Hugo M., Kévin Gomez, Pierre Slamich\n" +
                " Simon Richard, alienworkshop, maxime Cheval\n" +
                "\n" +

                "Galician\n" +
                " Francisco Diéguez, Indalecio Freiría Santos, Miguel Anxo Bouzada, NaNo\n" +
                "\n" +

                "German\n" +
                " Cephinux, Gabriel Shahzad, Jan-Christoph Borchardt, Mark Parigger\n" +
                " Martin Lettner, augias, fiction, pheder, tai\n" +
                "\n" +

                "Hebrew\n" +
                " Uri Shabtay\n" +
                "\n" +

                "Hindi\n" +
                " Bilal Akhtar\n" +
                "\n" +

                "Hungarian\n" +
                " Bognár András, Gabor Kelemen, Jezsoviczki Ádám, NewPlayer\n" +
                "\n" +

                "Icelandic\n" +
                " Baldur, Sveinn í Felli\n" +
                "\n" +

                "Indonesian\n" +
                " Andika Triwidada, Fakhrul Rijal\n" +
                "\n" +

                "Italian\n" +
                " Andrea Amoroso, Blaster, Ivan, MastroPino, Michele, Milo Casagrande, Quizzlo\n" +
                "\n" +

                "Japanese\n" +
                " kawaji\n" +
                "\n" +

                "Korean\n" +
                " Bugbear5, Cedna\n" +
                "\n" +

                "Polish\n" +
                " 313, Adrian Grzemski, EuGene, Rafał Szalecki, Stanisław Gackowski, bumper, emol007\n" +
                "\n" +

                "Romanian\n" +
                " Adi Roiban, George Dumitrescu\n" +
                "\n" +

                "Russian\n" +
                " Alexander Semyonov, Alexey Nedilko, Andrey Sitnik, Artem Yakimenko\n" +
                " Dmitriy Bobylev, Ivan, Phenomen, Sergey Demurin, Sergey Sedov\n" +
                " SochiX, Vladimir, legin, sX11\n" +
                "\n" +

                "Spanish\n" +
                " Alejandro Navarro, David, DiegoJ, Edgardo Fredz, FAMM, Fuerteventura\n" +
                " Gus, José A. Fuentes Santiago, Julián Alarcón, Malq, Martín V.\n" +
                " Omar Campagne, Ricardo Pérez López, Sebastián Porta, alvin23, augias, elXATU\n" +
                "\n" +

                "Swedish\n" +
                " Daniel Nylander, Rovanion, riiga\n" +
                "\n" +

                "Turkish\n" +
                " Yalçın Can, Yiğit Ateş\n" +
                "\n" +

                "Ukrainian\n" +
                " naker.ua\n";

            about.ShowAll();

            about.Response += delegate {
                about.Hide();
                about.Destroy();
            };
        }
Beispiel #24
0
        public void OnAbout(object o, EventArgs args)
        {
            AboutDialog dialog = new AboutDialog ();

            dialog.ProgramName = CAPTION;

            dialog.Authors = new string[] { "Zoltan Varga ([email protected])" };

            dialog.Copyright = "Copyright © 2008 Novell, Inc. and Others";
            dialog.Comments = "A Coverage Analysis program for MONO.";

            dialog.Run ();
            dialog.Destroy ();
        }
Beispiel #25
0
        protected void OnAboutActionActivated(object sender, System.EventArgs e)
        {
            Assembly assembly = Assembly.GetExecutingAssembly();
            AboutDialog aboutDlg = new AboutDialog();
            aboutDlg.ParentWindow = this.GdkWindow;
            aboutDlg.SetPosition(Gtk.WindowPosition.Center);

            aboutDlg.Title = "About MultiMC";

            aboutDlg.ProgramName =
                AppUtils.GetAssemblyAttr<AssemblyTitleAttribute>(assembly).Title;

            aboutDlg.Version = AppUtils.GetVersion().ToString();

            aboutDlg.Comments =
                AppUtils.GetAssemblyAttr<AssemblyDescriptionAttribute>(assembly).Description;

            aboutDlg.Copyright =
                AppUtils.GetAssemblyAttr<AssemblyCopyrightAttribute>(assembly).Copyright;

            aboutDlg.License = Resources.License;

            aboutDlg.Logo = Pixbuf.LoadFromResource("MultiMC.AboutLogo.png");

            aboutDlg.Website = "http://forkk.net/MultiMC";
            aboutDlg.WebsiteLabel = aboutDlg.Website;

            aboutDlg.Authors = new string[]
            {
                "Andrew Okin <*****@*****.**>",
                "ShaRose"
            };

            aboutDlg.Response += (sender2, e2) => aboutDlg.Destroy();

            aboutDlg.Run();
        }
Beispiel #26
0
        // Toolbar About
        static void OnToolbarAbout_Clicked(object obj, EventArgs args)
        {
            AboutDialog dialog = new AboutDialog ();

            string [] authors = new string [] { "Jamie Cerretelli <*****@*****.**>" };

            string license = @"Copyright (C) 2012 Jamie Cerretelli <*****@*****.**>
            Usage of the works is permitted provided that this instrument is retained with the works,
            so that any entity that uses the works is notified of this instrument.
            DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.";

            dialog.ProgramName = (self.GetCustomAttributes (typeof(AssemblyTitleAttribute), false)[0] as AssemblyTitleAttribute).Title;
            dialog.Version = self.GetName ().Version.ToString ();
            dialog.Copyright = (self.GetCustomAttributes (typeof (AssemblyCopyrightAttribute), false) [0]	as AssemblyCopyrightAttribute).Copyright;
            dialog.License = license;
            dialog.Authors = authors;
            dialog.Logo = icon;
            dialog.Run();

            dialog.Destroy ();
        }
Beispiel #27
0
        public void OnAttrAboutClicked(object o, EventArgs args)
        {
            TreeModel model;
            TreeIter iter;

            if (attrViewPluginTreeView.Selection.GetSelected (out model, out iter)) {

                string name = (string) attrPluginStore.GetValue (iter, 1);
                AttributeViewPlugin vp = Global.Plugins.FindAttributeView (name);

                if (vp != null) {
                    Gtk.AboutDialog ab = new Gtk.AboutDialog ();
                    ab.Authors = vp.Authors;
                    ab.Comments = vp.Description;
                    ab.Copyright = vp.Copyright;
                    ab.ProgramName = vp.Name;
                    ab.Version = vp.Version;

                    ab.Run ();
                    ab.Destroy ();
                }
            }
        }
Beispiel #28
0
    protected void OnAbout(object o, EventArgs e) {
//		string[] authors = new string[]{
//			"<autors?>",
//		};

		Gtk.AboutDialog dialog = new Gtk.AboutDialog();
//		dialog.Icon = <icon>;
		dialog.ProgramName = "SuperTux Tiler";
		dialog.Version = "0.0.3";
		dialog.Comments = "A tileset editor for SuperTux 0.1.x";
//		dialog.Authors = authors;
		dialog.Copyright = "Copyright (c) 2006 SuperTux Devel Team";
		dialog.License =
			"This program is free software; you can redistribute it and/or modify" + Environment.NewLine +
			"it under the terms of the GNU General Public License as published by" + Environment.NewLine +
			"the Free Software Foundation; either version 2 of the License, or" + Environment.NewLine +
			"(at your option) any later version." + Environment.NewLine +
			Environment.NewLine +
			"This program is distributed in the hope that it will be useful," + Environment.NewLine +
			"but WITHOUT ANY WARRANTY; without even the implied warranty of" + Environment.NewLine +
			"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" + Environment.NewLine +
			"GNU General Public License for more details." + Environment.NewLine +
			Environment.NewLine +
			"You should have received a copy of the GNU General Public License" + Environment.NewLine +
			"along with this program; if not, write to the Free Software Foundation, Inc.," + Environment.NewLine +
			"59 Temple Place, Suite 330, Boston, MA 02111-1307 USA" + Environment.NewLine;
		dialog.Website = "http://supertux.lethargik.org/";
		dialog.WebsiteLabel = "SuperTux on the Web";
		dialog.Run();
		dialog.Destroy();
    }
        public void About()
        {
            AboutDialog about = new AboutDialog();

            about.ProgramName = Catalog.GetString("Monoreports - report designer tool");
            about.Authors = new string[]{"Tomasz Kubacki"};
            about.TranslatorCredits = "Claudio Rodrigo Pereyra Diaz";
            about.WrapLicense = true;
            about.License = @"
            Copyright (c) 2010 Tomasz Kubacki

            Permission is hereby granted, free of charge, to any person obtaining a copy
            of this software and associated documentation files (the ""Software""), to deal
            in the Software without restriction, including without limitation the rights
            to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
            copies of the Software, and to permit persons to whom the Software is
            furnished to do so, subject to the following conditions:

            The above copyright notice and this permission notice shall be included in
            all copies or substantial portions of the Software.

            THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
            IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
            FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
            AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
            LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
            OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
            THE SOFTWARE.

            ";

            about.Response += delegate(object o, ResponseArgs args) {
            about.Destroy ();
            };

            about.Show();
        }
Beispiel #30
0
        protected void on_about_toolbutton_clicked(object sender, EventArgs e)
        {
            Assembly assembly = Assembly.GetExecutingAssembly ();
            string[] me = new string[] {"Ronaldo Nascimento <*****@*****.**>"};
            AboutDialog d = new AboutDialog ();
            d.SkipTaskbarHint = true;
            d.Artists = me;
            d.Authors = me;
            object[] comments = assembly.GetCustomAttributes (typeof (AssemblyDescriptionAttribute), false);
            d.Comments = ((AssemblyDescriptionAttribute)comments[0]).Description;
            object[] copyright = assembly.GetCustomAttributes (typeof(AssemblyCopyrightAttribute), false);
            d.Copyright = ((AssemblyCopyrightAttribute)copyright[0]).Copyright;
            d.Documenters = me;
            d.Icon = Gdk.Pixbuf.LoadFromResource ("WebShell.Media.wsh.png");
            d.Logo = Gdk.Pixbuf.LoadFromResource ("WebShell.Media.wsh.png");
            d.License = @"This program is free software: you can redistribute it and/or modify
            it under the terms of the GNU Lesser General Public License as published by
            the Free Software Foundation, either version 3 of the License, or
            (at your option) any later version.

            This program is distributed in the hope that it will be useful,
            but WITHOUT ANY WARRANTY; without even the implied warranty of
            MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
            GNU Lesser General Public License for more details.

            You should have received a copy of the GNU Lesser General Public License
            along with this program.  If not, see <http://www.gnu.org/licenses/>.";
            object[] programname = assembly.GetCustomAttributes (typeof (AssemblyTitleAttribute), false);
            d.ProgramName = ((AssemblyTitleAttribute)programname[0]).Title;
            d.Title = d.ProgramName;
            //d.TranslatorCredits = me[0];
            d.Version = string.Format ("{0}.{1}.{2}.{3}", assembly.GetName ().Version.Major, assembly.GetName ().Version.Minor,
                                       assembly.GetName ().Version.Revision, assembly.GetName ().Version.Build);
            d.Website = "http://battle.sourceforge.net";
            d.WebsiteLabel = d.Website;
            d.Run ();
            d.Hide ();
            d.Destroy ();
        }
Beispiel #31
0
        void OnAbout (object o, EventArgs args)
        {
            Gtk.AboutDialog.SetUrlHook ((dlg, link) => { System.Diagnostics.Process.Start (link); });

            var dialog = new Gtk.AboutDialog () {
                ProgramName = "PDF Mod",
                Version = Core.Defines.VERSION,
                Website = WIKI_URL,
                WebsiteLabel = Catalog.GetString ("Visit Website"),
                Authors = new string [] {
                    Catalog.GetString ("Primary Development:"),
                    "\tGabriel Burt",
                    "",
                    Catalog.GetString ("Contributors:"),
                    "\tSandy Armstrong",
                    "\tAaron Bockover",
                    "\tOlivier Le Thanh Duong",
                    "\tJulien Rebetez",
                    "\tIgor Vatavuk",
                    "\tBertrand Lorentz",
                    "\tMichael McKinley",
                    "\tŁukasz Jernaś",
                    "\tRomain Tartière",
                    "\tRobert Dyer",
                    "\tAndreu Correa Casablanca",
                    "\tChow Loong Jin",
                    "\tRobson Roberto Souza Peixoto",
                    "\tThomas Klausner"
                },
                Documenters = new string [] { "Gabriel Burt" },
                Artists = new string [] { "Kalle Persson" },
                Copyright = String.Format (
                    // Translators: {0} and {1} are the years the copyright assertion covers; put into
                    // variables so you don't have to re-translate this every year
                    Catalog.GetString ("Copyright {0} Novell Inc.\nCopyright {1} Other PDF Mod Contributors"),
                    "2009-2011", "2009-2011"
                ),
                TranslatorCredits = Catalog.GetString ("translator-credits")
            };

            try {
                dialog.Logo = Gtk.IconTheme.Default.LoadIcon ("pdfmod", 256, 0);
            } catch {}

            string [] license_paths = new string [] {
                Core.Defines.PREFIX + "/share/doc/packages/pdfmod/COPYING",
                "/usr/local/share/doc/packages/pdfmod/COPYING",
                "COPYING",
                "../COPYING"
            };

            foreach (var path in license_paths) {
                try {
                    dialog.License = System.IO.File.ReadAllText (path);
                    break;
                } catch {}
            }

            dialog.Run ();
            dialog.Destroy ();
        }
Beispiel #32
0
		public static void ShowAbout ()
		{
			Gtk.AboutDialog about = new Gtk.AboutDialog ();
			about.ProgramName = "Docky";
			about.Version = AssemblyInfo.DisplayVersion + "\n" + AssemblyInfo.VersionDetails;
			about.IconName = "docky";
			about.LogoIconName = "docky";
			about.Website = "https://launchpad.net/docky";
			about.WebsiteLabel = "Website";
			Gtk.AboutDialog.SetUrlHook ((dialog, link) => DockServices.System.Open (link));
			about.Copyright = "Copyright \xa9 2009-2012 Docky Developers";
			about.Comments = "Docky. Simply Powerful.";
			about.Authors = new[] {
				"Jason Smith <*****@*****.**>",
				"Robert Dyer <*****@*****.**>",
				"Chris Szikszoy <*****@*****.**>",
				"Rico Tzschichholz <*****@*****.**>",
				"Seif Lotfy <*****@*****.**>",
				"Chris Halse Rogers <*****@*****.**>",
				"Alex Launi <*****@*****.**>",
				"Florian Dorn <*****@*****.**>",
			};
			about.Artists = new[] { 
				"Daniel Foré <*****@*****.**>",
			};
			about.Documenters = new[] {
				"Sven Mauhar <*****@*****.**>",
				"Robert Dyer <*****@*****.**>",
				"Daniel Foré <*****@*****.**>",
				"Chris Szikszoy <*****@*****.**>",
				"Rico Tzschichholz <*****@*****.**>",
			};
			about.TranslatorCredits = 
				"Asturian\n" +
				" Xuacu Saturio\n" +
				"\n" +
				
				"Basque\n" +
				" Ibai Oihanguren\n" +
				"\n" +
				
				"Bengali\n" +
				" Scio\n" +
				"\n" +
				
				"Brazilian Portuguese\n" +
				" André Gondim, Fabio S Monteiro, Flávio Etrusco, Glauco Vinicius\n" +
				" Lindeval, Thiago Bellini, Victor Mello\n" +
				"\n" +
				
				"Bulgarian\n" +
				" Boyan Sotirov, Krasimir Chonov\n" +
				"\n" +
				
				"Catalan\n" +
				" BadChoice, Siegfried Gevatter\n" +
				"\n" +
				
				"Chinese (Simplified)\n" +
				" Chen Tao, G.S.Alex, Xhacker Liu, fighterlyt, lhquark, skatiger, 冯超\n" +
				"\n" +
				
				"Croatian\n" +
				" Saša Teković, zekopeko\n" +
				"\n" +
				
				"English (United Kingdom)\n" +
				" Alex Denvir, Daniel Bell, David Wood, Joel Auterson, SteVe Cook\n" +
				"\n" +
				
				"Finnish\n" +
				" Jiri Grönroos\n" +
				"\n" +
				
				"French\n" +
				" Hugo M., Kévin Gomez, Pierre Slamich\n" +
				" Simon Richard, alienworkshop, maxime Cheval\n" +
				"\n" +
				
				"Galician\n" +
				" Francisco Diéguez, Indalecio Freiría Santos, Miguel Anxo Bouzada, NaNo\n" +
				"\n" +
				
				"German\n" +
				" Cephinux, Gabriel Shahzad, Jan-Christoph Borchardt, Mark Parigger\n" + 
				" Martin Lettner, augias, fiction, pheder, tai\n" +
				"\n" +
				
				"Hebrew\n" +
				" Uri Shabtay\n" +
				"\n" +
				
				"Hindi\n" +
				" Bilal Akhtar\n" +
				"\n" +
				
				"Hungarian\n" +
				" Bognár András, Gabor Kelemen, Jezsoviczki Ádám, NewPlayer\n" +
				"\n" +
				
				"Icelandic\n" +
				" Baldur, Sveinn í Felli\n" +
				"\n" +
				
				"Indonesian\n" +
				" Andika Triwidada, Fakhrul Rijal\n" +
				"\n" +
				
				"Italian\n" +
				" Andrea Amoroso, Blaster, Ivan, MastroPino, Michele, Milo Casagrande, Quizzlo\n" +
				"\n" +
				
				"Japanese\n" +
				" kawaji\n" +
				"\n" +
				
				"Korean\n" +
				" Bugbear5, Cedna\n" +
				"\n" +
				
				"Polish\n" +
				" 313, Adrian Grzemski, EuGene, Rafał Szalecki, Stanisław Gackowski, bumper, emol007\n" +
				"\n" +
				
				"Romanian\n" +
				" Adi Roiban, George Dumitrescu\n" +
				"\n" +
				
				"Russian\n" +
				" Alexander Semyonov, Alexey Nedilko, Andrey Sitnik, Artem Yakimenko\n" +
				" Dmitriy Bobylev, Ivan, Phenomen, Sergey Demurin, Sergey Sedov\n" +
				" SochiX, Vladimir, legin, sX11\n" +
				"\n" +
				
				"Spanish\n" +
				" Alejandro Navarro, David, DiegoJ, Edgardo Fredz, FAMM, Fuerteventura\n" +
				" Gus, José A. Fuentes Santiago, Julián Alarcón, Malq, Martín V.\n" +
				" Omar Campagne, Ricardo Pérez López, Sebastián Porta, alvin23, augias, elXATU\n" +
				"\n" +
				
				"Swedish\n" +
				" Daniel Nylander, Rovanion, riiga\n" +
				"\n" +
				
				"Turkish\n" +
				" Yalçın Can, Yiğit Ateş\n" +
				"\n" +
				
				"Ukrainian\n" +
				" naker.ua\n";
			
			about.ShowAll ();
			
			about.Response += delegate {
				about.Hide ();
				about.Destroy ();
			};
			
		}
Beispiel #33
0
        void HandleAbout_toolbuttonhandleClicked(object sender, EventArgs e)
        {
            Gtk.AboutDialog ad = new Gtk.AboutDialog();
            ad.SetPosition(Gtk.WindowPosition.CenterOnParent);
            Assembly asm = Assembly.GetExecutingAssembly();
            ad.ProgramName = (asm.GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0] as AssemblyTitleAttribute).Title;
            ad.Version = asm.GetName().Version.ToString();
            ad.Comments = (asm.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false)[0] as AssemblyDescriptionAttribute).Description;
            ad.Copyright = (asm.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as AssemblyCopyrightAttribute).Copyright;
            ad.Authors = new string[] {"Ronaldo Nascimento <*****@*****.**"};
            ad.License = "GPL 3";
            ad.Logo = Battle.Gui.MediaManager.GetPixbufFromBaseFile("BLLogo-small.jpg");
            ad.Website = "http://battle.sourceforge.net";

            ad.Run();
            ad.Destroy();
        }
Beispiel #34
0
 private void OnHelpAbout(object o, EventArgs args)
 {
     Gtk.AboutDialog aboutDialog;
     aboutDialog = new Gtk.AboutDialog();
     aboutDialog.Name = "GMan";
     aboutDialog.Version = "0.1";
     aboutDialog.Copyright = "\u00a9 2007 Elliott Hughes";
     aboutDialog.Comments = "Documentation viewer for programmers.";
     aboutDialog.Authors = new string[] { "Elliott Hughes <*****@*****.**>" };
     aboutDialog.Logo = new Gdk.Pixbuf("/home/elliotth/Projects/evergreen/lib/evergreen-32.png");
     aboutDialog.TransientFor = window;
     aboutDialog.Run();
     aboutDialog.Destroy();
 }
Beispiel #35
0
        void OnAbout(object o, EventArgs args)
        {
            Gtk.AboutDialog.SetUrlHook((dlg, link) => { System.Diagnostics.Process.Start(link); });

            var dialog = new Gtk.AboutDialog()
            {
                ProgramName  = "PDF Mod",
                Version      = Core.Defines.VERSION,
                Website      = WIKI_URL,
                WebsiteLabel = Catalog.GetString("Visit Website"),
                Authors      = new string [] {
                    Catalog.GetString("Primary Development:"),
                    "\tGabriel Burt",
                    "",
                    Catalog.GetString("Contributors:"),
                    "\tSandy Armstrong",
                    "\tAaron Bockover",
                    "\tOlivier Le Thanh Duong",
                    "\tJulien Rebetez",
                    "\tIgor Vatavuk",
                    "\tBertrand Lorentz",
                    "\tMichael McKinley",
                    "\tŁukasz Jernaś",
                    "\tRomain Tartière",
                    "\tRobert Dyer",
                    "\tAndreu Correa Casablanca",
                    "\tChow Loong Jin",
                    "\tRobson Roberto Souza Peixoto",
                    "\tThomas Klausner"
                },
                Documenters = new string [] { "Gabriel Burt" },
                Artists     = new string [] { "Kalle Persson" },
                Copyright   = String.Format(
                    // Translators: {0} and {1} are the years the copyright assertion covers; put into
                    // variables so you don't have to re-translate this every year
                    Catalog.GetString("Copyright {0} Novell Inc.\nCopyright {1} Other PDF Mod Contributors"),
                    "2009-2011", "2009-2011"
                    ),
                TranslatorCredits = Catalog.GetString("translator-credits")
            };

            try {
                dialog.Logo = Gtk.IconTheme.Default.LoadIcon("pdfmod", 256, 0);
            } catch {}

            string [] license_paths = new string [] {
                Core.Defines.PREFIX + "/share/doc/packages/pdfmod/COPYING",
                "/usr/local/share/doc/packages/pdfmod/COPYING",
                "COPYING",
                "../COPYING"
            };

            foreach (var path in license_paths)
            {
                try {
                    dialog.License = System.IO.File.ReadAllText(path);
                    break;
                } catch {}
            }

            dialog.Run();
            dialog.Destroy();
        }
Beispiel #36
0
        void OnAbout(object sender, EventArgs args)
        {
            var authors = Defines.Authors;
            var translators = Catalog.GetString ("translator-credits");
            if (translators == "translator-credits")
                translators = null;

            var about = new AboutDialog ();
            about.ProgramName = "Tasque";
            about.Version = Defines.Version;
            about.Logo = Utilities.GetIcon("tasque", 48);
            about.Copyright = Defines.CopyrightInfo;
            about.Comments = Catalog.GetString ("A Useful Task List");
            about.Website = Defines.Website;
            about.WebsiteLabel = Catalog.GetString("Tasque Project Homepage");
            about.Authors = authors;
            about.TranslatorCredits = translators;
            about.License = Defines.License;
            about.IconName = "tasque";
            about.Run ();
            about.Destroy ();
        }
Beispiel #37
0
	/// <summary>
	/// About Screen
	/// </summary>
	/// <param name='sender'>
	/// Sender.
	/// </param>
	/// <param name='e'>
	/// E.
	/// </param>
	protected void OnAboutShow (object sender, System.EventArgs e)
	{
		Console .WriteLine ("About Page Opened");
		Gtk .AboutDialog about = new Gtk.AboutDialog ();
		about .Copyright = "Copyright 2012 - Pouya Mohammad Kary";
		about .Website = "http://www.thepa.mx/kary/binominor";
		about .Comments = "\"Best binominal expender ever!\"";
		about .Version = "0.0.2.2 Beta";
		about .Run ();
		about .Destroy ();
		Console .WriteLine ("About Page Closed");
	}
Beispiel #38
0
        public static void RunAboutDialog()
        {
            AboutDialog dialog = new AboutDialog ();

            Assembly assembly = Assembly.GetCallingAssembly ();
            object[] att = assembly.GetCustomAttributes (typeof(AssemblyTitleAttribute), false);
            AssemblyEditionAttribute editionAtt = assembly.GetCustomAttributes (typeof(AssemblyEditionAttribute), false).OfType<AssemblyEditionAttribute> ().FirstOrDefault ();

            dialog.ProgramName = ((AssemblyTitleAttribute)att [0]).Title;

            dialog.Version = StringWorks.VersionToShortString (assembly.GetName ().Version)
                + (editionAtt != null && editionAtt.Edition != "gpl" ? String.Format ("({0})", editionAtt.Edition) : String.Empty);

            att = assembly.GetCustomAttributes (typeof(AssemblyLogoIconAttribute), false);
            if (att.Length > 0) {
                dialog.Logo = new Gdk.Pixbuf (assembly, ((AssemblyLogoIconAttribute)att [0]).ResourceName); //Gdk.Pixbuf.LoadFromResource();
            }

            att = assembly.GetCustomAttributes (typeof(AssemblyDescriptionAttribute), false);

            string comments = String.Empty;

            object[] betaAtt = assembly.GetCustomAttributes (typeof(AssemblyBetaBuildAttribute), false);
            if(betaAtt.Length > 0)
            {
                var buildDate = System.IO.File.GetLastWriteTime(assembly.Location);
                comments += String.Format ("Бета редакция от {0:g}\n", buildDate);
            }

            comments += ((AssemblyDescriptionAttribute)att [0]).Description;

            att = assembly.GetCustomAttributes (typeof(AssemblySupportAttribute), false);
            if (att.Length > 0) {
                AssemblySupportAttribute sup = (AssemblySupportAttribute)att [0];
                if (sup.ShowTechnologyUsed)
                    comments += String.Format ("\nРазработана на MonoDevelop с использованием открытых технологий Mono, GTK#, Nlog{0}.", sup.TechnologyUsed != "" ? ", " + sup.TechnologyUsed : "");
                if (sup.SupportInfo != "")
                    comments += sup.SupportInfo;
                else
                    comments += "\nТелефон тех. поддержки +7(812)309-80-89";
            }
            dialog.Comments = comments;

            att = assembly.GetCustomAttributes (typeof(AssemblyCopyrightAttribute), false);

            dialog.Copyright = ((AssemblyCopyrightAttribute)att [0]).Copyright;

            att = assembly.GetCustomAttributes (typeof(AssemblyAuthorAttribute), false);

            List<string> authors = new List<string> ();
            foreach (AssemblyAuthorAttribute author in att) {
                authors.Add (author.Name);
            }
            authors.Reverse ();
            dialog.Authors = authors.ToArray ();

            att = assembly.GetCustomAttributes (typeof(AssemblyAppWebsiteAttribute), false);

            if (att.Length > 0)
                dialog.Website = ((AssemblyAppWebsiteAttribute)att [0]).Link;

            dialog.Run ();
            dialog.Destroy ();
        }
Beispiel #39
0
        protected virtual void OnAboutActionActivated(object sender, System.EventArgs e)
        {
            using (AboutDialog dialog = new AboutDialog())
            {

                Assembly asm = Assembly.GetExecutingAssembly();

                dialog.ProgramName = (asm.GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0] as AssemblyTitleAttribute).Title;

                dialog.Version = asm.GetName().Version.ToString();

                dialog.Comments = (asm.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false)[0] as AssemblyDescriptionAttribute).Description;

                dialog.Copyright = (asm.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as AssemblyCopyrightAttribute).Copyright;

                //TODO
                //dialog.License = license;

                dialog.Authors = authors;

                dialog.Run();
                dialog.Destroy();
            }
        }
Beispiel #40
0
        private void popupMenuHandler(object o, Gtk.PopupMenuArgs args)
        {
            Menu popupMenu = new Menu();

            // add show
              			ImageMenuItem menuPopup1;
              			if (hidden)
              				menuPopup1 = new ImageMenuItem(Mono.Unix.Catalog.GetString("Show window"));
            else
              				menuPopup1 = new ImageMenuItem(Mono.Unix.Catalog.GetString("Hide window"));
              			menuPopup1.Image = new Image(Stock.Refresh, IconSize.Menu);
              			popupMenu.Add(menuPopup1);
              			menuPopup1.Activated += delegate {
              				if (hidden)
              				{
                    main_window.ShowAll();
                    restore_position();
                    hidden = false;
                    main_window.Unref(); // restore correct reference count
              				}
              				else
              				{
                    hide_window();
              				}
              			};

              			ImageMenuItem menuPopup0 = new ImageMenuItem(Mono.Unix.Catalog.GetString("Indexing status"));
              			popupMenu.Add(menuPopup0);
              			menuPopup0.Activated += delegate {
                Singleton<Indexing>.Instance.Show();
              			};

              			ImageMenuItem menuPopup2 = new ImageMenuItem(Mono.Unix.Catalog.GetString("About"));
              			menuPopup2.Image = new Image(Stock.About, IconSize.Menu);
              			popupMenu.Add(menuPopup2);
              			menuPopup2.Activated += delegate {
                Gtk.AboutDialog about = new AboutDialog();
                about.Name = "Nemo";
                about.Authors = new string[] { "Anders Rune Jensen", "Lau Bech Lauritzen", "Ole Laursen" };
                about.Artists = new string[] { "Linda Nhu", "Sune Theodorsen" };
                about.Comments = Mono.Unix.Catalog.GetString("Nemo is a file manager for those who would rather have their files manage themselves.");
                about.Logo = new Gdk.Pixbuf(null, "blue_guy_med.png");
                about.Response += delegate {
                    about.Destroy();
                };
                about.Show();
              			};

            // add quit
              			ImageMenuItem menuPopup3 = new ImageMenuItem (Mono.Unix.Catalog.GetString("Quit"));
              			menuPopup3.Image = new Image(Stock.Quit, IconSize.Menu);
              			popupMenu.Add(menuPopup3);
              			menuPopup3.Activated += new EventHandler(this.OnPopupClick);

            popupMenu.ShowAll();
              			popupMenu.Popup(null, null, null, (uint)args.Args[0], (uint)args.Args[1]);
        }
Beispiel #41
0
        protected void OnButtonAboutClicked(object sender, EventArgs e)
        {
            var about = new AboutDialog();
            about.ProgramName = Catalog.GetString("Emblems");
            about.Authors = new string [] { Catalog.GetString("Roman M. Yagodin <*****@*****.**>") };
            about.TranslatorCredits = Catalog.GetString("English, Russian") + " - " + Catalog.GetString("Roman M. Yagodin <*****@*****.**>");
            about.WebsiteLabel = "github.com/roman-yagodin/r7-emblems";
            about.Website = "https://github.com/roman-yagodin/r7-emblems";
            about.Copyright = "2012-2013 " + Catalog.GetString("Roman M. Yagodin <*****@*****.**>");

            // FIXME: If icon was not found, causes dialog to crash
            about.Logo = IconTheme.Default.LoadIcon("emblem-favorite", 48, 0);
            about.Run ();
            about.Destroy ();
        }
    protected void OnAbout(object o, EventArgs e)
    {
        string[] authors = new string[]{
            "Matthias \"MatzeB\" Braun",
            "",
            "Wolfgang Becker",
            "Christoph Sommer",
            "Arvid Norlander",
        };

        Gtk.AboutDialog dialog = new Gtk.AboutDialog();
        dialog.Icon = EditorStock.WindowIcon;
        dialog.ProgramName = "SuperTux Editor";
        dialog.Version = Constants.PACKAGE_VERSION;
        dialog.Comments = "A level and worldmap editor for SuperTux 0.3.x";
        dialog.Authors = authors;
        dialog.Copyright = "Copyright (c) 2006-2013 SuperTux Devel Team";
        dialog.License =
            "This program is free software; you can redistribute it and/or modify" + Environment.NewLine +
            "it under the terms of the GNU General Public License as published by" + Environment.NewLine +
            "the Free Software Foundation; either version 3 of the License, or" + Environment.NewLine +
            "(at your option) any later version." + Environment.NewLine +
            Environment.NewLine +
            "This program is distributed in the hope that it will be useful," + Environment.NewLine +
            "but WITHOUT ANY WARRANTY; without even the implied warranty of" + Environment.NewLine +
            "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" + Environment.NewLine +
            "GNU General Public License for more details." + Environment.NewLine +
            Environment.NewLine +
            "You should have received a copy of the GNU General Public License" + Environment.NewLine +
            "along with this program; if not, write to the Free Software Foundation, Inc.," + Environment.NewLine +
            "59 Temple Place, Suite 330, Boston, MA 02111-1307 USA" + Environment.NewLine;
        dialog.Website = "http://supertux.lethargik.org/";
        dialog.WebsiteLabel = "SuperTux on the Web";
        dialog.Run();
        dialog.Destroy();
    }
Beispiel #43
0
        /// <summary>
        /// Shows the about dialog.
        /// </summary>
        /// <param name='ProgramVersion'>
        /// Program version.
        /// </param>
        /// <param name='wind'>
        /// The Parent windows
        /// </param>
        public static void showAboutDialog(Version ProgramVersion, Gdk.Window wind)
        {
            try {

                AboutDialog about = new AboutDialog ();
                about.ProgramName = g_programName;
                about.ParentWindow = wind;
                about.Comments = Catalog.GetString ("Erstellen und Testen Sie schnell und einfach reguläre Ausdrücke mit der verbesserten Version von Phrasis.Studio");
                about.Version = ProgramVersion.ToString ();//.Replace (".0", "");
                about.Logo = new Gdk.Pixbuf (new cPathEnvironment ().const_program_image, 128, 128, true);
                about.Icon = new Gdk.Pixbuf (new cPathEnvironment ().const_program_image, 64, 64, true);
                about.Title = Catalog.GetString ("Info über das Programm");
                about.Website = "https://github.com/squarerootfury/terminus-project";
                about.License = System.IO.File.ReadAllText (new cPathEnvironment ().const_program_license, System.Text.Encoding.UTF8);
                about.WrapLicense = true;
                about.Copyright += Catalog.GetString ("\nCopyright 2012 (c) Terminus Entwickler");
                about.SetPosition (WindowPosition.Center);
                /*about.Authors = new string[] {"Terminus - Team:\n","\"Fury\""};
                about.Artists = new string[] {"Anwendungsicon:\n","\"anonymous\""};
                about.Documenters = new string[] {"Anwendungsdokumentation:\n","ups keiner :)"};
                */
                about.Run ();
                about.Destroy ();
            } catch (Exception ex) {
                MessageBox.Show (ex.Message, cTerminus.g_programName, ButtonsType.Close, MessageType.Error);
            }
        }