2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2007-08-16 08:37:32 +00:00
|
|
|
// Name: dialog_options.h
|
2007-06-05 12:10:51 +00:00
|
|
|
// Purpose:
|
|
|
|
// Author: jean-pierre Charras
|
|
|
|
// Modified by:
|
|
|
|
// Created: 31/01/2006 13:27:33
|
|
|
|
// RCS-ID:
|
|
|
|
// Copyright: GNU License
|
|
|
|
// Licence:
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 31/01/2006 13:27:33
|
|
|
|
|
2007-08-16 08:37:32 +00:00
|
|
|
#ifndef _DIALOG_OPTIONS_H_
|
|
|
|
#define _DIALOG_OPTIONS_H_
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2007-08-16 08:37:32 +00:00
|
|
|
#pragma interface "dialog_options.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin includes
|
|
|
|
#include "wx/spinctrl.h"
|
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
|
|
|
class wxBoxSizer;
|
|
|
|
class wxSpinCtrl;
|
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
|
|
|
#define ID_DIALOG 10000
|
|
|
|
#define ID_CHECKBOX1 10001
|
|
|
|
#define ID_RADIOBOX 10003
|
|
|
|
#define ID_RADIOBOX1 10004
|
|
|
|
#define ID_CHECKBOX 10002
|
|
|
|
#define ID_RADIOBOX2 10005
|
|
|
|
#define ID_RADIOBOX3 10006
|
|
|
|
#define ID_RADIOBOX4 10007
|
|
|
|
#define ID_TEXTCTRL 10008
|
|
|
|
#define ID_TEXTCTRL1 10009
|
|
|
|
#define ID_SPINCTRL 10010
|
2007-10-02 15:35:31 +00:00
|
|
|
#define SYMBOL_WINEDA_SETOPTIONSFRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
|
2007-06-05 12:10:51 +00:00
|
|
|
#define SYMBOL_WINEDA_SETOPTIONSFRAME_TITLE _("General Options")
|
|
|
|
#define SYMBOL_WINEDA_SETOPTIONSFRAME_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_WINEDA_SETOPTIONSFRAME_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WINEDA_SETOPTIONSFRAME_POSITION wxDefaultPosition
|
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_SetOptionsFrame class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WinEDA_SetOptionsFrame: public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_SetOptionsFrame )
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
|
|
|
WinEDA_SetOptionsFrame( );
|
2009-04-29 17:09:00 +00:00
|
|
|
WinEDA_SetOptionsFrame( WinEDA_SchematicFrame* parent, wxWindowID id = SYMBOL_WINEDA_SETOPTIONSFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_SETOPTIONSFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_SETOPTIONSFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_SETOPTIONSFRAME_SIZE, long style = SYMBOL_WINEDA_SETOPTIONSFRAME_STYLE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/// Creation
|
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_SETOPTIONSFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_SETOPTIONSFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_SETOPTIONSFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_SETOPTIONSFRAME_SIZE, long style = SYMBOL_WINEDA_SETOPTIONSFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
|
|
|
////@begin WinEDA_SetOptionsFrame event handler declarations
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
////@end WinEDA_SetOptionsFrame event handler declarations
|
|
|
|
|
|
|
|
////@begin WinEDA_SetOptionsFrame member function declarations
|
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
|
|
|
////@end WinEDA_SetOptionsFrame member function declarations
|
|
|
|
|
|
|
|
void Accept(wxCommandEvent& event);
|
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
|
|
|
|
2009-04-29 17:09:00 +00:00
|
|
|
WinEDA_SchematicFrame * m_Parent;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
////@begin WinEDA_SetOptionsFrame member variables
|
|
|
|
wxStaticBoxSizer* m_DrawOptionsSizer;
|
|
|
|
wxCheckBox* m_ShowGridOpt;
|
|
|
|
wxRadioBox* m_SelGridSize;
|
|
|
|
wxRadioBox* m_SelShowPins;
|
|
|
|
wxCheckBox* m_AutoPANOpt;
|
|
|
|
wxRadioBox* m_Selunits;
|
|
|
|
wxBoxSizer* m_LabelSizeCtrlSizer;
|
|
|
|
wxRadioBox* m_SelDirWires;
|
|
|
|
wxRadioBox* m_Show_Page_Limits;
|
2008-04-30 11:52:34 +00:00
|
|
|
wxButton* m_btClose;
|
2007-06-05 12:10:51 +00:00
|
|
|
wxStaticText* m_DeltaStepXTitle;
|
|
|
|
wxTextCtrl* m_DeltaStepCtrl_X;
|
|
|
|
wxStaticText* m_DeltaStepYTitle;
|
|
|
|
wxTextCtrl* m_DeltaStepCtrl_Y;
|
|
|
|
wxStaticText* m_DeltaIncTitle;
|
|
|
|
wxSpinCtrl* m_DeltaLabelCtrl;
|
|
|
|
////@end WinEDA_SetOptionsFrame member variables
|
|
|
|
|
|
|
|
WinEDA_ValueCtrl * m_DefaultDrawLineWidthCtrl;
|
|
|
|
WinEDA_ValueCtrl * m_DefaultLabelSizeCtrl;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2007-08-16 08:37:32 +00:00
|
|
|
// _DIALOG_OPTIONS_H_
|