33 #include <boost/format.hpp>
42 #include "tce_config.h"
53 wxDialog(parent, -1, _T(
""), wxDefaultPosition) {
78 string title = fmt.str();
99 wxWindow *parent,
bool call_fit,
bool set_sizer) {
101 wxBoxSizer *item0 =
new wxBoxSizer( wxVERTICAL );
107 logo.LoadFile(filename, wxBITMAP_TYPE_PNG);
108 wxStaticBitmap* dialogLogo =
new wxStaticBitmap(parent, -1, logo);
110 item0->Add(dialogLogo, 0, wxALIGN_CENTER|wxALL, 5 );
111 wxBoxSizer *item3 =
new wxBoxSizer( wxVERTICAL );
112 wxStaticText *item4 =
114 wxDefaultPosition, wxDefaultSize, 0);
115 item3->Add( item4, 0, wxALIGN_CENTER|wxALL, 5 );
116 wxStaticText *item5 =
117 new wxStaticText(parent, -1, _T(
"OpenASIP ") +
119 wxDefaultPosition, wxDefaultSize, 0);
120 item3->Add( item5, 0, wxALIGN_CENTER|wxALL, 5 );
121 wxStaticText *item6 =
122 new wxStaticText(parent, -1,
124 wxDefaultPosition, wxDefaultSize, 0);
125 item3->Add( item6, 0, wxALIGN_CENTER|wxALL, 5 );
126 item0->Add( item3, 0, wxALIGN_CENTER|wxALL, 5 );
127 wxStaticLine *item7 =
128 new wxStaticLine(parent, -1, wxDefaultPosition,
129 wxSize(20,-1), wxLI_HORIZONTAL);
130 item0->Add( item7, 0, wxGROW|wxALL, 5 );
132 new wxButton(parent, wxID_OK, wxT(
"&OK"), wxDefaultPosition,
134 item0->Add( item8, 0, wxALIGN_CENTER|wxALL, 5 );
136 parent->SetAutoLayout(
TRUE );
137 parent->SetSizer( item0 );
140 item0->Fit( parent );
141 item0->SetSizeHints( parent );