// headers
// ----------------------------------------------------------------------------
#ifdef __GNUG__
- #pragma implementation "mmboard.cpp"
+ #pragma implementation "mmboard.h"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
// Initialize main slider
m_positionSlider = new wxSlider( m_panel, MMBoard_PositionSlider, 0, 0, 60,
- wxDefaultPosition, wxSize(300, wxDefaultSize.y),
+ wxDefaultPosition, wxSize(300, wxDefaultCoord),
wxSL_HORIZONTAL | wxSL_AUTOTICKS);
m_positionSlider->SetPageSize(60); // 60 secs
m_positionSlider->Disable();
wxBoxSizer *infoSizer = new wxBoxSizer(wxVERTICAL);
m_fileType = new wxStaticText(infoPanel, wxID_ANY, wxEmptyString);
+#if wxUSE_STATLINE
wxStaticLine *line = new wxStaticLine(infoPanel, wxID_ANY);
+#endif // wxUSE_STATLINE
m_infoText = new wxStaticText(infoPanel, wxID_ANY, wxEmptyString);
UpdateInfoText();
infoSizer->Add(m_fileType, 0, wxGROW | wxALL, 1);
+#if wxUSE_STATLINE
infoSizer->Add(line, 0, wxGROW | wxCENTRE, 20);
+#endif // wxUSE_STATLINE
infoSizer->Add(m_infoText, 0, wxGROW | wxALL, 1);
infoPanel->SetSizer(infoSizer);
// Top sizer
m_sizer = new wxBoxSizer(wxVERTICAL);
+#if wxUSE_STATLINE
m_sizer->Add(new wxStaticLine(m_panel, wxID_ANY), 0, wxGROW | wxCENTRE, 0);
+#endif // wxUSE_STATLINE
m_sizer->Add(m_positionSlider, 0, wxCENTRE | wxGROW | wxALL, 2);
+#if wxUSE_STATLINE
m_sizer->Add(new wxStaticLine(m_panel, wxID_ANY), 0, wxGROW | wxCENTRE, 0);
+#endif // wxUSE_STATLINE
m_sizer->Add(buttonSizer, 0, wxALL, 0);
+#if wxUSE_STATLINE
m_sizer->Add(new wxStaticLine(m_panel, wxID_ANY), 0, wxGROW | wxCENTRE, 0);
+#endif // wxUSE_STATLINE
m_sizer->Add(infoPanel, 1, wxCENTRE | wxGROW, 0);
m_panel->SetSizer(m_sizer);
// Update misc info
UpdateMMedInfo();
+#if wxUSE_STATUSBAR
SetStatusText(selected_file, 2);
+#endif // wxUSE_STATUSBAR
// Update info text
UpdateInfoText();
void MMBoardFrame::UpdateMMedInfo()
{
- wxString temp_string;
MMBoardTime current, length;
if (m_opened_file) {
length = current;
}
+#if wxUSE_STATUSBAR
// We refresh the status bar
+ wxString temp_string;
temp_string.Printf(wxT("%02d:%02d / %02d:%02d"), current.hours * 60 + current.minutes,
current.seconds, length.hours * 60 + length.minutes, length.seconds);
SetStatusText(temp_string, 1);
+#else
+ wxUnusedVar(length);
+#endif // wxUSE_STATUSBAR
// We set the slider position
m_positionSlider->SetValue(current.hours * 3600 + current.minutes * 60 + current.seconds);