*** empty log message ***

This commit is contained in:
dockes 2005-11-30 09:46:48 +00:00
parent f773eff0b1
commit 5f9675fd7b
3 changed files with 160 additions and 116 deletions

View File

@ -24,7 +24,7 @@
</property> </property>
<widget class="QLayoutWidget"> <widget class="QLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout28</cstring> <cstring>layout13</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -145,135 +145,147 @@
<enum>Horizontal</enum> <enum>Horizontal</enum>
</property> </property>
</widget> </widget>
<widget class="QCheckBox">
<property name="name">
<cstring>restrictFtCB</cstring>
</property>
<property name="text">
<string>Restrict file types</string>
</property>
</widget>
<widget class="QLayoutWidget"> <widget class="QLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout19</cstring> <cstring>layout12</cstring>
</property> </property>
<vbox> <hbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QCheckBox"> <widget class="QLayoutWidget">
<property name="name"> <property name="name">
<cstring>restrictFtCB</cstring> <cstring>layout9</cstring>
</property>
<property name="text">
<string>Restrict file types</string>
</property> </property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
<property name="text">
<string>Searched file types</string>
</property>
</widget>
<widget class="QListBox">
<property name="name">
<cstring>yesFiltypsLB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>100</height>
</size>
</property>
<property name="selectionMode">
<enum>Extended</enum>
</property>
</widget>
</vbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="QLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout11</cstring> <cstring>layout11</cstring>
</property> </property>
<hbox> <vbox>
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget"> <widget class="QPushButton">
<property name="name"> <property name="name">
<cstring>layout9</cstring> <cstring>delAFiltypPB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>All ----&gt;</string>
</property> </property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
<property name="text">
<string>Searched file types</string>
</property>
</widget>
<widget class="QListBox">
<property name="name">
<cstring>yesFiltypsLB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>100</height>
</size>
</property>
<property name="selectionMode">
<enum>Extended</enum>
</property>
</widget>
</vbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="QPushButton">
<property name="name"> <property name="name">
<cstring>layout11</cstring> <cstring>delFiltypPB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Sel -----&gt;</string>
</property> </property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QPushButton">
<property name="name">
<cstring>delFiltypPB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>--------&gt;</string>
</property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>addFiltypPB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>&lt;---------</string>
</property>
</widget>
</vbox>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="QPushButton">
<property name="name"> <property name="name">
<cstring>layout10</cstring> <cstring>addFiltypPB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>&lt;----- Sel</string>
</property> </property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
<property name="text">
<string>Ignored file types</string>
</property>
</widget>
<widget class="QListBox">
<property name="name">
<cstring>noFiltypsLB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>100</height>
</size>
</property>
<property name="selectionMode">
<enum>Extended</enum>
</property>
</widget>
</vbox>
</widget> </widget>
</hbox> <widget class="QPushButton">
<property name="name">
<cstring>addAFiltypPB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>&lt;----- All</string>
</property>
</widget>
</vbox>
</widget> </widget>
</vbox> <widget class="QLayoutWidget">
<property name="name">
<cstring>layout10</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
<property name="text">
<string>Ignored file types</string>
</property>
</widget>
<widget class="QListBox">
<property name="name">
<cstring>noFiltypsLB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>100</height>
</size>
</property>
<property name="selectionMode">
<enum>Extended</enum>
</property>
</widget>
</vbox>
</widget>
</hbox>
</widget> </widget>
<widget class="Line"> <widget class="Line">
<property name="name"> <property name="name">
@ -437,6 +449,18 @@
<receiver>advsearch</receiver> <receiver>advsearch</receiver>
<slot>searchPB_clicked()</slot> <slot>searchPB_clicked()</slot>
</connection> </connection>
<connection>
<sender>delAFiltypPB</sender>
<signal>clicked()</signal>
<receiver>advsearch</receiver>
<slot>delAFiltypPB_clicked()</slot>
</connection>
<connection>
<sender>addAFiltypPB</sender>
<signal>clicked()</signal>
<receiver>advsearch</receiver>
<slot>addAFiltypPB_clicked()</slot>
</connection>
</connections> </connections>
<includes> <includes>
<include location="local" impldecl="in declaration">recoll.h</include> <include location="local" impldecl="in declaration">recoll.h</include>
@ -447,7 +471,9 @@
</signals> </signals>
<slots> <slots>
<slot>delFiltypPB_clicked()</slot> <slot>delFiltypPB_clicked()</slot>
<slot>delAFiltypPB_clicked()</slot>
<slot>addFiltypPB_clicked()</slot> <slot>addFiltypPB_clicked()</slot>
<slot>addAFiltypPB_clicked()</slot>
<slot>restrictFtCB_toggled( bool on )</slot> <slot>restrictFtCB_toggled( bool on )</slot>
<slot>searchPB_clicked()</slot> <slot>searchPB_clicked()</slot>
<slot>browsePB_clicked()</slot> <slot>browsePB_clicked()</slot>

