15PANEL_EMBEDDED_FILES_BASE::PANEL_EMBEDDED_FILES_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
17 wxBoxSizer* bMainSizer;
18 bMainSizer =
new wxBoxSizer( wxVERTICAL );
20 wxBoxSizer* m_global_sizer;
21 m_global_sizer =
new wxBoxSizer( wxVERTICAL );
40 m_files_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
46 m_files_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
51 m_files_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
52 m_global_sizer->Add(
m_files_grid, 5, wxALL|wxEXPAND, 5 );
55 bMainSizer->Add( m_global_sizer, 1, wxEXPAND, 5 );
57 wxBoxSizer* bButtonsSizer;
58 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
66 bButtonsSizer->Add( 20, 0, 0, wxEXPAND, 5 );
74 bButtonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
76 m_export =
new wxButton(
this, wxID_ANY,
_(
"&Export"), wxDefaultPosition, wxDefaultSize, 0 );
77 bButtonsSizer->Add(
m_export, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
80 bMainSizer->Add( bButtonsSizer, 0, wxEXPAND|wxALL, 3 );
82 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
86 bSizer4 =
new wxBoxSizer( wxVERTICAL );
88 m_cbEmbedFonts =
new wxCheckBox(
this, wxID_ANY,
_(
"Embed Fonts"), wxDefaultPosition, wxDefaultSize, 0 );
94 bMainSizer->Add( bSizer4, 0, wxEXPAND, 5 );
97 this->SetSizer( bMainSizer );
99 bMainSizer->Fit(
this );
virtual void onAddEmbeddedFile(wxCommandEvent &event)
wxCheckBox * m_cbEmbedFonts
virtual void onExportFiles(wxCommandEvent &event)
PANEL_EMBEDDED_FILES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
STD_BITMAP_BUTTON * m_browse_button
virtual void onDeleteEmbeddedFile(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_delete_button
~PANEL_EMBEDDED_FILES_BASE()
virtual void onSize(wxSizeEvent &event)
wxStaticLine * m_staticline1
virtual void onGridRightClick(wxGridEvent &event)
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...