#include #include /**************************************************************************** ** Form implementation generated from reading ui file '/home/oliver/work/programming/kyammi/src/PreferencesDialogBase.ui' ** ** Created: Sun Jul 31 13:19:35 2005 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.4 edited Nov 24 2003 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "PreferencesDialogBase.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "/home/oliver/work/programming/kyammi/src/PreferencesDialogBase.ui.h" /* * Constructs a Preferences as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ Preferences::Preferences( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "Preferences" ); setSizeGripEnabled( TRUE ); PreferencesLayout = new QGridLayout( this, 1, 1, 11, 6, "PreferencesLayout"); Spacer2 = new QSpacerItem( 155, 16, QSizePolicy::Expanding, QSizePolicy::Minimum ); PreferencesLayout->addItem( Spacer2, 1, 0 ); ButtonCancel = new QPushButton( this, "ButtonCancel" ); ButtonCancel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, ButtonCancel->sizePolicy().hasHeightForWidth() ) ); ButtonCancel->setMinimumSize( QSize( 100, 0 ) ); PreferencesLayout->addWidget( ButtonCancel, 1, 3 ); Spacer3 = new QSpacerItem( 155, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); PreferencesLayout->addItem( Spacer3, 1, 4 ); ButtonOK = new QPushButton( this, "ButtonOK" ); ButtonOK->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, ButtonOK->sizePolicy().hasHeightForWidth() ) ); ButtonOK->setMinimumSize( QSize( 100, 0 ) ); PreferencesLayout->addWidget( ButtonOK, 1, 1 ); Spacer1 = new QSpacerItem( 156, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); PreferencesLayout->addItem( Spacer1, 1, 2 ); TabWidget2 = new QTabWidget( this, "TabWidget2" ); TabWidget2->setBackgroundOrigin( QTabWidget::WindowOrigin ); TabWidget2->setTabShape( QTabWidget::Rounded ); TabWidget2->setMargin( 0 ); tab = new QWidget( TabWidget2, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); GroupBox3 = new QGroupBox( tab, "GroupBox3" ); GroupBox3->setColumnLayout(0, Qt::Vertical ); GroupBox3->layout()->setSpacing( 6 ); GroupBox3->layout()->setMargin( 11 ); GroupBox3Layout = new QGridLayout( GroupBox3->layout() ); GroupBox3Layout->setAlignment( Qt::AlignTop ); Layout7 = new QGridLayout( 0, 1, 1, 0, 6, "Layout7"); ComboBoxDoubleClickAction = new QComboBox( FALSE, GroupBox3, "ComboBoxDoubleClickAction" ); ComboBoxDoubleClickAction->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, ComboBoxDoubleClickAction->sizePolicy().hasHeightForWidth() ) ); ComboBoxDoubleClickAction->setMinimumSize( QSize( 200, 0 ) ); Layout7->addWidget( ComboBoxDoubleClickAction, 0, 1 ); LabelDoubleClickAction = new QLabel( GroupBox3, "LabelDoubleClickAction" ); Layout7->addWidget( LabelDoubleClickAction, 0, 0 ); ComboBoxMiddleClickAction = new QComboBox( FALSE, GroupBox3, "ComboBoxMiddleClickAction" ); ComboBoxMiddleClickAction->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, ComboBoxMiddleClickAction->sizePolicy().hasHeightForWidth() ) ); ComboBoxMiddleClickAction->setMinimumSize( QSize( 200, 0 ) ); Layout7->addWidget( ComboBoxMiddleClickAction, 1, 1 ); LabelMiddleClickAction = new QLabel( GroupBox3, "LabelMiddleClickAction" ); Layout7->addWidget( LabelMiddleClickAction, 1, 0 ); GroupBox3Layout->addMultiCellLayout( Layout7, 1, 2, 0, 0 ); spacer4 = new QSpacerItem( 300, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); GroupBox3Layout->addItem( spacer4, 1, 1 ); spacer4_2 = new QSpacerItem( 300, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); GroupBox3Layout->addItem( spacer4_2, 2, 1 ); textLabel1_4 = new QLabel( GroupBox3, "textLabel1_4" ); textLabel1_4->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); GroupBox3Layout->addMultiCellWidget( textLabel1_4, 0, 0, 0, 1 ); tabLayout->addWidget( GroupBox3, 0, 0 ); GroupBoxSearching = new QGroupBox( tab, "GroupBoxSearching" ); GroupBoxSearching->setColumnLayout(0, Qt::Vertical ); GroupBoxSearching->layout()->setSpacing( 6 ); GroupBoxSearching->layout()->setMargin( 11 ); GroupBoxSearchingLayout = new QGridLayout( GroupBoxSearching->layout() ); GroupBoxSearchingLayout->setAlignment( Qt::AlignTop ); Layout10 = new QGridLayout( 0, 1, 1, 0, 6, "Layout10"); LineEditSearchThreshold = new QLineEdit( GroupBoxSearching, "LineEditSearchThreshold" ); LineEditSearchThreshold->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, LineEditSearchThreshold->sizePolicy().hasHeightForWidth() ) ); LineEditSearchThreshold->setMinimumSize( QSize( 200, 0 ) ); Layout10->addWidget( LineEditSearchThreshold, 0, 1 ); LabelSearchThreshold = new QLabel( GroupBoxSearching, "LabelSearchThreshold" ); Layout10->addWidget( LabelSearchThreshold, 0, 0 ); GroupBoxSearchingLayout->addLayout( Layout10, 0, 0 ); spacer4_4 = new QSpacerItem( 365, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); GroupBoxSearchingLayout->addItem( spacer4_4, 0, 1 ); tabLayout->addWidget( GroupBoxSearching, 1, 0 ); TabWidget2->insertTab( tab, QString::fromLatin1("") ); tab_2 = new QWidget( TabWidget2, "tab_2" ); GroupBox2 = new QGroupBox( tab_2, "GroupBox2" ); GroupBox2->setGeometry( QRect( 11, 11, 699, 69 ) ); GroupBox2->setColumnLayout(0, Qt::Vertical ); GroupBox2->layout()->setSpacing( 3 ); GroupBox2->layout()->setMargin( 5 ); GroupBox2Layout = new QGridLayout( GroupBox2->layout() ); GroupBox2Layout->setAlignment( Qt::AlignTop ); Layout8_2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout8_2"); ButtonChooseTrashDir = new QPushButton( GroupBox2, "ButtonChooseTrashDir" ); Layout8_2->addWidget( ButtonChooseTrashDir, 1, 2 ); LabelTrashDir = new QLabel( GroupBox2, "LabelTrashDir" ); Layout8_2->addWidget( LabelTrashDir, 1, 0 ); LineEditTrashDir = new QLineEdit( GroupBox2, "LineEditTrashDir" ); Layout8_2->addWidget( LineEditTrashDir, 1, 1 ); GroupBox2Layout->addLayout( Layout8_2, 0, 0 ); GroupBox6 = new QGroupBox( tab_2, "GroupBox6" ); GroupBox6->setGeometry( QRect( 10, 320, 700, 110 ) ); GroupBox6->setColumnLayout(0, Qt::Vertical ); GroupBox6->layout()->setSpacing( 3 ); GroupBox6->layout()->setMargin( 5 ); GroupBox6Layout = new QGridLayout( GroupBox6->layout() ); GroupBox6Layout->setAlignment( Qt::AlignTop ); CheckBoxLogging = new QCheckBox( GroupBox6, "CheckBoxLogging" ); GroupBox6Layout->addMultiCellWidget( CheckBoxLogging, 0, 1, 0, 3 ); LabelGroupThreshold = new QLabel( GroupBox6, "LabelGroupThreshold" ); GroupBox6Layout->addMultiCellWidget( LabelGroupThreshold, 2, 3, 0, 0 ); CheckBoxLazyGrouping = new QCheckBox( GroupBox6, "CheckBoxLazyGrouping" ); GroupBox6Layout->addMultiCellWidget( CheckBoxLazyGrouping, 2, 3, 4, 4 ); CheckBoxChildSafe = new QCheckBox( GroupBox6, "CheckBoxChildSafe" ); CheckBoxChildSafe->setEnabled( FALSE ); GroupBox6Layout->addMultiCellWidget( CheckBoxChildSafe, 0, 1, 4, 4 ); SpinBoxGroupThreshold = new QSpinBox( GroupBox6, "SpinBoxGroupThreshold" ); SpinBoxGroupThreshold->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, SpinBoxGroupThreshold->sizePolicy().hasHeightForWidth() ) ); SpinBoxGroupThreshold->setMinValue( 1 ); GroupBox6Layout->addMultiCellWidget( SpinBoxGroupThreshold, 1, 3, 1, 1 ); Spacer1_2 = new QSpacerItem( 90, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); GroupBox6Layout->addItem( Spacer1_2, 3, 3 ); ConsistencyMode = new QGroupBox( tab_2, "ConsistencyMode" ); ConsistencyMode->setGeometry( QRect( 11, 86, 700, 230 ) ); ConsistencyMode->setColumnLayout(0, Qt::Vertical ); ConsistencyMode->layout()->setSpacing( 3 ); ConsistencyMode->layout()->setMargin( 5 ); ConsistencyModeLayout = new QGridLayout( ConsistencyMode->layout() ); ConsistencyModeLayout->setAlignment( Qt::AlignTop ); CheckBoxCapitalizeTags = new QCheckBox( ConsistencyMode, "CheckBoxCapitalizeTags" ); ConsistencyModeLayout->addWidget( CheckBoxCapitalizeTags, 0, 2 ); CheckBoxTagsConsistent = new QCheckBox( ConsistencyMode, "CheckBoxTagsConsistent" ); CheckBoxTagsConsistent->setEnabled( TRUE ); CheckBoxTagsConsistent->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, CheckBoxTagsConsistent->sizePolicy().hasHeightForWidth() ) ); ConsistencyModeLayout->addMultiCellWidget( CheckBoxTagsConsistent, 0, 0, 0, 1 ); buttonGroup3 = new QButtonGroup( ConsistencyMode, "buttonGroup3" ); buttonGroup3->setLineWidth( 0 ); buttonGroup3->setColumnLayout(0, Qt::Vertical ); buttonGroup3->layout()->setSpacing( 6 ); buttonGroup3->layout()->setMargin( 11 ); buttonGroup3Layout = new QGridLayout( buttonGroup3->layout() ); buttonGroup3Layout->setAlignment( Qt::AlignTop ); RadioButtonSimpleGuessmode = new QRadioButton( buttonGroup3, "RadioButtonSimpleGuessmode" ); RadioButtonSimpleGuessmode->setChecked( TRUE ); buttonGroup3Layout->addWidget( RadioButtonSimpleGuessmode, 1, 0 ); RadioButtonAdvancedGuessmode = new QRadioButton( buttonGroup3, "RadioButtonAdvancedGuessmode" ); buttonGroup3Layout->addWidget( RadioButtonAdvancedGuessmode, 0, 0 ); ConsistencyModeLayout->addMultiCellWidget( buttonGroup3, 3, 3, 1, 2 ); LabelGuessingPattern = new QLabel( ConsistencyMode, "LabelGuessingPattern" ); ConsistencyModeLayout->addWidget( LabelGuessingPattern, 3, 0 ); CheckBoxDirectoriesConsistent = new QCheckBox( ConsistencyMode, "CheckBoxDirectoriesConsistent" ); CheckBoxDirectoriesConsistent->setEnabled( TRUE ); CheckBoxDirectoriesConsistent->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, CheckBoxDirectoriesConsistent->sizePolicy().hasHeightForWidth() ) ); ConsistencyModeLayout->addWidget( CheckBoxDirectoriesConsistent, 2, 0 ); CheckBoxFilenamesConsistent = new QCheckBox( ConsistencyMode, "CheckBoxFilenamesConsistent" ); CheckBoxFilenamesConsistent->setEnabled( TRUE ); CheckBoxFilenamesConsistent->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, CheckBoxFilenamesConsistent->sizePolicy().hasHeightForWidth() ) ); ConsistencyModeLayout->addWidget( CheckBoxFilenamesConsistent, 1, 0 ); LineEditFilenamePattern = new QLineEdit( ConsistencyMode, "LineEditFilenamePattern" ); LineEditFilenamePattern->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, LineEditFilenamePattern->sizePolicy().hasHeightForWidth() ) ); ConsistencyModeLayout->addMultiCellWidget( LineEditFilenamePattern, 1, 1, 1, 2 ); LineEditDirectoriesPattern = new QLineEdit( ConsistencyMode, "LineEditDirectoriesPattern" ); LineEditDirectoriesPattern->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, LineEditDirectoriesPattern->sizePolicy().hasHeightForWidth() ) ); ConsistencyModeLayout->addMultiCellWidget( LineEditDirectoriesPattern, 2, 2, 1, 2 ); TabWidget2->insertTab( tab_2, QString::fromLatin1("") ); tab_3 = new QWidget( TabWidget2, "tab_3" ); tabLayout_2 = new QGridLayout( tab_3, 1, 1, 11, 6, "tabLayout_2"); MediaPlayerGroup = new QButtonGroup( tab_3, "MediaPlayerGroup" ); MediaPlayerGroup->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, MediaPlayerGroup->sizePolicy().hasHeightForWidth() ) ); MediaPlayerGroup->setColumnLayout(0, Qt::Vertical ); MediaPlayerGroup->layout()->setSpacing( 6 ); MediaPlayerGroup->layout()->setMargin( 11 ); MediaPlayerGroupLayout = new QGridLayout( MediaPlayerGroup->layout() ); MediaPlayerGroupLayout->setAlignment( Qt::AlignTop ); RadioButtonXmms = new QRadioButton( MediaPlayerGroup, "RadioButtonXmms" ); RadioButtonXmms->setChecked( TRUE ); MediaPlayerGroup->insert( RadioButtonXmms, 1 ); MediaPlayerGroupLayout->addWidget( RadioButtonXmms, 0, 0 ); RadioButtonNoatun = new QRadioButton( MediaPlayerGroup, "RadioButtonNoatun" ); RadioButtonNoatun->setChecked( FALSE ); MediaPlayerGroup->insert( RadioButtonNoatun, 1 ); MediaPlayerGroupLayout->addWidget( RadioButtonNoatun, 1, 0 ); RadioButtonGstPlayer = new QRadioButton( MediaPlayerGroup, "RadioButtonGstPlayer" ); MediaPlayerGroupLayout->addWidget( RadioButtonGstPlayer, 0, 1 ); RadioButtonArtsPlayer = new QRadioButton( MediaPlayerGroup, "RadioButtonArtsPlayer" ); RadioButtonArtsPlayer->setChecked( FALSE ); MediaPlayerGroup->insert( RadioButtonArtsPlayer, 1 ); MediaPlayerGroupLayout->addWidget( RadioButtonArtsPlayer, 1, 1 ); tabLayout_2->addMultiCellWidget( MediaPlayerGroup, 0, 0, 0, 1 ); GroupBoxNoatun = new QGroupBox( tab_3, "GroupBoxNoatun" ); GroupBoxNoatun->setColumnLayout(0, Qt::Vertical ); GroupBoxNoatun->layout()->setSpacing( 3 ); GroupBoxNoatun->layout()->setMargin( 5 ); GroupBoxNoatunLayout = new QGridLayout( GroupBoxNoatun->layout() ); GroupBoxNoatunLayout->setAlignment( Qt::AlignTop ); GroupBoxNoatunCrossfading = new QGroupBox( GroupBoxNoatun, "GroupBoxNoatunCrossfading" ); GroupBoxNoatunCrossfading->setColumnLayout(0, Qt::Vertical ); GroupBoxNoatunCrossfading->layout()->setSpacing( 6 ); GroupBoxNoatunCrossfading->layout()->setMargin( 11 ); GroupBoxNoatunCrossfadingLayout = new QGridLayout( GroupBoxNoatunCrossfading->layout() ); GroupBoxNoatunCrossfadingLayout->setAlignment( Qt::AlignTop ); LabelFadeOutEnd = new QLabel( GroupBoxNoatunCrossfading, "LabelFadeOutEnd" ); GroupBoxNoatunCrossfadingLayout->addWidget( LabelFadeOutEnd, 1, 0 ); LabelFadeTime = new QLabel( GroupBoxNoatunCrossfading, "LabelFadeTime" ); GroupBoxNoatunCrossfadingLayout->addWidget( LabelFadeTime, 0, 0 ); LabelFadeInStart = new QLabel( GroupBoxNoatunCrossfading, "LabelFadeInStart" ); GroupBoxNoatunCrossfadingLayout->addWidget( LabelFadeInStart, 2, 0 ); LineEditFadeTime = new QLineEdit( GroupBoxNoatunCrossfading, "LineEditFadeTime" ); LineEditFadeTime->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, LineEditFadeTime->sizePolicy().hasHeightForWidth() ) ); LineEditFadeTime->setMinimumSize( QSize( 100, 0 ) ); GroupBoxNoatunCrossfadingLayout->addWidget( LineEditFadeTime, 0, 1 ); LineEditFadeOutEnd = new QLineEdit( GroupBoxNoatunCrossfading, "LineEditFadeOutEnd" ); LineEditFadeOutEnd->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, LineEditFadeOutEnd->sizePolicy().hasHeightForWidth() ) ); LineEditFadeOutEnd->setMinimumSize( QSize( 100, 0 ) ); GroupBoxNoatunCrossfadingLayout->addWidget( LineEditFadeOutEnd, 1, 1 ); LineEditFadeInStart = new QLineEdit( GroupBoxNoatunCrossfading, "LineEditFadeInStart" ); LineEditFadeInStart->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, LineEditFadeInStart->sizePolicy().hasHeightForWidth() ) ); LineEditFadeInStart->setMinimumSize( QSize( 100, 0 ) ); GroupBoxNoatunCrossfadingLayout->addWidget( LineEditFadeInStart, 2, 1 ); GroupBoxNoatunLayout->addWidget( GroupBoxNoatunCrossfading, 0, 0 ); textLabel1 = new QLabel( GroupBoxNoatun, "textLabel1" ); GroupBoxNoatunLayout->addWidget( textLabel1, 1, 0 ); tabLayout_2->addMultiCellWidget( GroupBoxNoatun, 1, 3, 1, 1 ); GroupBoxXmms = new QGroupBox( tab_3, "GroupBoxXmms" ); GroupBoxXmms->setColumnLayout(0, Qt::Vertical ); GroupBoxXmms->layout()->setSpacing( 6 ); GroupBoxXmms->layout()->setMargin( 11 ); GroupBoxXmmsLayout = new QGridLayout( GroupBoxXmms->layout() ); GroupBoxXmmsLayout->setAlignment( Qt::AlignTop ); LineEditKeepInXmms = new QLineEdit( GroupBoxXmms, "LineEditKeepInXmms" ); LineEditKeepInXmms->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, LineEditKeepInXmms->sizePolicy().hasHeightForWidth() ) ); LineEditKeepInXmms->setMinimumSize( QSize( 100, 0 ) ); GroupBoxXmmsLayout->addWidget( LineEditKeepInXmms, 0, 1 ); LabelKeepInXmms = new QLabel( GroupBoxXmms, "LabelKeepInXmms" ); GroupBoxXmmsLayout->addWidget( LabelKeepInXmms, 0, 0 ); tabLayout_2->addWidget( GroupBoxXmms, 1, 0 ); GroupBoxGstPlayer = new QGroupBox( tab_3, "GroupBoxGstPlayer" ); GroupBoxGstPlayer->setColumnLayout(0, Qt::Vertical ); GroupBoxGstPlayer->layout()->setSpacing( 6 ); GroupBoxGstPlayer->layout()->setMargin( 11 ); GroupBoxGstPlayerLayout = new QGridLayout( GroupBoxGstPlayer->layout() ); GroupBoxGstPlayerLayout->setAlignment( Qt::AlignTop ); LineEditAudioSink = new QLineEdit( GroupBoxGstPlayer, "LineEditAudioSink" ); LineEditAudioSink->setEnabled( TRUE ); GroupBoxGstPlayerLayout->addWidget( LineEditAudioSink, 0, 1 ); textLabel1_3 = new QLabel( GroupBoxGstPlayer, "textLabel1_3" ); GroupBoxGstPlayerLayout->addWidget( textLabel1_3, 0, 0 ); textLabel1_5 = new QLabel( GroupBoxGstPlayer, "textLabel1_5" ); textLabel1_5->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); GroupBoxGstPlayerLayout->addMultiCellWidget( textLabel1_5, 1, 1, 0, 1 ); tabLayout_2->addWidget( GroupBoxGstPlayer, 3, 0 ); GroupBoxArtsPlayer = new QGroupBox( tab_3, "GroupBoxArtsPlayer" ); GroupBoxArtsPlayer->setColumnLayout(0, Qt::Vertical ); GroupBoxArtsPlayer->layout()->setSpacing( 6 ); GroupBoxArtsPlayer->layout()->setMargin( 11 ); GroupBoxArtsPlayerLayout = new QGridLayout( GroupBoxArtsPlayer->layout() ); GroupBoxArtsPlayerLayout->setAlignment( Qt::AlignTop ); textLabel1_2 = new QLabel( GroupBoxArtsPlayer, "textLabel1_2" ); GroupBoxArtsPlayerLayout->addWidget( textLabel1_2, 0, 0 ); tabLayout_2->addWidget( GroupBoxArtsPlayer, 2, 0 ); TabWidget2->insertTab( tab_3, QString::fromLatin1("") ); TabPage = new QWidget( TabWidget2, "TabPage" ); TabPageLayout = new QGridLayout( TabPage, 1, 1, 11, 6, "TabPageLayout"); secondSoundDevice = new QGroupBox( TabPage, "secondSoundDevice" ); secondSoundDevice->setColumnLayout(0, Qt::Vertical ); secondSoundDevice->layout()->setSpacing( 6 ); secondSoundDevice->layout()->setMargin( 11 ); secondSoundDeviceLayout = new QGridLayout( secondSoundDevice->layout() ); secondSoundDeviceLayout->setAlignment( Qt::AlignTop ); LabelMp3Files = new QLabel( secondSoundDevice, "LabelMp3Files" ); secondSoundDeviceLayout->addWidget( LabelMp3Files, 0, 0 ); LineEditPrelistenMp3Command = new QLineEdit( secondSoundDevice, "LineEditPrelistenMp3Command" ); secondSoundDeviceLayout->addWidget( LineEditPrelistenMp3Command, 0, 1 ); LabelOggFiles = new QLabel( secondSoundDevice, "LabelOggFiles" ); secondSoundDeviceLayout->addWidget( LabelOggFiles, 1, 0 ); LabelWavFiles = new QLabel( secondSoundDevice, "LabelWavFiles" ); secondSoundDeviceLayout->addWidget( LabelWavFiles, 2, 0 ); LabelFlacFiles = new QLabel( secondSoundDevice, "LabelFlacFiles" ); secondSoundDeviceLayout->addWidget( LabelFlacFiles, 3, 0 ); LabelOtherFiles = new QLabel( secondSoundDevice, "LabelOtherFiles" ); secondSoundDeviceLayout->addWidget( LabelOtherFiles, 4, 0 ); LineEditPrelistenOggCommand = new QLineEdit( secondSoundDevice, "LineEditPrelistenOggCommand" ); secondSoundDeviceLayout->addWidget( LineEditPrelistenOggCommand, 1, 1 ); LineEditPrelistenWavCommand = new QLineEdit( secondSoundDevice, "LineEditPrelistenWavCommand" ); secondSoundDeviceLayout->addWidget( LineEditPrelistenWavCommand, 2, 1 ); LineEditPrelistenFlacCommand = new QLineEdit( secondSoundDevice, "LineEditPrelistenFlacCommand" ); secondSoundDeviceLayout->addWidget( LineEditPrelistenFlacCommand, 3, 1 ); LineEditPrelistenOtherCommand = new QLineEdit( secondSoundDevice, "LineEditPrelistenOtherCommand" ); secondSoundDeviceLayout->addWidget( LineEditPrelistenOtherCommand, 4, 1 ); TabPageLayout->addWidget( secondSoundDevice, 1, 0 ); TextLabel1_3_2 = new QLabel( TabPage, "TextLabel1_3_2" ); TextLabel1_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, TextLabel1_3_2->sizePolicy().hasHeightForWidth() ) ); TextLabel1_3_2->setFrameShape( QLabel::Box ); TextLabel1_3_2->setFrameShadow( QLabel::Sunken ); TextLabel1_3_2->setLineWidth( 1 ); TextLabel1_3_2->setMargin( 3 ); TextLabel1_3_2->setMidLineWidth( 0 ); TextLabel1_3_2->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); TabPageLayout->addWidget( TextLabel1_3_2, 0, 0 ); TabWidget2->insertTab( TabPage, QString::fromLatin1("") ); tab_4 = new QWidget( TabWidget2, "tab_4" ); tabLayout_3 = new QGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_3"); LabelGrabAndEncodeCmd = new QLabel( tab_4, "LabelGrabAndEncodeCmd" ); tabLayout_3->addWidget( LabelGrabAndEncodeCmd, 0, 0 ); LabelShutdownScript = new QLabel( tab_4, "LabelShutdownScript" ); tabLayout_3->addWidget( LabelShutdownScript, 1, 0 ); LineEditGrabAndEncodeCmd = new QLineEdit( tab_4, "LineEditGrabAndEncodeCmd" ); tabLayout_3->addWidget( LineEditGrabAndEncodeCmd, 0, 1 ); LineEditShutdownScript = new QLineEdit( tab_4, "LineEditShutdownScript" ); tabLayout_3->addWidget( LineEditShutdownScript, 1, 1 ); GroupBox7 = new QGroupBox( tab_4, "GroupBox7" ); GroupBox7->setColumnLayout(0, Qt::Vertical ); GroupBox7->layout()->setSpacing( 3 ); GroupBox7->layout()->setMargin( 5 ); GroupBox7Layout = new QGridLayout( GroupBox7->layout() ); GroupBox7Layout->setAlignment( Qt::AlignTop ); Line3 = new QFrame( GroupBox7, "Line3" ); Line3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, Line3->sizePolicy().hasHeightForWidth() ) ); Line3->setFrameShape( QFrame::HLine ); Line3->setFrameShadow( QFrame::Sunken ); Line3->setFrameShape( QFrame::HLine ); GroupBox7Layout->addMultiCellWidget( Line3, 5, 5, 0, 4 ); TextLabelPluginMode = new QLabel( GroupBox7, "TextLabelPluginMode" ); GroupBox7Layout->addWidget( TextLabelPluginMode, 3, 0 ); ComboBoxPlugins = new QComboBox( FALSE, GroupBox7, "ComboBoxPlugins" ); GroupBox7Layout->addMultiCellWidget( ComboBoxPlugins, 1, 1, 0, 1 ); PushButtonNewPlugin = new QPushButton( GroupBox7, "PushButtonNewPlugin" ); PushButtonNewPlugin->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, PushButtonNewPlugin->sizePolicy().hasHeightForWidth() ) ); GroupBox7Layout->addWidget( PushButtonNewPlugin, 2, 0 ); PushButtonDeletePlugin = new QPushButton( GroupBox7, "PushButtonDeletePlugin" ); PushButtonDeletePlugin->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, PushButtonDeletePlugin->sizePolicy().hasHeightForWidth() ) ); GroupBox7Layout->addWidget( PushButtonDeletePlugin, 2, 1 ); ComboBoxPluginMode = new QComboBox( FALSE, GroupBox7, "ComboBoxPluginMode" ); GroupBox7Layout->addWidget( ComboBoxPluginMode, 3, 1 ); PushButtonAddStandardPlugins = new QPushButton( GroupBox7, "PushButtonAddStandardPlugins" ); GroupBox7Layout->addMultiCellWidget( PushButtonAddStandardPlugins, 1, 1, 2, 3 ); LabelPluginSongLabelPluginSongMeMenuEntry = new QLabel( GroupBox7, "LabelPluginSongLabelPluginSongMeMenuEntry" ); GroupBox7Layout->addWidget( LabelPluginSongLabelPluginSongMeMenuEntry, 2, 2 ); LabelPluginSongCmd = new QLabel( GroupBox7, "LabelPluginSongCmd" ); GroupBox7Layout->addWidget( LabelPluginSongCmd, 3, 2 ); PushButtonPluginReplacements = new QPushButton( GroupBox7, "PushButtonPluginReplacements" ); PushButtonPluginReplacements->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, PushButtonPluginReplacements->sizePolicy().hasHeightForWidth() ) ); GroupBox7Layout->addWidget( PushButtonPluginReplacements, 1, 4 ); LineEditPluginMenuEntry = new QLineEdit( GroupBox7, "LineEditPluginMenuEntry" ); LineEditPluginMenuEntry->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, LineEditPluginMenuEntry->sizePolicy().hasHeightForWidth() ) ); GroupBox7Layout->addMultiCellWidget( LineEditPluginMenuEntry, 2, 2, 3, 4 ); LineEditPluginCommand = new QLineEdit( GroupBox7, "LineEditPluginCommand" ); LineEditPluginCommand->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, LineEditPluginCommand->sizePolicy().hasHeightForWidth() ) ); GroupBox7Layout->addMultiCellWidget( LineEditPluginCommand, 3, 3, 3, 4 ); LineEditPluginCustomList = new QLineEdit( GroupBox7, "LineEditPluginCustomList" ); LineEditPluginCustomList->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, LineEditPluginCustomList->sizePolicy().hasHeightForWidth() ) ); GroupBox7Layout->addMultiCellWidget( LineEditPluginCustomList, 4, 4, 3, 4 ); TextLabel1 = new QLabel( GroupBox7, "TextLabel1" ); GroupBox7Layout->addMultiCellWidget( TextLabel1, 0, 0, 0, 4 ); TextLabel3 = new QLabel( GroupBox7, "TextLabel3" ); GroupBox7Layout->addMultiCellWidget( TextLabel3, 6, 6, 0, 3 ); kURLLabel1 = new KURLLabel( GroupBox7, "kURLLabel1" ); GroupBox7Layout->addMultiCellWidget( kURLLabel1, 7, 7, 0, 2 ); LabelPluginPlaylistCustomList_2 = new QLabel( GroupBox7, "LabelPluginPlaylistCustomList_2" ); GroupBox7Layout->addWidget( LabelPluginPlaylistCustomList_2, 4, 2 ); CheckBoxPluginConfirm = new QCheckBox( GroupBox7, "CheckBoxPluginConfirm" ); GroupBox7Layout->addMultiCellWidget( CheckBoxPluginConfirm, 4, 4, 0, 1 ); tabLayout_3->addMultiCellWidget( GroupBox7, 2, 2, 0, 1 ); TabWidget2->insertTab( tab_4, QString::fromLatin1("") ); tab_5 = new QWidget( TabWidget2, "tab_5" ); tabLayout_4 = new QGridLayout( tab_5, 1, 1, 11, 6, "tabLayout_4"); TextLabel1_3 = new QLabel( tab_5, "TextLabel1_3" ); TextLabel1_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, TextLabel1_3->sizePolicy().hasHeightForWidth() ) ); TextLabel1_3->setFrameShape( QLabel::Box ); TextLabel1_3->setFrameShadow( QLabel::Sunken ); TextLabel1_3->setLineWidth( 1 ); TextLabel1_3->setMargin( 3 ); TextLabel1_3->setMidLineWidth( 0 ); tabLayout_4->addWidget( TextLabel1_3, 0, 0 ); GroupBox17 = new QGroupBox( tab_5, "GroupBox17" ); GroupBox17->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, GroupBox17->sizePolicy().hasHeightForWidth() ) ); GroupBox17->setColumnLayout(0, Qt::Vertical ); GroupBox17->layout()->setSpacing( 6 ); GroupBox17->layout()->setMargin( 11 ); GroupBox17Layout = new QGridLayout( GroupBox17->layout() ); GroupBox17Layout->setAlignment( Qt::AlignTop ); LabelCriticalSize = new QLabel( GroupBox17, "LabelCriticalSize" ); GroupBox17Layout->addMultiCellWidget( LabelCriticalSize, 4, 4, 0, 1 ); LineEditCriticalSize = new QLineEdit( GroupBox17, "LineEditCriticalSize" ); GroupBox17Layout->addMultiCellWidget( LineEditCriticalSize, 4, 4, 2, 3 ); LabelSwapDir = new QLabel( GroupBox17, "LabelSwapDir" ); GroupBox17Layout->addWidget( LabelSwapDir, 1, 0 ); ButtonChooseMediaDir = new QPushButton( GroupBox17, "ButtonChooseMediaDir" ); GroupBox17Layout->addWidget( ButtonChooseMediaDir, 0, 3 ); CheckBoxMountMediaDir = new QCheckBox( GroupBox17, "CheckBoxMountMediaDir" ); CheckBoxMountMediaDir->setEnabled( TRUE ); CheckBoxMountMediaDir->setChecked( FALSE ); GroupBox17Layout->addMultiCellWidget( CheckBoxMountMediaDir, 3, 3, 0, 2 ); LineEditMediaDir = new QLineEdit( GroupBox17, "LineEditMediaDir" ); GroupBox17Layout->addMultiCellWidget( LineEditMediaDir, 0, 0, 1, 2 ); LabelMediaDir = new QLabel( GroupBox17, "LabelMediaDir" ); GroupBox17Layout->addWidget( LabelMediaDir, 0, 0 ); LineEditSwapSize = new QLineEdit( GroupBox17, "LineEditSwapSize" ); GroupBox17Layout->addMultiCellWidget( LineEditSwapSize, 2, 2, 1, 2 ); ButtonChooseSwapDir = new QPushButton( GroupBox17, "ButtonChooseSwapDir" ); GroupBox17Layout->addWidget( ButtonChooseSwapDir, 1, 3 ); LabelSwapSize = new QLabel( GroupBox17, "LabelSwapSize" ); GroupBox17Layout->addWidget( LabelSwapSize, 2, 0 ); LineEditSwapDir = new QLineEdit( GroupBox17, "LineEditSwapDir" ); GroupBox17Layout->addMultiCellWidget( LineEditSwapDir, 1, 1, 1, 2 ); tabLayout_4->addWidget( GroupBox17, 1, 0 ); TabWidget2->insertTab( tab_5, QString::fromLatin1("") ); TabPage_2 = new QWidget( TabWidget2, "TabPage_2" ); TabPageLayout_2 = new QGridLayout( TabPage_2, 1, 1, 11, 6, "TabPageLayout_2"); LabelPlayqueueTemplate = new QLabel( TabPage_2, "LabelPlayqueueTemplate" ); TabPageLayout_2->addWidget( LabelPlayqueueTemplate, 0, 0 ); LineEditPlayqueueTemplate = new KTextEdit( TabPage_2, "LineEditPlayqueueTemplate" ); LineEditPlayqueueTemplate->setTextFormat( KTextEdit::PlainText ); LineEditPlayqueueTemplate->setAutoFormatting( int( KTextEdit::AutoAll ) ); TabPageLayout_2->addWidget( LineEditPlayqueueTemplate, 1, 0 ); TabWidget2->insertTab( TabPage_2, QString::fromLatin1("") ); PreferencesLayout->addMultiCellWidget( TabWidget2, 0, 0, 0, 4 ); languageChange(); resize( QSize(745, 526).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( ButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( kURLLabel1, SIGNAL( leftClickedURL() ), this, SLOT( kURLLabel1_leftClickedURL() ) ); // tab order setTabOrder( ComboBoxDoubleClickAction, ComboBoxMiddleClickAction ); setTabOrder( ComboBoxMiddleClickAction, LineEditSearchThreshold ); setTabOrder( LineEditSearchThreshold, ButtonOK ); setTabOrder( ButtonOK, ButtonCancel ); setTabOrder( ButtonCancel, LineEditTrashDir ); setTabOrder( LineEditTrashDir, ButtonChooseTrashDir ); setTabOrder( ButtonChooseTrashDir, CheckBoxTagsConsistent ); setTabOrder( CheckBoxTagsConsistent, CheckBoxFilenamesConsistent ); setTabOrder( CheckBoxFilenamesConsistent, RadioButtonSimpleGuessmode ); setTabOrder( RadioButtonSimpleGuessmode, CheckBoxCapitalizeTags ); setTabOrder( CheckBoxCapitalizeTags, CheckBoxLogging ); setTabOrder( CheckBoxLogging, CheckBoxLazyGrouping ); setTabOrder( CheckBoxLazyGrouping, SpinBoxGroupThreshold ); setTabOrder( SpinBoxGroupThreshold, CheckBoxChildSafe ); setTabOrder( CheckBoxChildSafe, RadioButtonXmms ); setTabOrder( RadioButtonXmms, LineEditKeepInXmms ); setTabOrder( LineEditKeepInXmms, LineEditFadeTime ); setTabOrder( LineEditFadeTime, LineEditFadeOutEnd ); setTabOrder( LineEditFadeOutEnd, LineEditFadeInStart ); setTabOrder( LineEditFadeInStart, LineEditGrabAndEncodeCmd ); setTabOrder( LineEditGrabAndEncodeCmd, LineEditShutdownScript ); setTabOrder( LineEditShutdownScript, ComboBoxPlugins ); setTabOrder( ComboBoxPlugins, PushButtonNewPlugin ); setTabOrder( PushButtonNewPlugin, PushButtonDeletePlugin ); setTabOrder( PushButtonDeletePlugin, ComboBoxPluginMode ); setTabOrder( ComboBoxPluginMode, CheckBoxPluginConfirm ); setTabOrder( CheckBoxPluginConfirm, PushButtonAddStandardPlugins ); setTabOrder( PushButtonAddStandardPlugins, PushButtonPluginReplacements ); setTabOrder( PushButtonPluginReplacements, LineEditPluginMenuEntry ); setTabOrder( LineEditPluginMenuEntry, LineEditPluginCommand ); setTabOrder( LineEditPluginCommand, LineEditPluginCustomList ); setTabOrder( LineEditPluginCustomList, LineEditMediaDir ); setTabOrder( LineEditMediaDir, ButtonChooseMediaDir ); setTabOrder( ButtonChooseMediaDir, LineEditSwapDir ); setTabOrder( LineEditSwapDir, ButtonChooseSwapDir ); setTabOrder( ButtonChooseSwapDir, LineEditSwapSize ); setTabOrder( LineEditSwapSize, CheckBoxMountMediaDir ); setTabOrder( CheckBoxMountMediaDir, LineEditCriticalSize ); setTabOrder( LineEditCriticalSize, TabWidget2 ); } /* * Destroys the object and frees any allocated resources */ Preferences::~Preferences() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void Preferences::languageChange() { setCaption( tr2i18n( "Edit Preferences" ) ); ButtonCancel->setText( tr2i18n( "Cancel" ) ); QToolTip::add( ButtonCancel, tr2i18n( "don't make any changes" ) ); ButtonOK->setText( tr2i18n( "OK" ) ); QToolTip::add( ButtonOK, tr2i18n( "Accept & Save configuration" ) ); GroupBox3->setTitle( tr2i18n( "Mouse configuration / Default actions for..." ) ); QToolTip::add( ComboBoxDoubleClickAction, tr2i18n( "the action that is performed when double-clicking on a song in the song list" ) ); LabelDoubleClickAction->setText( tr2i18n( "doubleclick" ) ); QToolTip::add( LabelDoubleClickAction, tr2i18n( "the action that is performed when double-clicking on a song in the song list" ) ); QToolTip::add( ComboBoxMiddleClickAction, tr2i18n( "the action that is performed when clicking with middle mouse button on a song in the song list" ) ); LabelMiddleClickAction->setText( tr2i18n( "middle click" ) ); QToolTip::add( LabelMiddleClickAction, tr2i18n( "the action that is performed when clicking with middle mouse button on a song in the song list" ) ); textLabel1_4->setText( tr2i18n( "You can assign default actions for a double-click or click with middle mouse buttion on a song in the songlist." ) ); GroupBoxSearching->setTitle( tr2i18n( "Searching" ) ); QToolTip::add( LineEditSearchThreshold, tr2i18n( "determines how many hits will be shown when searching. Must be between 0 and 100, reasonable values are around 25." ) ); LabelSearchThreshold->setText( tr2i18n( "threshold" ) ); QToolTip::add( LabelSearchThreshold, tr2i18n( "determines how many hits will be shown when searching. Must be between 0 and 100, reasonable values are around 25." ) ); TabWidget2->changeTab( tab, tr2i18n( "General" ) ); GroupBox2->setTitle( tr2i18n( "Path to files" ) ); ButtonChooseTrashDir->setText( tr2i18n( "..." ) ); QToolTip::add( ButtonChooseTrashDir, tr2i18n( "choose directory" ) ); LabelTrashDir->setText( tr2i18n( "trash directory for deleted song files" ) ); QToolTip::add( LabelTrashDir, tr2i18n( "songs deleted in yammi will be moved to this directory and this directory will be skipped when scanning" ) ); QToolTip::add( LineEditTrashDir, tr2i18n( "songs deleted in yammi will be moved to this directory and this directory will be skipped when scanning" ) ); GroupBox6->setTitle( tr2i18n( "Misc" ) ); CheckBoxLogging->setText( tr2i18n( "logging of played songs" ) ); QToolTip::add( CheckBoxLogging, tr2i18n( "logs all played songs with a timestamp to a file" ) ); LabelGroupThreshold->setText( tr2i18n( "group threshold" ) ); QToolTip::add( LabelGroupThreshold, tr2i18n( "the minimum number for a subfolder to be created (Folder Albums, Artists and Genres)" ) ); CheckBoxLazyGrouping->setText( tr2i18n( "lazy grouping" ) ); QToolTip::add( CheckBoxLazyGrouping, tr2i18n( "if enabled, considers eg. \"The_Doors\" the same as \"THE DOORS\" for grouping" ) ); CheckBoxChildSafe->setText( tr2i18n( "child safe mode" ) ); QToolTip::add( CheckBoxChildSafe, tr2i18n( "if activated, some potentially dangerous actions are not allowed (eg. deleting a song). To disable this, you need a password..." ) ); QToolTip::add( SpinBoxGroupThreshold, tr2i18n( "the minimum number for a subfolder to be created (Folder Albums, Artists and Genres)" ) ); ConsistencyMode->setTitle( tr2i18n( "Tag Handling" ) ); CheckBoxCapitalizeTags->setText( tr2i18n( "capitalize tags on new songs" ) ); QToolTip::add( CheckBoxCapitalizeTags, tr2i18n( "Capitalizes artist, title and album of a newly added Song" ) ); CheckBoxTagsConsistent->setText( tr2i18n( "save tags immediately" ) ); QToolTip::add( CheckBoxTagsConsistent, tr2i18n( "save all changes in yammi database to the file tags immediately" ) ); buttonGroup3->setTitle( QString::null ); RadioButtonSimpleGuessmode->setText( tr2i18n( "artist - title" ) ); RadioButtonAdvancedGuessmode->setText( tr2i18n( "/artist/album/trackNr - title" ) ); LabelGuessingPattern->setText( tr2i18n( "guessing pattern\n" "(if no tags available)" ) ); QToolTip::add( LabelGuessingPattern, tr2i18n( "guessing pattern used when adding new songs and no tags available" ) ); CheckBoxDirectoriesConsistent->setText( tr2i18n( "keep directories consistent:" ) ); QToolTip::add( CheckBoxDirectoriesConsistent, tr2i18n( "Synchronizes the directories of the files according to the information in the yammi database. If activated, yammi moves your files!" ) ); CheckBoxFilenamesConsistent->setText( tr2i18n( "keep filenames consistent:" ) ); QToolTip::add( CheckBoxFilenamesConsistent, tr2i18n( "Synchronizes the filenames of the files according to the information in the yammi database. If activated, yammi renames your files!" ) ); QToolTip::add( LineEditFilenamePattern, tr2i18n( "The filename pattern to use for renaming files." ) ); QToolTip::add( LineEditDirectoriesPattern, tr2i18n( "The directory pattern to use for moving files." ) ); TabWidget2->changeTab( tab_2, tr2i18n( "Database" ) ); MediaPlayerGroup->setTitle( tr2i18n( "Media Player" ) ); RadioButtonXmms->setText( tr2i18n( "XMMS" ) ); RadioButtonNoatun->setText( tr2i18n( "Noatun" ) ); RadioButtonGstPlayer->setText( tr2i18n( "GstreamerPlayer" ) ); RadioButtonArtsPlayer->setText( tr2i18n( "ArtsPlayer" ) ); GroupBoxNoatun->setTitle( tr2i18n( "Noatun settings" ) ); GroupBoxNoatunCrossfading->setTitle( tr2i18n( "Crossfading" ) ); LabelFadeOutEnd->setText( tr2i18n( "fade out end %" ) ); QToolTip::add( LabelFadeOutEnd, tr2i18n( "Volume in percentage to fade out to" ) ); LabelFadeTime->setText( tr2i18n( "fading time (ms),\n" "set to 0 to disable" ) ); QToolTip::add( LabelFadeTime, tr2i18n( "The total time of crossfading (in seconds)" ) ); LabelFadeInStart->setText( tr2i18n( "fade in start %" ) ); QToolTip::add( LabelFadeInStart, tr2i18n( "Volume in percentage to fade in from" ) ); QToolTip::add( LineEditFadeTime, tr2i18n( "The total time of crossfading (in seconds)" ) ); QToolTip::add( LineEditFadeOutEnd, tr2i18n( "Volume in percentage to fade out to" ) ); QToolTip::add( LineEditFadeInStart, tr2i18n( "Volume in percentage to fade in from" ) ); textLabel1->setText( tr2i18n( "You MUST disable\n" "\"Allow Only One Instance of Noatun\"\n" "and \"Process Playlist Items for Display\"\n" "in Noatun's configuration!" ) ); GroupBoxXmms->setTitle( tr2i18n( "XMMS settings" ) ); QToolTip::add( LineEditKeepInXmms, tr2i18n( "the number of songs to keep in Xmms playlist" ) ); LabelKeepInXmms->setText( tr2i18n( "songs in playlist" ) ); QToolTip::add( LabelKeepInXmms, tr2i18n( "the number of songs to keep in Xmms playlist" ) ); GroupBoxGstPlayer->setTitle( tr2i18n( "GstreamerPlayer settings" ) ); LineEditAudioSink->setText( QString::null ); QToolTip::add( LineEditAudioSink, tr2i18n( "e.g. osssink, artsdsink, alsasink" ) ); textLabel1_3->setText( tr2i18n( "AudioSink" ) ); QToolTip::add( textLabel1_3, tr2i18n( "e.g. osssink, artsdsink, alsasink" ) ); textLabel1_5->setText( tr2i18n( "(osssink works well for both ALSA and OSS, see docs for other audio backends)" ) ); GroupBoxArtsPlayer->setTitle( tr2i18n( "ArtsPlayer settings" ) ); textLabel1_2->setText( tr2i18n( "- no settings yet -" ) ); TabWidget2->changeTab( tab_3, tr2i18n( "MediaPlayer" ) ); secondSoundDevice->setTitle( tr2i18n( "Command line tool configuration" ) ); LabelMp3Files->setText( tr2i18n( ".mp3 files" ) ); QToolTip::add( LabelMp3Files, tr2i18n( "Configuration of command line tool used for prelistening." ) ); QToolTip::add( LineEditPrelistenMp3Command, tr2i18n( "Configuration of command line tool used for prelistening." ) ); LabelOggFiles->setText( tr2i18n( ".ogg files" ) ); QToolTip::add( LabelOggFiles, tr2i18n( "Configuration of command line tool used for prelistening." ) ); LabelWavFiles->setText( tr2i18n( ".wav files" ) ); QToolTip::add( LabelWavFiles, tr2i18n( "Configuration of command line tool used for prelistening." ) ); LabelFlacFiles->setText( tr2i18n( ".flac files" ) ); QToolTip::add( LabelFlacFiles, tr2i18n( "Configuration of command line tool used for prelistening." ) ); LabelOtherFiles->setText( tr2i18n( "other files" ) ); QToolTip::add( LabelOtherFiles, tr2i18n( "Configuration of command line tool used for prelistening." ) ); QToolTip::add( LineEditPrelistenOggCommand, tr2i18n( "Configuration of command line tool used for prelistening." ) ); QToolTip::add( LineEditPrelistenWavCommand, tr2i18n( "Configuration of command line tool used for prelistening." ) ); QToolTip::add( LineEditPrelistenFlacCommand, tr2i18n( "Configuration of command line tool used for prelistening." ) ); QToolTip::add( LineEditPrelistenOtherCommand, tr2i18n( "Configuration of command line tool used for prelistening." ) ); TextLabel1_3_2->setText( tr2i18n( "The prelisten functionality of Yammi allows to listen to songs on a headphone (requires a second sound device) while the normal playback of your playlist continues (very handy on a party...).\n" "For each file type listed below, Yammi can use a different command.\n" "Configure each tool here, separating parameters with \"|\".\n" "Additionally to the usual placeholders (see the plugins tab) you can use {skipSeconds}, {skipMilliSeconds} and {skipFrames}." ) ); TabWidget2->changeTab( TabPage, tr2i18n( "Prelistening" ) ); LabelGrabAndEncodeCmd->setText( tr2i18n( "grab and encode script" ) ); QToolTip::add( LabelGrabAndEncodeCmd, tr2i18n( "a script to grab a track from cd and encode to mp3" ) ); LabelShutdownScript->setText( tr2i18n( "shutdown script" ) ); QToolTip::add( LabelShutdownScript, tr2i18n( "a script that is invoked on sleep mode" ) ); QToolTip::add( LineEditGrabAndEncodeCmd, tr2i18n( "a script to grab a track from cd and encode to mp3" ) ); QToolTip::add( LineEditShutdownScript, tr2i18n( "a script that is invoked on sleep mode" ) ); GroupBox7->setTitle( tr2i18n( "Plugins" ) ); TextLabelPluginMode->setText( tr2i18n( "Plugin Mode" ) ); PushButtonNewPlugin->setText( tr2i18n( "New Entry" ) ); PushButtonDeletePlugin->setText( tr2i18n( "Delete Entry" ) ); PushButtonAddStandardPlugins->setText( tr2i18n( "Add Standard Plugins" ) ); QToolTip::add( PushButtonAddStandardPlugins, tr2i18n( "Adds all standard plugins (if not already existing)" ) ); LabelPluginSongLabelPluginSongMeMenuEntry->setText( tr2i18n( "menu entry" ) ); QToolTip::add( LabelPluginSongLabelPluginSongMeMenuEntry, tr2i18n( "the entry to appear in the context menu" ) ); LabelPluginSongCmd->setText( tr2i18n( "command" ) ); QToolTip::add( LabelPluginSongCmd, tr2i18n( "the script that is invoked when this plugin is chosen" ) ); PushButtonPluginReplacements->setText( tr2i18n( "Placeholders..." ) ); QToolTip::add( LineEditPluginMenuEntry, tr2i18n( "the entry to appear in the context menu" ) ); QToolTip::add( LineEditPluginCommand, tr2i18n( "the script that is invoked when this plugin is chosen" ) ); QToolTip::add( LineEditPluginCustomList, tr2i18n( "defines the content of the {customList} placeholders" ) ); TextLabel1->setText( tr2i18n( "Plugins can be invoked on a selection of songs from the context menu.\n" "\n" "Single mode = executed once for each song\n" "Group mode = executed once for the selection" ) ); TextLabel3->setText( tr2i18n( "See Yammi's homepage for useful plugin configurations:" ) ); kURLLabel1->setText( tr2i18n( "http://yammi.sourceforge.net/plugins.html" ) ); kURLLabel1->setProperty( "url", tr2i18n( "http://yammi.sourceforge.net/plugins.html" ) ); LabelPluginPlaylistCustomList_2->setText( tr2i18n( "custom list" ) ); QToolTip::add( LabelPluginPlaylistCustomList_2, tr2i18n( "defines the content of the {customList} placeholders" ) ); CheckBoxPluginConfirm->setText( tr2i18n( "ask for confirmation" ) ); QToolTip::add( CheckBoxPluginConfirm, tr2i18n( "popup a message box before executing the command" ) ); TabWidget2->changeTab( tab_4, tr2i18n( "Plugins" ) ); TextLabel1_3->setText( tr2i18n( "These settings configure the \"Jukebox\" capabilities of Yammi,\n" "that is loading songs that are not available on the harddisk\n" "from removable media.\n" "\n" "While running, Yammi will always show a list of\n" "needed media for the actual playlist, and songs can be\n" "loaded from those media into a swap directory." ) ); GroupBox17->setTitle( tr2i18n( "Removable Media Management" ) ); LabelCriticalSize->setText( tr2i18n( "max size of media for burning (MB)" ) ); QToolTip::add( LabelCriticalSize, tr2i18n( "indicates maximum size in MB for one media (eg. 700 for a CD-R)" ) ); QToolTip::add( LineEditCriticalSize, tr2i18n( "indicates maximum size in MB for one media (eg. 700 for a CD-R)" ) ); LabelSwapDir->setText( tr2i18n( "swap directory" ) ); QToolTip::add( LabelSwapDir, tr2i18n( "directory where songs from removable media will be swapped" ) ); ButtonChooseMediaDir->setText( tr2i18n( "..." ) ); QToolTip::add( ButtonChooseMediaDir, tr2i18n( "choose directory" ) ); CheckBoxMountMediaDir->setText( tr2i18n( "mount and umount the media directory" ) ); QToolTip::add( CheckBoxMountMediaDir, tr2i18n( "try to mount and umount the swap directory before and after loading songs from removable media" ) ); QToolTip::add( LineEditMediaDir, tr2i18n( "directory where removable media will be mounted" ) ); LabelMediaDir->setText( tr2i18n( "media directory (mount point)" ) ); QToolTip::add( LabelMediaDir, tr2i18n( "directory where removable media will be mounted" ) ); QToolTip::add( LineEditSwapSize, tr2i18n( "when the swapped songs use more than this value, the least recently used (LRU) are deleted" ) ); ButtonChooseSwapDir->setText( tr2i18n( "..." ) ); QToolTip::add( ButtonChooseSwapDir, tr2i18n( "choose directory" ) ); LabelSwapSize->setText( tr2i18n( "maximum swap size (MB)" ) ); QToolTip::add( LabelSwapSize, tr2i18n( "when the swapped songs use more than this value, the least recently used (LRU) are deleted" ) ); QToolTip::add( LineEditSwapDir, tr2i18n( "directory where songs from removable media will be swapped" ) ); TabWidget2->changeTab( tab_5, tr2i18n( "Removable Media" ) ); LabelPlayqueueTemplate->setText( tr2i18n( "This template is used for displaying the playqueue." ) ); TabWidget2->changeTab( TabPage_2, tr2i18n( "Playqueue Template" ) ); } #include "PreferencesDialogBase.moc"