43 #define URL_GET_INVOLVED "https://kicad.org/contribute/" 48 "https://gitlab.com/kicad/code/kicad/issues/new?issue[description]=%s";
52 "<!-- Before Creating a New Issue:\n" 53 "* Search the issue tracker to verify the issue has not already been reported.\n" 54 "* Only report one problem per issue. -->\n" 57 "<!-- What is the current behavior and what is the expected behavior? -->\n" 58 "<!-- Please attach screenshots if they will help explain the problem. -->\n" 60 "# Steps to reproduce\n" 61 "<!-- Please include a screen recording if it will help explain how to reproduce. -->\n" 62 "<!-- If this issue is specific to a project, please attach it. -->\n" 74 m_frame = getEditFrame<EDA_BASE_FRAME>();
151 if( editor->IsIconized() )
152 editor->Iconize(
false );
158 if( wxWindow::FindFocus() != editor )
180 const wxChar* names[2] = {
181 wxT(
"getting_started_in_kicad" ),
182 wxT(
"Getting_Started_in_KiCad" )
187 for(
auto&
name : names )
191 if( !helpFile.IsEmpty() )
197 msg =
wxString::Format(
_(
"Html or pdf help file \n%s\nor\n%s could not be found." ),
198 names[0], names[1] );
211 msg =
wxString::Format(
_(
"Help file \"%s\" could not be found." ), base_name );
234 msg.Printf(
_(
"Could not launch the default browser.\n" 235 "For information on how to help the KiCad project, visit %s" ),
237 wxMessageBox( msg,
_(
"Get involved with KiCad" ), wxOK,
m_frame );
254 wxLaunchDefaultBrowser( url_string );
virtual wxWindow * CreateWindow(wxWindow *aParent, int aClassId, KIWAY *aKIWAY, int aCtlBits=0)=0
Create a wxWindow for the current project.
static TOOL_ACTION listHotKeys
BITMAP2CMP_SETTINGS kiface
bool GetAssociatedDocument(wxWindow *aParent, const wxString &aDocName, PROJECT *aProject)
Open a document (file) with the suitable browser.
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
int ShowLibraryTable(const TOOL_EVENT &aEvent)
wxString GetVersionInfoData(const wxString &aTitle, bool aHtml, bool aBrief)
Create a version info string for bug reports and the about dialog.
This file is part of the common library.
FRAME_T
The set of EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
int ShowHelp(const TOOL_EVENT &aEvent)
void Reset(RESET_REASON aReason) override
Bring the tool to a known, initial state.
static TOOL_ACTION reportBug
static TOOL_ACTION showSymbolLibTable
int ReportBug(const TOOL_EVENT &aEvent)
Sets up handlers for various events.
virtual KIWAY_PLAYER * Player(FRAME_T aFrameType, bool doCreate=true, wxTopLevelWindow *aParent=nullptr)
Return the KIWAY_PLAYER* given a FRAME_T.
KICAD_CURL_EASY wrapper interface around the curl_easy API.
Look for files in a number of paths.
EDA_BASE_FRAME * m_frame
< Pointer to the currently used edit frame.
static TOOL_ACTION showFootprintLibTable
virtual const SEARCH_STACK & sys_search()
Return a SEARCH_STACK pertaining to entire program.
void DisplayHotkeyList(EDA_BASE_FRAME *aParent, TOOL_MANAGER *aToolManager)
Display the current hotkey list.
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
static TOOL_ACTION showFootprintBrowser
static wxString m_bugReportTemplate
Issue template to use for reporting bugs (this should not be translated)
std::string Escape(const std::string &aUrl)
Escapes a string for use as a URL.
int ConfigurePaths(const TOOL_EVENT &aEvent)
int GetInvolved(const TOOL_EVENT &aEvent)
wxString SearchHelpFileFullPath(const SEARCH_STACK &aSStack, const wxString &aBaseName)
Return the help file's full path.
int ListHotKeys(const TOOL_EVENT &aEvent)
virtual KIFACE * KiFACE(FACE_T aFaceId, bool doLoad=true)
Return the KIFACE* given a FACE_T.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
static TOOL_ACTION showSymbolEditor
const wxString & GetAboutTitle() const
int ShowPlayer(const TOOL_EVENT &aEvent)
Implement a participant in the KIWAY alchemy.
static wxString m_bugReportUrl
URL to launch a new issue with pre-populated description.
virtual wxString help_name()
virtual void CommonSettingsChanged(bool aEnvVarsChanged, bool aTextVarsChanged)
Call CommonSettingsChanged() on all KIWAY_PLAYERs.
static TOOL_ACTION showSymbolBrowser
BASE_SCREEN class implementation.
static TOOL_ACTION getInvolved
static TOOL_ACTION configurePaths
static TOOL_ACTION gettingStarted
static TOOL_ACTION showFootprintEditor