73 lines
3.2 KiB
C++
73 lines
3.2 KiB
C++
///////////////////////////////////////////////////////////////////////////
|
|
// C++ code generated with wxFormBuilder (version Dec 29 2008)
|
|
// http://www.wxformbuilder.org/
|
|
//
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "layer_panel_base.h"
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
LAYER_PANEL_BASE::LAYER_PANEL_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
|
|
{
|
|
wxBoxSizer* boxSizer;
|
|
boxSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
m_LayerPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
wxBoxSizer* bSizer3;
|
|
bSizer3 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
m_LayerScrolledWindow = new wxScrolledWindow( m_LayerPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxVSCROLL );
|
|
m_LayerScrolledWindow->SetScrollRate( 5, 5 );
|
|
m_LayersFlexGridSizer = new wxFlexGridSizer( 0, 4, 1, 3 );
|
|
m_LayersFlexGridSizer->SetFlexibleDirection( wxHORIZONTAL );
|
|
m_LayersFlexGridSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
m_LayerScrolledWindow->SetSizer( m_LayersFlexGridSizer );
|
|
m_LayerScrolledWindow->Layout();
|
|
m_LayersFlexGridSizer->Fit( m_LayerScrolledWindow );
|
|
bSizer3->Add( m_LayerScrolledWindow, 1, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
|
|
|
m_LayerPanel->SetSizer( bSizer3 );
|
|
m_LayerPanel->Layout();
|
|
bSizer3->Fit( m_LayerPanel );
|
|
m_notebook->AddPage( m_LayerPanel, _("Layers"), true );
|
|
m_RenderingPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
wxBoxSizer* bSizer4;
|
|
bSizer4 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
m_RenderScrolledWindow = new wxScrolledWindow( m_RenderingPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxVSCROLL );
|
|
m_RenderScrolledWindow->SetScrollRate( 5, 5 );
|
|
m_RenderFlexGridSizer = new wxFlexGridSizer( 0, 2, 1, 3 );
|
|
m_RenderFlexGridSizer->SetFlexibleDirection( wxHORIZONTAL );
|
|
m_RenderFlexGridSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
|
|
|
|
m_RenderScrolledWindow->SetSizer( m_RenderFlexGridSizer );
|
|
m_RenderScrolledWindow->Layout();
|
|
m_RenderFlexGridSizer->Fit( m_RenderScrolledWindow );
|
|
bSizer4->Add( m_RenderScrolledWindow, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
m_RenderingPanel->SetSizer( bSizer4 );
|
|
m_RenderingPanel->Layout();
|
|
bSizer4->Fit( m_RenderingPanel );
|
|
m_notebook->AddPage( m_RenderingPanel, _("Rendering"), false );
|
|
|
|
boxSizer->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
|
|
|
|
this->SetSizer( boxSizer );
|
|
this->Layout();
|
|
|
|
// Connect Events
|
|
m_LayerScrolledWindow->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( LAYER_PANEL_BASE::OnLeftDownLayers ), NULL, this );
|
|
m_LayerScrolledWindow->Connect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( LAYER_PANEL_BASE::OnRightDownLayers ), NULL, this );
|
|
}
|
|
|
|
LAYER_PANEL_BASE::~LAYER_PANEL_BASE()
|
|
{
|
|
// Disconnect Events
|
|
m_LayerScrolledWindow->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( LAYER_PANEL_BASE::OnLeftDownLayers ), NULL, this );
|
|
m_LayerScrolledWindow->Disconnect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( LAYER_PANEL_BASE::OnRightDownLayers ), NULL, this );
|
|
}
|