[texworks] Error with TWApp.h in rev 476

Vladimir Lomov lomov.vl at gmail.com
Mon Oct 19 05:04:33 CEST 2009


Hi.

Today (2009-10-19 local time) I updated my svn (read only) repo of
TeXworks (rev. 476) and try to compile texworks (archlinux 64bit) and
got error while compiling TWApp:


/usr/bin/uic src/TeXDocument.ui -o ui/ui_TeXDocument.h
/usr/bin/uic src/PDFDocument.ui -o ui/ui_PDFDocument.h
/usr/bin/uic src/Find.ui -o ui/ui_Find.h
/usr/bin/uic src/PDFFind.ui -o ui/ui_PDFFind.h
/usr/bin/uic src/Replace.ui -o ui/ui_Replace.h
/usr/bin/uic src/SearchResults.ui -o ui/ui_SearchResults.h
/usr/bin/uic src/PrefsDialog.ui -o ui/ui_PrefsDialog.h
Warning: name gridLayout is already used
/usr/bin/uic src/ToolConfig.ui -o ui/ui_ToolConfig.h
/usr/bin/uic src/TemplateDialog.ui -o ui/ui_TemplateDialog.h
/usr/bin/uic src/HardWrapDialog.ui -o ui/ui_HardWrapDialog.h
/usr/bin/uic src/ConfirmDelete.ui -o ui/ui_ConfirmDelete.h
g++ -c -m64 -pipe -DHAVE_POPPLER_XPDF_HEADERS -DTW_HELPPATH=\"/usr/local/share/texworks-help\" -march=x86-64 -mtune=generic -O2 -pipe -I/usr/include/hunspell -I/usr/include/poppler/qt4 -I/usr/include/poppler -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtScriptTools -I/usr/include/QtScript -I/usr/include/QtDBus -I/usr/include -Isrc -Imoc -Iui -o obj/main.o src/main.cpp
In file included from src/main.cpp:22:
src/TWApp.h: In member function 'void TWAdaptor::openFile(const QString&)':
src/TWApp.h:256: error: no matching function for call to 'TWApp::open(const QString&)'
src/TWApp.h:158: note: candidates are: void TWApp::open()
make: *** [obj/main.o] Error 1


Seems that TWApp.h was changed without appropriate change in line 256:

~/tmp/src/texwork-svn $ svn diff -r 473:476 src/TWApp.h

Index: src/TWApp.h
===================================================================
--- src/TWApp.h	(revision 473)
+++ src/TWApp.h	(revision 476)
@@ -78,8 +78,6 @@
 	void setBinaryPaths(const QStringList& paths);
 	void setEngineList(const QList<Engine>& engines);
 
-	void open(const QString &fileName);
-
 	const QStringList getBinaryPaths();
 	const QList<Engine> getEngineList();
 	void saveEngineList();
@@ -154,7 +152,22 @@
 
 	void updateScriptsList();
 	void showScriptsFolder();
+
+	void about();
+	void newFile();
+	void open();
+	void stackWindows();
+	void tileWindows();
+
+	QObject* openFile(const QString& fileName);
+
+	QString getOpenFileName();
+	QStringList getOpenFileNames();
+	QString getSaveFileName(const QString& defaultName);
 	
+	// for script access to arbitrary commands
+	QVariant system(const QString& cmdline, bool waitForResult = true);
+	
 signals:
 	// emitted in response to updateRecentFileActions(); documents can listen to this if they have a recent files menu
 	void recentFileActionsChanged();
@@ -173,17 +186,11 @@
 
 	void highlightLineOptionChanged();
 
-private slots:
-	void about();
-	void newFile();
+private slots:	
 	void newFromTemplate();
-	void open();
 	void openRecentFile();
 	void preferences();
 
-	void stackWindows();
-	void tileWindows();
-	
 	void syncFromSource(const QString& sourceFile, int lineNo);
 
 	void changeLanguage();

'void open(const QString &fileName)' was replaced by
'void open()' but on lines 255-256:

	Q_NOREPLY void openFile(const QString& fileName)
		{ app->open(fileName); }


Sorry, for long post.

---
WBW, Vladimir

-- 
You're dead, Jim.
		-- McCoy, "Amok Time", stardate 3372.7


More information about the texworks mailing list