kicad/pcbnew/dialog_freeroute_exchange.h

135 lines
4.3 KiB
C
Raw Normal View History

2008-03-14 18:17:51 +00:00
/////////////////////////////////////////////////////////////////////////////
// Name: dialog_freeroute_exchange.h
// Purpose:
// Author: jean-pierre Charras
// Modified by:
// Created: 14/03/2008 09:19:27
// RCS-ID:
// Copyright: kicad team
// Licence:
/////////////////////////////////////////////////////////////////////////////
// Generated by DialogBlocks (unregistered), 14/03/2008 09:19:27
#ifndef _DIALOG_FREEROUTE_EXCHANGE_H_
#define _DIALOG_FREEROUTE_EXCHANGE_H_
/*!
* Includes
*/
////@begin includes
////@end includes
/*!
* Forward declarations
*/
////@begin forward declarations
////@end forward declarations
/*!
* Control identifiers
*/
////@begin control identifiers
2008-03-18 21:18:04 +00:00
#define ID_DIALOG_FREEROUTE_EXCHANGE 10000
2008-03-19 14:38:06 +00:00
#define ID_PANEL1 10001
#define ID_BUTTON4 10002
#define ID_BUTTON5 10003
#define ID_BUTTON6 10004
#define ID_BUTTON7 10005
#define ID_TEXTCTRL2 10006
2008-03-19 13:49:23 +00:00
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE wxCAPTION|wxRESIZE_BORDER|wxCLOSE_BOX|wxTAB_TRAVERSAL
2008-03-18 21:18:04 +00:00
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE _("dialog_freeroute_exchange")
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_IDNAME ID_DIALOG_FREEROUTE_EXCHANGE
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_SIZE wxSize(400, 300)
2008-03-14 18:17:51 +00:00
#define SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION wxDefaultPosition
////@end control identifiers
/*!
* dialog_freeroute_exchange class declaration
*/
2008-03-18 21:18:04 +00:00
class dialog_freeroute_exchange: public wxDialog
2008-03-14 18:17:51 +00:00
{
DECLARE_DYNAMIC_CLASS( dialog_freeroute_exchange )
DECLARE_EVENT_TABLE()
public:
/// Constructors
dialog_freeroute_exchange();
2008-03-18 21:18:04 +00:00
dialog_freeroute_exchange( wxWindow* parent, wxWindowID id = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_IDNAME, const wxString& caption = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE, const wxPoint& pos = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION, const wxSize& size = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_SIZE, long style = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE );
2008-03-14 18:17:51 +00:00
/// Creation
2008-03-18 21:18:04 +00:00
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_IDNAME, const wxString& caption = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_TITLE, const wxPoint& pos = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_POSITION, const wxSize& size = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_SIZE, long style = SYMBOL_DIALOG_FREEROUTE_EXCHANGE_STYLE );
2008-03-14 18:17:51 +00:00
/// Destructor
~dialog_freeroute_exchange();
/// Initialises member variables
2008-03-18 21:18:04 +00:00
void Init();
2008-03-14 18:17:51 +00:00
/// Creates the controls and sizers
2008-03-18 21:18:04 +00:00
void CreateControls();
2008-03-14 18:17:51 +00:00
////@begin dialog_freeroute_exchange event handler declarations
2008-03-19 13:49:23 +00:00
/// wxEVT_INIT_DIALOG event handler for ID_DIALOG_FREEROUTE_EXCHANGE
void OnInitDialog( wxInitDialogEvent& event );
2008-03-14 18:17:51 +00:00
/// wxEVT_CLOSE_WINDOW event handler for ID_DIALOG_FREEROUTE_EXCHANGE
2008-03-18 21:18:04 +00:00
void OnCloseWindow( wxCloseEvent& event );
2008-03-14 18:17:51 +00:00
2008-03-19 14:38:06 +00:00
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON4
void OnButton4Click( wxCommandEvent& event );
2008-03-14 18:17:51 +00:00
2008-03-19 14:38:06 +00:00
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON5
void OnButton5Click( wxCommandEvent& event );
2008-03-14 18:17:51 +00:00
2008-03-19 14:38:06 +00:00
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON6
void OnButton6Click( wxCommandEvent& event );
2008-03-14 18:17:51 +00:00
2008-03-19 14:38:06 +00:00
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON7
void OnButton7Click( wxCommandEvent& event );
2008-03-14 18:17:51 +00:00
2008-03-19 14:38:06 +00:00
/// wxEVT_COMMAND_TEXT_UPDATED event handler for ID_TEXTCTRL2
2008-03-18 21:18:04 +00:00
void OnTextEditFrUrlUpdated( wxCommandEvent& event );
2008-03-14 18:17:51 +00:00
2008-03-19 14:38:06 +00:00
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
void OnCancelClick( wxCommandEvent& event );
2008-03-14 18:17:51 +00:00
////@end dialog_freeroute_exchange event handler declarations
////@begin dialog_freeroute_exchange member function declarations
2008-03-18 21:18:04 +00:00
bool GetFreeRouteSetupChanged() const { return m_FreeRouteSetupChanged ; }
void SetFreeRouteSetupChanged(bool value) { m_FreeRouteSetupChanged = value ; }
2008-03-14 18:17:51 +00:00
/// Retrieves bitmap resources
2008-03-18 21:18:04 +00:00
wxBitmap GetBitmapResource( const wxString& name );
2008-03-14 18:17:51 +00:00
/// Retrieves icon resources
2008-03-18 21:18:04 +00:00
wxIcon GetIconResource( const wxString& name );
2008-03-14 18:17:51 +00:00
////@end dialog_freeroute_exchange member function declarations
/// Should we show tooltips?
static bool ShowToolTips();
////@begin dialog_freeroute_exchange member variables
2008-03-19 14:38:06 +00:00
wxButton* m_ExportDSN;
2008-03-18 21:18:04 +00:00
wxTextCtrl* m_FreerouteURLName;
2008-03-14 18:17:51 +00:00
private:
2008-03-18 21:18:04 +00:00
bool m_FreeRouteSetupChanged; // Flag set to true if Freeroute config changed
2008-03-14 18:17:51 +00:00
////@end dialog_freeroute_exchange member variables
WinEDA_PcbFrame* m_Parent;
};
#endif
// _DIALOG_FREEROUTE_EXCHANGE_H_