These are exceptions to the unac mechanism " - "which, by default, removes all diacritics, " - "and performs canonic decomposition. You can override " - "unaccenting for some characters, depending on your " - "language, and specify additional decompositions, " - "e.g. for ligatures. In each space-separated entry, " - "the first character is the source one, and the rest " - "is the translation." - )); - gl1->addWidget(euexc, 8, 0, 1, 2); + w = new + ConfParamStrW(this, + ConfLink(new ConfLinkRclRep(config, "unac_except_trans")), + tr("Unac exceptions"), + tr("
These are exceptions to the unac mechanism "
+ "which, by default, removes all diacritics, "
+ "and performs canonic decomposition. You can override "
+ "unaccenting for some characters, depending on your "
+ "language, and specify additional decompositions, "
+ "e.g. for ligatures. In each space-separated entry, "
+ "the first character is the source one, and the rest "
+ "is the translation."
+ ));
+ gl1->addWidget(w, gridrow++, 0, 1, 2);
}
-ConfSubPanelW::ConfSubPanelW(QWidget *parent, ConfNull *config)
+ConfSubPanelW::ConfSubPanelW(QWidget *parent, ConfNull *config,
+ RclConfig *rclconf)
: QWidget(parent), m_config(config)
{
QVBoxLayout *vboxLayout = new QVBoxLayout(this);
vboxLayout->setSpacing(spacing);
vboxLayout->setMargin(margin);
- ConfLink lnksubkeydirs(new ConfLinkNullRep());
m_subdirs = new
- ConfParamDNLW(this, lnksubkeydirs,
+ ConfParamDNLW(this,
+ ConfLink(new ConfLinkNullRep()),
QObject::tr("Customised subtrees"),
QObject::tr("The list of subdirectories in the indexed "
"hierarchy
where some parameters need "
@@ -404,16 +418,41 @@ ConfSubPanelW::ConfSubPanelW(QWidget *parent, ConfNull *config)
QGridLayout *gl1 = new QGridLayout(m_groupbox);
gl1->setSpacing(spacing);
gl1->setMargin(margin);
+ int gridy = 0;
- ConfLink lnkskn(new ConfLinkRclRep(config, "skippedNames", &m_sk));
- ConfParamSLW *eskn = new
- ConfParamSLW(m_groupbox, lnkskn,
- QObject::tr("Skipped names"),
- QObject::tr("These are patterns for file or directory "
- " names which should not be indexed."));
+ ConfParamSLW *eskn = new ConfParamSLW(
+ m_groupbox,
+ ConfLink(new ConfLinkRclRep(config, "skippedNames", &m_sk)),
+ QObject::tr("Skipped names"),
+ QObject::tr("These are patterns for file or directory "
+ " names which should not be indexed."));
eskn->setFsEncoding(true);
m_widgets.push_back(eskn);
- gl1->addWidget(eskn, 0, 0, 1, 2);
+ gl1->addWidget(eskn, gridy, 0);
+
+ vector
Nothing "
+ "else will be indexed. Normally empty and inactive"), amimesq);
+ m_widgets.push_back(eincm);
+ gl1->addWidget(eincm, gridy++, 1);
+
+ ConfParamCSLW *eexcm = new ConfParamCSLW(
+ m_groupbox,
+ ConfLink(new ConfLinkRclRep(config, "excludedmimetypes", &m_sk)),
+ tr("Exclude mime types"),
+ tr("Mime types not to be indexed"), amimesq);
+ m_widgets.push_back(eexcm);
+ gl1->addWidget(eexcm, gridy, 0);
vector
"
- "The default value is empty, "
- "and the value from the NLS environnement is used."
- ), charsets);
+ ConfParamCStrW *e21 = new ConfParamCStrW(
+ m_groupbox,
+ ConfLink(new ConfLinkRclRep(config, "defaultcharset", &m_sk)),
+ QObject::tr("Default
character set"),
+ QObject::tr("Character set used for reading files "
+ "which do not identify the character set "
+ "internally, for example pure text files.
"
+ "The default value is empty, "
+ "and the value from the NLS environnement is used."
+ ), charsets);
m_widgets.push_back(e21);
- gl1->addWidget(e21, 1, 0, 1, 2);
+ gl1->addWidget(e21, gridy++, 1);
- ConfLink lnk3(new ConfLinkRclRep(config, "followLinks", &m_sk));
- ConfParamBoolW *e3 = new
- ConfParamBoolW(m_groupbox, lnk3,
- QObject::tr("Follow symbolic links"),
- QObject::tr("Follow symbolic links while "
- "indexing. The default is no, "
- "to avoid duplicate indexing"));
+ ConfParamBoolW *e3 = new ConfParamBoolW(
+ m_groupbox,
+ ConfLink(new ConfLinkRclRep(config, "followLinks", &m_sk)),
+ QObject::tr("Follow symbolic links"),
+ QObject::tr("Follow symbolic links while "
+ "indexing. The default is no, "
+ "to avoid duplicate indexing"));
m_widgets.push_back(e3);
- gl1->addWidget(e3, 2, 0);
+ gl1->addWidget(e3, gridy, 0);
- ConfLink lnkafln(new ConfLinkRclRep(config, "indexallfilenames", &m_sk));
- ConfParamBoolW *eafln = new
- ConfParamBoolW(m_groupbox, lnkafln,
- QObject::tr("Index all file names"),
- QObject::tr("Index the names of files for which the contents "
- "cannot be identified or processed (no or "
- "unsupported mime type). Default true"));
+ ConfParamBoolW *eafln = new ConfParamBoolW(
+ m_groupbox,
+ ConfLink(new ConfLinkRclRep(config, "indexallfilenames", &m_sk)),
+ QObject::tr("Index all file names"),
+ QObject::tr("Index the names of files for which the contents "
+ "cannot be identified or processed (no or "
+ "unsupported mime type). Default true"));
m_widgets.push_back(eafln);
- gl1->addWidget(eafln, 2, 1);
+ gl1->addWidget(eafln, gridy++, 1);
- ConfLink lnkzfmaxkbs(new ConfLinkRclRep(config, "compressedfilemaxkbs"));
- ConfParamIntW *ezfmaxkbs = new
- ConfParamIntW(m_groupbox, lnkzfmaxkbs,
- tr("Max. compressed file size (KB)"),
- tr("This value sets a threshold beyond which compressed"
- "files will not be processed. Set to -1 for no "
- "limit, to 0 for no decompression ever."),
- -1, 1000000, -1);
+ ConfParamIntW *ezfmaxkbs = new ConfParamIntW(
+ m_groupbox,
+ ConfLink(new ConfLinkRclRep(config, "compressedfilemaxkbs", &m_sk)),
+ tr("Max. compressed file size (KB)"),
+ tr("This value sets a threshold beyond which compressed"
+ "files will not be processed. Set to -1 for no "
+ "limit, to 0 for no decompression ever."), -1, 1000000, -1);
m_widgets.push_back(ezfmaxkbs);
- gl1->addWidget(ezfmaxkbs, 3, 0);
+ gl1->addWidget(ezfmaxkbs, gridy, 0);
- ConfLink lnktxtmaxmbs(new ConfLinkRclRep(config, "textfilemaxmbs"));
- ConfParamIntW *etxtmaxmbs = new
- ConfParamIntW(m_groupbox, lnktxtmaxmbs,
- tr("Max. text file size (MB)"),
- tr("This value sets a threshold beyond which text "
- "files will not be processed. Set to -1 for no "
- "limit. \nThis is for excluding monster "
- "log files from the index."),
- -1, 1000000);
+ ConfParamIntW *etxtmaxmbs = new ConfParamIntW(
+ m_groupbox,
+ ConfLink(new ConfLinkRclRep(config, "textfilemaxmbs", &m_sk)),
+ tr("Max. text file size (MB)"),
+ tr("This value sets a threshold beyond which text "
+ "files will not be processed. Set to -1 for no "
+ "limit. \nThis is for excluding monster "
+ "log files from the index."), -1, 1000000);
m_widgets.push_back(etxtmaxmbs);
- gl1->addWidget(etxtmaxmbs, 3, 1);
+ gl1->addWidget(etxtmaxmbs, gridy++, 1);
- ConfLink lnktxtpagekbs(new ConfLinkRclRep(config, "textfilepagekbs"));
- ConfParamIntW *etxtpagekbs = new
- ConfParamIntW(m_groupbox, lnktxtpagekbs,
- tr("Text file page size (KB)"),
- tr("If this value is set (not equal to -1), text "
- "files will be split in chunks of this size for "
- "indexing.\nThis will help searching very big text "
- " files (ie: log files)."),
- -1, 1000000);
+ ConfParamIntW *etxtpagekbs = new ConfParamIntW(
+ m_groupbox,
+ ConfLink(new ConfLinkRclRep(config, "textfilepagekbs", &m_sk)),
+ tr("Text file page size (KB)"),
+ tr("If this value is set (not equal to -1), text "
+ "files will be split in chunks of this size for "
+ "indexing.\nThis will help searching very big text "
+ " files (ie: log files)."), -1, 1000000);
m_widgets.push_back(etxtpagekbs);
- gl1->addWidget(etxtpagekbs, 4, 0);
+ gl1->addWidget(etxtpagekbs, gridy, 0);
- ConfLink lnkfiltmaxsecs(new ConfLinkRclRep(config, "filtermaxseconds"));
- ConfParamIntW *efiltmaxsecs = new
- ConfParamIntW(m_groupbox, lnkfiltmaxsecs,
- tr("Max. filter exec. time (S)"),
- tr("External filters working longer than this will be "
- "aborted. This is for the rare case (ie: postscript) "
- "where a document could cause a filter to loop. "
- "Set to -1 for no limit.\n"),
- -1, 10000);
+ ConfParamIntW *efiltmaxsecs = new ConfParamIntW(
+ m_groupbox,
+ ConfLink(new ConfLinkRclRep(config, "filtermaxseconds", &m_sk)),
+ tr("Max. filter exec. time (S)"),
+ tr("External filters working longer than this will be "
+ "aborted. This is for the rare case (ie: postscript) "
+ "where a document could cause a filter to loop. "
+ "Set to -1 for no limit.\n"), -1, 10000);
m_widgets.push_back(efiltmaxsecs);
- gl1->addWidget(efiltmaxsecs, 4, 1);
+ gl1->addWidget(efiltmaxsecs, gridy++, 1);
vboxLayout->addWidget(m_groupbox);
subDirChanged(0, 0);
diff --git a/src/qtgui/confgui/confguiindex.h b/src/qtgui/confgui/confguiindex.h
index f6d25fc2..87af1d3d 100644
--- a/src/qtgui/confgui/confguiindex.h
+++ b/src/qtgui/confgui/confguiindex.h
@@ -75,7 +75,7 @@ public:
class ConfSubPanelW : public QWidget {
Q_OBJECT
public:
- ConfSubPanelW(QWidget *parent, ConfNull *config);
+ ConfSubPanelW(QWidget *parent, ConfNull *config, RclConfig *rclconf);
private slots:
void subDirChanged(QListWidgetItem *, QListWidgetItem *);