Subversion Repositories svn.mios32

Rev

Rev 1724 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1724 Rev 2180
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: SysexLibrarian.cpp 1724 2013-03-28 20:23:40Z tk $
2
// $Id: SysexLibrarian.cpp 2180 2015-06-14 19:21:59Z tk $
3
/*
3
/*
4
 * SysEx Librarian Window
4
 * SysEx Librarian Window
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
7
 *
7
 *
Line 569... Line 569...
569
        sysexLibrarian->sysexLibrarianAssemblyBank->initBank(spec);
569
        sysexLibrarian->sysexLibrarianAssemblyBank->initBank(spec);
570
        bankSelectSlider->setRange(1, miosStudio->sysexPatchDb->getNumBanks(spec), 1);
570
        bankSelectSlider->setRange(1, miosStudio->sysexPatchDb->getNumBanks(spec), 1);
571
571
572
        String bufferName(miosStudio->sysexPatchDb->getBufferName(spec));
572
        String bufferName(miosStudio->sysexPatchDb->getBufferName(spec));
573
        if( bufferName.isEmpty() )
573
        if( bufferName.isEmpty() )
574
            bufferLabel->setText(bufferName, true); // empty...
574
            bufferLabel->setText(bufferName, sendNotification); // empty...
575
        else
575
        else
576
            bufferLabel->setText(bufferName + String(T(":")), true); // empty...
576
            bufferLabel->setText(bufferName + String(T(":")), sendNotification); // empty...
577
577
578
        int numBuffers = miosStudio->sysexPatchDb->getNumBuffers(spec);
578
        int numBuffers = miosStudio->sysexPatchDb->getNumBuffers(spec);
579
        if( numBuffers ) {
579
        if( numBuffers ) {
580
            bufferSlider->setRange(1, numBuffers, 1);
580
            bufferSlider->setRange(1, numBuffers, 1);
581
            bufferSlider->setEnabled(true);
581
            bufferSlider->setEnabled(true);