/[svn]/qsampler/trunk/src/qsamplerChannel.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 265 by capela, Wed Sep 29 16:05:24 2004 UTC revision 400 by capela, Mon Feb 21 15:02:58 2005 UTC
# Line 1  Line 1 
1  // qsamplerChannel.cpp  // qsamplerChannel.cpp
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2003-2004, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2003-2005, rncbc aka Rui Nuno Capela. All rights reserved.
5    
6     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
7     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 22  Line 22 
22  #include "qsamplerChannel.h"  #include "qsamplerChannel.h"
23    
24  #include "qsamplerMainForm.h"  #include "qsamplerMainForm.h"
25    #include "qsamplerChannelForm.h"
26    
27  #include "config.h"  #include "config.h"
28    
29    #include <qfileinfo.h>
30    
31    #ifdef CONFIG_LIBGIG
32    #include "gig.h"
33    #endif
34    
35    #define QSAMPLER_INSTRUMENT_MAX 8
36    
37    
38  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
39  // qsamplerChannel - Sampler channel structure.  // qsamplerChannel - Sampler channel structure.
# Line 36  qsamplerChannel::qsamplerChannel ( qsamp Line 45  qsamplerChannel::qsamplerChannel ( qsamp
45      m_pMainForm  = pMainForm;      m_pMainForm  = pMainForm;
46      m_iChannelID = iChannelID;      m_iChannelID = iChannelID;
47    
48  //  m_sEngineName       = QObject::tr("(No engine)");  //  m_sEngineName       = noEngineName();
49  //  m_sInstrumentFile   = QObject::tr("(No instrument)");  //  m_sInstrumentName   = noInstrumentName();
50    //  m_sInstrumentFile   = m_sInstrumentName;
51      m_iInstrumentNr     = -1;      m_iInstrumentNr     = -1;
52      m_iInstrumentStatus = -1;      m_iInstrumentStatus = -1;
53      m_sMidiDriver       = "Alsa";   // DEPRECATED.      m_sMidiDriver       = "Alsa";   // DEPRECATED.
# Line 76  lscp_client_t *qsamplerChannel::client ( Line 86  lscp_client_t *qsamplerChannel::client (
86  }  }
87    
88    
89    // Create a new sampler channel, if not already.
90    bool qsamplerChannel::addChannel (void)
91    {
92        if (client() == NULL)
93            return false;
94    
95        // Are we a new channel?
96        if (m_iChannelID < 0) {
97            m_iChannelID = ::lscp_add_channel(client());
98            if (m_iChannelID < 0) {
99                appendMessagesClient("lscp_add_channel");
100                appendMessagesError(QObject::tr("Could not create the new channel.\n\nSorry."));
101            }   // Otherwise it's created...
102            else appendMessages(QObject::tr("Channel %1 created.").arg(m_iChannelID));
103        }
104    
105        // Return whether we're a valid channel...
106        return (m_iChannelID >= 0);
107    }
108    
109    
110    // Remove sampler channel.
111    bool qsamplerChannel::removeChannel (void)
112    {
113        if (client() == NULL)
114            return false;
115    
116        // Are we an existing channel?
117        if (m_iChannelID >= 0) {
118            if (::lscp_remove_channel(client(), m_iChannelID) != LSCP_OK) {
119                appendMessagesClient("lscp_remove_channel");
120                appendMessagesError(QObject::tr("Could not remove channel.\n\nSorry."));
121            } else {
122                // Otherwise it's removed.
123                appendMessages(QObject::tr("Channel %1 removed.").arg(m_iChannelID));
124                m_iChannelID = -1;
125            }
126        }
127        
128        // Return whether we've removed the channel...
129        return (m_iChannelID < 0);
130    }
131    
132    
133  // Channel-ID (aka Sammpler-Channel) accessors.  // Channel-ID (aka Sammpler-Channel) accessors.
134  int qsamplerChannel::channelID (void)  int qsamplerChannel::channelID (void)
135  {  {
# Line 88  void qsamplerChannel::setChannelID ( int Line 142  void qsamplerChannel::setChannelID ( int
142  }  }
143    
144    
145    // Readable channel name.
146    QString qsamplerChannel::channelName (void)
147    {
148        return (m_iChannelID < 0 ? QObject::tr("New Channel") : QObject::tr("Channel %1").arg(m_iChannelID));
149    }
150    
151    
152  // Engine name accessors.  // Engine name accessors.
153  QString& qsamplerChannel::engineName (void)  QString& qsamplerChannel::engineName (void)
154  {  {
# Line 96  QString& qsamplerChannel::engineName (vo Line 157  QString& qsamplerChannel::engineName (vo
157    
158  bool qsamplerChannel::loadEngine ( const QString& sEngineName )  bool qsamplerChannel::loadEngine ( const QString& sEngineName )
159  {  {
160      if (client() == NULL)      if (client() == NULL || m_iChannelID < 0)
161          return false;          return false;
162            if (m_iInstrumentStatus == 100 && m_sEngineName == sEngineName)
163                return true;
164                
165      if (::lscp_load_engine(client(), sEngineName.latin1(), m_iChannelID) != LSCP_OK) {      if (::lscp_load_engine(client(), sEngineName.latin1(), m_iChannelID) != LSCP_OK) {
166          appendMessagesClient("lscp_load_engine");          appendMessagesClient("lscp_load_engine");
167          return false;          return false;
# Line 121  int qsamplerChannel::instrumentNr (void) Line 184  int qsamplerChannel::instrumentNr (void)
184      return m_iInstrumentNr;      return m_iInstrumentNr;
185  }  }
186    
187    // Instrument name accessor.
188    QString& qsamplerChannel::instrumentName (void)
189    {
190        return m_sInstrumentName;
191    }
192    
193  // Instrument status accessor.  // Instrument status accessor.
194  int qsamplerChannel::instrumentStatus (void)  int qsamplerChannel::instrumentStatus (void)
195  {  {
# Line 130  int qsamplerChannel::instrumentStatus (v Line 199  int qsamplerChannel::instrumentStatus (v
199  // Instrument file loader.  // Instrument file loader.
200  bool qsamplerChannel::loadInstrument ( const QString& sInstrumentFile, int iInstrumentNr )  bool qsamplerChannel::loadInstrument ( const QString& sInstrumentFile, int iInstrumentNr )
201  {  {
202      if (client() == NULL)      if (client() == NULL || m_iChannelID < 0)
203          return false;          return false;
204            if (!isInstrumentFile(sInstrumentFile))
205                return false;
206            if (m_iInstrumentStatus == 100 && m_sInstrumentFile == sInstrumentFile && m_iInstrumentNr == iInstrumentNr)
207                return true;
208    
209      if (::lscp_load_instrument_non_modal(client(), sInstrumentFile.latin1(), iInstrumentNr, m_iChannelID) != LSCP_OK) {      if (::lscp_load_instrument_non_modal(client(), sInstrumentFile.latin1(), iInstrumentNr, m_iChannelID) != LSCP_OK) {
210          appendMessagesClient("lscp_load_instrument");          appendMessagesClient("lscp_load_instrument");
211          return false;          return false;
212      }      }
213    
214        return setInstrument(sInstrumentFile, iInstrumentNr);
215    }
216    
217    
218    // Special instrument file/name/number settler.
219    bool qsamplerChannel::setInstrument ( const QString& sInstrumentFile, int iInstrumentNr )
220    {
221      m_sInstrumentFile = sInstrumentFile;      m_sInstrumentFile = sInstrumentFile;
222      m_iInstrumentNr = iInstrumentNr;      m_iInstrumentNr = iInstrumentNr;
223    #ifdef CONFIG_INSTRUMENT_NAME
224        m_sInstrumentName = QString::null;  // We'll get it, maybe later, on channel_info...
225    #else
226        m_sInstrumentName = getInstrumentName(sInstrumentFile, iInstrumentNr, true);
227    #endif
228      m_iInstrumentStatus = 0;      m_iInstrumentStatus = 0;
229    
230      return true;          return true;
231  }  }
232    
233    
# Line 154  QString& qsamplerChannel::midiDriver (vo Line 239  QString& qsamplerChannel::midiDriver (vo
239    
240  bool qsamplerChannel::setMidiDriver ( const QString& sMidiDriver )  bool qsamplerChannel::setMidiDriver ( const QString& sMidiDriver )
241  {  {
242      if (client() == NULL)      if (client() == NULL || m_iChannelID < 0)
243          return false;          return false;
244            if (m_iInstrumentStatus == 100 && m_sMidiDriver == sMidiDriver)
245                return true;
246    
247      if (::lscp_set_channel_midi_type(client(), m_iChannelID, sMidiDriver.latin1()) != LSCP_OK) {      if (::lscp_set_channel_midi_type(client(), m_iChannelID, sMidiDriver.latin1()) != LSCP_OK) {
248          appendMessagesClient("lscp_set_channel_midi_type");          appendMessagesClient("lscp_set_channel_midi_type");
# Line 175  int qsamplerChannel::midiDevice (void) Line 262  int qsamplerChannel::midiDevice (void)
262    
263  bool qsamplerChannel::setMidiDevice ( int iMidiDevice )  bool qsamplerChannel::setMidiDevice ( int iMidiDevice )
264  {  {
265      if (client() == NULL)      if (client() == NULL || m_iChannelID < 0)
266          return false;          return false;
267            if (m_iInstrumentStatus == 100 && m_iMidiDevice == iMidiDevice)
268                return true;
269    
270      if (::lscp_set_channel_midi_device(client(), m_iChannelID, iMidiDevice) != LSCP_OK) {      if (::lscp_set_channel_midi_device(client(), m_iChannelID, iMidiDevice) != LSCP_OK) {
271          appendMessagesClient("lscp_set_channel_midi_device");          appendMessagesClient("lscp_set_channel_midi_device");
# Line 196  int qsamplerChannel::midiPort (void) Line 285  int qsamplerChannel::midiPort (void)
285    
286  bool qsamplerChannel::setMidiPort ( int iMidiPort )  bool qsamplerChannel::setMidiPort ( int iMidiPort )
287  {  {
288      if (client() == NULL)      if (client() == NULL || m_iChannelID < 0)
289          return false;          return false;
290            if (m_iInstrumentStatus == 100 && m_iMidiPort == iMidiPort)
291                return true;
292    
293      if (::lscp_set_channel_midi_port(client(), m_iChannelID, iMidiPort) != LSCP_OK) {      if (::lscp_set_channel_midi_port(client(), m_iChannelID, iMidiPort) != LSCP_OK) {
294          appendMessagesClient("lscp_set_channel_midi_port");          appendMessagesClient("lscp_set_channel_midi_port");
# Line 217  int qsamplerChannel::midiChannel (void) Line 308  int qsamplerChannel::midiChannel (void)
308    
309  bool qsamplerChannel::setMidiChannel ( int iMidiChannel )  bool qsamplerChannel::setMidiChannel ( int iMidiChannel )
310  {  {
311      if (client() == NULL)      if (client() == NULL || m_iChannelID < 0)
312          return false;          return false;
313            if (m_iInstrumentStatus == 100 && m_iMidiChannel == iMidiChannel)
314                return true;
315    
316      if (::lscp_set_channel_midi_channel(client(), m_iChannelID, iMidiChannel) != LSCP_OK) {      if (::lscp_set_channel_midi_channel(client(), m_iChannelID, iMidiChannel) != LSCP_OK) {
317          appendMessagesClient("lscp_set_channel_midi_channel");          appendMessagesClient("lscp_set_channel_midi_channel");
# Line 238  int qsamplerChannel::audioDevice (void) Line 331  int qsamplerChannel::audioDevice (void)
331    
332  bool qsamplerChannel::setAudioDevice ( int iAudioDevice )  bool qsamplerChannel::setAudioDevice ( int iAudioDevice )
333  {  {
334      if (client() == NULL)      if (client() == NULL || m_iChannelID < 0)
335          return false;          return false;
336            if (m_iInstrumentStatus == 100 && m_iAudioDevice == iAudioDevice)
337                return true;
338    
339      if (::lscp_set_channel_audio_device(client(), m_iChannelID, iAudioDevice) != LSCP_OK) {      if (::lscp_set_channel_audio_device(client(), m_iChannelID, iAudioDevice) != LSCP_OK) {
340          appendMessagesClient("lscp_set_channel_audio_device");          appendMessagesClient("lscp_set_channel_audio_device");
# Line 259  QString& qsamplerChannel::audioDriver (v Line 354  QString& qsamplerChannel::audioDriver (v
354    
355  bool qsamplerChannel::setAudioDriver ( const QString& sAudioDriver )  bool qsamplerChannel::setAudioDriver ( const QString& sAudioDriver )
356  {  {
357      if (client() == NULL)      if (client() == NULL || m_iChannelID < 0)
358          return false;          return false;
359            if (m_iInstrumentStatus == 100 && m_sAudioDriver == sAudioDriver)
360                return true;
361    
362      if (::lscp_set_channel_audio_type(client(), m_iChannelID, sAudioDriver.latin1()) != LSCP_OK) {      if (::lscp_set_channel_audio_type(client(), m_iChannelID, sAudioDriver.latin1()) != LSCP_OK) {
363          appendMessagesClient("lscp_set_channel_audio_type");          appendMessagesClient("lscp_set_channel_audio_type");
# Line 280  float qsamplerChannel::volume (void) Line 377  float qsamplerChannel::volume (void)
377    
378  bool qsamplerChannel::setVolume ( float fVolume )  bool qsamplerChannel::setVolume ( float fVolume )
379  {  {
380      if (client() == NULL)      if (client() == NULL || m_iChannelID < 0)
381          return false;          return false;
382            if (m_iInstrumentStatus == 100 && m_fVolume == fVolume)
383                return true;
384    
385      if (::lscp_set_channel_volume(client(), m_iChannelID, fVolume) != LSCP_OK) {      if (::lscp_set_channel_volume(client(), m_iChannelID, fVolume) != LSCP_OK) {
386          appendMessagesClient("lscp_set_channel_volume");          appendMessagesClient("lscp_set_channel_volume");
# Line 293  bool qsamplerChannel::setVolume ( float Line 392  bool qsamplerChannel::setVolume ( float
392  }  }
393    
394    
395    // Istrument name remapper.
396    void qsamplerChannel::updateInstrumentName (void)
397    {
398    #ifndef CONFIG_INSTRUMENT_NAME
399            m_sInstrumentName = getInstrumentName(m_sInstrumentFile,
400                    m_iInstrumentNr, (options() && options()->bInstrumentNames));
401    #endif
402    }
403    
404    
405  // Update whole channel info state.  // Update whole channel info state.
406  void qsamplerChannel::updateChannelInfo (void)  bool qsamplerChannel::updateChannelInfo (void)
407  {  {
408      // Check if we're up and connected.      if (client() == NULL || m_iChannelID < 0)
409      if (client() == NULL)          return false;
         return;  
410    
411      // Read channel information.      // Read channel information.
412      lscp_channel_info_t *pChannelInfo = ::lscp_get_channel_info(client(), m_iChannelID);      lscp_channel_info_t *pChannelInfo = ::lscp_get_channel_info(client(), m_iChannelID);
413      if (pChannelInfo == NULL) {      if (pChannelInfo == NULL) {
414          appendMessagesClient("lscp_get_channel_info");          appendMessagesClient("lscp_get_channel_info");
415          appendMessagesError(QObject::tr("Could not get channel information.\n\nSorry."));          appendMessagesError(QObject::tr("Could not get channel information.\n\nSorry."));
416      } else {          return false;
         // Cache in channel information.  
         m_sEngineName       = pChannelInfo->engine_name;  
         m_sInstrumentFile   = pChannelInfo->instrument_file;  
         m_iInstrumentNr     = pChannelInfo->instrument_nr;  
         m_iInstrumentStatus = pChannelInfo->instrument_status;  
         m_iMidiDevice       = pChannelInfo->midi_device;  
         m_iMidiPort         = pChannelInfo->midi_port;  
         m_iMidiChannel      = pChannelInfo->midi_channel;  
         m_iAudioDevice      = pChannelInfo->audio_device;  
         m_fVolume           = pChannelInfo->volume;  
         // Some sanity checks.  
         if (m_sEngineName == "NONE")  
             m_sEngineName = QString::null;  
         if (m_sInstrumentFile == "NONE")  
             m_sInstrumentFile = QString::null;  
417      }      }
418    
419    #ifdef CONFIG_INSTRUMENT_NAME
420            // We got all actual instrument datum...
421            m_sInstrumentFile = pChannelInfo->instrument_file;
422            m_iInstrumentNr   = pChannelInfo->instrument_nr;
423            m_sInstrumentName = pChannelInfo->instrument_name;
424    #else
425            // First, check if intrument name has changed,
426            // taking care that instrument name lookup might be expensive,
427            // so we better make it only once and when really needed...
428            if ((m_sInstrumentFile != pChannelInfo->instrument_file) ||
429                    (m_iInstrumentNr   != pChannelInfo->instrument_nr)) {
430                    m_sInstrumentFile = pChannelInfo->instrument_file;
431                    m_iInstrumentNr   = pChannelInfo->instrument_nr;
432                    updateInstrumentName();
433            }
434    #endif
435        // Cache in other channel information.
436        m_sEngineName       = pChannelInfo->engine_name;
437        m_iInstrumentStatus = pChannelInfo->instrument_status;
438        m_iMidiDevice       = pChannelInfo->midi_device;
439        m_iMidiPort         = pChannelInfo->midi_port;
440        m_iMidiChannel      = pChannelInfo->midi_channel;
441        m_iAudioDevice      = pChannelInfo->audio_device;
442        m_fVolume           = pChannelInfo->volume;
443        // Some sanity checks.
444        if (m_sEngineName == "NONE")
445            m_sEngineName = QString::null;
446        if (m_sInstrumentFile == "NONE") {
447            m_sInstrumentFile = QString::null;
448            m_sInstrumentName = QString::null;
449            }
450    
451        return true;
452  }  }
453    
454    
455  // Reset channel method.  // Reset channel method.
456  void qsamplerChannel::resetChannel (void)  bool qsamplerChannel::channelReset (void)
457  {  {
458      // Check if we're up and connected.      if (client() == NULL || m_iChannelID < 0)
459      if (client() == NULL)          return false;
         return;  
460    
461      if (::lscp_reset_channel(client(), m_iChannelID) != LSCP_OK)      if (::lscp_reset_channel(client(), m_iChannelID) != LSCP_OK) {
462          appendMessagesClient("lscp_reset_channel");          appendMessagesClient("lscp_reset_channel");
463      else          return false;
464          appendMessages(QObject::tr("Channel %1 reset.").arg(m_iChannelID));      }
465    
466        appendMessages(QObject::tr("Channel %1 reset.").arg(m_iChannelID));
467        return true;
468    }
469    
470    
471    // Channel setup dialog form.
472    bool qsamplerChannel::channelSetup ( QWidget *pParent )
473    {
474        bool bResult = false;
475    
476        qsamplerChannelForm *pChannelForm = new qsamplerChannelForm(pParent);
477        if (pChannelForm) {
478            pChannelForm->setup(this);
479            bResult = pChannelForm->exec();
480            delete pChannelForm;
481        }
482    
483        return bResult;
484  }  }
485    
486    
487  // Redirected messages output methods.  // Redirected messages output methods.
488  void qsamplerChannel::appendMessages( const QString& s )  void qsamplerChannel::appendMessages( const QString& s )
489  {  {
490      m_pMainForm->appendMessages(s);      if (m_pMainForm) m_pMainForm->appendMessages(s);
491  }  }
492    
493  void qsamplerChannel::appendMessagesColor( const QString& s, const QString& c )  void qsamplerChannel::appendMessagesColor( const QString& s, const QString& c )
494  {  {
495      m_pMainForm->appendMessagesColor(s, c);      if (m_pMainForm) m_pMainForm->appendMessagesColor(s, c);
496  }  }
497    
498  void qsamplerChannel::appendMessagesText( const QString& s )  void qsamplerChannel::appendMessagesText( const QString& s )
499  {  {
500      m_pMainForm->appendMessagesText(s);      if (m_pMainForm) m_pMainForm->appendMessagesText(s);
501  }  }
502    
503  void qsamplerChannel::appendMessagesError( const QString& s )  void qsamplerChannel::appendMessagesError( const QString& s )
504  {  {
505      m_pMainForm->appendMessagesError(s);      if (m_pMainForm) m_pMainForm->appendMessagesError(s);
506  }  }
507    
508  void qsamplerChannel::appendMessagesClient( const QString& s )  void qsamplerChannel::appendMessagesClient( const QString& s )
509  {  {
510      m_pMainForm->appendMessagesClient(s);      if (m_pMainForm) m_pMainForm->appendMessagesClient(s);
511    }
512    
513    
514    // Context menu event handler.
515    void qsamplerChannel::contextMenuEvent( QContextMenuEvent *pEvent )
516    {
517        if (m_pMainForm) m_pMainForm->contextMenuEvent(pEvent);
518    }
519    
520    
521    // FIXME: Check whether a given file is an instrument file.
522    bool qsamplerChannel::isInstrumentFile ( const QString& sInstrumentFile )
523    {
524            bool bResult = false;
525    
526            QFile file(sInstrumentFile);
527            if (file.open(IO_ReadOnly)) {
528                    char achHeader[4];
529                    if (file.readBlock(achHeader, 4)) {
530                            bResult = (achHeader[0] == 'R'
531                                            && achHeader[1] == 'I'
532                                            && achHeader[2] == 'F'
533                                            && achHeader[3] == 'F');
534                    }
535                    file.close();
536            }
537    
538            return bResult;
539    }
540    
541    
542    // Retrieve the instrument list of a instrument file (.gig).
543    QStringList qsamplerChannel::getInstrumentList( const QString& sInstrumentFile,
544            bool bInstrumentNames )
545    {
546        QString sInstrumentName = QFileInfo(sInstrumentFile).fileName();
547        QStringList instlist;
548    
549        if (isInstrumentFile(sInstrumentFile)) {
550    #ifdef CONFIG_LIBGIG
551                    if (bInstrumentNames) {
552                    RIFF::File *pRiff = new RIFF::File(sInstrumentFile);
553                    gig::File  *pGig  = new gig::File(pRiff);
554                    gig::Instrument *pInstrument = pGig->GetFirstInstrument();
555                    while (pInstrument) {
556                        instlist.append((pInstrument->pInfo)->Name.c_str());
557                        pInstrument = pGig->GetNextInstrument();
558                    }
559                    delete pGig;
560                    delete pRiff;
561                    }
562                    else
563    #endif
564            for (int iInstrumentNr = 0; iInstrumentNr < QSAMPLER_INSTRUMENT_MAX; iInstrumentNr++)
565                instlist.append(sInstrumentName + " [" + QString::number(iInstrumentNr) + "]");
566        }
567        else instlist.append(noInstrumentName());
568    
569        return instlist;
570    }
571    
572    
573    // Retrieve the spacific instrument name of a instrument file (.gig), given its index.
574    QString qsamplerChannel::getInstrumentName( const QString& sInstrumentFile,
575            int iInstrumentNr, bool bInstrumentNames )
576    {
577        QString sInstrumentName;
578    
579        if (isInstrumentFile(sInstrumentFile)) {
580                    sInstrumentName = QFileInfo(sInstrumentFile).fileName();
581    #ifdef CONFIG_LIBGIG
582                    if (bInstrumentNames) {
583                    RIFF::File *pRiff = new RIFF::File(sInstrumentFile);
584                    gig::File  *pGig  = new gig::File(pRiff);
585                    int iIndex = 0;
586                    gig::Instrument *pInstrument = pGig->GetFirstInstrument();
587                    while (pInstrument) {
588                        if (iIndex == iInstrumentNr) {
589                            sInstrumentName = (pInstrument->pInfo)->Name.c_str();
590                            break;
591                        }
592                        iIndex++;
593                        pInstrument = pGig->GetNextInstrument();
594                    }
595                    delete pGig;
596                    delete pRiff;
597                    }
598                    else
599    #endif
600            sInstrumentName += " [" + QString::number(iInstrumentNr) + "]";
601        }
602        else sInstrumentName = noInstrumentName();
603    
604        return sInstrumentName;
605    }
606    
607    
608    // Common invalid name-helpers.
609    QString qsamplerChannel::noEngineName (void)
610    {
611            return QObject::tr("(No engine)");
612    }
613    
614    QString qsamplerChannel::noInstrumentName (void)
615    {
616            return QObject::tr("(No instrument)");
617  }  }
618    
619    

Legend:
Removed from v.265  
changed lines
  Added in v.400

  ViewVC Help
Powered by ViewVC