r14452 by fschmid - Implemented suggestion from Jain Basil Aliyas as posted on the Devel-Mailing-List.

scribus-commit scribus-commit at lists.scribus.net
Fri Jan 1 19:50:22 CET 2010


Revision: 14452
Author: fschmid
Date: 2010-01-01T06:12:01.925418Z
Commit message: Implemented suggestion from Jain Basil Aliyas as posted on the Devel-Mailing-List.

Changeset: 
M  /trunk/Scribus/scribus/ui/newfile.h
M  /trunk/Scribus/scribus/ui/newfile.cpp

Diffs:
Index: scribus/ui/newfile.cpp
===================================================================
--- scribus/ui/newfile.cpp	(revision 14451)
+++ scribus/ui/newfile.cpp	(revision 14452)
@@ -167,6 +167,7 @@
 	{
 		connect(nftGui, SIGNAL(leaveOK()), this, SLOT(ExitOK()));
 		connect(recentDocListBox, SIGNAL(itemDoubleClicked(QListWidgetItem *)), this, SLOT(recentDocListBox_doubleClicked()));
+		connect(tabWidget, SIGNAL(currentChanged(int)), this, SLOT(adjustTitles(int)));
 	}
 
 // 	setMinimumSize(minimumSizeHint());
@@ -678,3 +679,17 @@
 	openings etc. It's Franz's programming style ;) */
 	ExitOK();
 }
+
+void NewDoc::adjustTitles(int tab)
+{
+	if (tab == 0)
+		setWindowTitle( tr( "New Document" ) );
+	else if (tab == 1)
+		setWindowTitle( tr("New from Template"));
+	else if (tab == 2)
+		setWindowTitle( tr("Open Existing Document"));
+	else if (tab == 3)
+ 		setWindowTitle( tr("Open Recent Document"));
+ 	else
+		setWindowTitle( tr( "New Document" ) );
+}
Index: scribus/ui/newfile.h
===================================================================
--- scribus/ui/newfile.h	(revision 14451)
+++ scribus/ui/newfile.h	(revision 14452)
@@ -150,6 +150,7 @@
 	*/
 	void recentDocListBox_doubleClicked();
 	void openFile();
+	void adjustTitles(int tab);
 
 protected:
 	QVBoxLayout* TabbedNewDocLayout;




More information about the scribus-commit mailing list