[1231183] 'cleanup: mismatched indentation' and other cleanings.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-07-22 17:56:31 +00:00
parent 92218ce600
commit bfd84575a2
3 changed files with 16 additions and 11 deletions

View File

@@ -661,10 +661,12 @@ void GridFrame::DeleteSelectedRows( wxCommandEvent& WXUNUSED(ev) )
{ {
grid->BeginBatch(); grid->BeginBatch();
for ( int n = 0; n < grid->GetNumberRows(); ) for ( int n = 0; n < grid->GetNumberRows(); )
{
if ( grid->IsInSelection( n , 0 ) ) if ( grid->IsInSelection( n , 0 ) )
grid->DeleteRows( n, 1 ); grid->DeleteRows( n, 1 );
else else
n++; n++;
}
grid->EndBatch(); grid->EndBatch();
} }
} }
@@ -676,10 +678,12 @@ void GridFrame::DeleteSelectedCols( wxCommandEvent& WXUNUSED(ev) )
{ {
grid->BeginBatch(); grid->BeginBatch();
for ( int n = 0; n < grid->GetNumberCols(); ) for ( int n = 0; n < grid->GetNumberCols(); )
{
if ( grid->IsInSelection( 0 , n ) ) if ( grid->IsInSelection( 0 , n ) )
grid->DeleteCols( n, 1 ); grid->DeleteCols( n, 1 );
else else
n++; n++;
}
grid->EndBatch(); grid->EndBatch();
} }
} }
@@ -888,7 +892,7 @@ void GridFrame::OnCellValueChanged( wxGridEvent& ev )
void GridFrame::OnCellBeginDrag( wxGridEvent& ev ) void GridFrame::OnCellBeginDrag( wxGridEvent& ev )
{ {
logBuf = _T(""); logBuf = wxEmptyString;
logBuf << _T("Got request to drag cell at") logBuf << _T("Got request to drag cell at")
<< _T(" row ") << ev.GetRow() << _T(" row ") << ev.GetRow()
<< _T(" col ") << ev.GetCol(); << _T(" col ") << ev.GetCol();

View File

@@ -803,9 +803,10 @@ void MyFrame::OnPageChange(wxNotebookEvent& WXUNUSED(event))
void MyTimer::Notify() void MyTimer::Notify()
{ {
if (!m_frame->m_notebook->GetCurrentPage()) return; if (!m_frame->m_notebook->GetCurrentPage()) return;
wxMediaCtrl* m_mediactrl = ((MyNotebookPage*)m_frame->m_notebook->GetCurrentPage())->m_mediactrl;
wxSlider* m_slider = ((MyNotebookPage*)m_frame->m_notebook->GetCurrentPage())->m_slider; wxMediaCtrl* m_mediactrl = ((MyNotebookPage*)m_frame->m_notebook->GetCurrentPage())->m_mediactrl;
if (!m_mediactrl) return; wxSlider* m_slider = ((MyNotebookPage*)m_frame->m_notebook->GetCurrentPage())->m_slider;
if (!m_mediactrl) return;
long lPosition = (long)( m_mediactrl->Tell() / 1000 ); long lPosition = (long)( m_mediactrl->Tell() / 1000 );
m_slider->SetValue(lPosition); m_slider->SetValue(lPosition);

View File

@@ -536,7 +536,7 @@ void ComboboxWidgetsPage::OnComboText(wxCommandEvent& event)
if (event.GetEventType() == wxEVT_COMMAND_TEXT_ENTER) if (event.GetEventType() == wxEVT_COMMAND_TEXT_ENTER)
wxLogMessage(_T("Combobox enter pressed (now '%s')"), s.c_str()); wxLogMessage(_T("Combobox enter pressed (now '%s')"), s.c_str());
else else
wxLogMessage(_T("Combobox text changed (now '%s')"), s.c_str()); wxLogMessage(_T("Combobox text changed (now '%s')"), s.c_str());
} }
void ComboboxWidgetsPage::OnComboBox(wxCommandEvent& event) void ComboboxWidgetsPage::OnComboBox(wxCommandEvent& event)