122 lines
3.4 KiB
C++
122 lines
3.4 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: find.h
|
|
// Purpose:
|
|
// Author: jean-pierre Charras
|
|
// Modified by:
|
|
// Created: 04/03/2006 13:58:04
|
|
// RCS-ID:
|
|
// Copyright: License GNU
|
|
// Licence:
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Generated by DialogBlocks (unregistered), 04/03/2006 13:58:04
|
|
|
|
#ifndef _FIND_H_
|
|
#define _FIND_H_
|
|
|
|
/*!
|
|
* Includes
|
|
*/
|
|
|
|
////@begin includes
|
|
////@end includes
|
|
|
|
/*!
|
|
* Forward declarations
|
|
*/
|
|
|
|
////@begin forward declarations
|
|
////@end forward declarations
|
|
|
|
/*!
|
|
* Control identifiers
|
|
*/
|
|
|
|
////@begin control identifiers
|
|
#define ID_DIALOG 10000
|
|
#define SYMBOL_WINEDA_PCBFINDFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
|
|
#define SYMBOL_WINEDA_PCBFINDFRAME_TITLE _("Find")
|
|
#define SYMBOL_WINEDA_PCBFINDFRAME_IDNAME ID_DIALOG
|
|
#define SYMBOL_WINEDA_PCBFINDFRAME_SIZE wxSize(400, 300)
|
|
#define SYMBOL_WINEDA_PCBFINDFRAME_POSITION wxDefaultPosition
|
|
#define ID_TEXTCTRL 10001
|
|
#define ID_FIND_ITEM 10002
|
|
#define ID_FIND_NEXT_ITEM 10003
|
|
#define ID_FIND_MARKER 10004
|
|
#define ID_FIND_NEXT_MARKER 10005
|
|
////@end control identifiers
|
|
|
|
/*!
|
|
* Compatibility
|
|
*/
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
#define wxCLOSE_BOX 0x1000
|
|
#endif
|
|
|
|
/*!
|
|
* WinEDA_PcbFindFrame class declaration
|
|
*/
|
|
|
|
class WinEDA_PcbFindFrame: public wxDialog
|
|
{
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_PcbFindFrame )
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
public:
|
|
/// Constructors
|
|
WinEDA_PcbFindFrame( );
|
|
WinEDA_PcbFindFrame( WinEDA_BasePcbFrame* parent,
|
|
wxDC * DC, const wxPoint& pos = SYMBOL_WINEDA_PCBFINDFRAME_POSITION,
|
|
wxWindowID id = SYMBOL_WINEDA_PCBFINDFRAME_IDNAME,
|
|
const wxString& caption = SYMBOL_WINEDA_PCBFINDFRAME_TITLE,
|
|
const wxSize& size = SYMBOL_WINEDA_PCBFINDFRAME_SIZE, long style = SYMBOL_WINEDA_PCBFINDFRAME_STYLE );
|
|
|
|
/// Creation
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_PCBFINDFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_PCBFINDFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_PCBFINDFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_PCBFINDFRAME_SIZE, long style = SYMBOL_WINEDA_PCBFINDFRAME_STYLE );
|
|
|
|
/// Creates the controls and sizers
|
|
void CreateControls();
|
|
|
|
////@begin WinEDA_PcbFindFrame event handler declarations
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FIND_ITEM
|
|
void OnFindItemClick( wxCommandEvent& event );
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FIND_NEXT_ITEM
|
|
void OnFindNextItemClick( wxCommandEvent& event );
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FIND_MARKER
|
|
void OnFindMarkerClick( wxCommandEvent& event );
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FIND_NEXT_MARKER
|
|
void OnFindNextMarkerClick( wxCommandEvent& event );
|
|
|
|
////@end WinEDA_PcbFindFrame event handler declarations
|
|
|
|
////@begin WinEDA_PcbFindFrame member function declarations
|
|
|
|
/// Retrieves bitmap resources
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
/// Retrieves icon resources
|
|
wxIcon GetIconResource( const wxString& name );
|
|
////@end WinEDA_PcbFindFrame member function declarations
|
|
|
|
/// Should we show tooltips?
|
|
static bool ShowToolTips();
|
|
|
|
void FindItem(wxCommandEvent& event);
|
|
void FindMarker(wxCommandEvent& event);
|
|
|
|
////@begin WinEDA_PcbFindFrame member variables
|
|
wxTextCtrl* m_NewText;
|
|
////@end WinEDA_PcbFindFrame member variables
|
|
|
|
WinEDA_BasePcbFrame * m_Parent;
|
|
wxDC * m_DC;
|
|
};
|
|
|
|
#endif
|
|
// _FIND_H_
|