kicad-source/kicad/treeprojectfiles.h

64 lines
1.8 KiB
C
Raw Normal View History

2014-10-23 13:53:38 -04:00
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2010-2014 Jean-Pierre Charras
2018-02-07 14:16:05 +01:00
* Copyright (C) 2004-2014 KiCad Developers, see AUTHORS.txt for contributors.
2014-10-23 13:53:38 -04:00
*
* 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 2
* 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, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
2010-02-19 16:20:46 +00:00
/*
2018-02-07 14:16:05 +01:00
* file treeprojectfiles.h
2010-02-19 16:20:46 +00:00
*/
2018-02-07 14:16:05 +01:00
#ifndef TREEPROJECTFILES_H
#define TREEPROJECTFILES_H
2010-02-19 16:20:46 +00:00
2016-02-24 16:36:52 -05:00
#include <wx/treectrl.h>
2019-06-09 11:10:19 +01:00
#include "kicad_manager_frame.h"
2016-02-24 16:36:52 -05:00
/** TREEPROJECTFILES
2010-02-19 16:20:46 +00:00
* This is the class to show (as a tree) the files in the project directory
*/
class TREEPROJECTFILES : public wxTreeCtrl
{
DECLARE_DYNAMIC_CLASS( TREEPROJECTFILES )
private:
TREE_PROJECT_FRAME* m_Parent;
wxImageList* m_ImageList;
public:
TREE_PROJECT_FRAME* GetParent() const
2010-02-19 16:20:46 +00:00
{
return m_Parent;
}
TREEPROJECTFILES( TREE_PROJECT_FRAME* parent );
~TREEPROJECTFILES();
private:
/* overridden sort function */
2016-09-24 14:53:15 -04:00
int OnCompareItems( const wxTreeItemId& item1, const wxTreeItemId& item2 ) override;
2010-02-19 16:20:46 +00:00
};
2018-02-07 14:16:05 +01:00
#endif // TREEPROJECTFILES_H