r15447 by craig - #9298: Remove style manager from story editor menu, also avoids #9318

scribus-commit scribus-commit at lists.scribus.net
Sat Aug 28 23:43:05 CEST 2010


Author: craig
Date: Sat Aug 28 21:43:04 2010
New Revision: 15447

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15447
Log:
#9298: Remove style manager from story editor menu, also avoids #9318

Modified:
    branches/Version135/Scribus/scribus/storyeditor.cpp
    branches/Version135/Scribus/scribus/storyeditor.h

Modified: branches/Version135/Scribus/scribus/storyeditor.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15447&path=/branches/Version135/Scribus/scribus/storyeditor.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/storyeditor.cpp (original)
+++ branches/Version135/Scribus/scribus/storyeditor.cpp Sat Aug 28 21:43:04 2010
@@ -76,7 +76,7 @@
 #include "spalette.h"
 #include "storyeditor.h"
 #include "styleitem.h"
-#include "stylemanager.h"
+//#include "stylemanager.h"
 #include "styleselect.h"
 #include "text/nlsconfig.h"
 #include "units.h"
@@ -143,14 +143,14 @@
 	paraStyleAct = new QWidgetAction(this);
 	paraStyleAct->setDefaultWidget(paraStyleCombo);
 	pmen->addAction(paraStyleAct);
-	pmen->addAction( tr("Edit Styles..."), this, SLOT(editStyles()));
+	//pmen->addAction( tr("Edit Styles..."), this, SLOT(editStyles()));
 	pmen->exec(QCursor::pos());
 }
 
-void SideBar::editStyles()
-{
-	emit sigEditStyles();
-}
+//void SideBar::editStyles()
+//{
+//	emit sigEditStyles();
+//}
 
 void SideBar::setPStyle(const QString& name)
 {
@@ -1636,7 +1636,7 @@
 	connect( seActions["editPaste"], SIGNAL(triggered()), this, SLOT(Do_paste()) );
 	connect( seActions["editClear"], SIGNAL(triggered()), this, SLOT(Do_del()) );
 	connect( seActions["editSearchReplace"], SIGNAL(triggered()), this, SLOT(SearchText()) );
-	connect( seActions["editEditStyle"], SIGNAL(triggered()), this, SLOT(slotEditStyles()) );
+//	connect( seActions["editEditStyle"], SIGNAL(triggered()), this, SLOT(slotEditStyles()) );
 	connect( seActions["editFontPreview"], SIGNAL(triggered()), this, SLOT(Do_fontPrev()) );
 	connect( seActions["editUpdateFrame"], SIGNAL(triggered()), this, SLOT(updateTextFrame()) );
 
@@ -1999,7 +1999,7 @@
 	// 10/12/2004 - pv - #1203: wrong selection on double click
 //	connect(Editor, SIGNAL(doubleClicked(int, int)), this, SLOT(doubleClick(int, int)));
 	connect(EditorBar, SIGNAL(ChangeStyle(int, const QString& )), this, SLOT(changeStyleSB(int, const QString&)));
-	connect(EditorBar, SIGNAL(sigEditStyles()), this, SLOT(slotEditStyles()));
+//	connect(EditorBar, SIGNAL(sigEditStyles()), this, SLOT(slotEditStyles()));
 	connect(AlignTools, SIGNAL(newParaStyle(const QString&)), this, SLOT(newStyle(const QString&)));
 	connect(AlignTools, SIGNAL(newAlign(int)), this, SLOT(newAlign(int)));
 	connect(FillTools, SIGNAL(NewColor(int, int)), this, SLOT(newTxFill(int, int)));
@@ -2919,10 +2919,10 @@
 	EditorBar->doRepaint();
 }
 
-void StoryEditor::slotEditStyles()
-{
-	ScCore->primaryMainWindow()->styleMgr()->exec(this);
-}
+//void StoryEditor::slotEditStyles()
+//{
+//	ScCore->primaryMainWindow()->styleMgr()->exec(this);
+//}
 
 void StoryEditor::newAlign(int st)
 {

Modified: branches/Version135/Scribus/scribus/storyeditor.h
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15447&path=/branches/Version135/Scribus/scribus/storyeditor.h
==============================================================================
--- branches/Version135/Scribus/scribus/storyeditor.h (original)
+++ branches/Version135/Scribus/scribus/storyeditor.h Sat Aug 28 21:43:04 2010
@@ -24,7 +24,6 @@
 #ifndef STORYEDITOR_H
 #define STORYEDITOR_H
 
-// #include <Q3PopupMenu>
 #include <QTextEdit>
 #include <QAction>
 #include <QCheckBox>
@@ -197,7 +196,7 @@
 signals:
 	void ChangeStyle(int, const QString&);
 	//! signal raised when user ask for style manager
-	void sigEditStyles();
+	//void sigEditStyles();
 
 public slots:
 	void setPStyle(const QString&);
@@ -205,7 +204,7 @@
 	void doRepaint();
 	void setRepaint(bool r);
 	//! slot raising style manager
-	void editStyles();
+	//void editStyles();
 };
 
 class SCRIBUS_API SToolBColorF : public QToolBar
@@ -459,7 +458,7 @@
 	void PasteAvail();
 	void updateTextFrame();
 	void SearchText();
-	void slotEditStyles();
+	//void slotEditStyles();
 	void modifiedText();
 	void LoadTextFile();
 	void SaveTextFile();




More information about the scribus-commit mailing list