// Created with MonoDevelop
//
//    QuickStep: Acquire, view and identify spectra 
//    Copyright (C) 2017 Thomas Klose & Torsten Schache, Hiperscan GmbH Dresden, Germany
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU 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 General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.


using System;
using System.Reflection;
using Hiperscan.Unix;

namespace Hiperscan.ApoIdentCore
{
    public static class ApoIdentInfo
    {
        public static readonly string lICENSE = Catalog.GetString(@"
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU 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 General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see http://www.gnu.org/licenses/ .
");

        public static readonly string NAME = Catalog.GetString("Apo-Ident");
        public static readonly string COPYRIGHT_YEAR = "2024";
        public static readonly string COPYRIGHT = String.Format("Copyright \u00A9 HiperScan GmbH 2010 - {0}", ApoIdentInfo.COPYRIGHT_YEAR);
        public static readonly string DESCRIPTION = Catalog.GetString("Chemometrics plug-in for QuickStep");
        public static readonly string VENDOR = "HiperScan GmbH";

        public static readonly string[] AUTHORS = new string[] 
        {
            "Thomas Klose",
            "Simon Beyer",
            "Torsten Schache",
            "Walter Kochte",
            "Ruppert Schneider"
        };

        public static readonly Guid APPLICATION_GUID = new Guid("d49f4f0a-5425-4d20-87c9-ed2abc8e2e0a");

        public static int ReleaseCandidateVersion { get; set; } = -1;

        public  static string QSAssemblyVersion
        {
            get
            {
                Version version = Assembly.GetEntryAssembly().GetName().Version;
                version = new Version(version.Major, version.Minor, version.Build);
                return version.ToString();
            }
        }


        public static string FullVersion
        {
            get
            {
                string version = ApoIdentInfo.QSAssemblyVersion;

                if (ApoIdentInfo.ReleaseCandidateVersion >= 0)
                    version += "_RC" + ApoIdentInfo.ReleaseCandidateVersion.ToString();

                return version;
            }
        }
    }
}
