[dependencies/tqtinterface] added initial cmake support

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1182534 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 12 years ago
parent e5e5db14bf
commit 20ec2740a5
  1. 741
      CMakeLists.txt
  2. 10
      qtinterface/TQt.pc.cmake
  3. 16
      qtinterface/tmoc.cmake
  4. 499
      qtinterface/tqt-replace-stream.cmake
  5. 502
      qtinterface/tqt-replace.cmake
  6. 1329
      qtinterface/tqt.h.cmake

@ -0,0 +1,741 @@
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
cmake_minimum_required( VERSION 2.6 )
project( tqt )
set( TQT_MAJOR_VERSION 3 )
set( TQT_MINOR_VERSION 5 )
set( TQT_MICRO_VERSION 12 )
set( TQT_VERSION "${TQT_MAJOR_VERSION}.${TQT_MINOR_VERSION}.${TQT_MICRO_VERSION}" )
if( BUILD_QT4 )
find_package( Qt4 REQUIRED )
set( QT_VER 4 )
else( BUILD_QT4 )
set( QT_MT_REQUIRED TRUE )
find_package( Qt3 REQUIRED )
set( QT_VER 3 )
endif( BUILD_QT4 )
##### paths setup ###############################
if( NOT BIN_INSTALL_DIR )
set( BIN_INSTALL_DIR bin )
endif ( NOT BIN_INSTALL_DIR )
if( NOT LIB_INSTALL_DIR )
set( LIB_INSTALL_DIR lib )
endif( NOT LIB_INSTALL_DIR )
if( NOT INCLUDE_INSTALL_DIR )
set( INCLUDE_INSTALL_DIR include/tqt )
endif( NOT INCLUDE_INSTALL_DIR )
if( NOT PKGCONFIG_INSTALL_DIR )
set( PKGCONFIG_INSTALL_DIR lib/pkgconfig )
endif( NOT PKGCONFIG_INSTALL_DIR )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}/qtinterface # for tqt.h
${CMAKE_CURRENT_SOURCE_DIR}/qtinterface
${QT_INCLUDE_DIR}
)
set( tqt_TOOLS
qtinterface/moc-tqt
qtinterface/mcopidl-tqt
qtinterface/dcopidl-tqt
qtinterface/dcopidlng-tqt
qtinterface/dcopidl2cpp-tqt
qtinterface/convert_qt_tqt1
qtinterface/convert_qt_tqt2
qtinterface/convert_qt_tqt3
${CMAKE_CURRENT_BINARY_DIR}/qtinterface/tmoc
${CMAKE_CURRENT_BINARY_DIR}/qtinterface/tqt-replace
${CMAKE_CURRENT_BINARY_DIR}/qtinterface/tqt-replace-stream
)
set( tqt_INCS
${CMAKE_CURRENT_BINARY_DIR}/qtinterface/tqt.h
qtinterface/tqaccel.h
qtinterface/tqaccessible.h
qtinterface/tqaction.h
qtinterface/tqapplication.h
qtinterface/tqasyncio.h
qtinterface/tqbuttongroup.h
qtinterface/tqbutton.h
qtinterface/tqcanvas.h
qtinterface/tqcdestyle.h
qtinterface/tqcheckbox.h
qtinterface/tqclipboard.h
qtinterface/tqcolordialog.h
qtinterface/tqcombobox.h
qtinterface/tqcommonstyle.h
qtinterface/tqdatabrowser.h
qtinterface/tqdatatable.h
qtinterface/tqdataview.h
qtinterface/tqdatetimeedit.h
qtinterface/tqdesktopwidget.h
qtinterface/tqdial.h
qtinterface/tqdialog.h
qtinterface/tqdns.h
qtinterface/tqdockarea.h
qtinterface/tqdockwindow.h
qtinterface/tqdragobject.h
qtinterface/tqerrormessage.h
qtinterface/tqeventloop.h
qtinterface/tqfiledialog.h
qtinterface/tqfontdialog.h
qtinterface/tqframe.h
qtinterface/tqftp.h
qtinterface/tqgl.h
qtinterface/tqgplugin.h
qtinterface/tqgrid.h
qtinterface/tqgridview.h
qtinterface/tqgroupbox.h
qtinterface/tqguardedptr.h
qtinterface/tqhbox.h
qtinterface/tqhbuttongroup.h
qtinterface/tqheader.h
qtinterface/tqhgroupbox.h
qtinterface/tqhttp.h
qtinterface/tqiconview.h
qtinterface/tqimageformatplugin.h
qtinterface/tqinputdialog.h
qtinterface/tqlabel.h
qtinterface/tqlayout.h
qtinterface/tqlcdnumber.h
qtinterface/tqlineedit.h
qtinterface/tqlistbox.h
qtinterface/tqlistview.h
qtinterface/tqlocalfs.h
qtinterface/tqmainwindow.h
qtinterface/tqmenubar.h
qtinterface/tqmessagebox.h
qtinterface/tqmotifplusstyle.h
qtinterface/tqmotifstyle.h
qtinterface/tqmultilineedit.h
qtinterface/tqnetworkprotocol.h
qtinterface/tqnp.h
qtinterface/tqobjectcleanuphandler.h
qtinterface/tqobject.h
qtinterface/tqplatinumstyle.h
qtinterface/tqpopupmenu.h
qtinterface/tqprintdialog.h
qtinterface/tqprocess.h
qtinterface/tqprogressbar.h
qtinterface/tqprogressdialog.h
qtinterface/tqpushbutton.h
qtinterface/tqradiobutton.h
qtinterface/tqrangecontrol.h
qtinterface/tqscrollbar.h
qtinterface/tqscrollview.h
qtinterface/tqsemimodal.h
qtinterface/tqserversocket.h
qtinterface/tqsessionmanager.h
qtinterface/tqsgistyle.h
qtinterface/tqsignal.h
qtinterface/tqsignalmapper.h
qtinterface/tqsizegrip.h
qtinterface/tqslider.h
qtinterface/tqsocket.h
qtinterface/tqsocketnotifier.h
qtinterface/tqsound.h
qtinterface/tqspinbox.h
qtinterface/tqsplashscreen.h
qtinterface/tqsplitter.h
qtinterface/tqsqldatabase.h
qtinterface/tqsqldriver.h
qtinterface/tqsqldriverplugin.h
qtinterface/tqsqlform.h
qtinterface/tqsqlquery.h
qtinterface/tqstatusbar.h
qtinterface/tqstyle.h
qtinterface/tqstyleplugin.h
qtinterface/tqstylesheet.h
qtinterface/tqtabbar.h
qtinterface/tqtabdialog.h
qtinterface/tqtable.h
qtinterface/tqtabwidget.h
qtinterface/tqtextbrowser.h
qtinterface/tqtextcodecplugin.h
qtinterface/tqtextedit.h
qtinterface/tqtextview.h
qtinterface/tqtimer.h
qtinterface/tqtoolbar.h
qtinterface/tqtoolbox.h
qtinterface/tqtoolbutton.h
qtinterface/tqtooltip.h
qtinterface/tqtranslator.h
qtinterface/tqurloperator.h
qtinterface/tqvalidator.h
qtinterface/tqvbox.h
qtinterface/tqvbuttongroup.h
qtinterface/tqvgroupbox.h
qtinterface/tqwidget.h
qtinterface/tqwidgetplugin.h
qtinterface/tqwidgetstack.h
qtinterface/tqwindowsstyle.h
qtinterface/tqwizard.h
qtinterface/tqworkspace.h
qtinterface/tqapp.h
qtinterface/tqarray.h
qtinterface/tqbitarry.h
qtinterface/tqbttngrp.h
qtinterface/tqchkbox.h
qtinterface/tqclipbrd.h
qtinterface/tqcollect.h
qtinterface/tqcollection.h
qtinterface/tqcombo.h
qtinterface/tqconfig.h
qtinterface/tqconnect.h
qtinterface/tqdatetm.h
qtinterface/tqdrawutl.h
qtinterface/tqdstream.h
qtinterface/tqfeatures.h
qtinterface/tqfiledef.h
qtinterface/tqfiledlg.h
qtinterface/tqfileinf.h
qtinterface/tqfontinf.h
qtinterface/tqfontmet.h
qtinterface/tqgbkcodec.h
qtinterface/tqgeneric.h
qtinterface/tqgif.h
qtinterface/tqglobal.h
qtinterface/tqgrpbox.h
qtinterface/tqintcach.h
qtinterface/tqiodev.h
qtinterface/tqjpegio.h
qtinterface/tqkeycode.h
qtinterface/tqlined.h
qtinterface/tqlist.h
qtinterface/tqmenudta.h
qtinterface/tqmetaobj.h
qtinterface/tqmlined.h
qtinterface/tqmngio.h
qtinterface/tqmodules.h
qtinterface/tqmsgbox.h
qtinterface/tqmultilinedit.h
qtinterface/tqnetwork.h
qtinterface/tqobjcoll.h
qtinterface/tqobjdefs.h
qtinterface/tqpaintdc.h
qtinterface/tqpaintd.h
qtinterface/tqpdevmet.h
qtinterface/tqpmcache.h
qtinterface/tqpntarry.h
qtinterface/tqpopmenu.h
qtinterface/tqprndlg.h
qtinterface/tqprogbar.h
qtinterface/tqprogdlg.h
qtinterface/tqpushbt.h
qtinterface/tqqueue.h
qtinterface/tqradiobt.h
qtinterface/tqrangect.h
qtinterface/tqscrbar.h
qtinterface/tqsession.h
qtinterface/tqsocknot.h
qtinterface/tqstack.h
qtinterface/tqtabdlg.h
qtinterface/tqtstream.h
qtinterface/tqvector.h
qtinterface/tqwidcoll.h
qtinterface/tqwindefs.h
qtinterface/tqwindowdefs.h
qtinterface/tqwinexport.h
qtinterface/tq1xcompatibility.h
qtinterface/tqabstractlayout.h
qtinterface/tqasciicache.h
qtinterface/tqasciidict.h
qtinterface/tqasyncimageio.h
qtinterface/tqbig5codec.h
qtinterface/tqbitarray.h
qtinterface/tqbitmap.h
qtinterface/tqbrush.h
qtinterface/tqbuffer.h
qtinterface/tqcache.h
qtinterface/tqcleanuphandler.h
qtinterface/tqcolor.h
qtinterface/tqcompactstyle.h
qtinterface/tqconnection.h
qtinterface/tqcstring.h
qtinterface/tqcursor.h
qtinterface/tqdatastream.h
qtinterface/tqdatetime.h
qtinterface/tqdeepcopy.h
qtinterface/tqdict.h
qtinterface/tqdir.h
qtinterface/tqdom.h
qtinterface/tqdrawutil.h
qtinterface/tqdropsite.h
qtinterface/tqeditorfactory.h
qtinterface/tqeucjpcodec.h
qtinterface/tqeuckrcodec.h
qtinterface/tqevent.h
qtinterface/tqfile.h
qtinterface/tqfileinfo.h
qtinterface/tqfocusdata.h
qtinterface/tqfontdatabase.h
qtinterface/tqfont.h
qtinterface/tqfontinfo.h
qtinterface/tqfontmetrics.h
qtinterface/tqgarray.h
qtinterface/tqgb18030codec.h
qtinterface/tqgcache.h
qtinterface/tqgdict.h
qtinterface/tqglcolormap.h
qtinterface/tqglist.h
qtinterface/tqgvector.h
qtinterface/tqhostaddress.h
qtinterface/tqiconset.h
qtinterface/tqimage.h
qtinterface/tqintcache.h
qtinterface/tqintdict.h
qtinterface/tqinterlacestyle.h
qtinterface/tqiodevice.h
qtinterface/tqjiscodec.h
qtinterface/tqjpunicode.h
qtinterface/tqkeysequence.h
qtinterface/tqlibrary.h
qtinterface/tqlocale.h
qtinterface/tqmap.h
qtinterface/tqmemarray.h
qtinterface/tqmenudata.h
qtinterface/tqmetaobject.h
qtinterface/tqmime.h
qtinterface/tqmovie.h
qtinterface/tqmutex.h
qtinterface/tqnamespace.h
qtinterface/tqobjectdict.h
qtinterface/tqobjectlist.h
qtinterface/tqpaintdevice.h
qtinterface/tqpaintdevicemetrics.h
qtinterface/tqpainter.h
qtinterface/tqpair.h
qtinterface/tqpalette.h
qtinterface/tqpen.h
qtinterface/tqpicture.h
qtinterface/tqpixmapcache.h
qtinterface/tqpixmap.h
qtinterface/tqpngio.h
qtinterface/tqpointarray.h
qtinterface/tqpoint.h
qtinterface/tqpolygonscanner.h
qtinterface/tqprinter.h
qtinterface/tqptrcollection.h
qtinterface/tqptrdict.h
qtinterface/tqptrlist.h
qtinterface/tqptrqueue.h
qtinterface/tqptrstack.h
qtinterface/tqptrvector.h
qtinterface/tqrect.h
qtinterface/tqregexp.h
qtinterface/tqregion.h
qtinterface/tqrtlcodec.h
qtinterface/tqsemaphore.h
qtinterface/tqsettings.h
qtinterface/tqshared.h
qtinterface/tqsignalslotimp.h
qtinterface/tqsimplerichtext.h
qtinterface/tqsize.h
qtinterface/tqsizepolicy.h
qtinterface/tqsjiscodec.h
qtinterface/tqsocketdevice.h
qtinterface/tqsortedlist.h
qtinterface/tqsqlcursor.h
qtinterface/tqsqleditorfactory.h
qtinterface/tqsqlerror.h
qtinterface/tqsqlfield.h
qtinterface/tqsql.h
qtinterface/tqsqlindex.h
qtinterface/tqsqlpropertymap.h
qtinterface/tqsqlrecord.h
qtinterface/tqsqlresult.h
qtinterface/tqsqlselectcursor.h
qtinterface/tqstring.h
qtinterface/tqstringlist.h
qtinterface/tqstrlist.h
qtinterface/tqstrvec.h
qtinterface/tqstylefactory.h
qtinterface/tqsyntaxhighlighter.h
qtinterface/tqtextcodecfactory.h
qtinterface/tqtextcodec.h
qtinterface/tqtextstream.h
qtinterface/tqthread.h
qtinterface/tqthreadstorage.h
qtinterface/tqtl.h
qtinterface/tqtsciicodec.h
qtinterface/tqurl.h
qtinterface/tqurlinfo.h
qtinterface/tqutfcodec.h
qtinterface/tquuid.h
qtinterface/tqvaluelist.h
qtinterface/tqvaluestack.h
qtinterface/tqvaluevector.h
qtinterface/tqvariant.h
qtinterface/tqvfbhdr.h
qtinterface/tqwaitcondition.h
qtinterface/tqwhatsthis.h
qtinterface/tqwidgetfactory.h
qtinterface/tqwidgetintdict.h
qtinterface/tqwidgetlist.h
qtinterface/tqwmatrix.h
qtinterface/tqxml.h
qtinterface/private/tqucomextra_p.h
qtinterface/tqlistiterator.h
)
set( tqt_SRCS
qtinterface/tqt.cpp
qtinterface/tqaccel.cpp
qtinterface/tqaccessible.cpp
qtinterface/tqaction.cpp
qtinterface/tqapplication.cpp
qtinterface/tqasyncio.cpp
qtinterface/tqbuttongroup.cpp
qtinterface/tqbutton.cpp
qtinterface/tqcanvas.cpp
qtinterface/tqcdestyle.cpp
qtinterface/tqcheckbox.cpp
qtinterface/tqclipboard.cpp
qtinterface/tqcolordialog.cpp
qtinterface/tqcombobox.cpp
qtinterface/tqcommonstyle.cpp
qtinterface/tqdatabrowser.cpp
qtinterface/tqdatatable.cpp
qtinterface/tqdataview.cpp
qtinterface/tqdatetimeedit.cpp
qtinterface/tqdesktopwidget.cpp
qtinterface/tqdial.cpp
qtinterface/tqdialog.cpp
qtinterface/tqdns.cpp
qtinterface/tqdockarea.cpp
qtinterface/tqdockwindow.cpp
qtinterface/tqdragobject.cpp
qtinterface/tqerrormessage.cpp
qtinterface/tqeventloop.cpp
qtinterface/tqframe.cpp
qtinterface/tqftp.cpp
qtinterface/tqfiledialog.cpp
qtinterface/tqfontdialog.cpp
qtinterface/tqgl.cpp
qtinterface/tqgplugin.cpp
qtinterface/tqgrid.cpp
qtinterface/tqgridview.cpp
qtinterface/tqgroupbox.cpp
qtinterface/tqguardedptr.cpp
qtinterface/tqhbox.cpp
qtinterface/tqhbuttongroup.cpp
qtinterface/tqheader.cpp
qtinterface/tqhgroupbox.cpp
qtinterface/tqhttp.cpp
qtinterface/tqiconview.cpp
qtinterface/tqimageformatplugin.cpp
qtinterface/tqinputdialog.cpp
qtinterface/tqlabel.cpp
qtinterface/tqlayout.cpp
qtinterface/tqlcdnumber.cpp
qtinterface/tqlineedit.cpp
qtinterface/tqlistbox.cpp
qtinterface/tqlistview.cpp
qtinterface/tqlocalfs.cpp
qtinterface/tqmainwindow.cpp
qtinterface/tqmenubar.cpp
qtinterface/tqmessagebox.cpp
qtinterface/tqmotifplusstyle.cpp
qtinterface/tqmotifstyle.cpp
qtinterface/tqmultilineedit.cpp
qtinterface/tqnetworkprotocol.cpp
qtinterface/tqnp.cpp
qtinterface/tqobjectcleanuphandler.cpp
qtinterface/tqobject.cpp
qtinterface/tqplatinumstyle.cpp
qtinterface/tqpopupmenu.cpp
qtinterface/tqprintdialog.cpp
qtinterface/tqprocess.cpp
qtinterface/tqprogressbar.cpp
qtinterface/tqprogressdialog.cpp
qtinterface/tqpushbutton.cpp
qtinterface/tqradiobutton.cpp
qtinterface/tqrangecontrol.cpp
qtinterface/tqscrollbar.cpp
qtinterface/tqscrollview.cpp
qtinterface/tqsemimodal.cpp
qtinterface/tqserversocket.cpp
qtinterface/tqsessionmanager.cpp
qtinterface/tqsgistyle.cpp
qtinterface/tqsignal.cpp
qtinterface/tqsignalmapper.cpp
qtinterface/tqsizegrip.cpp
qtinterface/tqslider.cpp
qtinterface/tqsocket.cpp
qtinterface/tqsocketnotifier.cpp
qtinterface/tqsound.cpp
qtinterface/tqspinbox.cpp
qtinterface/tqsplashscreen.cpp
qtinterface/tqsplitter.cpp
qtinterface/tqsqldatabase.cpp
qtinterface/tqsqldriver.cpp
qtinterface/tqsqldriverplugin.cpp
qtinterface/tqsqlform.cpp
qtinterface/tqsqlquery.cpp
qtinterface/tqstatusbar.cpp
qtinterface/tqstyle.cpp
qtinterface/tqstyleplugin.cpp
qtinterface/tqstylesheet.cpp
qtinterface/tqtabbar.cpp
qtinterface/tqtabdialog.cpp
qtinterface/tqtable.cpp
qtinterface/tqtabwidget.cpp
qtinterface/tqtextbrowser.cpp
qtinterface/tqtextcodecplugin.cpp
qtinterface/tqtextedit.cpp
qtinterface/tqtextview.cpp
qtinterface/tqtimer.cpp
qtinterface/tqtoolbar.cpp
qtinterface/tqtoolbox.cpp
qtinterface/tqtoolbutton.cpp
qtinterface/tqtooltip.cpp
qtinterface/tqtranslator.cpp
qtinterface/tqurloperator.cpp
qtinterface/tqvalidator.cpp
qtinterface/tqvbox.cpp
qtinterface/tqvbuttongroup.cpp
qtinterface/tqvgroupbox.cpp
qtinterface/tqwidget.cpp
qtinterface/tqwidgetplugin.cpp
qtinterface/tqwidgetstack.cpp
qtinterface/tqwindowsstyle.cpp
qtinterface/tqwizard.cpp
qtinterface/tqworkspace.cpp
qtinterface/tq1xcompatibility.cpp
qtinterface/tqabstractlayout.cpp
qtinterface/tqasciicache.cpp
qtinterface/tqasciidict.cpp
qtinterface/tqasyncimageio.cpp
qtinterface/tqbig5codec.cpp
qtinterface/tqbitarray.cpp
qtinterface/tqbitmap.cpp
qtinterface/tqbrush.cpp
qtinterface/tqbuffer.cpp
qtinterface/tqcache.cpp
qtinterface/tqcleanuphandler.cpp
qtinterface/tqcolor.cpp
qtinterface/tqcompactstyle.cpp
qtinterface/tqconnection.cpp
qtinterface/tqcstring.cpp
qtinterface/tqcursor.cpp
qtinterface/tqdatastream.cpp
qtinterface/tqdatetime.cpp
qtinterface/tqdeepcopy.cpp
qtinterface/tqdict.cpp
qtinterface/tqdir.cpp
qtinterface/tqdom.cpp
qtinterface/tqdrawutil.cpp
qtinterface/tqdropsite.cpp
qtinterface/tqeditorfactory.cpp
qtinterface/tqeucjpcodec.cpp
qtinterface/tqeuckrcodec.cpp
qtinterface/tqevent.cpp
qtinterface/tqfile.cpp
qtinterface/tqfileinfo.cpp
qtinterface/tqfocusdata.cpp
qtinterface/tqfontdatabase.cpp
qtinterface/tqfont.cpp
qtinterface/tqfontinfo.cpp
qtinterface/tqfontmetrics.cpp
qtinterface/tqgarray.cpp
qtinterface/tqgb18030codec.cpp
qtinterface/tqgcache.cpp
qtinterface/tqgdict.cpp
qtinterface/tqglcolormap.cpp
qtinterface/tqglist.cpp
qtinterface/tqgvector.cpp
qtinterface/tqhostaddress.cpp
qtinterface/tqiconset.cpp
qtinterface/tqimage.cpp
qtinterface/tqintcache.cpp
qtinterface/tqintdict.cpp
qtinterface/tqinterlacestyle.cpp
qtinterface/tqiodevice.cpp
qtinterface/tqjiscodec.h
qtinterface/tqjpunicode.cpp
qtinterface/tqkeysequence.cpp
qtinterface/tqlibrary.cpp
qtinterface/tqlocale.cpp
qtinterface/tqmap.cpp
qtinterface/tqmemarray.cpp
qtinterface/tqmenudata.cpp
qtinterface/tqmetaobject.cpp
qtinterface/tqmime.cpp
qtinterface/tqmovie.cpp
qtinterface/tqmutex.cpp
qtinterface/tqnamespace.cpp
qtinterface/tqobjectdict.cpp
qtinterface/tqobjectlist.cpp
qtinterface/tqpaintdevice.cpp
qtinterface/tqpaintdevicemetrics.cpp
qtinterface/tqpainter.cpp
qtinterface/tqpair.cpp
qtinterface/tqpalette.cpp
qtinterface/tqpen.cpp
qtinterface/tqpicture.cpp
qtinterface/tqpixmapcache.cpp
qtinterface/tqpixmap.cpp
qtinterface/tqpngio.cpp
qtinterface/tqpointarray.cpp
qtinterface/tqpoint.cpp
qtinterface/tqpolygonscanner.cpp
qtinterface/tqprinter.cpp
qtinterface/tqptrcollection.cpp
qtinterface/tqptrdict.cpp
qtinterface/tqptrlist.cpp
qtinterface/tqptrqueue.cpp
qtinterface/tqptrstack.cpp
qtinterface/tqptrvector.cpp
qtinterface/tqrect.cpp
qtinterface/tqregexp.cpp
qtinterface/tqregion.cpp
qtinterface/tqrtlcodec.cpp
qtinterface/tqsemaphore.cpp
qtinterface/tqsettings.cpp
qtinterface/tqshared.cpp
qtinterface/tqsignalslotimp.cpp
qtinterface/tqsimplerichtext.cpp
qtinterface/tqsize.cpp
qtinterface/tqsizepolicy.cpp
qtinterface/tqsjiscodec.cpp
qtinterface/tqsocketdevice.cpp
qtinterface/tqsortedlist.cpp
qtinterface/tqsqlcursor.cpp
qtinterface/tqsqleditorfactory.cpp
qtinterface/tqsqlerror.cpp
qtinterface/tqsqlfield.cpp
qtinterface/tqsql.cpp
qtinterface/tqsqlindex.cpp
qtinterface/tqsqlpropertymap.cpp
qtinterface/tqsqlrecord.cpp
qtinterface/tqsqlresult.cpp
qtinterface/tqsqlselectcursor.cpp
qtinterface/tqstring.cpp
qtinterface/tqstringlist.cpp
qtinterface/tqstrlist.cpp
qtinterface/tqstrvec.cpp
qtinterface/tqstylefactory.cpp
qtinterface/tqsyntaxhighlighter.cpp
qtinterface/tqtextcodecfactory.cpp
qtinterface/tqtextcodec.cpp
qtinterface/tqtextstream.cpp
qtinterface/tqthread.cpp
qtinterface/tqthreadstorage.cpp
qtinterface/tqtl.cpp
qtinterface/tqtsciicodec.cpp
qtinterface/tqurl.cpp
qtinterface/tqurlinfo.cpp
qtinterface/tqutfcodec.cpp
qtinterface/tquuid.cpp
qtinterface/tqvaluelist.cpp
qtinterface/tqvaluestack.cpp
qtinterface/tqvaluevector.cpp
qtinterface/tqvariant.cpp
qtinterface/tqvfbhdr.cpp
qtinterface/tqwaitcondition.cpp
qtinterface/tqwhatsthis.cpp
qtinterface/tqwidgetfactory.cpp
qtinterface/tqwidgetintdict.cpp
qtinterface/tqwidgetlist.cpp
qtinterface/tqwmatrix.cpp
qtinterface/tqxml.cpp
qtinterface/private/tqucomextra_p.cpp
qtinterface/tqlistiterator.cpp
)
#################################################
#
# On some systems (without immqt) qinputcontext.h
# and qinputcontextfactory.h can missing, so we
# must to exclude it from compiling/installing.
#
if( NOT WITHOUT_INPUTCONTEXT )
include( CheckIncludeFile )
set( bak_CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} )
set( CMAKE_REQUIRED_DEFINITIONS -I${QT_INCLUDE_DIR} -DQINPUTCONTEXT_H -DQINPUTCONTEXTFACTORY_H )
check_include_file( "qinputcontext.h" HAVE_QINPUTCONTEXT_H )
if( HAVE_QINPUTCONTEXT_H )
set( tqt_INCS ${tqt_INCS} qtinterface/tqinputcontext.h )
set( tqt_SRCS ${tqt_SRCS} qtinterface/tqinputcontext.cpp )
endif( HAVE_QINPUTCONTEXT_H )
check_include_file( "qinputcontextfactory.h" HAVE_QINPUTCONTEXTFACTORY_H )
if( HAVE_QINPUTCONTEXTFACTORY_H )
set( tqt_INCS ${tqt_INCS} qtinterface/tqinputcontextfactory.h )
set( tqt_SRCS ${tqt_SRCS} qtinterface/tqinputcontextfactory.cpp )
endif( HAVE_QINPUTCONTEXTFACTORY_H )
set( CMAKE_REQUIRED_DEFINITIONS ${bak_CMAKE_REQUIRED_DEFINITIONS} )
unset( bak_CMAKE_REQUIRED_DEFINITIONS )
endif( NOT WITHOUT_INPUTCONTEXT )
#
#################################################
configure_file( qtinterface/tmoc.cmake qtinterface/tmoc @ONLY )
configure_file( qtinterface/tqt-replace.cmake qtinterface/tqt-replace @ONLY )
configure_file( qtinterface/tqt-replace-stream.cmake qtinterface/tqt-replace-stream @ONLY )
configure_file( qtinterface/tqt.h.cmake qtinterface/tqt.h @ONLY )
add_definitions( ${QT_DEFINITIONS} )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
add_library( tqt SHARED ${tqt_SRCS} )
set_target_properties( tqt PROPERTIES VERSION 4.2.0 SOVERSION 4 )
target_link_libraries( tqt ${QT_LIBRARIES} )
##### split QT_DEFINITIONS and QT_LIBRARIES for using in TQt.pc
foreach( DEF ${QT_DEFINITIONS} )
set( PKGCONFIG_QT_DEFINITIONS "${PKGCONFIG_QT_DEFINITIONS} ${DEF}" )
endforeach( DEF ${QT_DEFINITIONS} )
# a pretty ugly hack for extracting Qt library parameters
get_filename_component( QT_LIBRARY_DIR ${QT_QT_LIBRARY} PATH )
set( PKGCONFIG_QT_LIBRARIES "-L${QT_LIBRARY_DIR}" )
foreach( LIB ${QT_LIBRARIES} )
get_filename_component( LIB ${LIB} NAME_WE )
string( REGEX REPLACE "^lib" "" LIB ${LIB} )
string( REGEX REPLACE "^-l" "" LIB ${LIB} )
# we don't need qassistantclient, I think
if( NOT ${LIB} STREQUAL "qassistantclient" )
set( PKGCONFIG_QT_LIBRARIES "${PKGCONFIG_QT_LIBRARIES} -l${LIB}" )
endif( NOT ${LIB} STREQUAL "qassistantclient" )
endforeach( LIB ${PKGCONFIG_QT_LIBRARIES} )
##### write TQt.pc ##############################
configure_file( qtinterface/TQt.pc.cmake qtinterface/TQt.pc @ONLY )
##### install ###################################
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/qtinterface/TQt.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} )
install( PROGRAMS ${tqt_TOOLS} DESTINATION ${BIN_INSTALL_DIR} )
install( TARGETS tqt LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
install( FILES ${tqt_INCS} DESTINATION ${INCLUDE_INSTALL_DIR} )
install( DIRECTORY qtinterface/tqt4/Qt DESTINATION ${INCLUDE_INSTALL_DIR} PATTERN ".svn" EXCLUDE )

@ -0,0 +1,10 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${prefix}/@LIB_INSTALL_DIR@
includedir=${prefix}/@INCLUDE_INSTALL_DIR@
Name: TQt
Description: Interface and abstraction library for Qt and Trinity
Version: @TQT_VERSION@
Libs: -L${libdir} -ltqt @PKGCONFIG_QT_LIBRARIES@
Cflags: @PKGCONFIG_QT_DEFINITIONS@ -I@QT_INCLUDE_DIR@ -I${includedir}

@ -0,0 +1,16 @@
#!/bin/bash
#
# Very simple moc wrapper, for using with cmake
#
if [ -z "$1" ]; then
echo "Usage: tmoc <input_file> -o <out_file>"
else
input_file="$1"
out_file="$3"
@CMAKE_INSTALL_PREFIX@/@BIN_INSTALL_DIR@/tqt-replace-stream "${input_file}" | \
@QT_MOC_EXECUTABLE@ | \
sed "/#include <qmetaobject.h>/ i #undef QT_NO_COMPAT\n#include \"${input_file}\"" \
> "${out_file}"
fi

@ -0,0 +1,499 @@
#!/bin/bash
QT_VER=@QT_VER@
if [[ $1 == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
if [[ $QT_VER == 3 ]]; then
cat $1 | \
sed 's/TQ\([^T]\)/Q\1/g' | \
sed 's/TQT\([^_]\)/QT\1/g'
fi
if [[ $QT_VER == 4 ]]; then
cat $1 | \
sed 's/TQAccel/Q3Accel/g' | \
sed 's/TQAccessible/QAccessible/g' | \
sed 's/TQAccessibleObject/QAccessibleObject/g' | \
sed 's/TQAction/Q3Action/g' | \
sed 's/TQActionGroup/Q3ActionGroup/g' | \
sed 's/TQApplication/QApplication/g' | \
sed 's/TQAsciiCache/Q3AsciiCache/g' | \
sed 's/TQAsciiCacheIterator/Q3AsciiCacheIterator/g' | \
sed 's/TQAsciiDict/Q3AsciiDict/g' | \
sed 's/TQAsciiDictIterator/Q3AsciiDictIterator/g' | \
sed 's/TQImageConsumer/QImageConsumer/g' | \
sed 's/TQImageFormat/QImageFormat/g' | \
sed 's/TQImageFormatType/QImageFormatType/g' | \
sed 's/TQImageDecoder/QImageDecoder/g' | \
sed 's/TQAsyncIO/QAsyncIO/g' | \
sed 's/TQByteArray/QByteArray/g' | \
sed 's/TQDataSink/QDataSink/g' | \
sed 's/TQDataSource/QDataSource/g' | \
sed 's/TQIODeviceSource/QIODeviceSource/g' | \
sed 's/TQDataPump/QDataPump/g' | \
sed 's/TQBig5Codec/QBig5Codec/g' | \
sed 's/TQBig5hkscsCodec/QBig5hkscsCodec/g' | \
sed 's/TQBitVal/QBitVal/g' | \
sed 's/TQBitArray/QBitArray/g' | \
sed 's/TQBitmap/QBitmap/g' | \
sed 's/TQBrush/QBrush/g' | \
sed 's/TQBuffer/QBuffer/g' | \
sed 's/TQButtonGroup/Q3ButtonGroup/g' | \
sed 's/TQButton/Q3Button/g' | \
sed 's/TQCache/Q3Cache/g' | \
sed 's/TQCacheIterator/Q3CacheIterator/g' | \
sed 's/TQCanvasChunk/Q3CanvasChunk/g' | \
sed 's/TQCanvasItemList/Q3CanvasItemList/g' | \
sed 's/TQCanvasItemExtra/Q3CanvasItemExtra/g' | \
sed 's/TQCanvasItem/Q3CanvasItem/g' | \
sed 's/TQCanvasData/Q3CanvasData/g' | \
sed 's/TQCanvas/Q3Canvas/g' | \
sed 's/TQCanvasViewData/Q3CanvasViewData/g' | \
sed 's/TQCanvasView/Q3CanvasView/g' | \
sed 's/TQCanvasPixmap/Q3CanvasPixmap/g' | \
sed 's/TQCanvasPixmapArray/Q3CanvasPixmapArray/g' | \
sed 's/TQCanvasSprite/Q3CanvasSprite/g' | \
sed 's/TQPolygonalProcessor/QPolygonalProcessor/g' | \
sed 's/TQCanvasPolygonalItem/Q3CanvasPolygonalItem/g' | \
sed 's/TQCanvasRectangle/Q3CanvasRectangle/g' | \
sed 's/TQCanvasPolygon/Q3CanvasPolygon/g' | \
sed 's/TQCanvasSpline/Q3CanvasSpline/g' | \
sed 's/TQCanvasLine/Q3CanvasLine/g' | \
sed 's/TQCanvasEllipse/Q3CanvasEllipse/g' | \
sed 's/TQCanvasTextExtra/Q3CanvasTextExtra/g' | \
sed 's/TQCanvasText/Q3CanvasText/g' | \
sed 's/TQCDEStyle/QCDEStyle/g' | \
sed 's/TQCheckBox/QCheckBox/g' | \
sed 's/TQCleanupHandler/QCleanupHandler/g' | \
sed 's/TQSingleCleanupHandler/QSingleCleanupHandler/g' | \
sed 's/TQSharedCleanupHandler/QSharedCleanupHandler/g' | \
sed 's/TQShared/Q3Shared/g' | \
sed 's/TQColor/QColor/g' | \
sed 's/TQColorDialog/QColorDialog/g' | \
# sed 's/TQStrList/QStrList/g' | \
# sed 's/TQStringList/QStringList/g' | \
sed 's/TQStringPairList/Q3StringPairList/g' | \
sed 's/TQLineEdit/QLineEdit/g' | \
sed 's/TQValidator/QValidator/g' | \
sed 's/TQListBox/QListBox/g' | \
sed 's/TQComboBoxData/Q3ComboBoxData/g' | \
sed 's/TQComboTableItem/Q3ComboTableItem/g' | \
sed 's/TQWheelEvent/QWheelEvent/g' | \
sed 's/TQComboBox/Q3ComboBox/g' | \
sed 's/TQCommonStyle/QCommonStyle/g' | \
sed 's/TQCompactStyle/QCompactStyle/g' | \
sed 's/TQConnection/QConnection/g' | \
sed 's/TQCString/Q3CString/g' | \
sed 's/TQCursor/QCursor/g' | \
sed 's/TQSqlForm/QSqlForm/g' | \
sed 's/TQDataBr