1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

Replace text with end-user version

This commit is contained in:
Jeff Mitchell 2011-06-14 19:33:31 -04:00
parent e8b02406d5
commit f5d61a60f8
2 changed files with 61 additions and 64 deletions

View File

@ -121,22 +121,17 @@ SettingsDialog::SettingsDialog( QWidget *parent )
connect( ui->scannerDirModeButton, SIGNAL( clicked( bool ) ), SLOT( updateScanOptionsView() ) );
connect( ui->scannerFileModeButton, SIGNAL( clicked( bool ) ), SLOT( updateScanOptionsView() ) );
if ( s->scannerMode() == TomahawkSettings::Files )
{
ui->scanInformationLabel->setText( "Files mode uses the changed time of every file to determine if the file has\nchanged. This can be more processor, disk, and network-intensive, especially\nfor files over a network connection. This mode is recommended, but switch\nto Directory Mode or raise the time between scans if you encounter trouble." );
ui->scannerFileModeButton->setChecked( true );
}
else
{
ui->scanInformationLabel->setText( "Directory mode mode uses the changed time of collection directories to\ndetermine if files have changed. This is less processor, disk, and \nnetwork-intensive when simply running checks, so may be better for\nfiles over a network connection. However, it will only pick up changes\nif a file has been added to or removed from a directory, and scans\nentire directories at once (so is not good for very flat collections)." );
ui->scannerDirModeButton->setChecked( true );
}
if ( ui->checkBoxWatchForChanges->isChecked() )
{
ui->scanTimeLabel->show();
ui->scannerTimeSpinBox->show();
ui->scannerDirModeButton->show();
ui->scannerFileModeButton->show();
ui->scanInformationLabel->show();
ui->scanInformationLabelFiles->show();
ui->scanInformationLabelDirs->show();
}
else
{
@ -144,7 +139,8 @@ SettingsDialog::SettingsDialog( QWidget *parent )
ui->scannerTimeSpinBox->hide();
ui->scannerDirModeButton->hide();
ui->scannerFileModeButton->hide();
ui->scanInformationLabel->hide();
ui->scanInformationLabelFiles->hide();
ui->scanInformationLabelDirs->hide();
}
// NOW PLAYING
@ -375,17 +371,12 @@ SettingsDialog::updateScanOptionsView()
ui->scannerTimeSpinBox->show();
ui->scannerDirModeButton->show();
ui->scannerFileModeButton->show();
ui->scanInformationLabel->show();
ui->scanInformationLabelFiles->show();
ui->scanInformationLabelDirs->show();
if ( sender() == ui->scannerFileModeButton || ( sender() == ui->checkBoxWatchForChanges && TomahawkSettings::instance()->scannerMode() == TomahawkSettings::Files ) )
{
ui->scanInformationLabel->setText( "Files mode uses the changed time of every file to determine if the file has\nchanged. This can be more processor, disk, and network-intensive, especially\nfor files over a network connection. This mode is recommended, but switch\nto Directory Mode or raise the time between scans if you encounter trouble." );
ui->scannerFileModeButton->setChecked( true );
}
else
{
ui->scanInformationLabel->setText( "Directory mode mode uses the changed time of collection directories to\ndetermine if files have changed. This is less processor, disk, and \nnetwork-intensive when simply running checks, so may be better for\nfiles over a network connection. However, it will only pick up changes\nif a file has been added to or removed from a directory, and scans\nentire directories at once (so is not good for very flat collections)." );
ui->scannerDirModeButton->setChecked( true );
}
}
else
{
@ -393,7 +384,8 @@ SettingsDialog::updateScanOptionsView()
ui->scannerTimeSpinBox->hide();
ui->scannerDirModeButton->hide();
ui->scannerFileModeButton->hide();
ui->scanInformationLabel->hide();
ui->scanInformationLabelFiles->hide();
ui->scanInformationLabelDirs->hide();
}
}

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>641</width>
<height>370</height>
<height>393</height>
</rect>
</property>
<property name="windowTitle">
@ -302,7 +302,7 @@
<item>
<widget class="QRadioButton" name="scannerFileModeButton">
<property name="text">
<string>Files Mode</string>
<string>Files Mode (Recommended)</string>
</property>
</widget>
</item>
@ -315,55 +315,60 @@
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_21">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QLabel" name="scanInformationLabelFiles">
<property name="text">
<string>⚫ More accurate
⚫ Uses more computer resources</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="margin">
<number>2</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="scanInformationLabelDirs">
<property name="text">
<string>⚫ Less accurate
⚫ Uses less computer resources
⚫ Can be better for network files</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="margin">
<number>2</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<spacer name="verticalSpacer_9">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="scanInformationLabel">
<property name="text">
<string>Directory mode mode uses the changed time of collection directories to
determine if files have changed. This is less processor, disk, and
network-intensive when simply running checks, so may be better for
files over a network connection. However, it will only pick up changes
if a file has been added to or removed from a directory, and scans
entire directories at once (so is not good for very flat collections).</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="nowPlaying">
<property name="title">
<string>Now Playing Information</string>
@ -390,7 +395,7 @@ entire directories at once (so is not good for very flat collections).</string>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<spacer name="verticalSpacer_1">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>