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.

96 lines
2.6 KiB

16 years ago
16 years ago
16 years ago
16 years ago
  1. #ifndef __dialog_eeschema_options__
  2. #define __dialog_eeschema_options__
  3. /**
  4. * @file
  5. * Subclass of DIALOG_EESCHEMA_OPTIONS_BASE, which is generated by wxFormBuilder.
  6. */
  7. #include "dialog_eeschema_options_base.h"
  8. class DIALOG_EESCHEMA_OPTIONS : public DIALOG_EESCHEMA_OPTIONS_BASE
  9. {
  10. public:
  11. DIALOG_EESCHEMA_OPTIONS( wxWindow* parent );
  12. void SetUnits( const wxArrayString& units, int select = 0 );
  13. int GetUnitsSelection( void ) { return m_choiceUnits->GetSelection(); }
  14. void SetGridSelection( int select )
  15. {
  16. m_choiceGridSize->SetSelection( select );
  17. }
  18. int GetGridSelection( void ) { return m_choiceGridSize->GetSelection(); }
  19. void SetGridSizes( const GridArray& grid_sizes, int grid_id );
  20. void SetLineWidth( int line_width )
  21. {
  22. m_spinLineWidth->SetValue( line_width );
  23. }
  24. int GetLineWidth( void ) { return m_spinLineWidth->GetValue(); }
  25. void SetTextSize( int text_size )
  26. {
  27. m_spinTextSize->SetValue( text_size );
  28. }
  29. int GetTextSize( void ) { return m_spinTextSize->GetValue(); }
  30. void SetRepeatHorizontal( int displacement )
  31. {
  32. m_spinRepeatHorizontal->SetValue( displacement );
  33. }
  34. int GetRepeatHorizontal( void )
  35. {
  36. return m_spinRepeatHorizontal->GetValue();
  37. }
  38. void SetRepeatVertical( int displacement )
  39. {
  40. m_spinRepeatVertical->SetValue( displacement );
  41. }
  42. int GetRepeatVertical( void ) { return m_spinRepeatVertical->GetValue(); }
  43. void SetRepeatLabel( int increment )
  44. {
  45. m_spinRepeatLabel->SetValue( increment );
  46. }
  47. int GetRepeatLabel( void ) { return m_spinRepeatLabel->GetValue(); }
  48. void SetShowGrid( bool show ) { m_checkShowGrid->SetValue( show ); }
  49. bool GetShowGrid( void ) { return m_checkShowGrid->GetValue(); }
  50. void SetShowHiddenPins( bool show )
  51. {
  52. m_checkShowHiddenPins->SetValue( show );
  53. }
  54. bool GetShowHiddenPins( void )
  55. {
  56. return m_checkShowHiddenPins->GetValue();
  57. }
  58. void SetEnableAutoPan( bool enable )
  59. {
  60. m_checkAutoPan->SetValue( enable );
  61. }
  62. bool GetEnableAutoPan( void ) { return m_checkAutoPan->GetValue(); }
  63. void SetEnableHVBusOrientation( bool enable )
  64. {
  65. m_checkHVOrientation->SetValue( enable );
  66. }
  67. bool GetEnableHVBusOrientation( void )
  68. {
  69. return m_checkHVOrientation->GetValue();
  70. }
  71. void SetShowPageLimits( bool show )
  72. {
  73. m_checkPageLimits->SetValue( show );
  74. }
  75. bool GetShowPageLimits( void )
  76. {
  77. return m_checkPageLimits->GetValue();
  78. }
  79. };
  80. #endif // __dialog_eeschema_options__