r15637 by fschmid - First try to add at least statusbar messages for plugin actions.

scribus-commit scribus-commit at lists.scribus.net
Sun Oct 24 16:53:20 CEST 2010


Author: fschmid
Date: Sun Oct 24 14:53:20 2010
New Revision: 15637

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15637
Log:
First try to add at least statusbar messages for plugin actions.

Modified:
    trunk/Scribus/scribus/pluginmanager.cpp
    trunk/Scribus/scribus/plugins/tools/subdivide/subdivide.cpp
    trunk/Scribus/scribus/scplugin.cpp
    trunk/Scribus/scribus/scplugin.h

Modified: trunk/Scribus/scribus/pluginmanager.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15637&path=/trunk/Scribus/scribus/pluginmanager.cpp
==============================================================================
--- trunk/Scribus/scribus/pluginmanager.cpp (original)
+++ trunk/Scribus/scribus/pluginmanager.cpp Sun Oct 24 14:53:20 2010
@@ -295,6 +295,8 @@
 			ScActionPlugin::ActionInfo ai(plugin->actionInfo());
 			ScrAction* action = new ScrAction(ScrAction::ActionDLL, ai.icon1, ai.icon2, ai.text, ai.keySequence, mw);
 			Q_CHECK_PTR(action);
+			action->setStatusTip(ai.helpText);
+			action->setToolTip(ai.helpText);
 			mw->scrActions.insert(ai.name, action);
 
 			// then enable and connect up the action

Modified: trunk/Scribus/scribus/plugins/tools/subdivide/subdivide.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15637&path=/trunk/Scribus/scribus/plugins/tools/subdivide/subdivide.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/tools/subdivide/subdivide.cpp (original)
+++ trunk/Scribus/scribus/plugins/tools/subdivide/subdivide.cpp Sun Oct 24 14:53:20 2010
@@ -66,6 +66,7 @@
 	m_actionInfo.name = "Subdivide";
 	// Action text for menu, including accel
 	m_actionInfo.text = tr("Subdivide Path");
+	m_actionInfo.helpText = tr("Subdivide a path by inserting new Nodes.");
 	// Menu
 	m_actionInfo.menu = "ItemPathOps";
 	m_actionInfo.parentMenu = "Item";

Modified: trunk/Scribus/scribus/scplugin.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15637&path=/trunk/Scribus/scribus/scplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/scplugin.cpp (original)
+++ trunk/Scribus/scribus/scplugin.cpp Sun Oct 24 14:53:20 2010
@@ -94,6 +94,7 @@
 {
 	m_actionInfo.name = "";
 	m_actionInfo.text = "";
+	m_actionInfo.helpText = "";
 	m_actionInfo.keySequence = "";
 	m_actionInfo.menu = "";
 	m_actionInfo.menuAfterName = "";

Modified: trunk/Scribus/scribus/scplugin.h
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15637&path=/trunk/Scribus/scribus/scplugin.h
==============================================================================
--- trunk/Scribus/scribus/scplugin.h (original)
+++ trunk/Scribus/scribus/scplugin.h Sun Oct 24 14:53:20 2010
@@ -262,15 +262,16 @@
 
 		// Information about actions, to be returned by actionInfo()
 		struct ActionInfo {
-			QString name;  // name of action
-			QString text;  // text to display to user
+			QString name;					// name of action
+			QString text;					// text to display to user
+			QString helpText;				// help text for ToolTips and StatusTips
 			QString keySequence;
 			QString menu;
 			QString menuAfterName;
 			QString parentMenu;
 			QString subMenuName;
-			QString toolbar;			// Name of the ToolBar the action is to be inserted, if that toolbar doesn't exits it will be created
-			QString toolBarName;		// translateable ToolBar title
+			QString toolbar;				// Name of the ToolBar the action is to be inserted, if that toolbar doesn't exits it will be created
+			QString toolBarName;			// translateable ToolBar title
 			QPixmap icon1;
 			QPixmap icon2;
 			QList<int> notSuitableFor;		// a list of PageItem type values which the plugin can *not* handle




More information about the scribus-commit mailing list