2008-11-14 22:40:31 +00:00
|
|
|
/* dialog_copper_zones.h */
|
|
|
|
|
|
|
|
#ifndef DIALOG_COPPER_ZONES
|
|
|
|
#define DIALOG_COPPER_ZONES
|
|
|
|
|
|
|
|
#include "dialog_copper_zones_base.h"
|
|
|
|
|
|
|
|
/* here is the derivated class from dialog_copper_zone_frame created by wxFormBuilder
|
2009-08-23 15:22:44 +00:00
|
|
|
*/
|
|
|
|
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:
|
2008-11-14 22:40:31 +00:00
|
|
|
WinEDA_PcbFrame* m_Parent;
|
2009-08-23 15:22:44 +00:00
|
|
|
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
|
|
|
|
*/
|
|
|
|
|
2010-08-23 12:13:48 +00:00
|
|
|
ZONE_SETTING* m_Zone_Setting;
|
|
|
|
long m_NetSorting;
|
|
|
|
long m_NetFiltering;
|
|
|
|
int m_LayerId[LAYER_COUNT]; // 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
|
|
|
|
*/
|
2008-11-14 22:40:31 +00:00
|
|
|
|
|
|
|
public:
|
2009-08-23 15:22:44 +00:00
|
|
|
dialog_copper_zone( WinEDA_PcbFrame* parent, ZONE_SETTING* zone_setting );
|
2010-02-03 17:38:32 +00:00
|
|
|
private:
|
2010-08-23 12:13:48 +00:00
|
|
|
void initDialog();
|
2009-08-23 15:22:44 +00:00
|
|
|
void OnButtonOkClick( wxCommandEvent& event );
|
|
|
|
void OnButtonCancelClick( wxCommandEvent& event );
|
|
|
|
bool AcceptOptions( bool aPromptForErrors, bool aUseExportableSetupOnly = false );
|
2008-11-14 22:40:31 +00:00
|
|
|
void OnNetSortingOptionSelected( wxCommandEvent& event );
|
2009-08-23 15:22:44 +00:00
|
|
|
void ExportSetupToOtherCopperZones( wxCommandEvent& event );
|
|
|
|
void OnPadsInZoneClick( wxCommandEvent& event );
|
2010-08-23 12:13:48 +00:00
|
|
|
void OnRunFiltersButtonClick( wxCommandEvent& event );
|
|
|
|
void buildAvailableListOfNets();
|
|
|
|
void initListNetsParams();
|
2008-11-14 22:40:31 +00:00
|
|
|
};
|
|
|
|
#endif // #ifndef DIALOG_COPPER_ZONES
|