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

« back to all changes in this revision

Viewing changes to muse/instruments/editinstrument.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:
4
4
//  $Id: editinstrument.h,v 1.1.1.1.2.4 2009/05/31 05:12:12 terminator356 Exp $
5
5
//
6
6
//  (C) Copyright 2003 Werner Schweer (ws@seh.de)
 
7
//
 
8
//  This program is free software; you can redistribute it and/or
 
9
//  modify it under the terms of the GNU General Public License
 
10
//  as published by the Free Software Foundation; version 2 of
 
11
//  the License, or (at your option) any later version.
 
12
//
 
13
//  This program is distributed in the hope that it will be useful,
 
14
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
//  GNU General Public License for more details.
 
17
//
 
18
//  You should have received a copy of the GNU General Public License
 
19
//  along with this program; if not, write to the Free Software
 
20
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
21
//
7
22
//=========================================================
8
23
 
9
24
#ifndef __EDITINSTRUMENT_H__
17
32
class QMenu;
18
33
class QCloseEvent;
19
34
 
 
35
namespace MusEGui {
 
36
 
20
37
//---------------------------------------------------------
21
38
//   EditInstrument
22
39
//---------------------------------------------------------
24
41
class EditInstrument : public QMainWindow, public Ui::EditInstrumentBase {
25
42
    Q_OBJECT
26
43
 
27
 
      MidiInstrument workingInstrument;
 
44
      MusECore::MidiInstrument workingInstrument;
28
45
      QListWidgetItem*  oldMidiInstrument;
29
46
      QTreeWidgetItem* oldPatchItem;
30
47
      void closeEvent(QCloseEvent*);
31
 
      int checkDirty(MidiInstrument*, bool isClose = false);
32
 
      bool fileSave(MidiInstrument*, const QString&);
 
48
      int checkDirty(MusECore::MidiInstrument*, bool isClose = false);
 
49
      bool fileSave(MusECore::MidiInstrument*, const QString&);
33
50
      void saveAs();
34
 
      void updateInstrument(MidiInstrument*);
35
 
      void updatePatch(MidiInstrument*, Patch*);
36
 
      void updatePatchGroup(MidiInstrument*, PatchGroup*);
 
51
      void updateInstrument(MusECore::MidiInstrument*);
 
52
      void updatePatch(MusECore::MidiInstrument*, MusECore::Patch*);
 
53
      void updatePatchGroup(MusECore::MidiInstrument*, MusECore::PatchGroup*);
37
54
      void changeInstrument();
38
 
      QTreeWidgetItem* addControllerToView(MidiController* mctrl);
 
55
      QTreeWidgetItem* addControllerToView(MusECore::MidiController* mctrl);
39
56
      QString getPatchItemText(int);
40
57
      void enableDefaultControls(bool, bool);
41
58
      void setDefaultPatchName(int);
87
104
      EditInstrument(QWidget* parent = 0, Qt::WFlags fl = Qt::Window);
88
105
      };
89
106
 
 
107
} // namespace MusEGui
 
108
 
90
109
#endif
91
110