Rev 1724 | Rev 1734 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1724 | Rev 1726 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
|
1 | /* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
|
2 | // $Id: MiosFileBrowser.cpp |
2 | // $Id: MiosFileBrowser.cpp 1726 2013-03-28 21:20:34Z tk $
|
3 | /*
|
3 | /*
|
4 | * File browser for MIOS32 applications
|
4 | * File browser for MIOS32 applications
|
5 | *
|
5 | *
|
6 | * ==========================================================================
|
6 | * ==========================================================================
|
7 | *
|
7 | *
|
Line 530... | Line 530... | ||
530 | // make text editor visible and enable read access if no binary data
|
530 | // make text editor visible and enable read access if no binary data
|
531 | textEditor->setVisible(true); |
531 | textEditor->setVisible(true); |
532 | if( !hasBinaryData ) { |
532 | if( !hasBinaryData ) { |
533 | textEditor->setReadOnly(false); |
533 | textEditor->setReadOnly(false); |
534 | } else { |
534 | } else { |
- | 535 | // TK: crashes Juce2 - it seems that we are not allowed to use an AlertWindow from the MiosStudio::timerCallback() thread
|
|
- | 536 | #if 0
|
|
535 | AlertWindow::showMessageBox(AlertWindow::WarningIcon, |
537 | AlertWindow::showMessageBox(AlertWindow::WarningIcon, |
536 | T("Found binary data!"), |
538 | T("Found binary data!"), |
537 | T("This file contains binary data, therefore it\nisn't possible modify it with the text editor!\nPlease use the hex editor instead!"), |
539 | T("This file contains binary data, therefore it\nisn't possible modify it with the text editor!\nPlease use the hex editor instead!"), |
538 | T("Ok")); |
540 | T("Ok")); |
- | 541 | #endif
|
|
539 | }
|
542 | }
|
540 | }
|
543 | }
|
541 | 544 | ||
542 | void MiosFileBrowser::openHexEditor(const Array<uint8>& data) |
545 | void MiosFileBrowser::openHexEditor(const Array<uint8>& data) |
543 | {
|
546 | {
|