kicad/pcbnew/dialogs/dialog_copper_zones.h

56 lines
2.3 KiB
C
Raw Normal View History

2008-11-14 22:40:31 +00:00
/* dialog_copper_zones.h */
#ifndef DIALOG_COPPER_ZONES
#define DIALOG_COPPER_ZONES
#include <wx/wx.h>
2011-02-19 11:44:19 +00:00
#include <wx/listctrl.h>
2008-11-14 22:40:31 +00:00
#include "dialog_copper_zones_base.h"
/* here is the derivated class from dialog_copper_zone_frame created by wxFormBuilder
*/
class dialog_copper_zone : public dialog_copper_zone_base
2008-11-14 22:40:31 +00:00
{
2010-02-03 17:38:32 +00:00
private:
PCB_EDIT_FRAME* m_Parent;
wxConfig* m_Config; // Current config
int m_OnExitCode; /* exit code: ZONE_ABORT if no change,
* ZONE_OK if new values accepted
* ZONE_EXPORT_VALUES if values are exported to others zones
*/
ZONE_SETTING* m_Zone_Setting;
bool m_NetSortingByPadCount; /* false = alphabetic sort.
* true = pad count sort.
*/
long m_NetFiltering;
std::vector<int> m_LayerId; // Handle the real layer number from layer
// name position in m_LayerSelectionCtrl
static wxString m_netNameShowFilter; /* the filter to show nets (default * "*").
* static to keep this pattern for an entire pcbnew session
*/
wxListView* m_LayerSelectionCtrl;
2008-11-14 22:40:31 +00:00
2011-02-23 22:38:01 +00:00
static wxPoint prevPosition; // Dialog position & size
static wxSize prevSize;
2008-11-14 22:40:31 +00:00
public:
dialog_copper_zone( PCB_EDIT_FRAME* parent, ZONE_SETTING* zone_setting );
2010-02-03 17:38:32 +00:00
private:
void initDialog();
void OnButtonOkClick( wxCommandEvent& event );
void OnButtonCancelClick( wxCommandEvent& event );
void OnClose( wxCloseEvent& event );
2011-02-23 22:38:01 +00:00
void OnSize( wxSizeEvent& event );
2011-02-21 19:43:59 +00:00
void OnCornerSmoothingModeChoice( wxCommandEvent& event );
bool AcceptOptions( bool aPromptForErrors, bool aUseExportableSetupOnly = false );
2008-11-14 22:40:31 +00:00
void OnNetSortingOptionSelected( wxCommandEvent& event );
void ExportSetupToOtherCopperZones( wxCommandEvent& event );
void OnPadsInZoneClick( wxCommandEvent& event );
void OnRunFiltersButtonClick( wxCommandEvent& event );
void buildAvailableListOfNets();
void initListNetsParams();
wxBitmap makeLayerBitmap( int aColor );
2008-11-14 22:40:31 +00:00
};
#endif // #ifndef DIALOG_COPPER_ZONES