Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 2186 → Rev 2187

/branches/Version13x/Scribus/scribus/actionmanager.h
35,7 → 35,7
Q_OBJECT
 
public:
ActionManager ( QObject * parent, ScribusQApp* application, const char * name );
ActionManager ( QObject * parent, const char * name );
~ActionManager() {};
void createActions();
/branches/Version13x/Scribus/scribus/pluginmanager.h
101,6 → 101,7
public slots:
/*! obsolete */
void callDLLBySlot(int pluginID);
void languageChange();
 
private:
/** \brief Configuration structure */
/branches/Version13x/Scribus/scribus/actionmanager.cpp
17,15 → 17,13
#include "actionmanager.moc"
 
#include "scribus.h"
#include "scribusapp.h"
#include "scribusview.h"
#include "undomanager.h"
#include "pluginmanager.h"
 
ActionManager::ActionManager ( QObject * parent, ScribusQApp* application, const char * name ) : QObject ( parent, name )
ActionManager::ActionManager ( QObject * parent, const char * name ) : QObject ( parent, name )
{
ScApp=(ScribusApp *)parent;
ScQApp=application;
scrActions=&(ScApp->scrActions);
scrActionGroups=&(ScApp->scrActionGroups);
modeActionNames=new QStringList();
946,11 → 944,5
(*scrActions)["specialToggleAllGuides"]->setMenuText(tr("Toggle Guides"));
//Plugun menu items
for (QMap<int, PluginManager::PluginData>::Iterator it = ScApp->pluginManager->pluginMap.begin(); it != ScApp->pluginManager->pluginMap.end(); ++it)
{
QString fromTranslator=ScQApp->translate(NULL, (*it).actMenuText);
ScrAction* pluginAction=(ScrAction*)((*scrActions)[(*it).actName]);
if (pluginAction!=NULL)
pluginAction->setMenuText(fromTranslator);
}
ScApp->pluginManager->languageChange();
}
/branches/Version13x/Scribus/scribus/scribus.cpp
211,7 → 211,7
pluginManager = new PluginManager();
initDefaultValues();
 
actionManager = new ActionManager(this, ScQApp, "actionManager");
actionManager = new ActionManager(this, "actionManager");
initMenuBar();
initStatusBar();
initToolBars();
/branches/Version13x/Scribus/scribus/plugins/printpreview/preview.cpp
44,7 → 44,7
*/
QString name()
{
return QObject::tr("Print Preview");
return QObject::tr("Print Previe&w");
}
 
/*!
/branches/Version13x/Scribus/scribus/pluginmanager.cpp
3,6 → 3,7
#include <dlfcn.h>
#include <qdir.h>
#include "scribus.h"
#include "scribusapp.h"
#include "menumanager.h"
#include "scraction.h"
#include "splash.h"
12,6 → 13,7
#include "scpaths.h"
 
extern ScribusApp *ScApp;
extern ScribusQApp *ScQApp;
extern PrefsFile *prefsFile;
 
 
355,3 → 357,14
return "so";
#endif
}
 
void PluginManager::languageChange()
{
for (QMap<int, PluginData>::Iterator it = pluginMap.begin(); it != pluginMap.end(); ++it)
{
QString fromTranslator=ScQApp->translate("QObject", (*it).actMenuText);
ScrAction* pluginAction=ScApp->scrActions[(*it).actName];
if (pluginAction!=NULL)
pluginAction->setMenuText(fromTranslator);
}
}