summaryrefslogtreecommitdiff
path: root/muse_qt4_evolution/muse/widgets/mittransposebase.h
blob: 531cb200a653dcb5996e0c8dfa5b5ada4471f409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#ifndef MITTRANSPOSEBASE_H
#define MITTRANSPOSEBASE_H

#include <qvariant.h>


#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QLabel>
#include <QtGui/QWidget>
#include "awl/pitchedit.h"
#include <awl::pitchedit.h>
#include <Qt3Support/Q3MimeSourceFactory>

class Ui_MITTransposeBase
{
public:
    QHBoxLayout *hboxLayout;
    QCheckBox *onCheckBox;
    QLabel *TextLabel1;
    Awl::PitchEdit *triggerKeySpinBox;
    QLabel *TextLabel2;
    QLabel *transposeLabel;

    void setupUi(QWidget *MITTransposeBase)
    {
    MITTransposeBase->setObjectName(QString::fromUtf8("MITTransposeBase"));
    MITTransposeBase->resize(QSize(423, 50).expandedTo(MITTransposeBase->minimumSizeHint()));
    hboxLayout = new QHBoxLayout(MITTransposeBase);
    hboxLayout->setSpacing(6);
    hboxLayout->setMargin(11);
    hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
    onCheckBox = new QCheckBox(MITTransposeBase);
    onCheckBox->setObjectName(QString::fromUtf8("onCheckBox"));

    hboxLayout->addWidget(onCheckBox);

    TextLabel1 = new QLabel(MITTransposeBase);
    TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
    TextLabel1->setAlignment(Qt::AlignVCenter|Qt::AlignRight);
    TextLabel1->setIndent(5);

    hboxLayout->addWidget(TextLabel1);

    triggerKeySpinBox = new Awl::PitchEdit(MITTransposeBase);
    triggerKeySpinBox->setObjectName(QString::fromUtf8("triggerKeySpinBox"));

    hboxLayout->addWidget(triggerKeySpinBox);

    TextLabel2 = new QLabel(MITTransposeBase);
    TextLabel2->setObjectName(QString::fromUtf8("TextLabel2"));
    TextLabel2->setAlignment(Qt::AlignVCenter|Qt::AlignRight);
    TextLabel2->setIndent(5);

    hboxLayout->addWidget(TextLabel2);

    transposeLabel = new QLabel(MITTransposeBase);
    transposeLabel->setObjectName(QString::fromUtf8("transposeLabel"));
    QSizePolicy sizePolicy((QSizePolicy::Policy)5, (QSizePolicy::Policy)0);
    sizePolicy.setHorizontalStretch(0);
    sizePolicy.setVerticalStretch(0);
    sizePolicy.setHeightForWidth(transposeLabel->sizePolicy().hasHeightForWidth());
    transposeLabel->setSizePolicy(sizePolicy);
    transposeLabel->setFrameShape(QFrame::Panel);
    transposeLabel->setLineWidth(2);
    transposeLabel->setMargin(2);
    transposeLabel->setMidLineWidth(2);
    transposeLabel->setAlignment(Qt::AlignVCenter|Qt::AlignRight);
    transposeLabel->setIndent(5);

    hboxLayout->addWidget(transposeLabel);

    retranslateUi(MITTransposeBase);

    QMetaObject::connectSlotsByName(MITTransposeBase);
    } // setupUi

    void retranslateUi(QWidget *MITTransposeBase)
    {
    MITTransposeBase->setWindowTitle(QApplication::translate("MITTransposeBase", "MusE: Midi Input Plugin: Transpose", 0, QApplication::UnicodeUTF8));
    onCheckBox->setText(QApplication::translate("MITTransposeBase", "On", 0, QApplication::UnicodeUTF8));
    TextLabel1->setText(QApplication::translate("MITTransposeBase", "TriggerKey", 0, QApplication::UnicodeUTF8));
    TextLabel2->setText(QApplication::translate("MITTransposeBase", "Transpose:", 0, QApplication::UnicodeUTF8));
    transposeLabel->setText(QApplication::translate("MITTransposeBase", "+0", 0, QApplication::UnicodeUTF8));
    Q_UNUSED(MITTransposeBase);
    } // retranslateUi

};

namespace Ui {
    class MITTransposeBase: public Ui_MITTransposeBase {};
} // namespace Ui

class MITTransposeBase : public QWidget, public Ui::MITTransposeBase
{
    Q_OBJECT

public:
    MITTransposeBase(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
    ~MITTransposeBase();

protected slots:
    virtual void languageChange();

};

#endif // MITTRANSPOSEBASE_H