dialog_options.h 4.08 KB
Newer Older
1
/////////////////////////////////////////////////////////////////////////////
2
// Name:        dialog_options.h
3 4 5 6 7 8 9 10 11 12 13
// 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

14 15
#ifndef _DIALOG_OPTIONS_H_
#define _DIALOG_OPTIONS_H_
16 17

#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
18
#pragma interface "dialog_options.h"
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
#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
dickelbeck's avatar
dickelbeck committed
54
#define SYMBOL_WINEDA_SETOPTIONSFRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
#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( );
81
    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 );
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112

    /// 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();

113
	WinEDA_SchematicFrame * m_Parent;
114 115 116 117 118 119 120 121 122 123 124
    
////@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;
125
    wxButton* m_btClose;
126 127 128 129 130 131 132 133 134 135 136 137 138
    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
139
	// _DIALOG_OPTIONS_H_