~ubuntu-branches/ubuntu/raring/muse/raring

« back to all changes in this revision

Viewing changes to muse/instruments/editinstrument.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-08-12 11:16:41 UTC
  • mfrom: (1.1.9) (10.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20110812111641-sjz0e93fr0ozfv0b
Tags: 2.0~beta2-1
* New maintainer (see bug 637185#12), thanks Daniel!
* New upstream release (Closes: #627371):
  - New interface Qt4-based (Closes: #604584)
* Refresh packaging:
  - Move to DH7 and source format 3.0 (quilt).
  - Refresh patchset.
  - Fix a bunch lintian warnings.
  - debian/postinst:
    + Use set -e in the body rather than pass -e on the #! line to make it
      have actually effect if it is run by hand with "sh /path/to/script".
  - Update instructions on how-to increase RTC clock frequency.
    Thanks to Torquil Macdonald Sørensen for the report (Closes: #570833).
  - Bump Standards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#ifndef __EDITINSTRUMENT_H__
10
10
#define __EDITINSTRUMENT_H__
11
11
 
12
 
#include "editinstrumentbase.h"
 
12
#include "ui_editinstrumentbase.h"
13
13
#include "minstrument.h"
14
14
#include "midictrl.h"
15
 
class ListBoxData;
16
 
class ListViewData;
 
15
 
 
16
class QDialog;
 
17
class QMenu;
 
18
class QCloseEvent;
17
19
 
18
20
//---------------------------------------------------------
19
21
//   EditInstrument
20
22
//---------------------------------------------------------
21
23
 
22
 
class EditInstrument : public EditInstrumentBase {
 
24
class EditInstrument : public QMainWindow, public Ui::EditInstrumentBase {
23
25
    Q_OBJECT
24
26
 
25
27
      MidiInstrument workingInstrument;
26
 
      ListBoxData*  oldMidiInstrument;
27
 
      ListViewData* oldPatchItem;
 
28
      QListWidgetItem*  oldMidiInstrument;
 
29
      QTreeWidgetItem* oldPatchItem;
28
30
      void closeEvent(QCloseEvent*);
29
31
      int checkDirty(MidiInstrument*, bool isClose = false);
30
32
      bool fileSave(MidiInstrument*, const QString&);
33
35
      void updatePatch(MidiInstrument*, Patch*);
34
36
      void updatePatchGroup(MidiInstrument*, PatchGroup*);
35
37
      void changeInstrument();
36
 
      ListViewData* addControllerToView(MidiController* mctrl);
 
38
      QTreeWidgetItem* addControllerToView(MidiController* mctrl);
37
39
      QString getPatchItemText(int);
38
40
      void enableDefaultControls(bool, bool);
39
41
      void setDefaultPatchName(int);
40
42
      int getDefaultPatchNumber();
41
43
      void setDefaultPatchNumbers(int);
42
44
      void setDefaultPatchControls(int);
43
 
      const char* getPatchName(int);
44
 
      void deleteInstrument(ListBoxData*);
45
 
      QPopupMenu* patchpopup;
 
45
      QString getPatchName(int);
 
46
      void deleteInstrument(QListWidgetItem*);
 
47
      ///QMenu* patchpopup;
46
48
      
47
49
   private slots:
48
50
      virtual void fileNew();
82
84
      void ctrlNullParamLChanged(int);
83
85
 
84
86
   public:
85
 
      EditInstrument(QWidget* parent = 0, const char* name = 0, WFlags fl = WType_TopLevel);
 
87
      EditInstrument(QWidget* parent = 0, Qt::WFlags fl = Qt::Window);
86
88
      };
87
89
 
88
90
#endif