2014-07-23 10:28:48 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2015-09-26 06:46:25 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Jun 17 2015)
|
2014-07-23 10:28:48 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __DIALOG_SELECT_PRETTY_LIB_BASE_H__
|
|
|
|
#define __DIALOG_SELECT_PRETTY_LIB_BASE_H__
|
|
|
|
|
|
|
|
#include <wx/artprov.h>
|
|
|
|
#include <wx/xrc/xmlres.h>
|
|
|
|
#include <wx/intl.h>
|
Modular KiCad Blueprint Milestone B), major portions:
*) When kicad.exe closes a project, close any open KIFACEs so that they cannot
get disassociated from their true PROJECT.
*) Allow loading eeschema library editor from kicad.exe
*) Allow loading pcbnew library editor from kicad.exe
*) Rename LIB_COMPONENT to LIB_PART.
*) Add class PART_LIBS, and PART_LIB.
*) Make PART_LIBS non-global, i.e. PROJECT specific.
*) Implement "data on demand" for PART_LIBS
*) Implement "data on demand" for schematic SEARCH_STACK.
*) Use RSTRINGs to retain eeschema editor's notion of last library and part being edited.
*) Get rid of library search on every SCH_COMPONENT::Draw() call, instead use
a weak pointer.
*) Remove all chdir() calls so projects don't need to be CWD.
*) Romove APPEND support from OpenProjectFiles().
*) Make OpenProjectFiles() robust, even for creating new projects.
*) Load EESCHEMA colors in the KIWAY::OnKiwayStart() rather in window open,
and save them in the .eeschema config file, not in the project file.
*) Fix bug with wxDir() while accessing protected dirs in kicad.exe
*) Consolidate template copying into PROJECT class, not in kicad.exe source.
*) Generally untangle eeschema, making its libraries not global but rather
held in the PROJECT.
2014-08-13 20:28:54 +00:00
|
|
|
class DIALOG_SHIM;
|
|
|
|
|
|
|
|
#include "dialog_shim.h"
|
2014-07-23 10:28:48 +00:00
|
|
|
#include <wx/string.h>
|
|
|
|
#include <wx/stattext.h>
|
|
|
|
#include <wx/gdicmn.h>
|
|
|
|
#include <wx/font.h>
|
|
|
|
#include <wx/colour.h>
|
|
|
|
#include <wx/settings.h>
|
2015-07-11 23:11:34 +00:00
|
|
|
#include <wx/filepicker.h>
|
2014-07-23 10:28:48 +00:00
|
|
|
#include <wx/textctrl.h>
|
|
|
|
#include <wx/sizer.h>
|
2014-12-11 12:00:59 +00:00
|
|
|
#include <wx/statline.h>
|
2014-07-23 10:28:48 +00:00
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Class DIALOG_SELECT_PRETTY_LIB_BASE
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
Modular KiCad Blueprint Milestone B), major portions:
*) When kicad.exe closes a project, close any open KIFACEs so that they cannot
get disassociated from their true PROJECT.
*) Allow loading eeschema library editor from kicad.exe
*) Allow loading pcbnew library editor from kicad.exe
*) Rename LIB_COMPONENT to LIB_PART.
*) Add class PART_LIBS, and PART_LIB.
*) Make PART_LIBS non-global, i.e. PROJECT specific.
*) Implement "data on demand" for PART_LIBS
*) Implement "data on demand" for schematic SEARCH_STACK.
*) Use RSTRINGs to retain eeschema editor's notion of last library and part being edited.
*) Get rid of library search on every SCH_COMPONENT::Draw() call, instead use
a weak pointer.
*) Remove all chdir() calls so projects don't need to be CWD.
*) Romove APPEND support from OpenProjectFiles().
*) Make OpenProjectFiles() robust, even for creating new projects.
*) Load EESCHEMA colors in the KIWAY::OnKiwayStart() rather in window open,
and save them in the .eeschema config file, not in the project file.
*) Fix bug with wxDir() while accessing protected dirs in kicad.exe
*) Consolidate template copying into PROJECT class, not in kicad.exe source.
*) Generally untangle eeschema, making its libraries not global but rather
held in the PROJECT.
2014-08-13 20:28:54 +00:00
|
|
|
class DIALOG_SELECT_PRETTY_LIB_BASE : public DIALOG_SHIM
|
2014-07-23 10:28:48 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxStaticText* m_staticText;
|
2015-09-26 06:46:25 +00:00
|
|
|
wxStaticText* m_staticText3;
|
2015-07-11 23:11:34 +00:00
|
|
|
wxDirPickerCtrl* m_dirCtrl;
|
2014-12-11 12:00:59 +00:00
|
|
|
wxBoxSizer* m_SizerNewLibName;
|
2014-07-23 10:28:48 +00:00
|
|
|
wxStaticText* m_staticTextDirname;
|
|
|
|
wxTextCtrl* m_libName;
|
|
|
|
wxStaticLine* m_staticline1;
|
|
|
|
wxStdDialogButtonSizer* m_sdbSizer;
|
|
|
|
wxButton* m_sdbSizerOK;
|
|
|
|
wxButton* m_sdbSizerCancel;
|
|
|
|
|
|
|
|
// Virtual event handlers, overide them in your derived class
|
2015-07-11 23:11:34 +00:00
|
|
|
virtual void OnSelectFolder( wxFileDirPickerEvent& event ) { event.Skip(); }
|
2015-09-26 06:46:25 +00:00
|
|
|
virtual void OnOKButton( wxCommandEvent& event ) { event.Skip(); }
|
2014-07-23 10:28:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2015-07-11 23:11:34 +00:00
|
|
|
DIALOG_SELECT_PRETTY_LIB_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Select Footprint Library Folder"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
2014-07-23 10:28:48 +00:00
|
|
|
~DIALOG_SELECT_PRETTY_LIB_BASE();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__DIALOG_SELECT_PRETTY_LIB_BASE_H__
|