Commit b8c22811 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

add {Get,Set}ModuleLibraryNickname to EDA_APP, reformatting

parent 37c3ef50
Loading
Loading
Loading
Loading
+28 −24
Original line number Diff line number Diff line
@@ -95,7 +95,6 @@ protected:

    /// The file name of the the program selected for browsing pdf files.
    wxString            m_PdfBrowser;

    wxPathList          m_searchPaths;
    wxFileHistory       m_fileHistory;
    wxString            m_HelpFileName;
@@ -104,12 +103,16 @@ protected:
    wxString            m_CurrentOptionFileDateAndTime;
    wxPoint             m_HelpPos;
    wxSize              m_HelpSize;
    wxHtmlHelpController*    m_HtmlCtrl;
    wxString            m_Title;
    wxPathList          m_libSearchPaths;
    wxFileName          m_projectFileName;
    wxString            m_LastVisitedLibPath;

    /// last visited module library in the module editor or viewer
    wxString            m_module_nickname;

    wxHtmlHelpController*   m_HtmlCtrl;

public:
    EDA_APP();
    ~EDA_APP();
@@ -126,7 +129,6 @@ public:
    void SetHtmlHelpController( wxHtmlHelpController* aController );

    wxString GetHelpFileName() const                    { return m_HelpFileName; }

    void SetHelpFileName( const wxString& aFileName )   { m_HelpFileName = aFileName; }

    wxConfig* GetSettings() { return m_settings; }
@@ -134,7 +136,6 @@ public:
    wxConfig* GetCommonSettings() { return m_commonSettings; }

    wxString GetEditorName() const                      { return m_EditorName; }

    void SetEditorName( const wxString& aFileName )     { m_EditorName = aFileName; }

    wxString GetCurrentOptionFile() const { return m_CurrentOptionFile; }
@@ -350,7 +351,7 @@ public:
    wxString& GetEditorName();

    const wxString& GetTitle()                      { return m_Title; }
    void SetTitle( const wxString& title ) { m_Title = title; }
    void SetTitle( const wxString& aTitle )         { m_Title = aTitle; }

    wxPathList& GetLibraryPathList() { return m_libSearchPaths; }
    wxString FindLibraryPath( const wxString& fileName );
@@ -431,6 +432,9 @@ public:
     * @return false if the KISYSMOD path is not valid.
     */
    bool SetFootprintLibTablePath();

    const wxString& GetModuleLibraryNickname()                  { return m_module_nickname; }
    void SetModuleLibraryNickname( const wxString& aNickname )  { m_module_nickname = aNickname; }
};