dialogs/help.cpp: dialogs/about.hpp
-dialogs/about.hpp:
- echo "char *psz_licence = { \\" > dialogs/about.hpp
+dialogs/about.hpp: ../../../AUTHORS ../../../COPYING ../../../THANKS
+ echo "#define LICENCE { \\" > dialogs/about.hpp
cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
echo "};" >> dialogs/about.hpp
- echo "char *psz_thanks = { \\" >> dialogs/about.hpp
- cat $(top_srcdir)/THANKS | grep -v '$$Id:' | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
+ echo "#define THANKS { \\" >> dialogs/about.hpp
+ cat $(top_srcdir)/THANKS | tail -$$((`wc -l $(top_srcdir)/THANKS|cut -d" " -f 1` - 2))|sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
echo "};" >> dialogs/about.hpp
- echo "char *psz_authors = { \\" >> dialogs/about.hpp
- cat $(top_srcdir)/AUTHORS | grep -v '$$Id:' | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
+ echo "#define AUTHORS { \\" >> dialogs/about.hpp
+ cat $(top_srcdir)/AUTHORS | tail -$$((`wc -l $(top_srcdir)/AUTHORS|cut -d" " -f 1` - 2))|sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
echo "};" >> dialogs/about.hpp
-
SOURCES_qt4 = qt4.cpp \
menus.cpp \
main_interface.cpp \
/* GPL License */
QTextEdit *licenseEdit = new QTextEdit( this );
- licenseEdit->setText( qfu( psz_licence ) );
+#ifdef WIN32
+ QFile *licenseFile = new QFile( "COPYING.txt" );
+ licenseFile->open( QIODevice::ReadOnly | QIODevice::Text );
+ licenseEdit->setText( licenseFile->readAll().data() );
+ licenseFile->close();
+#else
+ char *psz_license = LICENCE;
+ licenseEdit->setText( qfu( psz_license ) );
+#endif
licenseEdit->setReadOnly( true );
/* People who helped */
thanksLabel->setWordWrap( true );
thanksLayout->addWidget( thanksLabel );
QTextEdit *thanksEdit = new QTextEdit( this );
+#ifdef WIN32
+ QFile *thanksFile = new QFile( "THANKS.txt" );
+ thanksFile->open( QIODevice::ReadOnly | QIODevice::Text );
+ thanksEdit->setText( thanksFile->readAll().data() );
+ thanksFile->close();
+#else
+ char *psz_thanks = THANKS;
thanksEdit->setText( qfu( psz_thanks ) );
+#endif
thanksEdit->setReadOnly( true );
thanksLayout->addWidget( thanksEdit );
/* People who wrote the software */
QTextEdit *authorsEdit = new QTextEdit( this );
+#ifdef WIN32
+ QFile *authorsFile = new QFile( "COPYING.txt" );
+ authorsFile->open( QIODevice::ReadOnly | QIODevice::Text );
+ authorsEdit->setText( authorsFile->readAll().data() );
+ authorsFile->close();
+#else
+ char *psz_authors = AUTHORS;
authorsEdit->setText( qfu( psz_authors ) );
+#endif
authorsEdit->setReadOnly( true );
/* add the tabs to the Tabwidget */