161 lines
4.5 KiB
C++
161 lines
4.5 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: setpage.h
|
|
// Purpose:
|
|
// Author: jean-pierre Charras
|
|
// Modified by:
|
|
// Created: 06/02/2006 20:53:09
|
|
// RCS-ID:
|
|
// Copyright: License GNU
|
|
// Licence:
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Generated by DialogBlocks (unregistered), 06/02/2006 20:53:09
|
|
|
|
#ifndef _SETPAGE_H_
|
|
#define _SETPAGE_H_
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
#pragma interface "setpage.h"
|
|
#endif
|
|
|
|
/*!
|
|
* Includes
|
|
*/
|
|
|
|
////@begin includes
|
|
#include "wx/valgen.h"
|
|
#include "wx/valtext.h"
|
|
////@end includes
|
|
|
|
/*!
|
|
* Forward declarations
|
|
*/
|
|
|
|
////@begin forward declarations
|
|
////@end forward declarations
|
|
|
|
/*!
|
|
* Control identifiers
|
|
*/
|
|
|
|
////@begin control identifiers
|
|
#define ID_DIALOG 10000
|
|
#define ID_RADIOBOX 10001
|
|
#define ID_TEXTCTRL7 10009
|
|
#define ID_TEXTCTRL8 10010
|
|
#define ID_TEXTCTRL 10002
|
|
#define ID_TEXTCTRL2 10004
|
|
#define ID_TEXTCTRL1 10003
|
|
#define ID_TEXTCTRL3 10005
|
|
#define ID_TEXTCTRL4 10006
|
|
#define ID_TEXTCTRL5 10007
|
|
#define ID_TEXTCTRL6 10008
|
|
#define SYMBOL_WINEDA_SETPAGEFRAME_STYLE wxDEFAULT_DIALOG_STYLE
|
|
#define SYMBOL_WINEDA_SETPAGEFRAME_TITLE _("Page Settings")
|
|
#define SYMBOL_WINEDA_SETPAGEFRAME_IDNAME ID_DIALOG
|
|
#define SYMBOL_WINEDA_SETPAGEFRAME_SIZE wxSize(400, 300)
|
|
#define SYMBOL_WINEDA_SETPAGEFRAME_POSITION wxDefaultPosition
|
|
////@end control identifiers
|
|
|
|
/*!
|
|
* Compatibility
|
|
*/
|
|
|
|
/*!
|
|
* WinEDA_SetPageFrame class declaration
|
|
*/
|
|
|
|
class WinEDA_SetPageFrame: public wxDialog
|
|
{
|
|
DECLARE_DYNAMIC_CLASS( WinEDA_SetPageFrame )
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
public:
|
|
/// Constructors
|
|
WinEDA_SetPageFrame( );
|
|
WinEDA_SetPageFrame( WinEDA_DrawFrame* parent,
|
|
wxWindowID id = SYMBOL_WINEDA_SETPAGEFRAME_IDNAME,
|
|
const wxString& caption = SYMBOL_WINEDA_SETPAGEFRAME_TITLE,
|
|
const wxPoint& pos = SYMBOL_WINEDA_SETPAGEFRAME_POSITION,
|
|
const wxSize& size = SYMBOL_WINEDA_SETPAGEFRAME_SIZE,
|
|
long style = SYMBOL_WINEDA_SETPAGEFRAME_STYLE );
|
|
|
|
/// Creation
|
|
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_SETPAGEFRAME_IDNAME,
|
|
const wxString& caption = SYMBOL_WINEDA_SETPAGEFRAME_TITLE,
|
|
const wxPoint& pos = SYMBOL_WINEDA_SETPAGEFRAME_POSITION,
|
|
const wxSize& size = SYMBOL_WINEDA_SETPAGEFRAME_SIZE,
|
|
long style = SYMBOL_WINEDA_SETPAGEFRAME_STYLE );
|
|
|
|
/// Creates the controls and sizers
|
|
void CreateControls();
|
|
|
|
////@begin WinEDA_SetPageFrame event handler declarations
|
|
|
|
/// wxEVT_CLOSE_WINDOW event handler for ID_DIALOG
|
|
void OnCloseWindow( wxCloseEvent& event );
|
|
|
|
/// 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_SetPageFrame event handler declarations
|
|
|
|
////@begin WinEDA_SetPageFrame member function declarations
|
|
|
|
/// Retrieves bitmap resources
|
|
wxBitmap GetBitmapResource( const wxString& name );
|
|
|
|
/// Retrieves icon resources
|
|
wxIcon GetIconResource( const wxString& name );
|
|
////@end WinEDA_SetPageFrame member function declarations
|
|
|
|
/// Should we show tooltips?
|
|
static bool ShowToolTips();
|
|
|
|
void SearchPageSizeSelection(void);
|
|
void SavePageSettings(wxCommandEvent& event);
|
|
void ReturnSizeSelected(wxCommandEvent& event);
|
|
|
|
////@begin WinEDA_SetPageFrame member variables
|
|
wxRadioBox* m_PageSizeBox;
|
|
wxTextCtrl* m_TextUserSizeX;
|
|
wxTextCtrl* m_TextUserSizeY;
|
|
wxStaticText* m_TextSheetCount;
|
|
wxStaticText* m_TextSheetNumber;
|
|
wxStaticBoxSizer* m_RevisionSizer;
|
|
wxTextCtrl* m_TextRevision;
|
|
wxStaticBoxSizer* m_NameSizer;
|
|
wxTextCtrl* m_TextTitle;
|
|
wxStaticBoxSizer* m_CompanySizer;
|
|
wxTextCtrl* m_TextCompany;
|
|
wxStaticBoxSizer* m_Comment1Sizer;
|
|
wxTextCtrl* m_TextComment1;
|
|
wxStaticBoxSizer* m_Comment2Sizer;
|
|
wxTextCtrl* m_TextComment2;
|
|
wxStaticBoxSizer* m_Comment3Sizer;
|
|
wxTextCtrl* m_TextComment3;
|
|
wxStaticBoxSizer* m_Comment4Sizer;
|
|
wxTextCtrl* m_TextComment4;
|
|
////@end WinEDA_SetPageFrame member variables
|
|
wxCheckBox * m_RevisionExport;
|
|
wxCheckBox * m_TitleExport;
|
|
wxCheckBox * m_CompanyExport;
|
|
wxCheckBox * m_Comment1Export;
|
|
wxCheckBox * m_Comment2Export;
|
|
wxCheckBox * m_Comment3Export;
|
|
wxCheckBox * m_Comment4Export;
|
|
|
|
WinEDA_DrawFrame *m_ParentDrawFrame;
|
|
BASE_SCREEN * m_Screen;
|
|
int m_Modified;
|
|
Ki_PageDescr * m_SelectedSheet;
|
|
float UserSizeX, UserSizeY;
|
|
int m_CurrentSelection;
|
|
};
|
|
|
|
#endif
|
|
// _SETPAGE_H_
|