diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-16 21:11:57 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-16 21:12:49 +0200 |
commit | ad265610a696852968cb35bd7586e96c7e6029c9 (patch) | |
tree | 8fc3d3973fa5421bb33cc75fba38a209dcd89196 /dialog.cpp | |
parent | e933325230a34cdede1cf52067aadf0ab8a77d5b (diff) | |
download | alpine-usb-creator-ad265610a696852968cb35bd7586e96c7e6029c9.tar.bz2 alpine-usb-creator-ad265610a696852968cb35bd7586e96c7e6029c9.tar.xz |
style: Use tabs instead of spaces
Diffstat (limited to 'dialog.cpp')
-rw-r--r-- | dialog.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
@@ -11,65 +11,65 @@ Dialog::Dialog(wxWindow *parent) : DialogUI(parent) { - RefreshDrives(); + RefreshDrives(); } void Dialog::RefreshDrives(void) { #ifdef __WINDOWS__ // SetErrorMode(SEM_NOOPENFILEERRORBOX); - wchar_t drives[256], *pdrv = drives; - memset(drives, 0, sizeof(drives)); - GetLogicalDriveStrings(sizeof(drives), drives); - m_target->Clear(); - while(pdrv[0] != '\0') { + wchar_t drives[256], *pdrv = drives; + memset(drives, 0, sizeof(drives)); + GetLogicalDriveStrings(sizeof(drives), drives); + m_target->Clear(); + while(pdrv[0] != '\0') { // if (GetDriveType(pdrv) == DRIVE_REMOVABLE) { - m_target->Append(pdrv); + m_target->Append(pdrv); // } - pdrv += lstrlen(pdrv) + 1; - } - + pdrv += lstrlen(pdrv) + 1; + } + #else - m_target->Clear(); - m_target->Append(wxT("~/tmp/alpine")); + m_target->Clear(); + m_target->Append(wxT("~/tmp/alpine")); #endif - if (!m_target->IsEmpty()) - m_target->SetSelection(0); + if (!m_target->IsEmpty()) + m_target->SetSelection(0); } void Dialog::OnRefreshDrives(wxCommandEvent &event) { - RefreshDrives(); - UpdateStartButton(); + RefreshDrives(); + UpdateStartButton(); } void Dialog::OnStartButton(wxCommandEvent &event) { - wxMessageBox(wxT("To be implemented")); + wxMessageBox(wxT("To be implemented")); } void Dialog::OnCancelButton(wxCommandEvent &event) { - Close(); + Close(); } void Dialog::UpdateStartButton(void) { - if ((m_target->GetSelection() != wxNOT_FOUND) - && wxFileExists(m_iso_picker->GetPath())) { - m_start_button->Enable(); - } else { - m_start_button->Disable(); - } + if ((m_target->GetSelection() != wxNOT_FOUND) + && wxFileExists(m_iso_picker->GetPath())) { + m_start_button->Enable(); + } else { + m_start_button->Disable(); + } } void Dialog::OnIsoChange(wxFileDirPickerEvent &event) { - UpdateStartButton(); + UpdateStartButton(); } void Dialog::OnTargetChange(wxCommandEvent &event) { - UpdateStartButton(); + UpdateStartButton(); } |