diff options
author | Robert Jonsson <spamatica@gmail.com> | 2010-10-13 19:34:22 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2010-10-13 19:34:22 +0000 |
commit | 8a2c2824a59d7644e13bc52c9a0ecbd641f21f95 (patch) | |
tree | 064ad3f2bf8daab0ad27b128abd86a9bbdb1e496 /muse2/muse/confmport.h | |
parent | a27706d9629e8b592cca4659f865b70adef24e6d (diff) |
new branch muse2, first checkin
Diffstat (limited to 'muse2/muse/confmport.h')
-rw-r--r-- | muse2/muse/confmport.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/muse2/muse/confmport.h b/muse2/muse/confmport.h new file mode 100644 index 00000000..77683a3c --- /dev/null +++ b/muse2/muse/confmport.h @@ -0,0 +1,83 @@ +//========================================================= +// MusE +// Linux Music Editor +// $Id: confmport.h,v 1.3 2004/01/25 11:20:31 wschweer Exp $ +// +// (C) Copyright 2000 Werner Schweer (ws@seh.de) +//========================================================= + +#ifndef __CONFMPORT_H__ +#define __CONFMPORT_H__ + +#include <qwidget.h> +#include <q3whatsthis.h> +#include <qtooltip.h> +//Added by qt3to4: +#include <Q3PopupMenu> + +#include "synthconfigbase.h" + +class Q3ListView; +class Q3ListViewItem; +class QPoint; +class Q3PopupMenu; +class Q3Header; +class Xml; + +//---------------------------------------------------------- +// MPHeaderTip +//---------------------------------------------------------- + +class MPHeaderTip { // : public QToolTip { ddskrjo + + public: + MPHeaderTip(QWidget * parent) {} // : QToolTip(parent) {} ddskrjo + virtual ~MPHeaderTip() {} + protected: + void maybeTip(const QPoint &); + }; + +//--------------------------------------------------------- +// MPWhatsThis +//--------------------------------------------------------- + +class MPWhatsThis : public Q3WhatsThis { + Q3Header* header; + + protected: + QString text(const QPoint&); + + public: + MPWhatsThis(QWidget* parent, Q3Header* h) : Q3WhatsThis(parent) { + header = h; + } + }; + +//--------------------------------------------------------- +// MPConfig +// Midi Port Config +//--------------------------------------------------------- + +class MPConfig : public SynthConfigBase { + MPHeaderTip* _mptooltip; + Q3PopupMenu* popup; + Q3PopupMenu* instrPopup; + + int _showAliases; // -1: None. 0: First aliases. 1: Second aliases etc. + + Q_OBJECT + + private slots: + void rbClicked(Q3ListViewItem*, const QPoint&,int); + void mdevViewItemRenamed(Q3ListViewItem*, int, const QString&); + void songChanged(int); + void selectionChanged(); + void addInstanceClicked(); + void removeInstanceClicked(); + + public: + MPConfig(QWidget* parent, char* name); + ~MPConfig(); + }; + +#endif |