~ubuntu-branches/ubuntu/karmic/muse/karmic-proposed

« back to all changes in this revision

Viewing changes to confmport.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2002-04-23 17:28:23 UTC
  • Revision ID: james.westby@ubuntu.com-20020423172823-w8yplzr81a759xa3
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//=========================================================
 
2
//  MusE
 
3
//  Linux Music Editor
 
4
//  $Id: confmport.h,v 1.2 2001/11/20 15:19:31 muse Exp $
 
5
//
 
6
//  (C) Copyright 2000 Werner Schweer (ws@seh.de)
 
7
//=========================================================
 
8
 
 
9
#ifndef __CONFMPORT_H__
 
10
#define __CONFMPORT_H__
 
11
 
 
12
#include <qwidget.h>
 
13
#include <qwhatsthis.h>
 
14
 
 
15
#include "midirawbase.h"
 
16
 
 
17
class QListView;
 
18
class QListViewItem;
 
19
class QPoint;
 
20
class QPopupMenu;
 
21
class QHeader;
 
22
class Xml;
 
23
 
 
24
//---------------------------------------------------------
 
25
//   MidiRawDeviceDialog
 
26
//---------------------------------------------------------
 
27
 
 
28
class MidiRawDeviceDialog : public MidiRawDeviceDialogBase {
 
29
      Q_OBJECT
 
30
 
 
31
   private slots:
 
32
      void deviceNew();
 
33
      void deviceDelete();
 
34
      void devicePath();
 
35
      virtual void accept();
 
36
      void editNameChanged(const QString& text);
 
37
      void editPathChanged(const QString& text);
 
38
      void speedChanged(const QString& text);
 
39
      void handshakingChanged(const QString& text);
 
40
      void typeChanged(const QString& text);
 
41
      void virtPortsChanged(int);
 
42
      void devicesSelectionChanged(QListViewItem*);
 
43
 
 
44
   public:
 
45
      MidiRawDeviceDialog(QWidget* parent = 0, const char* name = 0,
 
46
         bool modal = false, WFlags fl = 0);
 
47
      void populate();
 
48
      };
 
49
 
 
50
//---------------------------------------------------------
 
51
//   MPWhatsThis
 
52
//---------------------------------------------------------
 
53
 
 
54
class MPWhatsThis : public QWhatsThis {
 
55
      QHeader* header;
 
56
   protected:
 
57
      QString text(const QPoint&);
 
58
   public:
 
59
      MPWhatsThis(QWidget* parent, QHeader* h) : QWhatsThis(parent) {
 
60
            header = h;
 
61
            }
 
62
      };
 
63
 
 
64
//---------------------------------------------------------
 
65
//   MPConfig
 
66
//    Midi Port Config
 
67
//---------------------------------------------------------
 
68
 
 
69
class MPConfig : public QWidget {
 
70
      QListView* mdevView;
 
71
      QPopupMenu* popup;
 
72
      QPopupMenu* instrPopup;
 
73
      MidiRawDeviceDialog* rdDialog;
 
74
 
 
75
      Q_OBJECT
 
76
 
 
77
   private slots:
 
78
      void rbClicked(QListViewItem*, const QPoint&,int);
 
79
      void songChanged(int);
 
80
 
 
81
   public:
 
82
      MPConfig();
 
83
      };
 
84
 
 
85
#endif