From c9ec403a959c38a80bd18f09af373e5c8598152d Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Tue, 5 Jan 2010 17:45:38 +0000 Subject: [PATCH] layer widget work --- pcbnew/CMakeLists.txt | 8 ++ pcbnew/panel_layer_select.fbp | 204 ++++++++++++++++++++++++++++++++-- 2 files changed, 201 insertions(+), 11 deletions(-) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index ef612f405f..1749df0212 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -226,3 +226,11 @@ install(TARGETS pcbnew # This one gets made only when testing. add_executable(specctra_test EXCLUDE_FROM_ALL specctra.cpp) target_link_libraries(specctra_test common ${wxWidgets_LIBRARIES}) + +# This one gets made only when testing. +add_executable(layer_widget_test EXCLUDE_FROM_ALL + layer_panel_base.cpp + layer_widget.cpp + ) +target_link_libraries(layer_widget_test ${wxWidgets_LIBRARIES}) + diff --git a/pcbnew/panel_layer_select.fbp b/pcbnew/panel_layer_select.fbp index 69b900ad7f..5cc9c994d2 100644 --- a/pcbnew/panel_layer_select.fbp +++ b/pcbnew/panel_layer_select.fbp @@ -7,11 +7,11 @@ 1 UTF-8 connect - + layer_panel_base 1000 none 1 - MyProject1 + LAYER_PANEL . @@ -28,10 +28,10 @@ wxID_ANY 400,400 - MyPanel1 + LAYER_PANEL_BASE -1,-1 - + ; @@ -62,7 +62,7 @@ - bSizer1 + boxSizer wxVERTICAL none @@ -115,8 +115,8 @@ - a page - 0 + Layers + 1 @@ -163,7 +163,7 @@ wxID_ANY Layers - sbSizer1 + layerPanelSizer wxVERTICAL none @@ -178,7 +178,7 @@ 0 - wxID_ANY + ID_LAYERSLISTCTRL m_LayersListCtrl @@ -236,11 +236,115 @@ + + 5 + wxALL + 0 + + + + 0 + 1 + + + 0 + wxID_ANY + MyButton + + + m_button1 + protected + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + wxALL + 0 + + + + 0 + 1 + + + 0 + wxID_ANY + MyButton + + + m_button2 + protected + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - a page + Other Items 0 @@ -252,7 +356,7 @@ wxID_ANY - m_panel2 + m_ItemsPanel protected @@ -284,6 +388,84 @@ + + wxID_ANY + Other Items + + itemsPanelSizer + wxVERTICAL + none + + + 5 + wxALL|wxEXPAND + 1 + + + + 1 + + + 0 + wxID_ANY + + + m_ItemsListCtrl + protected + + + wxLC_ICON|wxLC_REPORT|wxLC_SMALL_ICON + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +