2007-05-06 16:03:28 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog_track_options.h
|
2007-11-25 06:42:47 +00:00
|
|
|
// Purpose:
|
2007-05-06 16:03:28 +00:00
|
|
|
// Author: jean-pierre Charras
|
2007-11-25 06:42:47 +00:00
|
|
|
// Modified by:
|
2007-05-06 16:03:28 +00:00
|
|
|
// Created: 24/02/2006 20:58:54
|
2007-11-25 06:42:47 +00:00
|
|
|
// RCS-ID:
|
2007-05-06 16:03:28 +00:00
|
|
|
// Copyright: License GNU
|
2007-11-25 06:42:47 +00:00
|
|
|
// Licence:
|
2007-05-06 16:03:28 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 24/02/2006 20:58:54
|
|
|
|
|
|
|
|
#ifndef _DIALOG_TRACK_OPTIONS_H_
|
|
|
|
#define _DIALOG_TRACK_OPTIONS_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "dialog_track_options.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin includes
|
2008-01-12 20:31:56 +00:00
|
|
|
#include "wx/valgen.h"
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
2007-06-05 12:10:51 +00:00
|
|
|
#define ID_DIALOG 10000
|
|
|
|
#define ID_TEXTCTRL 10001
|
|
|
|
#define ID_TEXTCTRL1 10002
|
|
|
|
#define ID_TEXTCTRL2 10003
|
|
|
|
#define ID_VIA_TYPE_SELECTION 10004
|
2008-01-12 20:31:56 +00:00
|
|
|
#define ID_TEXTCTRL7 10008
|
|
|
|
#define ID_TEXTCTRL6 10010
|
|
|
|
#define ID_CHECKBOX_ALLOWS_MICROVIA 10009
|
2007-06-05 12:10:51 +00:00
|
|
|
#define ID_TEXTCTRL3 10005
|
|
|
|
#define ID_TEXTCTRL4 10006
|
|
|
|
#define ID_TEXTCTRL5 10007
|
2007-11-25 22:09:42 +00:00
|
|
|
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
|
|
|
|
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_TITLE _("Tracks and Vias Sizes")
|
|
|
|
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_POSITION wxDefaultPosition
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_PcbTracksDialog class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WinEDA_PcbTracksDialog: public wxDialog
|
2007-11-25 06:42:47 +00:00
|
|
|
{
|
2007-05-06 16:03:28 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_PcbTracksDialog )
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
|
|
|
WinEDA_PcbTracksDialog( );
|
|
|
|
WinEDA_PcbTracksDialog( WinEDA_PcbFrame* parent, wxWindowID id = SYMBOL_WINEDA_PCBTRACKSDIALOG_IDNAME, const wxString& caption = SYMBOL_WINEDA_PCBTRACKSDIALOG_TITLE, const wxPoint& pos = SYMBOL_WINEDA_PCBTRACKSDIALOG_POSITION, const wxSize& size = SYMBOL_WINEDA_PCBTRACKSDIALOG_SIZE, long style = SYMBOL_WINEDA_PCBTRACKSDIALOG_STYLE );
|
|
|
|
|
|
|
|
/// Creation
|
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_PCBTRACKSDIALOG_IDNAME, const wxString& caption = SYMBOL_WINEDA_PCBTRACKSDIALOG_TITLE, const wxPoint& pos = SYMBOL_WINEDA_PCBTRACKSDIALOG_POSITION, const wxSize& size = SYMBOL_WINEDA_PCBTRACKSDIALOG_SIZE, long style = SYMBOL_WINEDA_PCBTRACKSDIALOG_STYLE );
|
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
|
|
|
////@begin WinEDA_PcbTracksDialog event handler declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-11-25 22:09:42 +00:00
|
|
|
/// wxEVT_INIT_DIALOG event handler for ID_DIALOG
|
|
|
|
void OnInitDialog( wxInitDialogEvent& event );
|
|
|
|
|
2008-01-12 20:31:56 +00:00
|
|
|
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX_ALLOWS_MICROVIA
|
|
|
|
void OnCheckboxAllowsMicroviaClick( wxCommandEvent& event );
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end WinEDA_PcbTracksDialog event handler declarations
|
|
|
|
|
|
|
|
////@begin WinEDA_PcbTracksDialog member function declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end WinEDA_PcbTracksDialog member function declarations
|
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
2007-06-05 12:10:51 +00:00
|
|
|
void AcceptPcbOptions(wxCommandEvent& event);
|
2007-09-13 11:55:46 +00:00
|
|
|
void SetDisplayValue();
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
////@begin WinEDA_PcbTracksDialog member variables
|
2007-06-05 12:10:51 +00:00
|
|
|
wxStaticText* m_ViaSizeTitle;
|
|
|
|
wxTextCtrl* m_OptViaSize;
|
|
|
|
wxStaticText* m_ViaDefaultDrillValueTitle;
|
|
|
|
wxTextCtrl* m_OptViaDrill;
|
|
|
|
wxStaticText* m_ViaAltDrillValueTitle;
|
|
|
|
wxTextCtrl* m_OptCustomViaDrill;
|
|
|
|
wxRadioBox* m_OptViaType;
|
2008-01-12 20:31:56 +00:00
|
|
|
wxStaticText* m_MicroViaSizeTitle;
|
|
|
|
wxTextCtrl* m_MicroViaSizeCtrl;
|
|
|
|
wxStaticText* m_MicroViaDrillTitle;
|
|
|
|
wxTextCtrl* m_MicroViaDrillCtrl;
|
|
|
|
wxCheckBox* m_AllowMicroViaCtrl;
|
2007-06-05 12:10:51 +00:00
|
|
|
wxStaticText* m_TrackWidthTitle;
|
|
|
|
wxTextCtrl* m_OptTrackWidth;
|
|
|
|
wxStaticText* m_TrackClearanceTitle;
|
|
|
|
wxTextCtrl* m_OptTrackClearance;
|
|
|
|
wxStaticText* m_MaskClearanceTitle;
|
|
|
|
wxTextCtrl* m_OptMaskMargin;
|
2007-05-06 16:03:28 +00:00
|
|
|
////@end WinEDA_PcbTracksDialog member variables
|
|
|
|
WinEDA_PcbFrame * m_Parent;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _DIALOG_TRACK_OPTIONS_H_
|