2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog_display_options.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: jean-pierre Charras
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/02/2006 17:47:55
|
|
|
|
// RCS-ID:
|
|
|
|
// Copyright: License GNU
|
|
|
|
// Licence:
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 17/02/2006 17:47:55
|
|
|
|
|
|
|
|
#ifndef _DIALOG_DISPLAY_OPTIONS_H_
|
|
|
|
#define _DIALOG_DISPLAY_OPTIONS_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "dialog_display_options.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin includes
|
|
|
|
#include "wx/valgen.h"
|
2007-10-24 19:19:47 +00:00
|
|
|
#include "wx/statline.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
2007-10-25 02:01:28 +00:00
|
|
|
class wxBoxSizer;
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
|
|
|
#define ID_DIALOG 10000
|
2007-10-25 02:01:28 +00:00
|
|
|
#define EDGE_SELECT 10001
|
|
|
|
#define TEXT_SELECT 10002
|
|
|
|
#define PADFILL_OPT 10003
|
|
|
|
#define PADNUM_OPT 10004
|
2007-10-24 19:19:47 +00:00
|
|
|
#define ID_SAVE_CONFIG 10005
|
2007-10-25 02:01:28 +00:00
|
|
|
#define ID_STATICLINE1 10006
|
|
|
|
#define SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_STYLE wxDEFAULT_DIALOG_STYLE|MAYBE_RESIZE_BORDER
|
|
|
|
#define SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_TITLE _("Display Options")
|
|
|
|
#define SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_POSITION wxDefaultPosition
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
2007-10-25 02:01:28 +00:00
|
|
|
* WinEDA_FootprintDisplayOptionsFrame class declaration
|
2007-06-05 12:10:51 +00:00
|
|
|
*/
|
|
|
|
|
2007-10-25 02:01:28 +00:00
|
|
|
class WinEDA_FootprintDisplayOptionsFrame: public wxDialog
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2007-10-25 02:01:28 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_FootprintDisplayOptionsFrame )
|
2007-06-05 12:10:51 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
2007-10-25 02:01:28 +00:00
|
|
|
WinEDA_FootprintDisplayOptionsFrame( );
|
|
|
|
WinEDA_FootprintDisplayOptionsFrame( WinEDA_BasePcbFrame* parent, wxWindowID id = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_SIZE, long style = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_STYLE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Creation
|
2007-10-25 02:01:28 +00:00
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_SIZE, long style = SYMBOL_WINEDA_FOOTPRINTDISPLAYOPTIONSFRAME_STYLE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
2007-10-25 02:01:28 +00:00
|
|
|
////@begin WinEDA_FootprintDisplayOptionsFrame event handler declarations
|
2007-10-24 19:19:47 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SAVE_CONFIG
|
|
|
|
void OnSaveConfigClick( wxCommandEvent& event );
|
|
|
|
|
2007-10-07 03:08:24 +00:00
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-07 03:08:24 +00:00
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-07 03:08:24 +00:00
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY
|
|
|
|
void OnApplyClick( wxCommandEvent& event );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-25 02:01:28 +00:00
|
|
|
////@end WinEDA_FootprintDisplayOptionsFrame event handler declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-25 02:01:28 +00:00
|
|
|
////@begin WinEDA_FootprintDisplayOptionsFrame member function declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
2007-10-25 02:01:28 +00:00
|
|
|
////@end WinEDA_FootprintDisplayOptionsFrame member function declarations
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
2007-10-24 19:19:47 +00:00
|
|
|
|
|
|
|
void UpdateObjectSettings(void);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-10-25 02:01:28 +00:00
|
|
|
////@begin WinEDA_FootprintDisplayOptionsFrame member variables
|
|
|
|
wxBoxSizer* OuterBoxSizer;
|
|
|
|
wxBoxSizer* MainBoxSizer;
|
2007-06-05 12:10:51 +00:00
|
|
|
wxRadioBox* m_EdgesDisplayOption;
|
|
|
|
wxRadioBox* m_TextDisplayOption;
|
2007-10-25 02:01:28 +00:00
|
|
|
wxBoxSizer* ColumnBoxSizer;
|
2007-10-07 03:08:24 +00:00
|
|
|
wxCheckBox* m_IsShowPadFill;
|
2007-10-24 19:19:47 +00:00
|
|
|
wxCheckBox* m_IsShowPadNum;
|
2007-10-25 02:01:28 +00:00
|
|
|
wxBoxSizer* BottomBoxSizer;
|
|
|
|
////@end WinEDA_FootprintDisplayOptionsFrame member variables
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
WinEDA_BasePcbFrame * m_Parent;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _DIALOG_DISPLAY_OPTIONS_H_
|