50                                      wxTreeCtrl* parent ) :
 
 
   66    if( state < 0 || state >= 
m_parent->GetImageCount() / ( treeEnumMax - 2 ) )
 
   70    int imgid = 
static_cast<int>( 
m_type ) - 1 + state * ( treeEnumMax - 1 );
 
   71    m_parent->SetItemImage( GetId(), imgid );
 
   72    m_parent->SetItemImage( GetId(), imgid, wxTreeItemIcon_Selected );
 
 
  114    const wxString  sep = wxFileName().GetPathSeparator();
 
  119        newFile = dirs + sep + 
name;
 
  128    wxString full_ext = wxT( 
"." ) + ext;
 
  130    if( check && !ext.IsEmpty() && !newFile.Lower().EndsWith( full_ext ) )
 
  132        wxMessageDialog dialog( 
m_parent, 
_( 
"Changing file extension will change file type.\n" 
  133                                             "Do you want to continue ?" ),
 
  134                                _( 
"Rename File" ), wxYES_NO | wxICON_QUESTION );
 
  136        if( wxID_YES != dialog.ShowModal() )
 
  140    if( !wxRenameFile( 
GetFileName(), newFile, 
false ) )
 
  142        wxMessageDialog( 
m_parent, 
_( 
"Unable to rename file ... " ), 
_( 
"Permission denied" ),
 
  143                         wxICON_ERROR | wxOK );
 
 
  161        wxString dialogMsg = wxString::Format( 
_( 
"Can not move '%s' to recycle bin."),
 
  164        wxString dialogMsg = wxString::Format( 
_( 
"Can not move '%s' to trash."),
 
 
  179    wxTreeItemId         
id = GetId();
 
  234        wxLaunchDefaultBrowser( fullFileName );
 
  254        packet = fullFileName.ToStdString();
 
  261        packet = fullFileName.ToStdString();
 
  266        wxLaunchDefaultApplication( fullFileName );
 
 
static TOOL_ACTION editPCB
 
static TOOL_ACTION editOtherPCB
 
static TOOL_ACTION editOtherSch
 
static TOOL_ACTION editSchematic
 
static TOOL_ACTION openTextEditor
 
static TOOL_ACTION editDrawingSheet
 
static TOOL_ACTION editFootprints
 
static TOOL_ACTION viewGerbers
 
static TOOL_ACTION editSymbols
 
The main KiCad project manager frame.
 
const wxString SchLegacyFileName()
 
const wxString SchFileName()
 
void OpenJobsFile(const wxFileName &aFileName, bool aCreate=false, bool aResaveProjectPreferences=true)
 
void LoadProject(const wxFileName &aProjectFileName)
 
const wxString PcbLegacyFileName()
 
const wxString PcbFileName()
 
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
 
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
 
virtual void ExpressMail(FRAME_T aDestination, MAIL_T aCommand, std::string &aPayload, wxWindow *aSource=nullptr, bool aFromOtherThread=false)
Send aPayload to aDestination from aSource.
 
bool CanDelete() const
Determine if a file can be deleted via the project tree pane.
 
void SetRootFile(bool aValue)
 
bool Rename(const wxString &name, bool check=true)
 
const wxString & GetFileName() const
 
void SetType(TREE_FILE_TYPE aType)
 
void SetPopulated(bool aValue)
 
TREE_FILE_TYPE GetType() const
 
void SetFileName(const wxString &name)
 
const wxString GetDir() const
 
void Activate(PROJECT_TREE_PANE *aTreePrjFrame)
 
PROJECT_TREE_PANE Window to display the tree files.
 
PROJECT_TREE * m_TreeProject
 
KICAD_MANAGER_FRAME * m_Parent
 
static wxString GetFileExt(TREE_FILE_TYPE type)
 
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
 
This file is part of the common library.
 
@ FRAME_SCH_SYMBOL_EDITOR
 
bool OpenPDF(const wxString &file)
Run the PDF viewer and display a PDF file.