![]() |
KiCad PCB EDA Suite
|
#include <wx/wx.h>
#include <config.h>
#include <boost/version.hpp>
#include <kicad_build_version.h>
Go to the source code of this file.
Macros | |
#define | ON "ON" << eol |
#define | OFF "OFF" << eol |
Functions | |
std::string | GetKicadCurlVersion () |
std::string | GetCurlLibVersion () |
wxString | GetBuildVersion () |
Get the full KiCad version string. More... | |
wxString | GetBuildDate () |
Get the build date as a string. More... | |
wxString | GetSemanticVersion () |
Get the semantic version string for KiCad defined inside the KiCadVersion.cmake file in the variable KICAD_SEMANTIC_VERSION. More... | |
wxString | GetMajorMinorVersion () |
Get only the major and minor version in a string major.minor. More... | |
wxString | GetVersionInfoData (const wxString &aTitle, bool aHtml, bool aBrief) |
Create a version info string for bug reports and the about dialog. More... | |
#define OFF "OFF" << eol |
#define ON "ON" << eol |
wxString GetBuildDate | ( | ) |
Get the build date as a string.
Definition at line 55 of file build_version.cpp.
References Format().
Referenced by buildKicadAboutBanner(), and GetVersionInfoData().
wxString GetBuildVersion | ( | ) |
Get the full KiCad version string.
This string contains platform-specific information added by the packagers. It is created by CMake in the KICAD_FULL_VERSION variable.
Definition at line 48 of file build_version.cpp.
References Format().
Referenced by AddGerberX2Header(), GERBER_JOBFILE_WRITER::addJSONHeader(), DS_DRAW_ITEM_LIST::BuildFullText(), buildKicadAboutBanner(), CreateHeaderInfoData(), EVT_MENU_RANGE(), PCB_EDIT_FRAME::Export_IDF3(), PLACE_FILE_EXPORTER::GenPositionData(), PLACE_FILE_EXPORTER::GenReportData(), GetVersionInfoData(), NETLIST_EXPORTER_XML::makeDesignHeader(), DSN::PARSER::PARSER(), GERBER_PLOTTER::StartPlot(), EXCELLON_WRITER::writeEXCELLONHeader(), PCB_CALCULATOR_DATAFILE::WriteHeader(), NETLIST_EXPORTER_CADSTAR::WriteNetlist(), and GBR_TO_PCB_EXPORTER::writePcbHeader().
std::string GetCurlLibVersion | ( | ) |
Definition at line 244 of file kicad_curl.cpp.
Referenced by GetVersionInfoData().
std::string GetKicadCurlVersion | ( | ) |
Definition at line 239 of file kicad_curl.cpp.
References KICAD_CURL::GetVersion().
Referenced by GetVersionInfoData().
wxString GetMajorMinorVersion | ( | ) |
Get only the major and minor version in a string major.minor.
This is extracted by CMake from the KICAD_SEMANTIC_VERSION variable.
Definition at line 69 of file build_version.cpp.
References Format().
Referenced by GetKicadLockFilePath(), SETTINGS_MANAGER::GetSettingsVersion(), and KICAD_MANAGER_FRAME::ProjectChanged().
wxString GetSemanticVersion | ( | ) |
Get the semantic version string for KiCad defined inside the KiCadVersion.cmake file in the variable KICAD_SEMANTIC_VERSION.
Definition at line 62 of file build_version.cpp.
References Format().
wxString GetVersionInfoData | ( | const wxString & | aTitle, |
bool | aHtml = false , |
||
bool | aBrief = false |
||
) |
Create a version info string for bug reports and the about dialog.
aTitle | is the application title to include at the top of the report |
aBrief | = true to condense information for the bug report URL |
aHtml | = true to use a minimal HTML format, false for plan text |
Definition at line 76 of file build_version.cpp.
References GetBuildDate(), GetBuildVersion(), GetCurlLibVersion(), GetKicadCurlVersion(), OFF, and ON.
Referenced by DIALOG_ABOUT::createNotebooks(), DIALOG_ABOUT::onCopyVersionInfo(), and COMMON_CONTROL::ReportBug().