2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: sheet.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: jean-pierre Charras
|
|
|
|
// Modified by:
|
|
|
|
// Created: 08/02/2006 18:37:02
|
|
|
|
// RCS-ID:
|
|
|
|
// Copyright: License GNU
|
|
|
|
// Licence:
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 08/02/2006 18:37:02
|
|
|
|
|
|
|
|
#ifndef _SHEET_H_
|
|
|
|
#define _SHEET_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "sheet.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin includes
|
|
|
|
#include "wx/valtext.h"
|
|
|
|
////@end includes
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Forward declarations
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin forward declarations
|
|
|
|
////@end forward declarations
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Control identifiers
|
|
|
|
*/
|
|
|
|
|
|
|
|
////@begin control identifiers
|
|
|
|
#define ID_DIALOG 10000
|
2008-02-28 19:27:25 +00:00
|
|
|
#define ID_TEXTCTRL1 10002
|
|
|
|
#define ID_TEXTCTRL 10001
|
|
|
|
#define ID_TEXTCTRL2 10003
|
|
|
|
#define ID_TEXTCTRL3 10004
|
2007-10-02 15:35:31 +00:00
|
|
|
#define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
|
2007-06-05 12:10:51 +00:00
|
|
|
#define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_TITLE _("Sheet properties")
|
|
|
|
#define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_IDNAME ID_DIALOG
|
|
|
|
#define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_SIZE wxSize(400, 300)
|
|
|
|
#define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_POSITION wxDefaultPosition
|
|
|
|
////@end control identifiers
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Compatibility
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef wxCLOSE_BOX
|
|
|
|
#define wxCLOSE_BOX 0x1000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_SheetPropertiesFrame class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WinEDA_SheetPropertiesFrame: public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_SheetPropertiesFrame )
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
/// Constructors
|
|
|
|
WinEDA_SheetPropertiesFrame( );
|
|
|
|
WinEDA_SheetPropertiesFrame( WinEDA_SchematicFrame* parent,
|
2009-11-04 20:46:53 +00:00
|
|
|
SCH_SHEET * currentsheet,
|
2007-06-05 12:10:51 +00:00
|
|
|
wxWindowID id = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_IDNAME,
|
|
|
|
const wxString& caption = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_TITLE,
|
|
|
|
const wxPoint& pos = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_POSITION,
|
|
|
|
const wxSize& size = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_SIZE,
|
|
|
|
long style = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creation
|
|
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_SIZE, long style = SYMBOL_WINEDA_SHEETPROPERTIESFRAME_STYLE );
|
|
|
|
|
|
|
|
/// Creates the controls and sizers
|
|
|
|
void CreateControls();
|
|
|
|
|
|
|
|
////@begin WinEDA_SheetPropertiesFrame event handler declarations
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
|
|
|
|
////@end WinEDA_SheetPropertiesFrame event handler declarations
|
|
|
|
|
|
|
|
////@begin WinEDA_SheetPropertiesFrame member function declarations
|
|
|
|
|
|
|
|
/// Retrieves bitmap resources
|
|
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
|
|
|
|
/// Retrieves icon resources
|
|
|
|
wxIcon GetIconResource( const wxString& name );
|
|
|
|
////@end WinEDA_SheetPropertiesFrame member function declarations
|
|
|
|
|
|
|
|
/// Should we show tooltips?
|
|
|
|
static bool ShowToolTips();
|
|
|
|
void SheetPropertiesAccept(wxCommandEvent& event);
|
|
|
|
|
|
|
|
////@begin WinEDA_SheetPropertiesFrame member variables
|
|
|
|
wxTextCtrl* m_FileNameWin;
|
|
|
|
wxTextCtrl* m_SheetNameWin;
|
|
|
|
wxStaticText* m_FileNameTextSize;
|
|
|
|
wxTextCtrl* m_FileNameSize;
|
|
|
|
wxStaticText* m_SheetNameTextSize;
|
|
|
|
wxTextCtrl* m_SheetNameSize;
|
2008-04-30 11:52:34 +00:00
|
|
|
wxButton* m_btClose;
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end WinEDA_SheetPropertiesFrame member variables
|
|
|
|
|
|
|
|
WinEDA_SchematicFrame * m_Parent;
|
2009-11-04 20:46:53 +00:00
|
|
|
SCH_SHEET* m_CurrentSheet;
|
2007-06-05 12:10:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _SHEET_H_
|