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.

64 lines
2.8 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Apr 10 2012)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO "NOT" EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_show_page_borders_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::DIALOG_PAGE_SHOW_PAGE_BORDERS_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* bDialogSizer;
  13. bDialogSizer = new wxBoxSizer( wxVERTICAL );
  14. wxBoxSizer* bUpperSizer;
  15. bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
  16. wxBoxSizer* bRightSizer;
  17. bRightSizer = new wxBoxSizer( wxVERTICAL );
  18. wxString m_ShowPageLimitsChoices[] = { _("Full size. Do not show page limits"), _("Full size"), _("Size A4"), _("Size A3"), _("Size A2"), _("Size A"), _("Size B"), _("Size C") };
  19. int m_ShowPageLimitsNChoices = sizeof( m_ShowPageLimitsChoices ) / sizeof( wxString );
  20. m_ShowPageLimits = new wxRadioBox( this, wxID_ANY, _("Show Page Limits:"), wxDefaultPosition, wxDefaultSize, m_ShowPageLimitsNChoices, m_ShowPageLimitsChoices, 1, wxRA_SPECIFY_COLS );
  21. m_ShowPageLimits->SetSelection( 0 );
  22. bRightSizer->Add( m_ShowPageLimits, 0, wxALL|wxEXPAND, 5 );
  23. bUpperSizer->Add( bRightSizer, 1, wxEXPAND, 5 );
  24. bDialogSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
  25. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  26. bDialogSizer->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
  27. m_sdbSizer1 = new wxStdDialogButtonSizer();
  28. m_sdbSizer1OK = new wxButton( this, wxID_OK );
  29. m_sdbSizer1->AddButton( m_sdbSizer1OK );
  30. m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
  31. m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
  32. m_sdbSizer1->Realize();
  33. bDialogSizer->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
  34. this->SetSizer( bDialogSizer );
  35. this->Layout();
  36. // Connect Events
  37. m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::OnCancelButtonClick ), NULL, this );
  38. m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::OnOKBUttonClick ), NULL, this );
  39. }
  40. DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::~DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE()
  41. {
  42. // Disconnect Events
  43. m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::OnCancelButtonClick ), NULL, this );
  44. m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGE_SHOW_PAGE_BORDERS_BASE::OnOKBUttonClick ), NULL, this );
  45. }