kicad/pcbnew/dialogs/dialog_track_via_properties.h

68 lines
2.5 KiB
C
Raw Normal View History

2015-07-09 11:35:51 +00:00
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2015 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 2
* 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, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <dialogs/dialog_track_via_properties_base.h>
#include <widgets/unit_binder.h>
#include <core/optional.h>
2015-07-09 11:35:51 +00:00
#include <layers_id_colors_and_visibility.h>
class SELECTION;
class COMMIT;
class NET_SELECTOR_COMBO_POPUP;
2015-07-09 11:35:51 +00:00
class PCB_BASE_FRAME;
class D_PAD;
2015-07-09 11:35:51 +00:00
class DIALOG_TRACK_VIA_PROPERTIES : public DIALOG_TRACK_VIA_PROPERTIES_BASE
{
public:
DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParent, const SELECTION& aItems,
COMMIT& aCommit );
2015-07-09 11:35:51 +00:00
bool TransferDataFromWindow() override;
2015-07-09 11:35:51 +00:00
private:
2016-09-24 18:53:15 +00:00
void onTrackNetclassCheck( wxCommandEvent& aEvent ) override;
void onWidthSelect( wxCommandEvent& aEvent );
void onWidthEdit( wxCommandEvent& aEvent );
2016-09-24 18:53:15 +00:00
void onViaNetclassCheck( wxCommandEvent& aEvent ) override;
void onViaSelect( wxCommandEvent& aEvent );
void onViaEdit( wxCommandEvent& aEvent );
2015-07-09 11:35:51 +00:00
bool confirmPadChange( const std::vector<D_PAD*>& connectedPads );
PCB_BASE_FRAME* m_frame;
const SELECTION& m_items; // List of items to be modified.
COMMIT& m_commit; // An undo record to add any changes to.
UNIT_BINDER m_trackStartX, m_trackStartY;
UNIT_BINDER m_trackEndX, m_trackEndY;
UNIT_BINDER m_trackWidth;
UNIT_BINDER m_viaX, m_viaY;
UNIT_BINDER m_viaDiameter, m_viaDrill;
2015-07-09 11:35:51 +00:00
bool m_tracks; // True if dialog displays any track properties.
bool m_vias; // True if dialog displays any via properties.
2015-07-09 11:35:51 +00:00
};