~ubuntu-branches/ubuntu/wily/muse/wily-proposed

« back to all changes in this revision

Viewing changes to muse/widgets/mtrackinfo.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-12-03 17:12:54 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20111203171254-28b1j4lpb46r5jtl
Tags: 2.0~rc1-1
* New upstream RC release.
* Refresh patches, remove those patches not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
//  MusE
3
3
//  Linux Music Editor
4
4
//  (C) Copyright 2010 Werner Schweer and others (ws@seh.de)
 
5
//  (C) Copyright 2011 Tim E. Real (terminator356 on sourceforge)
 
6
//
 
7
//  This program is free software; you can redistribute it and/or
 
8
//  modify it under the terms of the GNU General Public License
 
9
//  as published by the Free Software Foundation; version 2 of
 
10
//  the License, or (at your option) any later version.
 
11
//
 
12
//  This program is distributed in the hope that it will be useful,
 
13
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
//  GNU General Public License for more details.
 
16
//
 
17
//  You should have received a copy of the GNU General Public License
 
18
//  along with this program; if not, write to the Free Software
 
19
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
20
//
5
21
//=========================================================
6
22
 
7
23
#ifndef __MTRACKINFO_H__
9
25
 
10
26
#include "ui_mtrackinfobase.h"
11
27
 
 
28
namespace MusECore {
12
29
class Track;
 
30
}
 
31
 
 
32
namespace MusEGui {
13
33
 
14
34
//---------------------------------------------------------
15
35
//   MidiTrackInfo
18
38
class MidiTrackInfo : public QWidget, public Ui::MidiTrackInfoBase 
19
39
{
20
40
      Q_OBJECT
21
 
      Track* selected;
 
41
      MusECore::Track* selected;
22
42
      bool _midiDetect;
23
43
      int program, pan, volume;
 
44
      int heartBeatCounter;
24
45
      
25
 
   private slots:
 
46
    protected:
 
47
      virtual void resizeEvent(QResizeEvent*);
 
48
  
 
49
    private slots:
26
50
      void iOutputChannelChanged(int);
27
51
      void iOutputPortChanged(int);
28
52
      void iProgHBankChanged();
46
70
      void recEchoToggled(bool);
47
71
      void inRoutesPressed();
48
72
      void outRoutesPressed();
49
 
      void routingPopupMenuActivated(QAction*);
50
 
      //void routingPopupViewActivated(const QModelIndex&);
 
73
      void instrPopupActivated(QAction*);
51
74
      
52
75
   protected slots:
53
76
      virtual void heartBeat();
54
77
 
55
78
   public slots:
56
 
      void setTrack(Track*); 
 
79
      void setTrack(MusECore::Track*); 
57
80
      void configChanged();
58
81
      void songChanged(int);
59
82
   
60
83
   public:
61
 
      MidiTrackInfo(QWidget*, Track* = 0);
62
 
      Track* track() const { return selected; }
 
84
      MidiTrackInfo(QWidget*, MusECore::Track* = 0);
 
85
      MusECore::Track* track() const { return selected; }
63
86
      void setLabelText();
64
87
      void setLabelFont();
65
88
      void updateTrackInfo(int);
66
89
};
67
90
 
68
 
 
 
91
} // namespace MusEGui
69
92
 
70
93
#endif
71
94