settings_stream_widget_saving.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "settings_stream_widget_saving.h"
00022
00023 settings_stream_widget_saving::settings_stream_widget_saving(QWidget * parent) : QWidget(parent)
00024 {
00025 setupUi(this);
00026
00027
00028
00029 kcfg_splittedFilesOverwrite->addItem(i18nc("@item:inlistbox overwrite files that have been split",
00030 "Always"));
00031 kcfg_splittedFilesOverwrite->addItem(i18nc("@item:inlistbox overwrite files that have been split",
00032 "Larger"));
00033 kcfg_splittedFilesOverwrite->addItem(i18nc("@item:inlistbox overwrite files that have been split",
00034 "Never"));
00035 kcfg_singleFileOverwrite->addItem(i18nc("@item:inlistbox override single file", "Yes"));
00036 kcfg_singleFileOverwrite->addItem(i18nc("@item:inlistbox override single file", "No"));
00037
00038 connect(kcfg_splittedFilesOverwrite,
00039 SIGNAL(currentIndexChanged(int)),
00040 this,
00041 SLOT(handleCheckboxTruncate(int)));
00042 }
00043
00044 settings_stream_widget_saving::~settings_stream_widget_saving()
00045 {
00046 }
00047
00048 void settings_stream_widget_saving::handleCheckboxTruncate(const int entry_number)
00049 {
00050 if (entry_number == 0) {
00051 kcfg_truncateDuplicatesInIncomplete->setEnabled(false);
00052 } else {
00053 kcfg_truncateDuplicatesInIncomplete->setEnabled(true);
00054 };
00055 }