View File

@ -59,6 +59,13 @@ void advsearch::delFiltypPB_clicked()
noFiltypsLB->sort(); noFiltypsLB->sort();
} }
void advsearch::delAFiltypPB_clicked()
{
for (unsigned int i = 0; i < yesFiltypsLB->count();i++) {
yesFiltypsLB->setSelected(i, true);
}
delFiltypPB_clicked();
}
// Move selected file types from the ignored to the searched box // Move selected file types from the ignored to the searched box
void advsearch::addFiltypPB_clicked() void advsearch::addFiltypPB_clicked()
@ -81,6 +88,14 @@ void advsearch::addFiltypPB_clicked()
noFiltypsLB->sort(); noFiltypsLB->sort();
} }
void advsearch::addAFiltypPB_clicked()
{
for (unsigned int i = 0; i < noFiltypsLB->count();i++) {
noFiltypsLB->setSelected(i, true);
}
addFiltypPB_clicked();
}
// Activate file type selection // Activate file type selection
void advsearch::restrictFtCB_toggled(bool on) void advsearch::restrictFtCB_toggled(bool on)
@ -88,6 +103,8 @@ void advsearch::restrictFtCB_toggled(bool on)
yesFiltypsLB->setEnabled(on); yesFiltypsLB->setEnabled(on);
delFiltypPB->setEnabled(on); delFiltypPB->setEnabled(on);
addFiltypPB->setEnabled(on); addFiltypPB->setEnabled(on);
delAFiltypPB->setEnabled(on);
addAFiltypPB->setEnabled(on);
noFiltypsLB->setEnabled(on); noFiltypsLB->setEnabled(on);
} }
@ -116,3 +133,4 @@ void advsearch::browsePB_clicked()
QString dir = QFileDialog::getExistingDirectory(); QString dir = QFileDialog::getExistingDirectory();
subtreeLE->setText(dir); subtreeLE->setText(dir);
} }

View File

@ -1,4 +1,4 @@
# @(#$Id: mimeconf,v 1.11 2005-11-25 09:14:14 dockes Exp $ (C) 2004 J.F.Dockes # @(#$Id: mimeconf,v 1.12 2005-11-30 09:46:48 dockes Exp $ (C) 2004 J.F.Dockes
# Recoll : associations of mime types to processing filters. # Recoll : associations of mime types to processing filters.
# There are different sections for decompression, 'interning' for indexing # There are different sections for decompression, 'interning' for indexing
@ -55,17 +55,17 @@ text/plain = xemacs %f
text/html = firefox %u text/html = firefox %u
application/pdf = xpdf %f application/pdf = xpdf %f
application/postscript = gv %f application/postscript = gv %f
application/msword = openoffice-1.1.3-swriter %f application/msword = openoffice %f
application/vnd.sun.xml.calc = openoffice-1.1.3 %f application/vnd.sun.xml.calc = openoffice %f
application/vnd.sun.xml.calc.template = openoffice-1.1.3 %f application/vnd.sun.xml.calc.template = openoffice %f
application/vnd.sun.xml.draw = openoffice-1.1.3 %f application/vnd.sun.xml.draw = openoffice %f
application/vnd.sun.xml.draw.template = openoffice-1.1.3 %f application/vnd.sun.xml.draw.template = openoffice %f
application/vnd.sun.xml.impress = openoffice-1.1.3 %f application/vnd.sun.xml.impress = openoffice %f
application/vnd.sun.xml.impress.template = openoffice-1.1.3 %f application/vnd.sun.xml.impress.template = openoffice %f
application/vnd.sun.xml.math = openoffice-1.1.3 %f application/vnd.sun.xml.math = openoffice %f
application/vnd.sun.xml.writer = openoffice-1.1.3 %f application/vnd.sun.xml.writer = openoffice %f
application/vnd.sun.xml.writer.global = openoffice-1.1.3 %f application/vnd.sun.xml.writer.global = openoffice %f
application/vnd.sun.xml.writer.template = openoffice-1.1.3 %f application/vnd.sun.xml.writer.template = openoffice %f
# Icons to be used in the result list. # Icons to be used in the result list.
[icons] [icons]