Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 1644 → Rev 1701

/branches/Version13x/Scribus/scribus/prefs.cpp
31,8 → 31,8
#include "pluginmanager.h"
#include "pagesize.h"
#include "docitemattrprefs.h"
#include "tocindexprefs.h"
 
 
using namespace std;
 
extern QPixmap loadIcon(QString nam);
393,9 → 393,17
addItem( tr("PDF Export"), loadIcon("acroread.png"), tabPDF);
 
tabDefaultItemAttributes = new DocumentItemAttributes( prefsWidgets);
defaultAttributesList=tabDefaultItemAttributes->getDocAttributesNames();
tabDefaultItemAttributes->setup(&prefsData->defaultItemAttributes);
addItem( tr("Document Item Attributes"), loadIcon("docattributes.png"), tabDefaultItemAttributes);
 
tabDefaultTOCIndexPrefs = new TOCIndexPrefs( prefsWidgets );
tabDefaultTOCIndexPrefs->setupItemAttrs( defaultAttributesList );
tabDefaultTOCIndexPrefs->setup(&prefsData->defaultToCSetups, NULL);
connect( prefsWidgets, SIGNAL(aboutToShow(QWidget *)), this, SLOT(setTOCIndexData(QWidget *)));
addItem( tr("Table of Contents and Indexes"), loadIcon("tabtocindex.png"), tabDefaultTOCIndexPrefs);
tabKeys = new KeyManager(prefsWidgets, prefsData->KeyActions);
addItem( tr("Keyboard Shortcuts"), loadIcon("key_bindings.png"), tabKeys);
 
1276,3 → 1284,10
ap->pluginManager->pluginMap[item->text(4).toInt()].loadPlugin = true;
}
}
 
void Preferences::setTOCIndexData(QWidget *widgetToShow)
{
//Update the attributes list in TOC setup
if (widgetToShow==tabDefaultTOCIndexPrefs)
tabDefaultTOCIndexPrefs->setupItemAttrs( tabDefaultItemAttributes->getDocAttributesNames() );
}