added qt4gui code from Gennadi Sushko
This commit is contained in:
parent
e37fcd25a1
commit
a845c7b55b
58
src/qt4gui/recoll.pro.in
Normal file
58
src/qt4gui/recoll.pro.in
Normal file
@ -0,0 +1,58 @@
|
||||
TEMPLATE = app
|
||||
LANGUAGE = C++
|
||||
|
||||
CONFIG += qt warn_on thread release debug
|
||||
|
||||
HEADERS += rclmain.h rclreslist.h uiprefs.h recollmain.h
|
||||
HEADERS += preview/preview.h advsearch.h sort.h ssearchb.h
|
||||
|
||||
SOURCES += main.cpp \
|
||||
rclmain.cpp \
|
||||
idxthread.cpp \
|
||||
plaintorich.cpp \
|
||||
guiutils.cpp \
|
||||
rclreslist.cpp \
|
||||
uiprefs.cpp \
|
||||
recollmain.cpp \
|
||||
preview/preview.cpp \
|
||||
advsearch.cpp \
|
||||
sort.cpp \
|
||||
ssearchb.cpp
|
||||
|
||||
FORMS = sort.ui \
|
||||
advsearch.ui \
|
||||
recollmain.ui \
|
||||
preview/preview.ui \
|
||||
uiprefs.ui \
|
||||
ssearchb.ui
|
||||
|
||||
IMAGES = images/asearch.png \
|
||||
images/history.png \
|
||||
images/d_nextpage.png \
|
||||
images/nextpage.png \
|
||||
images/d_prevpage.png \
|
||||
images/prevpage.png \
|
||||
images/sortparms.png
|
||||
|
||||
unix {
|
||||
UI_DIR = .ui
|
||||
MOC_DIR = .moc
|
||||
OBJECTS_DIR = .obj
|
||||
|
||||
DEFINES += RECOLL_DATADIR=\"@QTRECOLL_DATADIR@\"
|
||||
LIBS += ../lib/librcl.a ../bincimapmime/libmime.a \
|
||||
$(BSTATIC) @LIBXAPIAN@ @LIBICONV@ $(BDYNAMIC) \
|
||||
-lz
|
||||
|
||||
INCLUDEPATH += ../common ../index ../query ../unac ../utils
|
||||
POST_TARGETDEPS = ../lib/librcl.a
|
||||
}
|
||||
|
||||
UNAME = $$system(uname -s)
|
||||
contains( UNAME, [lL]inux ) {
|
||||
LIBS -= -liconv
|
||||
}
|
||||
|
||||
TRANSLATIONS = i18n/recoll_fr.ts i18n/recoll_ru.ts i18n/recoll_uk.ts
|
||||
#The following line was inserted by qt3to4
|
||||
QT += qt3support
|
||||
345
src/qt4gui/recollmain.ui
Normal file
345
src/qt4gui/recollmain.ui
Normal file
@ -0,0 +1,345 @@
|
||||
<ui version="4.0" >
|
||||
<author></author>
|
||||
<comment></comment>
|
||||
<exportmacro></exportmacro>
|
||||
<class>RclMainBase</class>
|
||||
<widget class="Q3MainWindow" name="RclMainBase" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>681</width>
|
||||
<height>244</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy>
|
||||
<hsizetype>5</hsizetype>
|
||||
<vsizetype>5</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>16</width>
|
||||
<height>115</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>Recoll</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="widget" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>64</y>
|
||||
<width>681</width>
|
||||
<height>180</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<property name="margin" >
|
||||
<number>11</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<property name="margin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="SSearchBase" name="sSearch" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy>
|
||||
<hsizetype>5</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="RclResList" name="resList" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy>
|
||||
<hsizetype>5</hsizetype>
|
||||
<vsizetype>5</vsizetype>
|
||||
<horstretch>2</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="Q3ToolBar" name="Toolbar" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>118</width>
|
||||
<height>35</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="label" >
|
||||
<string>Search tools</string>
|
||||
</property>
|
||||
<addaction name="toolsAdvanced_SearchAction" />
|
||||
<addaction name="toolsSort_parametersAction" />
|
||||
<addaction name="toolsDoc_HistoryAction" />
|
||||
</widget>
|
||||
<widget class="Q3ToolBar" name="Toolbar1" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>118</x>
|
||||
<y>0</y>
|
||||
<width>85</width>
|
||||
<height>35</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="label" >
|
||||
<string>Result list</string>
|
||||
</property>
|
||||
<addaction name="prevPageAction" />
|
||||
<addaction name="nextPageAction" />
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="MenuBar" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>681</width>
|
||||
<height>29</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="fileMenu" >
|
||||
<property name="title" >
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<addaction name="fileStart_IndexingAction" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="fileExitAction" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="Tools" >
|
||||
<property name="title" >
|
||||
<string>&Tools</string>
|
||||
</property>
|
||||
<addaction name="toolsDoc_HistoryAction" />
|
||||
<addaction name="toolsAdvanced_SearchAction" />
|
||||
<addaction name="toolsSort_parametersAction" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="Preferences" >
|
||||
<property name="title" >
|
||||
<string>&Preferences</string>
|
||||
</property>
|
||||
<addaction name="preferencesQuery_PrefsAction" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="Help" >
|
||||
<property name="title" >
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
<addaction name="userManualAction" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="helpAbout_RecollAction" />
|
||||
</widget>
|
||||
<addaction name="fileMenu" />
|
||||
<addaction name="Tools" />
|
||||
<addaction name="Preferences" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="Help" />
|
||||
</widget>
|
||||
<action name="fileExitAction" >
|
||||
<property name="text" >
|
||||
<string>E&xit</string>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>Exit</string>
|
||||
</property>
|
||||
<property name="shortcut" >
|
||||
<string>Ctrl+Q</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="fileStart_IndexingAction" >
|
||||
<property name="text" >
|
||||
<string>Update &index</string>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>Update index</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="helpAbout_RecollAction" >
|
||||
<property name="text" >
|
||||
<string>&About Recoll</string>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>About Recoll</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="userManualAction" >
|
||||
<property name="text" >
|
||||
<string>&User manual</string>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>User manual</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="toolsDoc_HistoryAction" >
|
||||
<property name="icon" >
|
||||
<iconset>images/history.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Document &History</string>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>Document &History</string>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Document History</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="toolsAdvanced_SearchAction" >
|
||||
<property name="icon" >
|
||||
<iconset>images/asearch.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>&Advanced Search</string>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>Advanced Search</string>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Advanced/complex Search</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="toolsSort_parametersAction" >
|
||||
<property name="icon" >
|
||||
<iconset>images/sortparms.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>&Sort parameters</string>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>&Sort parameters</string>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Sort parameters</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="nextPageAction" >
|
||||
<property name="enabled" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon" >
|
||||
<iconset>images/nextpage.png</iconset>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>Next page</string>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Next page of results</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="prevPageAction" >
|
||||
<property name="enabled" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon" >
|
||||
<iconset>images/prevpage.png</iconset>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>Previous page</string>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Previous page of results</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="preferencesQuery_PrefsAction" >
|
||||
<property name="text" >
|
||||
<string>&Query configuration</string>
|
||||
</property>
|
||||
<property name="iconText" >
|
||||
<string>&Query configuration</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11" />
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Q3ToolBar</class>
|
||||
<extends>Q3Frame</extends>
|
||||
<header>q3listview.h</header>
|
||||
<container>0</container>
|
||||
<pixmap></pixmap>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>SSearchBase</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>ssearchb.h</header>
|
||||
<container>0</container>
|
||||
<pixmap></pixmap>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>RclResList</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>rclreslist.h</header>
|
||||
<container>0</container>
|
||||
<pixmap></pixmap>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>Q3MainWindow</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>q3mainwindow.h</header>
|
||||
<container>1</container>
|
||||
<pixmap></pixmap>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<includes>
|
||||
<include location="local" >ssearchb.h</include>
|
||||
<include location="local" >rclreslist.h</include>
|
||||
</includes>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>prevPageAction</sender>
|
||||
<signal>activated()</signal>
|
||||
<receiver>resList</receiver>
|
||||
<slot>resultPageBack()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>nextPageAction</sender>
|
||||
<signal>activated()</signal>
|
||||
<receiver>resList</receiver>
|
||||
<slot>showResultPage()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
||||
Loading…
x
Reference in New Issue
Block a user