Commit 9f7ca344 authored by charras's avatar charras

eeschema: Viewlib: listboxes for lib or component selection are now resizable

parent d96039a1
...@@ -4,6 +4,12 @@ KiCad ChangeLog 2009 ...@@ -4,6 +4,12 @@ KiCad ChangeLog 2009
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.
2009-apr-10 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
++eeschema:
Viewlib: listboxes for lib or component selection are now resizable
2009-apr-07 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr> 2009-apr-07 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================ ================================================================================
++pcbnew: ++pcbnew:
......
...@@ -145,9 +145,13 @@ void DIALOG_EESCHEMA_CONFIG::OnOkClick( wxCommandEvent& event ) ...@@ -145,9 +145,13 @@ void DIALOG_EESCHEMA_CONFIG::OnOkClick( wxCommandEvent& event )
g_NetFormat = m_NetFormatBox->GetSelection() + NET_TYPE_PCBNEW; g_NetFormat = m_NetFormatBox->GetSelection() + NET_TYPE_PCBNEW;
// Set new default path lib // Set new default path lib
if ( g_UserLibDirBuffer != m_LibDirCtrl->GetValue() )
{
g_UserLibDirBuffer = m_LibDirCtrl->GetValue(); g_UserLibDirBuffer = m_LibDirCtrl->GetValue();
m_LibListChanged = true;
}
// Set new active lib list // Set new active library list if the list of default path was modified
if( m_LibListChanged ) if( m_LibListChanged )
{ {
// Recreate lib list // Recreate lib list
......
This diff is collapsed.
...@@ -392,8 +392,8 @@ enum main_id { ...@@ -392,8 +392,8 @@ enum main_id {
ID_LIBVIEW_SELECT_PART_NUMBER, ID_LIBVIEW_SELECT_PART_NUMBER,
ID_LIBVIEW_LIB_LIST, ID_LIBVIEW_LIB_LIST,
ID_LIBVIEW_CMP_LIST, ID_LIBVIEW_CMP_LIST,
ID_LIBVIEW_UNUSED0, ID_LIBVIEW_LIBWINDOW,
ID_LIBVIEW_UNUSED1, ID_LIBVIEW_CMPWINDOW,
ID_LIBVIEW_UNUSED3, ID_LIBVIEW_UNUSED3,
ID_LIBVIEW_UNUSED4, ID_LIBVIEW_UNUSED4,
ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC, // Used in Htoolbar, specific function ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC, // Used in Htoolbar, specific function
......
...@@ -495,17 +495,27 @@ protected: ...@@ -495,17 +495,27 @@ protected:
}; };
/************************************************************************************************/
/************************************************************************************************/
class LibraryStruct; class LibraryStruct;
class WinEDA_ViewlibFrame : public WinEDA_DrawFrame class WinEDA_ViewlibFrame : public WinEDA_DrawFrame
{ {
public: private:
WinEDAChoiceBox* SelpartBox; WinEDAChoiceBox* SelpartBox;
wxListBox* m_LibList; // List of libraries (for selection
wxSize m_LibListSize; wxSashLayoutWindow* m_LibListWindow; // The redimensionnable window to display the lib list
wxListBox* m_CmpList; wxListBox* m_LibList; // The list of libs
wxSize m_CmpListSize; wxSize m_LibListSize; // size of the window
// List of components in the selected library
wxSashLayoutWindow* m_CmpListWindow; // The redimensionnable window to display the component list
wxListBox* m_CmpList; // The list of components
wxSize m_CmpListSize; // size of the window
// Flags
wxSemaphore* m_Semaphore; // != NULL if the frame must emulate a modal dialog wxSemaphore* m_Semaphore; // != NULL if the frame must emulate a modal dialog
wxString m_ConfigPath; // subpath for configuartion
public: public:
WinEDA_ViewlibFrame( wxWindow* father, WinEDA_ViewlibFrame( wxWindow* father,
...@@ -515,6 +525,7 @@ public: ...@@ -515,6 +525,7 @@ public:
~WinEDA_ViewlibFrame(); ~WinEDA_ViewlibFrame();
void OnSize( wxSizeEvent& event ); void OnSize( wxSizeEvent& event );
void OnSashDrag( wxSashEvent& event );
void ReCreateListLib(); void ReCreateListLib();
void ReCreateListCmp(); void ReCreateListCmp();
void Process_Special_Functions( wxCommandEvent& event ); void Process_Special_Functions( wxCommandEvent& event );
...@@ -532,6 +543,9 @@ public: ...@@ -532,6 +543,9 @@ public:
void GeneralControle( wxDC* DC, wxPoint MousePositionInPixels ); void GeneralControle( wxDC* DC, wxPoint MousePositionInPixels );
void LoadSettings();
void SaveSettings();
private: private:
void SelectCurrentLibrary(); void SelectCurrentLibrary();
void SelectAndViewLibraryPart( int option ); void SelectAndViewLibraryPart( int option );
......
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