Subversion Repositories svn.mios32

Rev

Rev 1726 | Rev 1759 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1726 Rev 1734
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 1726 2013-03-28 21:20:34Z tk $
2
// $Id: MiosFileBrowser.cpp 1734 2013-04-05 21:19:53Z tk $
3
/*
3
/*
4
 * File browser for MIOS32 applications
4
 * File browser for MIOS32 applications
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
7
 *
7
 *
Line 538... Line 538...
538
                                    T("Found binary data!"),
538
                                    T("Found binary data!"),
539
                                    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!"),
540
                                    T("Ok"));
540
                                    T("Ok"));
541
#endif
541
#endif
542
    }
542
    }
-
 
543
    textEditor->setCaretVisible(true); // TK: required since Juce2 - I don't know why...
543
}
544
}
544
545
545
void MiosFileBrowser::openHexEditor(const Array<uint8>& data)
546
void MiosFileBrowser::openHexEditor(const Array<uint8>& data)
546
{
547
{
547
    // transfer data to both editors
548
    // transfer data to both editors
Line 550... Line 551...
550
    disableFileButtons();
551
    disableFileButtons();
551
    enableEditorButtons();
552
    enableEditorButtons();
552
553
553
    hexEditor->setVisible(true);
554
    hexEditor->setVisible(true);
554
    hexEditor->setReadOnly(false);
555
    hexEditor->setReadOnly(false);
-
 
556
-
 
557
    hexEditor->setCaretVisible(true); // TK: required since Juce2 - I don't know why...
555
}
558
}
556
559
557
//==============================================================================
560
//==============================================================================
558
void MiosFileBrowser::requestUpdateTreeView(void)
561
void MiosFileBrowser::requestUpdateTreeView(void)
559
{
562
{