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.

158 lines
7.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Mar 9 2015)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO "NOT" EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_fp_plugin_options_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_FP_PLUGIN_OPTIONS_BASE::DIALOG_FP_PLUGIN_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
  10. {
  11. this->SetSizeHints( wxDefaultSize, wxDefaultSize );
  12. wxBoxSizer* bSizer4;
  13. bSizer4 = new wxBoxSizer( wxVERTICAL );
  14. wxBoxSizer* m_horizontal_sizer;
  15. m_horizontal_sizer = new wxBoxSizer( wxHORIZONTAL );
  16. wxStaticBoxSizer* m_grid_sizer;
  17. m_grid_sizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Plugin Options:") ), wxVERTICAL );
  18. m_grid_sizer->SetMinSize( wxSize( -1,300 ) );
  19. m_grid = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
  20. // Grid
  21. m_grid->CreateGrid( 1, 2 );
  22. m_grid->EnableEditing( true );
  23. m_grid->EnableGridLines( true );
  24. m_grid->EnableDragGridSize( false );
  25. m_grid->SetMargins( 0, 0 );
  26. // Columns
  27. m_grid->EnableDragColMove( false );
  28. m_grid->EnableDragColSize( true );
  29. m_grid->SetColLabelSize( 30 );
  30. m_grid->SetColLabelValue( 0, _("Option") );
  31. m_grid->SetColLabelValue( 1, _("Value") );
  32. m_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
  33. // Rows
  34. m_grid->EnableDragRowSize( false );
  35. m_grid->SetRowLabelSize( 40 );
  36. m_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
  37. // Label Appearance
  38. // Cell Defaults
  39. m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
  40. m_grid_sizer->Add( m_grid, 1, wxEXPAND|wxTOP, 5 );
  41. wxBoxSizer* m_button_sizer;
  42. m_button_sizer = new wxBoxSizer( wxHORIZONTAL );
  43. m_add_row = new wxButton( this, wxID_ANY, _("Append"), wxDefaultPosition, wxDefaultSize, 0 );
  44. m_add_row->SetToolTip( _("Append a blank row") );
  45. m_button_sizer->Add( m_add_row, 0, wxALL, 5 );
  46. m_delete_row = new wxButton( this, wxID_ANY, _("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
  47. m_delete_row->SetToolTip( _("Delete the selected row") );
  48. m_button_sizer->Add( m_delete_row, 0, wxALL, 5 );
  49. m_move_up = new wxButton( this, wxID_ANY, _("Move Up"), wxDefaultPosition, wxDefaultSize, 0 );
  50. m_move_up->SetToolTip( _("Move the selected row up one position") );
  51. m_button_sizer->Add( m_move_up, 0, wxALL, 5 );
  52. m_move_down = new wxButton( this, wxID_ANY, _("Move Down"), wxDefaultPosition, wxDefaultSize, 0 );
  53. m_move_down->SetToolTip( _("Move the selected row down one position") );
  54. m_button_sizer->Add( m_move_down, 0, wxALL, 5 );
  55. m_grid_sizer->Add( m_button_sizer, 0, wxALIGN_CENTER, 5 );
  56. m_horizontal_sizer->Add( m_grid_sizer, 3, wxEXPAND, 5 );
  57. wxGridSizer* m_choose_size;
  58. m_choose_size = new wxGridSizer( 1, 1, 0, 0 );
  59. m_horizontal_sizer->Add( m_choose_size, 0, wxEXPAND, 5 );
  60. wxStaticBoxSizer* m_options_sizer;
  61. m_options_sizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Option Choices:") ), wxVERTICAL );
  62. m_options_sizer->SetMinSize( wxSize( 200,-1 ) );
  63. m_listbox = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_ALWAYS_SB|wxLB_SINGLE );
  64. m_listbox->SetToolTip( _("Options supported by current plugin") );
  65. m_options_sizer->Add( m_listbox, 2, wxALL|wxEXPAND, 5 );
  66. m_append_choice_button = new wxButton( this, wxID_ANY, _("<< Append Selected Option"), wxDefaultPosition, wxDefaultSize, 0 );
  67. m_options_sizer->Add( m_append_choice_button, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
  68. m_staticText1 = new wxStaticText( this, wxID_ANY, _("Option Specific Help:"), wxDefaultPosition, wxDefaultSize, 0 );
  69. m_staticText1->Wrap( -1 );
  70. m_options_sizer->Add( m_staticText1, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
  71. m_html = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxVSCROLL );
  72. m_html->SetMinSize( wxSize( 300,300 ) );
  73. m_options_sizer->Add( m_html, 3, wxALL|wxEXPAND, 5 );
  74. m_horizontal_sizer->Add( m_options_sizer, 2, wxEXPAND, 5 );
  75. bSizer4->Add( m_horizontal_sizer, 1, wxALL|wxEXPAND, 5 );
  76. m_sdbSizer1 = new wxStdDialogButtonSizer();
  77. m_sdbSizer1OK = new wxButton( this, wxID_OK );
  78. m_sdbSizer1->AddButton( m_sdbSizer1OK );
  79. m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
  80. m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
  81. m_sdbSizer1->Realize();
  82. bSizer4->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
  83. this->SetSizer( bSizer4 );
  84. this->Layout();
  85. this->Centre( wxBOTH );
  86. // Connect Events
  87. this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onCancelCaptionButtonClick ) );
  88. m_add_row->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onAppendRow ), NULL, this );
  89. m_delete_row->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onDeleteRow ), NULL, this );
  90. m_move_up->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onMoveUp ), NULL, this );
  91. m_move_down->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onMoveDown ), NULL, this );
  92. m_listbox->Connect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onListBoxItemSelected ), NULL, this );
  93. m_listbox->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onListBoxItemDoubleClicked ), NULL, this );
  94. m_append_choice_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onAppendOption ), NULL, this );
  95. m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onCancelButtonClick ), NULL, this );
  96. m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onOKButtonClick ), NULL, this );
  97. }
  98. DIALOG_FP_PLUGIN_OPTIONS_BASE::~DIALOG_FP_PLUGIN_OPTIONS_BASE()
  99. {
  100. // Disconnect Events
  101. this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onCancelCaptionButtonClick ) );
  102. m_add_row->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onAppendRow ), NULL, this );
  103. m_delete_row->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onDeleteRow ), NULL, this );
  104. m_move_up->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onMoveUp ), NULL, this );
  105. m_move_down->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onMoveDown ), NULL, this );
  106. m_listbox->Disconnect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onListBoxItemSelected ), NULL, this );
  107. m_listbox->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onListBoxItemDoubleClicked ), NULL, this );
  108. m_append_choice_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onAppendOption ), NULL, this );
  109. m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onCancelButtonClick ), NULL, this );
  110. m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FP_PLUGIN_OPTIONS_BASE::onOKButtonClick ), NULL, this );
  111. }