128 lines
3.5 KiB
C++
128 lines
3.5 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: zones.h
|
|
// Purpose:
|
|
// Author: jean-pierre Charras
|
|
// Modified by:
|
|
// Created: 25/01/2006 11:35:19
|
|
// RCS-ID:
|
|
// Copyright: GNU License
|
|
// Licence:
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Generated by DialogBlocks (unregistered), 25/01/2006 11:35:19
|
|
|
|
#ifndef _ZONES_H_
|
|
#define _ZONES_H_
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
#pragma interface "zones.h"
|
|
#endif
|
|
|
|
/*!
|
|
* Includes
|
|
*/
|
|
#include "fctsys.h"
|
|
#include "gr_basic.h"
|
|
|
|
#include "common.h"
|
|
#include "pcbnew.h"
|
|
|
|
#include "autorout.h"
|
|
#include "cell.h"
|
|
#include "trigo.h"
|
|
|
|
#include "protos.h"
|
|
|
|
////@begin includes
|
|
////@end includes
|
|
|
|
/*!
|
|
* Forward declarations
|
|
*/
|
|
|
|
////@begin forward declarations
|
|
////@end forward declarations
|
|
|
|
/*!
|
|
* Control identifiers
|
|
*/
|
|
|
|
////@begin control identifiers
|
|
#define ID_DIALOG 10000
|
|
// #define SYMBOL_WINEDA_ZONEFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxSTAY_ON_TOP|wxCLOSE_BOX
|
|
#define SYMBOL_WINEDA_ZONEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
|
|
#define SYMBOL_WINEDA_ZONEFRAME_TITLE _("Fill Zones Options")
|
|
#define SYMBOL_WINEDA_ZONEFRAME_IDNAME ID_DIALOG
|
|
#define SYMBOL_WINEDA_ZONEFRAME_SIZE wxSize(400, 300)
|
|
#define SYMBOL_WINEDA_ZONEFRAME_POSITION wxDefaultPosition
|
|
#define ID_RADIOBOX 10001
|
|
#define ID_TEXTCTRL 10006
|
|
#define ID_RADIOBOX1 10004
|
|
#define ID_RADIOBOX2 10005
|
|
#define ID_FILL_ZONE 10002
|
|
#define ID_SET_OPTIONS_ZONE 10003
|
|
////@end control identifiers
|
|
|
|
/*!
|
|
* Compatibility
|
|
*/
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
#define wxCLOSE_BOX 0x1000
|
|
#endif
|
|
|
|
/*!
|
|
* WinEDA_ZoneFrame class declaration
|
|
*/
|
|
|
|
class WinEDA_ZoneFrame: public wxDialog
|
|
{
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_ZoneFrame )
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
public:
|
|
/// Constructors
|
|
WinEDA_ZoneFrame( );
|
|
WinEDA_ZoneFrame( WinEDA_PcbFrame* parent, wxWindowID id = SYMBOL_WINEDA_ZONEFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_ZONEFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_ZONEFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_ZONEFRAME_SIZE, long style = SYMBOL_WINEDA_ZONEFRAME_STYLE );
|
|
|
|
/// Creation
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_ZONEFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_ZONEFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_ZONEFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_ZONEFRAME_SIZE, long style = SYMBOL_WINEDA_ZONEFRAME_STYLE );
|
|
|
|
/// Creates the controls and sizers
|
|
void CreateControls();
|
|
|
|
////@begin WinEDA_ZoneFrame event handler declarations
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FILL_ZONE
|
|
void ExecFillZone( wxCommandEvent& event );
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
////@end WinEDA_ZoneFrame event handler declarations
|
|
|
|
////@begin WinEDA_ZoneFrame member function declarations
|
|
|
|
/// Retrieves bitmap resources
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
/// Retrieves icon resources
|
|
wxIcon GetIconResource( const wxString& name );
|
|
////@end WinEDA_ZoneFrame member function declarations
|
|
|
|
/// Should we show tooltips?
|
|
static bool ShowToolTips();
|
|
|
|
////@begin WinEDA_ZoneFrame member variables
|
|
wxRadioBox* m_GridCtrl;
|
|
wxStaticText* m_ClearanceValueTitle;
|
|
wxTextCtrl* m_ZoneClearanceCtrl;
|
|
wxRadioBox* m_FillOpt;
|
|
wxRadioBox* m_OrientEdgesOpt;
|
|
////@end WinEDA_ZoneFrame member variables
|
|
WinEDA_PcbFrame * m_Parent;
|
|
};
|
|
|
|
#endif // _ZONES_H_
|
|
|