Commit dea9dd23 authored by Dick Hollenbeck's avatar Dick Hollenbeck

better error reporting and parsing of bad legacy footprint libs

parent 64f8e0b8
/** /**
* @file annotate_dialog.cpp * @file dialog_annotate.cpp
* @brief Annotation dialog functions. * @brief Annotation dialog functions.
*/ */
......
...@@ -44,8 +44,8 @@ class wxTextCtrl; ...@@ -44,8 +44,8 @@ class wxTextCtrl;
* The purpose of the REPORTER object is to offer a way for a procedural function * The purpose of the REPORTER object is to offer a way for a procedural function
* to report multiple errors without having to: * to report multiple errors without having to:
* <ul> * <ul>
* <li> a) know too much about the caller's UI, i.e. wx. </li> * <li> know too much about the caller's UI, i.e. wx. </li>
* <li> b) stop after the first error </li> * <li> stop after the first error </li>
* </ul> * </ul>
*/ */
class REPORTER class REPORTER
......
...@@ -25,17 +25,18 @@ ...@@ -25,17 +25,18 @@
#ifndef PROJECT_TEMPLATE_SELECTOR_H #ifndef PROJECT_TEMPLATE_SELECTOR_H
#define PROJECT_TEMPLATE_SELECTOR_H #define PROJECT_TEMPLATE_SELECTOR_H
#include "dialogs/dialog_template_selector_base.h" #include <dialogs/dialog_template_selector_base.h>
#include "project_template.h" #include "project_template.h"
class TEMPLATE_WIDGET : public TEMPLATE_WIDGET_BASE class TEMPLATE_WIDGET : public TEMPLATE_WIDGET_BASE
{ {
protected: protected:
wxDialog* dialog; wxDialog* dialog;
wxWindow* parent; wxWindow* parent;
wxPanel* panel; wxPanel* panel;
bool selected;
bool selected;
PROJECT_TEMPLATE* templ; PROJECT_TEMPLATE* templ;
void OnKillFocus( wxFocusEvent& event ); void OnKillFocus( wxFocusEvent& event );
...@@ -56,6 +57,7 @@ public: ...@@ -56,6 +57,7 @@ public:
bool IsSelected(); bool IsSelected();
}; };
class TEMPLATE_SELECTION_PANEL : public TEMPLATE_SELECTION_PANEL_BASE class TEMPLATE_SELECTION_PANEL : public TEMPLATE_SELECTION_PANEL_BASE
{ {
protected: protected:
...@@ -65,6 +67,7 @@ protected: ...@@ -65,6 +67,7 @@ protected:
public: public:
/** /**
* @param aParent The window creating the dialog * @param aParent The window creating the dialog
* @param aPath the path
*/ */
TEMPLATE_SELECTION_PANEL( wxWindow* aParent, const wxString& aPath ); TEMPLATE_SELECTION_PANEL( wxWindow* aParent, const wxString& aPath );
~TEMPLATE_SELECTION_PANEL(); ~TEMPLATE_SELECTION_PANEL();
...@@ -72,6 +75,7 @@ public: ...@@ -72,6 +75,7 @@ public:
const wxString& GetPath() { return m_templatesPath; } const wxString& GetPath() { return m_templatesPath; }
}; };
class DIALOG_TEMPLATE_SELECTOR : public DIALOG_TEMPLATE_SELECTOR_BASE class DIALOG_TEMPLATE_SELECTOR : public DIALOG_TEMPLATE_SELECTOR_BASE
{ {
protected: protected:
...@@ -92,7 +96,7 @@ public: ...@@ -92,7 +96,7 @@ public:
TEMPLATE_WIDGET* GetWidget(); TEMPLATE_WIDGET* GetWidget();
void SetWidget( TEMPLATE_WIDGET* aWidget ); void SetWidget( TEMPLATE_WIDGET* aWidget );
void onNotebookResize( wxSizeEvent& event ); void onNotebookResize( wxSizeEvent& event );
void OnPageChange( wxNotebookEvent& event ); void OnPageChange( wxNotebookEvent& event );
}; };
#endif #endif
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
/info.html - Contains html formatted information about the template which is used by the /info.html - Contains html formatted information about the template which is used by the
user to determine if the template is what they are after. The <title> tag user to determine if the template is what they are after. The &lt;title&gt; tag
determines the actual name of the template that is exposed to the user for determines the actual name of the template that is exposed to the user for
template selection. Using html to format this document means that images can template selection. Using html to format this document means that images can
be in-lined without having to invent a new scheme. Only HTML supported by be in-lined without having to invent a new scheme. Only HTML supported by
......
This diff is collapsed.
...@@ -106,7 +106,7 @@ public: ...@@ -106,7 +106,7 @@ public:
void SetReader( LINE_READER* aReader ) { m_reader = aReader; } void SetReader( LINE_READER* aReader ) { m_reader = aReader; }
void SetFilePtr( FILE* aFile ) { m_fp = aFile; } void SetFilePtr( FILE* aFile ) { m_fp = aFile; }
MODULE* LoadMODULE(); void LoadMODULE( MODULE* aModule );
void SaveMODULE( const MODULE* aModule ) const; void SaveMODULE( const MODULE* aModule ) const;
void SaveModule3D( const MODULE* aModule ) const; void SaveModule3D( const MODULE* aModule ) const;
void SaveBOARD( const BOARD* aBoard ) const; void SaveBOARD( const BOARD* aBoard ) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment