2014-05-14 13:53:54 +00:00
|
|
|
/*
|
|
|
|
* KiRouter - a push-and-(sometimes-)shove PCB router
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 CERN
|
|
|
|
* Author: Maciej Suminski <maciej.suminski@cern.ch>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program. If not, see <http://www.gnu.or/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2014-11-14 18:15:58 +00:00
|
|
|
* Custom track width and via size dialog.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __dialog_track_via_size__
|
|
|
|
#define __dialog_track_via_size__
|
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
#include <wx_unit_binder.h>
|
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
#include "dialog_track_via_size_base.h"
|
|
|
|
|
2014-11-14 18:15:58 +00:00
|
|
|
class BOARD_DESIGN_SETTINGS;
|
2014-05-14 13:53:54 +00:00
|
|
|
|
|
|
|
/** Implementing DIALOG_TRACK_VIA_SIZE_BASE */
|
|
|
|
class DIALOG_TRACK_VIA_SIZE : public DIALOG_TRACK_VIA_SIZE_BASE
|
|
|
|
{
|
2015-02-18 16:53:46 +00:00
|
|
|
public:
|
|
|
|
/** Constructor */
|
|
|
|
DIALOG_TRACK_VIA_SIZE( wxWindow* aParent, BOARD_DESIGN_SETTINGS& aSettings );
|
2014-05-14 13:53:54 +00:00
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
protected:
|
|
|
|
WX_UNIT_BINDER m_trackWidth;
|
|
|
|
WX_UNIT_BINDER m_viaDiameter;
|
|
|
|
WX_UNIT_BINDER m_viaDrill;
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
// Routings settings that are modified by the dialog.
|
|
|
|
BOARD_DESIGN_SETTINGS& m_settings;
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
///> Checks if values given in the dialog are sensible.
|
|
|
|
bool check();
|
2014-05-14 13:53:54 +00:00
|
|
|
|
2015-02-18 16:53:46 +00:00
|
|
|
// Handlers for DIALOG_TRACK_VIA_SIZE_BASE events.
|
2016-09-24 18:53:15 +00:00
|
|
|
void onClose( wxCloseEvent& aEvent ) override;
|
|
|
|
void onOkClick( wxCommandEvent& aEvent ) override;
|
|
|
|
void onCancelClick( wxCommandEvent& aEvent ) override;
|
2014-05-14 13:53:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __dialog_track_via_size__
|