GUI: add option to "special index" for setting the diagnostics file
This commit is contained in:
parent
4756b1252b
commit
2f646a70a4
@ -399,12 +399,18 @@ void RclMain::rebuildIndex()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpecIdxW::onBrowsePB_clicked()
|
void SpecIdxW::onTargBrowsePB_clicked()
|
||||||
{
|
{
|
||||||
QString dir = myGetFileName(true, tr("Top indexed entity"), true);
|
QString dir = myGetFileName(true, tr("Top indexed entity"), true);
|
||||||
targLE->setText(dir);
|
targLE->setText(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SpecIdxW::onDiagsBrowsePB_clicked()
|
||||||
|
{
|
||||||
|
QString fn = myGetFileName(false, tr("Diagnostics file"));
|
||||||
|
diagsLE->setText(fn);
|
||||||
|
}
|
||||||
|
|
||||||
bool SpecIdxW::noRetryFailed()
|
bool SpecIdxW::noRetryFailed()
|
||||||
{
|
{
|
||||||
return !retryFailedCB->isChecked();
|
return !retryFailedCB->isChecked();
|
||||||
@ -430,6 +436,11 @@ std::string SpecIdxW::toptarg()
|
|||||||
return qs2utf8s(targLE->text());
|
return qs2utf8s(targLE->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string SpecIdxW::diagsfile()
|
||||||
|
{
|
||||||
|
return qs2utf8s(diagsLE->text());
|
||||||
|
}
|
||||||
|
|
||||||
void SpecIdxW::onTargLE_textChanged(const QString& text)
|
void SpecIdxW::onTargLE_textChanged(const QString& text)
|
||||||
{
|
{
|
||||||
if (text.isEmpty())
|
if (text.isEmpty())
|
||||||
@ -484,6 +495,12 @@ void RclMain::specialIndex()
|
|||||||
args.push_back("-r");
|
args.push_back("-r");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string diagsfile = specidx->diagsfile();
|
||||||
|
if (!diagsfile.empty()) {
|
||||||
|
args.push_back("--diagfile");
|
||||||
|
args.push_back(diagsfile);
|
||||||
|
}
|
||||||
|
|
||||||
if (specidx->eraseFirst()) {
|
if (specidx->eraseFirst()) {
|
||||||
if (top.empty()) {
|
if (top.empty()) {
|
||||||
args.push_back("-Z");
|
args.push_back("-Z");
|
||||||
|
|||||||
@ -33,19 +33,22 @@ public:
|
|||||||
: QDialog(parent) {
|
: QDialog(parent) {
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
selPatsLE->setEnabled(false);
|
selPatsLE->setEnabled(false);
|
||||||
connect(browsePB, SIGNAL(clicked()), this, SLOT(onBrowsePB_clicked()));
|
connect(targBrowsePB, SIGNAL(clicked()), this, SLOT(onTargBrowsePB_clicked()));
|
||||||
connect(targLE, SIGNAL(textChanged(const QString&)),
|
connect(targLE, SIGNAL(textChanged(const QString&)),
|
||||||
this, SLOT(onTargLE_textChanged(const QString&)));
|
this, SLOT(onTargLE_textChanged(const QString&)));
|
||||||
|
connect(diagsBrowsePB, SIGNAL(clicked()), this, SLOT(onDiagsBrowsePB_clicked()));
|
||||||
}
|
}
|
||||||
bool noRetryFailed();
|
bool noRetryFailed();
|
||||||
bool eraseFirst();
|
bool eraseFirst();
|
||||||
std::vector<std::string> selpatterns();
|
std::vector<std::string> selpatterns();
|
||||||
std::string toptarg();
|
std::string toptarg();
|
||||||
|
std::string diagsfile();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
void onTargLE_textChanged(const QString&);
|
void onTargLE_textChanged(const QString&);
|
||||||
void onBrowsePB_clicked();
|
void onTargBrowsePB_clicked();
|
||||||
|
void onDiagsBrowsePB_clicked();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -58,7 +58,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QPushButton" name="browsePB">
|
<widget class="QPushButton" name="targBrowsePB">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Browse</string>
|
<string>Browse</string>
|
||||||
</property>
|
</property>
|
||||||
@ -98,6 +98,46 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QGridLayout">
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLineEdit" name="diagsLE">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
|
<horstretch>8</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>300</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QPushButton" name="diagsBrowsePB">
|
||||||
|
<property name="text">
|
||||||
|
<string>Browse</string>
|
||||||
|
</property>
|
||||||
|
<property name="autoDefault">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="textLabel2">
|
||||||
|
<property name="text">
|
||||||
|
<string>Diagnostics output file. Will be truncated and receive indexing diagnostics (reasons for files not being indexed).</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user