+#define audioCommon( name ) \
+ QWidget * name ## Control = new QWidget( ui.outputAudioBox ); \
+ QHBoxLayout * name ## Layout = new QHBoxLayout( name ## Control); \
+ name ## Layout->setMargin( 0 ); \
+ name ## Layout->setSpacing( 0 ); \
+ QLabel * name ## Label = new QLabel( qtr( "Device:" ), name ## Control ); \
+ name ## Label->setMinimumSize(QSize(100, 0)); \
+ name ## Layout->addWidget( name ## Label ); \
+
+#define audioControl( name) \
+ audioCommon( name ) \
+ QComboBox * name ## Device = new QComboBox( name ## Control ); \
+ name ## Layout->addWidget( name ## Device ); \
+ name ## Label->setBuddy( name ## Device ); \
+ outputAudioLayout->addWidget( name ## Control, outputAudioLayout->rowCount(), 0, 1, -1 );
+
+#define audioControl2( name) \
+ audioCommon( name ) \
+ QLineEdit * name ## Device = new QLineEdit( name ## Control ); \
+ name ## Layout->addWidget( name ## Device ); \
+ name ## Label->setBuddy( name ## Device ); \
+ QPushButton * name ## Browse = new QPushButton( qtr( "Browse..." ), name ## Control); \
+ name ## Layout->addWidget( name ## Browse ); \
+ outputAudioLayout->addWidget( name ## Control, outputAudioLayout->rowCount(), 0, 1, -1 );
+