dialog_netlist.h 4.34 KB
Newer Older
plyatov's avatar
plyatov committed
1
/////////////////////////////////////////////////////////////////////////////
2

plyatov's avatar
plyatov committed
3
// Name:        dialog_netlist.h
4
// Purpose:
plyatov's avatar
plyatov committed
5
// Author:      jean-pierre Charras
6
// Modified by:
plyatov's avatar
plyatov committed
7
// Created:     26/02/2006 17:42:19
8
// RCS-ID:
plyatov's avatar
plyatov committed
9
// Copyright:   License GNU
10
// Licence:
plyatov's avatar
plyatov committed
11 12 13 14 15 16 17 18 19 20 21 22
/////////////////////////////////////////////////////////////////////////////

// Generated by DialogBlocks (unregistered), 26/02/2006 17:42:19

#ifndef _DIALOG_NETLIST_H_
#define _DIALOG_NETLIST_H_

/*!
 * Includes
 */

////@begin includes
23
#include "wx/valgen.h"
g_harland's avatar
g_harland committed
24
#include "wx/statline.h"
plyatov's avatar
plyatov committed
25 26 27 28 29 30 31
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
g_harland's avatar
g_harland committed
32
class wxStdDialogButtonSizer;
plyatov's avatar
plyatov committed
33 34 35 36 37 38 39
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
40
#define ID_DIALOG 10000
41 42 43 44 45
#define ID_SELECTION_FOOTPRINT_MODE 10005
#define ID_KEEP_OR_CHANGE_FOOTPRINTS 10007
#define ID_DELETE_TRACKS_OPTION 10006
#define ID_DISPLAY_WARNINGS_OPT 10008
#define ID_REMOVE_EXTRA_FOOTPRINTS_OPT 10011
46 47 48 49
#define ID_OPEN_NELIST 10001
#define ID_READ_NETLIST_FILE 10002
#define ID_TEST_NETLIST 10003
#define ID_COMPILE_RATSNEST 10004
50
#define ID_TEXT_NETLIST_FILENAME 10012
51
#define ID_TEXTCTRL 10009
g_harland's avatar
g_harland committed
52 53
#define ID_STATICLINE 10010
#define SYMBOL_WINEDA_NETLISTFRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
54
#define SYMBOL_WINEDA_NETLISTFRAME_TITLE _("Netlist Dialog")
g_harland's avatar
g_harland committed
55 56 57
#define SYMBOL_WINEDA_NETLISTFRAME_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_NETLISTFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_NETLISTFRAME_POSITION wxDefaultPosition
plyatov's avatar
plyatov committed
58 59 60 61 62 63 64 65 66 67
////@end control identifiers

/*!
 * Compatibility
 */

#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#endif

68

plyatov's avatar
plyatov committed
69 70 71 72 73
/*!
 * WinEDA_NetlistFrame class declaration
 */

class WinEDA_NetlistFrame: public wxDialog
74
{
plyatov's avatar
plyatov committed
75 76 77 78 79
    DECLARE_DYNAMIC_CLASS( WinEDA_NetlistFrame )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
80 81 82 83 84
    WinEDA_NetlistFrame();
    WinEDA_NetlistFrame(WinEDA_PcbFrame* parent,
                         wxDC* DC,
                         const wxString& aNetlistFilename,
                         wxWindowID id = SYMBOL_WINEDA_NETLISTFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_NETLISTFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_NETLISTFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_NETLISTFRAME_SIZE, long style = SYMBOL_WINEDA_NETLISTFRAME_STYLE );
plyatov's avatar
plyatov committed
85 86 87 88

    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_NETLISTFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_NETLISTFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_NETLISTFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_NETLISTFRAME_SIZE, long style = SYMBOL_WINEDA_NETLISTFRAME_STYLE );

89 90 91 92 93 94
    /// Destructor
    ~WinEDA_NetlistFrame();

    /// Initialises member variables
    void Init();

plyatov's avatar
plyatov committed
95 96 97 98
    /// Creates the controls and sizers
    void CreateControls();

////@begin WinEDA_NetlistFrame event handler declarations
99 100 101 102 103 104 105 106 107 108 109 110 111

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_OPEN_NELIST
    void OnOpenNelistClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_READ_NETLIST_FILE
    void OnReadNetlistFileClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_TEST_NETLIST
    void OnTestNetlistClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_COMPILE_RATSNEST
    void OnCompileRatsnestClick( wxCommandEvent& event );

g_harland's avatar
g_harland committed
112 113
    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
    void OnCancelClick( wxCommandEvent& event );
114

plyatov's avatar
plyatov committed
115 116 117
////@end WinEDA_NetlistFrame event handler declarations

////@begin WinEDA_NetlistFrame member function declarations
118 119 120 121 122 123

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
plyatov's avatar
plyatov committed
124 125 126 127
////@end WinEDA_NetlistFrame member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();
128

plyatov's avatar
plyatov committed
129
////@begin WinEDA_NetlistFrame member variables
130
    wxRadioBox* m_Select_By_Timestamp;
131
    wxRadioBox* m_ChangeExistingFootprintCtrl;
132 133
    wxRadioBox* m_DeleteBadTracks;
    wxCheckBox* m_DisplayWarningCtrl;
134
    wxCheckBox* m_RemoveExtraFootprintsCtrl;
135
    wxButton* m_btClose;
136
    wxTextCtrl* m_NetlistFilenameCtrl;
137
    wxTextCtrl* m_MessageWindow;
g_harland's avatar
g_harland committed
138
    wxStdDialogButtonSizer* StdDialogButtonSizer;
plyatov's avatar
plyatov committed
139
////@end WinEDA_NetlistFrame member variables
140 141
    WinEDA_PcbFrame*        m_Parent;
    wxDC* m_DC;
plyatov's avatar
plyatov committed
142 143 144
};

#endif
145 146

// _DIALOG_NETLIST_H_