You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

219 lines
9.5 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Dec 30 2017)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "panel_fp_lib_table_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. PANEL_FP_LIB_TABLE_BASE::PANEL_FP_LIB_TABLE_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
  10. {
  11. wxBoxSizer* bMainSizer;
  12. bMainSizer = new wxBoxSizer( wxVERTICAL );
  13. wxStaticBoxSizer* m_top_sizer;
  14. m_top_sizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Libraries by Scope") ), wxVERTICAL );
  15. m_auinotebook = new wxAuiNotebook( m_top_sizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
  16. m_auinotebook->SetMinSize( wxSize( 720,460 ) );
  17. m_global_panel = new wxPanel( m_auinotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
  18. wxBoxSizer* m_global_sizer;
  19. m_global_sizer = new wxBoxSizer( wxVERTICAL );
  20. wxFlexGridSizer* fgSizer1;
  21. fgSizer1 = new wxFlexGridSizer( 1, 2, 0, 0 );
  22. fgSizer1->SetFlexibleDirection( wxBOTH );
  23. fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  24. m_staticText3 = new wxStaticText( m_global_panel, wxID_ANY, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
  25. m_staticText3->Wrap( -1 );
  26. fgSizer1->Add( m_staticText3, 0, wxTOP|wxRIGHT|wxLEFT, 4 );
  27. m_GblTableFilename = new wxStaticText( m_global_panel, wxID_ANY, _("Table Name"), wxDefaultPosition, wxDefaultSize, 0 );
  28. m_GblTableFilename->Wrap( -1 );
  29. fgSizer1->Add( m_GblTableFilename, 0, wxTOP|wxRIGHT|wxLEFT, 4 );
  30. m_global_sizer->Add( fgSizer1, 0, wxEXPAND, 5 );
  31. m_global_grid = new wxGrid( m_global_panel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
  32. // Grid
  33. m_global_grid->CreateGrid( 1, 5 );
  34. m_global_grid->EnableEditing( true );
  35. m_global_grid->EnableGridLines( true );
  36. m_global_grid->EnableDragGridSize( false );
  37. m_global_grid->SetMargins( 0, 0 );
  38. // Columns
  39. m_global_grid->AutoSizeColumns();
  40. m_global_grid->EnableDragColMove( false );
  41. m_global_grid->EnableDragColSize( true );
  42. m_global_grid->SetColLabelSize( 22 );
  43. m_global_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
  44. // Rows
  45. m_global_grid->EnableDragRowSize( false );
  46. m_global_grid->SetRowLabelSize( 0 );
  47. m_global_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
  48. // Label Appearance
  49. // Cell Defaults
  50. m_global_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
  51. m_global_sizer->Add( m_global_grid, 1, wxALL|wxEXPAND, 5 );
  52. m_global_panel->SetSizer( m_global_sizer );
  53. m_global_panel->Layout();
  54. m_global_sizer->Fit( m_global_panel );
  55. m_auinotebook->AddPage( m_global_panel, _("Global Libraries"), false, wxNullBitmap );
  56. m_project_panel = new wxPanel( m_auinotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
  57. wxBoxSizer* m_project_sizer;
  58. m_project_sizer = new wxBoxSizer( wxVERTICAL );
  59. wxFlexGridSizer* fgSizer2;
  60. fgSizer2 = new wxFlexGridSizer( 1, 2, 0, 0 );
  61. fgSizer2->SetFlexibleDirection( wxBOTH );
  62. fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  63. m_staticText4 = new wxStaticText( m_project_panel, wxID_ANY, _("File:"), wxDefaultPosition, wxDefaultSize, 0 );
  64. m_staticText4->Wrap( -1 );
  65. fgSizer2->Add( m_staticText4, 0, wxLEFT|wxRIGHT|wxTOP, 4 );
  66. m_PrjTableFilename = new wxStaticText( m_project_panel, wxID_ANY, _("Table Name"), wxDefaultPosition, wxDefaultSize, 0 );
  67. m_PrjTableFilename->Wrap( -1 );
  68. fgSizer2->Add( m_PrjTableFilename, 0, wxLEFT|wxRIGHT|wxTOP, 4 );
  69. m_project_sizer->Add( fgSizer2, 0, wxEXPAND, 5 );
  70. m_project_grid = new wxGrid( m_project_panel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
  71. // Grid
  72. m_project_grid->CreateGrid( 1, 5 );
  73. m_project_grid->EnableEditing( true );
  74. m_project_grid->EnableGridLines( true );
  75. m_project_grid->EnableDragGridSize( false );
  76. m_project_grid->SetMargins( 0, 0 );
  77. // Columns
  78. m_project_grid->AutoSizeColumns();
  79. m_project_grid->EnableDragColMove( false );
  80. m_project_grid->EnableDragColSize( true );
  81. m_project_grid->SetColLabelSize( 22 );
  82. m_project_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
  83. // Rows
  84. m_project_grid->EnableDragRowSize( false );
  85. m_project_grid->SetRowLabelSize( 0 );
  86. m_project_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
  87. // Label Appearance
  88. // Cell Defaults
  89. m_project_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
  90. m_project_sizer->Add( m_project_grid, 1, wxALL|wxEXPAND, 5 );
  91. m_project_panel->SetSizer( m_project_sizer );
  92. m_project_panel->Layout();
  93. m_project_sizer->Fit( m_project_panel );
  94. m_auinotebook->AddPage( m_project_panel, _("Project Specific Libraries"), true, wxNullBitmap );
  95. m_top_sizer->Add( m_auinotebook, 6, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  96. wxBoxSizer* bButtonsSizer;
  97. bButtonsSizer = new wxBoxSizer( wxHORIZONTAL );
  98. m_append_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
  99. bButtonsSizer->Add( m_append_button, 0, wxRIGHT|wxLEFT, 5 );
  100. m_browse_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
  101. bButtonsSizer->Add( m_browse_button, 0, wxRIGHT, 5 );
  102. m_move_up_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
  103. bButtonsSizer->Add( m_move_up_button, 0, wxRIGHT, 5 );
  104. m_move_down_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
  105. bButtonsSizer->Add( m_move_down_button, 0, wxRIGHT, 5 );
  106. bButtonsSizer->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
  107. m_delete_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW );
  108. bButtonsSizer->Add( m_delete_button, 0, wxRIGHT|wxLEFT, 5 );
  109. m_top_sizer->Add( bButtonsSizer, 0, wxEXPAND, 5 );
  110. bMainSizer->Add( m_top_sizer, 1, wxALL|wxEXPAND, 5 );
  111. wxStaticBoxSizer* sbSizer1;
  112. sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Path Substitutions:") ), wxVERTICAL );
  113. m_path_subs_grid = new wxGrid( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
  114. // Grid
  115. m_path_subs_grid->CreateGrid( 1, 2 );
  116. m_path_subs_grid->EnableEditing( false );
  117. m_path_subs_grid->EnableGridLines( true );
  118. m_path_subs_grid->EnableDragGridSize( false );
  119. m_path_subs_grid->SetMargins( 0, 0 );
  120. // Columns
  121. m_path_subs_grid->SetColSize( 0, 150 );
  122. m_path_subs_grid->SetColSize( 1, 500 );
  123. m_path_subs_grid->AutoSizeColumns();
  124. m_path_subs_grid->EnableDragColMove( false );
  125. m_path_subs_grid->EnableDragColSize( true );
  126. m_path_subs_grid->SetColLabelSize( 0 );
  127. m_path_subs_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
  128. // Rows
  129. m_path_subs_grid->EnableDragRowSize( true );
  130. m_path_subs_grid->SetRowLabelSize( 0 );
  131. m_path_subs_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
  132. // Label Appearance
  133. // Cell Defaults
  134. m_path_subs_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
  135. m_path_subs_grid->SetToolTip( _("This is a read-only table which shows pertinent environment variables.") );
  136. sbSizer1->Add( m_path_subs_grid, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  137. bMainSizer->Add( sbSizer1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
  138. this->SetSizer( bMainSizer );
  139. this->Layout();
  140. // Connect Events
  141. m_auinotebook->Connect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, wxAuiNotebookEventHandler( PANEL_FP_LIB_TABLE_BASE::pageChangedHandler ), NULL, this );
  142. m_append_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::appendRowHandler ), NULL, this );
  143. m_browse_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::browseLibrariesHandler ), NULL, this );
  144. m_move_up_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::moveUpHandler ), NULL, this );
  145. m_move_down_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::moveDownHandler ), NULL, this );
  146. m_delete_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::deleteRowHandler ), NULL, this );
  147. m_path_subs_grid->Connect( wxEVT_SIZE, wxSizeEventHandler( PANEL_FP_LIB_TABLE_BASE::onSizeGrid ), NULL, this );
  148. }
  149. PANEL_FP_LIB_TABLE_BASE::~PANEL_FP_LIB_TABLE_BASE()
  150. {
  151. // Disconnect Events
  152. m_auinotebook->Disconnect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, wxAuiNotebookEventHandler( PANEL_FP_LIB_TABLE_BASE::pageChangedHandler ), NULL, this );
  153. m_append_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::appendRowHandler ), NULL, this );
  154. m_browse_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::browseLibrariesHandler ), NULL, this );
  155. m_move_up_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::moveUpHandler ), NULL, this );
  156. m_move_down_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::moveDownHandler ), NULL, this );
  157. m_delete_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FP_LIB_TABLE_BASE::deleteRowHandler ), NULL, this );
  158. m_path_subs_grid->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PANEL_FP_LIB_TABLE_BASE::onSizeGrid ), NULL, this );
  159. }