~ubuntu-branches/ubuntu/trusty/lmms/trusty

« back to all changes in this revision

Viewing changes to plugins/vst_effect/VstEffectControls.cpp

  • Committer: Package Import Robot
  • Author(s): Israel Dahl
  • Date: 2013-02-28 20:58:18 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20130228205818-spbc545gwofxkkif
Tags: 0.4.14-0ubuntu1
* New upstream release.
  - Graphically enhanced AudioFileProcessor plugin
  - Fixed bug with magnetic knobs
  - Fixed various crashes
  - Completely revised VST support (improved VST effect support,
  timesync support and many more)
  - Added multitrack export
  - Added Hydrogen song import plugin
  - Fixed wrong chords
  - Improvements to automation framework
* debian/lmms.install debian/lmms-common.install
  - moved /usr/share/applications to lmms.install
* debian/control
  - updated Standards-Version to 3.9.4
* debian/copyright
  - updated to make current
* debian/rules
  - fixed Lintian errors during build

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
        if ( m_effect->m_plugin != NULL ) {
171
171
                m_effect->m_plugin->savePreset( );
172
172
/*              bool converted;
173
 
                QString str = m_vi->m_plugin->presetString().section("/", 0, 0);
 
173
                QString str = m_vi->m_plugin->currentProgramName().section("/", 0, 0);
174
174
                if (str != "")
175
175
                        lastPosInMenu = str.toInt(&converted, 10) - 1;
176
176
                QWidget::update();*/
185
185
{
186
186
 
187
187
        // get all presets -
188
 
        if ( m_effect->m_plugin != NULL ) {
189
 
                m_effect->m_plugin->loadPrograms( 1 );
 
188
        if ( m_effect->m_plugin != NULL )
 
189
        {
 
190
                m_effect->m_plugin->loadProgramNames();
190
191
                ///QWidget::update();
191
192
 
192
 
                QString str = m_effect->m_plugin->presetsString();
 
193
                QString str = m_effect->m_plugin->allProgramNames();
193
194
 
194
195
                QStringList list1 = str.split("|");
195
196
 
223
224
        if ( m_effect->m_plugin != NULL ) {
224
225
                m_effect->m_plugin->openPreset( );
225
226
                bool converted;
226
 
                QString str = m_effect->m_plugin->presetString().section("/", 0, 0);
 
227
                QString str = m_effect->m_plugin->currentProgramName().section("/", 0, 0);
227
228
                if (str != "")
228
229
                        lastPosInMenu = str.toInt(&converted, 10) - 1;
229
230
                //QWidget::update();
238
239
{
239
240
 
240
241
        if ( m_effect->m_plugin != NULL ) {
241
 
                m_effect->m_plugin->rollPreset( 1 );
 
242
                m_effect->m_plugin->rotateProgram( 1 );
242
243
                bool converted;
243
 
                QString str = m_effect->m_plugin->presetString().section("/", 0, 0);
 
244
                QString str = m_effect->m_plugin->currentProgramName().section("/", 0, 0);
244
245
                if (str != "")
245
246
                        lastPosInMenu = str.toInt(&converted, 10) - 1;
246
247
                //QWidget::update();
254
255
{
255
256
 
256
257
        if ( m_effect->m_plugin != NULL ) {
257
 
                m_effect->m_plugin->rollPreset( -1 );
 
258
                m_effect->m_plugin->rotateProgram( -1 );
258
259
                bool converted;
259
 
                QString str = m_effect->m_plugin->presetString().section("/", 0, 0);
 
260
                QString str = m_effect->m_plugin->currentProgramName().section("/", 0, 0);
260
261
                if (str != "")
261
262
                        lastPosInMenu = str.toInt(&converted, 10) - 1;
262
263
                //QWidget::update();
273
274
     if (action)
274
275
         if ( m_effect->m_plugin != NULL ) {
275
276
                lastPosInMenu = action->data().toInt();
276
 
                m_effect->m_plugin->rollPreset( lastPosInMenu + 2 );
 
277
                m_effect->m_plugin->setProgram( lastPosInMenu );
277
278
                //QWidget::update();
278
279
         }
279
280
}