/////////////////////////////////////////////////////////////////////////////
// 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
#define SYMBOL_WINEDA_SHEETPROPERTIESFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#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
#define ID_TEXTCTRL1 10002
#define ID_TEXTCTRL 10001
#define ID_TEXTCTRL2 10003
#define ID_TEXTCTRL3 10004
////@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,
			DrawSheetStruct * currentsheet, 
			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;
////@end WinEDA_SheetPropertiesFrame member variables

	WinEDA_SchematicFrame * m_Parent;
	DrawSheetStruct * m_CurrentSheet;
};

#endif
    // _SHEET_H_
