35 DIALOG_SHIM( aParent, wxID_ANY,
_(
"Export 3D View" ), wxDefaultPosition, wxDefaultSize,
36 wxDEFAULT_DIALOG_STYLE ),
49 wxBoxSizer* mainSizer =
new wxBoxSizer( wxVERTICAL );
52 wxStaticText* imageSizeHeader =
new wxStaticText(
this, wxID_ANY,
_(
"Image Size" ) );
53 imageSizeHeader->SetFont( imageSizeHeader->GetFont().Bold() );
54 mainSizer->Add( imageSizeHeader, 0, wxLEFT | wxTOP, 10 );
56 wxFlexGridSizer* sizeGrid =
new wxFlexGridSizer( 2, 4, 5, 5 );
57 sizeGrid->AddGrowableCol( 1 );
60 sizeGrid->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Width:" ) ), 0, wxALIGN_CENTER_VERTICAL );
61 m_spinWidth =
new wxSpinCtrlDouble(
this, wxID_ANY );
68 sizeGrid->Add(
m_lockButton, 0, wxALIGN_CENTER | wxALL, 2 );
80 sizeGrid->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Height:" ) ), 0, wxALIGN_CENTER_VERTICAL );
86 sizeGrid->AddSpacer( 0 );
87 sizeGrid->AddSpacer( 0 );
89 mainSizer->Add( sizeGrid, 0, wxEXPAND | wxLEFT | wxRIGHT | wxTOP, 10 );
97 wxStaticLine* line =
new wxStaticLine(
this );
98 mainSizer->Add( line, 0, wxEXPAND | wxLEFT | wxRIGHT | wxTOP, 10 );
101 wxStaticText* resolutionHeader =
new wxStaticText(
this, wxID_ANY,
_(
"Resolution" ) );
102 resolutionHeader->SetFont( resolutionHeader->GetFont().Bold() );
103 mainSizer->Add( resolutionHeader, 0, wxLEFT | wxTOP, 10 );
105 wxFlexGridSizer* resGrid =
new wxFlexGridSizer( 2, 3, 5, 5 );
106 resGrid->AddGrowableCol( 1 );
109 resGrid->Add(
new wxStaticText(
this, wxID_ANY,
_(
"X resolution:" ) ), 0, wxALIGN_CENTER_VERTICAL );
123 resGrid->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Y resolution:" ) ), 0, wxALIGN_CENTER_VERTICAL );
128 resGrid->AddSpacer( 0 );
130 mainSizer->Add( resGrid, 0, wxEXPAND | wxLEFT | wxRIGHT | wxTOP, 10 );
133 wxStdDialogButtonSizer* btnSizer = CreateStdDialogButtonSizer( wxOK | wxCANCEL );
134 mainSizer->Add( btnSizer, 0, wxEXPAND | wxALL, 10 );
136 SetSizerAndFit( mainSizer );
336 if( aFromUnit == aToUnit )
352 wxSize pixelSize =
GetPixelSize( width, height, xRes, yRes, aFromUnit );
366 m_spinWidth->SetValue( pixelSize.GetWidth() * 25.4 / xRes );
367 m_spinHeight->SetValue( pixelSize.GetHeight() * 25.4 / yRes );
370 m_spinWidth->SetValue( pixelSize.GetWidth() / xRes );
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)