2010-03-14 10:34:40 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: setpage.h
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _DIALOG_PAGES_SETTINGS_H_
|
|
|
|
#define _DIALOG_PAGES_SETTINGS_H_
|
|
|
|
|
|
|
|
#include "dialog_page_settings_base.h"
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* DIALOG_PAGES_SETTINGS class declaration
|
|
|
|
*/
|
|
|
|
|
|
|
|
class DIALOG_PAGES_SETTINGS: public DIALOG_PAGES_SETTINGS_BASE
|
|
|
|
{
|
|
|
|
private:
|
2011-01-21 19:30:59 +00:00
|
|
|
EDA_DRAW_FRAME *m_Parent;
|
2010-03-14 10:34:40 +00:00
|
|
|
BASE_SCREEN * m_Screen;
|
|
|
|
int m_Modified;
|
|
|
|
Ki_PageDescr * m_SelectedSheet;
|
|
|
|
float UserSizeX, UserSizeY;
|
|
|
|
int m_CurrentSelection;
|
|
|
|
|
|
|
|
public:
|
2011-01-21 19:30:59 +00:00
|
|
|
DIALOG_PAGES_SETTINGS( EDA_DRAW_FRAME* parent );
|
2010-03-14 10:34:40 +00:00
|
|
|
~DIALOG_PAGES_SETTINGS();
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// Initialises member variables
|
|
|
|
void initDialog();
|
|
|
|
|
|
|
|
/// 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 );
|
|
|
|
void SearchPageSizeSelection();
|
|
|
|
void SavePageSettings(wxCommandEvent& event);
|
|
|
|
void ReturnSizeSelected(wxCommandEvent& event);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _DIALOG_PAGES_SETTINGS_H_
|