Commit 22ddf0ad authored by Dick Hollenbeck's avatar Dick Hollenbeck

Finish up first working version of the XML export. Clean up netform.cpp

parents 86a6c4de 42f710a9
...@@ -4,6 +4,11 @@ KiCad ChangeLog 2010 ...@@ -4,6 +4,11 @@ KiCad ChangeLog 2010
Please add newer entries at the top, list the date and your name with Please add newer entries at the top, list the date and your name with
email address. email address.
2010-Aug-4 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
++eeschema netform.cpp:
* Finish up first working version of the XML export.
2010-Aug-3 UPDATE Dick Hollenbeck <dick@softplc.com> 2010-Aug-3 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================ ================================================================================
++eeschema netlist.cpp and netform.cpp: ++eeschema netlist.cpp and netform.cpp:
......
...@@ -70,7 +70,8 @@ private: ...@@ -70,7 +70,8 @@ private:
public: public:
#define DSLSZ 32 // Max number of levels for a sheet path #define DSLSZ 32 // Max number of levels for a sheet path
SCH_SHEET * m_sheets[DSLSZ]; SCH_SHEET* m_sheets[DSLSZ];
public: public:
SCH_SHEET_PATH(); SCH_SHEET_PATH();
......
...@@ -71,32 +71,32 @@ public: ...@@ -71,32 +71,32 @@ public:
virtual void SetName( const wxString& aName ) { name = aName; } virtual void SetName( const wxString& aName ) { name = aName; }
bool isComponent() { return type == ROOT; } bool isComponent() const { return type == ROOT; }
bool isAlias() { return type == ALIAS; } bool isAlias() const { return type == ALIAS; }
int GetType() { return type; } int GetType() const { return type; }
void SetDescription( const wxString& aDescription ) void SetDescription( const wxString& aDescription )
{ {
description = aDescription; description = aDescription;
} }
wxString GetDescription() { return description; } wxString GetDescription() const { return description; }
void SetKeyWords( const wxString& aKeyWords ) void SetKeyWords( const wxString& aKeyWords )
{ {
keyWords = aKeyWords; keyWords = aKeyWords;
} }
wxString GetKeyWords() { return keyWords; } wxString GetKeyWords() const { return keyWords; }
void SetDocFileName( const wxString& aDocFileName ) void SetDocFileName( const wxString& aDocFileName )
{ {
docFileName = aDocFileName; docFileName = aDocFileName;
} }
wxString GetDocFileName() { return docFileName; } wxString GetDocFileName() const { return docFileName; }
/** /**
* Write the entry document information to a FILE in "*.dcm" format. * Write the entry document information to a FILE in "*.dcm" format.
......
...@@ -360,11 +360,21 @@ public: ...@@ -360,11 +360,21 @@ public:
/** /**
* Function GetLogicalName * Function GetLogicalName
* returns the logical name of the library, which for now is the filename * returns the logical name of the library.
* without path or extension. * @return wxString - The logical name of this library.
* wxString - The logical library name.
*/ */
wxString GetLogicalName() { return fileName.GetName(); } wxString GetLogicalName()
{
/* for now is the filename without path or extension.
Technically the library should not know its logical name!
This will eventually come out of a pair of lookup tables using a
reverse lookup using the full name or library pointer as a key.
Search will be by project lookup table and then user lookup table if
not found.
*/
return fileName.GetName();
}
/** /**
......
This diff is collapsed.
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