Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 10858 → Rev 10859

/trunk/Scribus/scribus/mpalette.h
10,27 → 10,29
#include <QListWidgetItem>
#include <QLineEdit>
 
class QToolBox;
class QMenu;
class QStackedWidget;
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QFrame;
class QLabel;
class QStackedWidget;
class QRadioButton;
class QButtonGroup;
class QCheckBox;
class QCloseEvent;
class QComboBox;
class QEvent;
class QEvent;
class QFocusEvent;
class QFrame;
class QGridLayout;
class QGroupBox;
class QButtonGroup;
class QHBoxLayout;
class QLabel;
class QMenu;
class QPushButton;
class QRadioButton;
class QSpinBox;
class QStackedWidget;
class QStackedWidget;
class QToolBox;
class QVBoxLayout;
class QWidget;
class QFocusEvent;
class QCloseEvent;
class QEvent;
 
 
#include "scribusapi.h"
#include "scrpalettebase.h"
#include "scrspinbox.h"
127,7 → 129,9
Mpalette(QWidget* parent);
~Mpalette() {};
 
virtual void changeEvent(QEvent *e);
virtual void closeEvent(QCloseEvent *closeEvent);
void updateColorSpecialGradient();
const VGradient getFillGradient();
void updateColorList();
/trunk/Scribus/scribus/stylemanager.cpp
4,6 → 4,8
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
#include <QMenu>
#include <QToolTip>
#include <QMessageBox>
78,6 → 80,14
slotOk();
}
 
void StyleManager::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void StyleManager::languageChange()
{
/***********************************/
/trunk/Scribus/scribus/gradienteditor.cpp
22,17 → 22,20
***************************************************************************/
 
#include "gradienteditor.h"
#include <QPainter>
#include <QPixmap>
 
#include <QApplication>
#include <QCursor>
#include <QApplication>
#include <QPolygon>
#include <QPaintEvent>
#include <QEvent>
#include <QFrame>
#include <QLabel>
#include <QMouseEvent>
#include <QEvent>
#include <QPaintEvent>
#include <QPainter>
#include <QPixmap>
#include <QPolygon>
#include <QToolTip>
 
 
#include "scpainter.h"
#include "fpoint.h"
#include "util_icon.h"
306,6 → 309,14
emit gradientChanged();
}
 
void GradientEditor::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void GradientEditor::languageChange()
{
Desc->setText( tr( "Position:" ) );
/trunk/Scribus/scribus/checkDocument.cpp
6,18 → 6,20
*/
#include "checkDocument.h"
 
#include <QEvent>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QSpacerItem>
#include <QHeaderView>
#include <QImage>
#include <QLabel>
#include <QPixmap>
#include <QPushButton>
#include <QSpacerItem>
#include <QToolTip>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QHeaderView>
#include <QPixmap>
#include <QImage>
#include <QToolTip>
#include <QVBoxLayout>
 
 
#include "sccombobox.h"
#include "scribuscore.h"
#include "scribusdoc.h"
807,10 → 809,14
connect(reportDisplay, SIGNAL(itemClicked(QTreeWidgetItem*, int)), this, SLOT(slotSelect(QTreeWidgetItem*)));
}
 
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void CheckDocument::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void CheckDocument::languageChange()
{
setWindowTitle( tr( "Preflight Verifier" ) );
/trunk/Scribus/scribus/alignselect.cpp
4,7 → 4,9
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
 
#include "alignselect.h"
#include <QEvent>
#include <QPixmap>
#include <QToolTip>
#include "util_icon.h"
89,6 → 91,14
return selected;
}
 
void AlignSelect::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void AlignSelect::languageChange()
{
TextL->setToolTip("");
/trunk/Scribus/scribus/curvewidget.h
12,6 → 12,9
#include <QMouseEvent>
#include <QKeyEvent>
#include <QPaintEvent>
 
class QEvent;
 
#include "fpointarray.h"
#include "scribusapi.h"
 
68,6 → 71,9
public:
CurveWidget(QWidget* parent);
~CurveWidget() {};
virtual void changeEvent(QEvent *e);
void setLinear(bool setter);
QPushButton* invertButton;
QPushButton* resetButton;
/trunk/Scribus/scribus/cpalette.cpp
23,24 → 23,26
 
#include "cpalette.h"
 
#include <QHBoxLayout>
#include <QAbstractItemView>
#include <QEvent>
#include <QFont>
#include <QFrame>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QSpacerItem>
#include <QStandardItem>
#include <QAbstractItemView>
#include <QGroupBox>
#include <QToolButton>
#include <QSpinBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QListWidget>
#include <QListWidgetItem>
#include <QFrame>
#include <QPixmap>
#include <QRect>
#include <QFont>
#include <QSpacerItem>
#include <QSpinBox>
#include <QStandardItem>
#include <QToolButton>
#include <QToolTip>
#include <QVBoxLayout>
 
 
#include "colorlistbox.h"
#include "sccombobox.h"
#include "scribusdoc.h"
808,6 → 810,14
connect(spinYoffset, SIGNAL(valueChanged(double)), this, SLOT(changePatternProps()));
}
 
void Cpalette::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void Cpalette::languageChange()
{
QString ptSuffix=tr(" pt");
/trunk/Scribus/scribus/docsections.h
29,6 → 29,9
 
#include <QMap>
#include <QStringList>
 
class QEvent;
 
#include "ui_docsections.h"
#include "pagestructs.h"
 
41,6 → 44,8
DocSections(QWidget* parent);
~DocSections();
virtual void changeEvent(QEvent *e);
virtual void setup(const DocumentSectionMap docSections, int maxPageIndex);
virtual void updateTable();
const DocumentSectionMap& getNewSections();
/trunk/Scribus/scribus/helpbrowser.cpp
32,6 → 32,7
#include <QDebug>
#include <QDir>
#include <QDomDocument>
#include <QEvent>
#include <QFileDialog>
#include <QFileInfo>
#include <QHeaderView>
268,6 → 269,14
statusBar()->showMessage(link);
}
 
void HelpBrowser::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void HelpBrowser::languageChange()
{
setWindowTitle( tr( "Scribus Online Help" ) );
/trunk/Scribus/scribus/unicodesearch.cpp
4,6 → 4,8
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
#include <QFile>
#include <QTableWidget>
#include <QLineEdit>
42,6 → 44,14
this, SLOT(unicodeList_chosen(int, int)));
}
 
void UnicodeChooseButton::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void UnicodeChooseButton::languageChange()
{
setText(tr("&Search"));
/trunk/Scribus/scribus/undogui.h
33,6 → 33,7
#include "undostate.h"
#include "scrpalettebase.h"
 
class QEvent;
class QMenu;
class QListWidget;
class QCheckBox;
71,7 → 72,7
 
/** @brief Empties the undo stack representation. */
virtual void clear() = 0;
 
public slots:
/**
* @brief Insert a new undo item.
341,6 → 342,8
 
/** @brief Destroys the widget */
~UndoPalette();
virtual void changeEvent(QEvent *e);
 
/** @brief Empties the undo stack for this widget. */
void clear();
/trunk/Scribus/scribus/fontcombo.h
27,6 → 27,8
#include <QWidget>
#include <QComboBox>
#include "scribusapi.h"
 
class QEvent;
class QFont;
class QGridLayout;
class QPixmap;
43,6 → 45,8
public:
FontCombo(QWidget* pa);
~FontCombo() {};
 
void RebuildList(ScribusDoc *currentDoc, bool forAnnotation = false, bool forSubstitute = false);
private:
61,6 → 65,9
public:
FontComboH(QWidget* parent, bool labels=false);
~FontComboH() {};
virtual void changeEvent(QEvent *e);
QString currentFont();
void RebuildList(ScribusDoc *currentDoc, bool forAnnotation = false, bool forSubstitute = false);
 
/trunk/Scribus/scribus/styleselect.cpp
5,6 → 5,8
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
 
#include "styleselect.h"
 
#include "util_icon.h"
237,9 → 239,20
resize(minimumSizeHint());
}
 
void StyleSelect::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void StyleSelect::languageChange()
{
ShadowVal->languageChange();
OutlineVal->languageChange();
UnderlineVal->languageChange();
StrikeVal->languageChange();
 
underlineButton->setToolTip("");
underlineWordButton->setToolTip("");
/trunk/Scribus/scribus/tree.h
11,9 → 11,10
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QResizeEvent>
#include <QEvent>
#include <QList>
 
class QEvent;
 
#include "scribusapi.h"
#include "scrpalettebase.h"
 
48,6 → 49,9
 
public:
Tree( QWidget* parent );
virtual void changeEvent(QEvent *e);
void resizeEvent(QResizeEvent *r);
void setMainWindow(ScribusMainWindow *mw);
void setDoc(ScribusDoc *);
/trunk/Scribus/scribus/measurements.cpp
6,9 → 6,11
*/
#include "measurements.h"
 
#include <QEvent>
#include <QGridLayout>
#include <QLabel>
#include <QString>
 
#include <cmath>
#include "units.h"
 
110,6 → 112,14
lengthData->setText(tmp.setNum(qRound(len*uXm) / divisor, 'f', precision)+unitSuffix);
}
 
void Measurements::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void Measurements::languageChange()
{
setWindowTitle( tr( "Distances" ) );
/trunk/Scribus/scribus/cpalette.h
26,19 → 26,20
 
#include <QWidget>
#include <QPointer>
class QHBoxLayout;
class QVBoxLayout;
class QComboBox;
class QEvent;
class QFrame;
class QGridLayout;
class QSpacerItem;
class QGroupBox;
class QToolButton;
class QSpinBox;
class QHBoxLayout;
class QLabel;
class QListWidget;
class QListWidgetItem;
class QFrame;
class QPixmap;
class QComboBox;
class QSpacerItem;
class QSpinBox;
class QToolButton;
class QVBoxLayout;
#include "scribusapi.h"
#include "gradienteditor.h"
#include "scribusdoc.h"
62,6 → 63,8
public:
Cpalette(QWidget* parent);
~Cpalette() {};
virtual void changeEvent(QEvent *e);
 
void setDocument(ScribusDoc* doc);
void setCurrentItem(PageItem* item);
/trunk/Scribus/scribus/scribusview.h
48,7 → 48,6
#include <QDragMoveEvent>
#include <QDropEvent>
#include <QMouseEvent>
#include <QEvent>
#include <QPaintEvent>
#include <QRect>
#include <QRectF>
56,6 → 55,8
#include <QRubberBand>
#include <QList>
 
class QEvent;
 
// application specific includes
#include "observable.h"
#include "scribusapi.h"
327,6 → 328,7
 
public:
virtual void contentsWheelEvent ( QWheelEvent *ev );
virtual void changeEvent(QEvent *e);
protected: // Protected methods
virtual void enterEvent(QEvent *);
/trunk/Scribus/scribus/tocindexprefs.h
23,6 → 23,8
 
#include <QStringList>
 
class QEvent;
 
#include "ui_tocindexprefs.h"
#include "page.h"
#include "pagestructs.h"
35,6 → 37,8
public:
TOCIndexPrefs( QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0 );
~TOCIndexPrefs();
virtual void changeEvent(QEvent *e);
 
virtual void enableGUIWidgets();
virtual ToCSetupVector * getNewToCs();
/trunk/Scribus/scribus/layers.cpp
15,21 → 15,22
 
#include "layers.h"
 
#include <QCheckBox>
#include <QColorDialog>
#include <QEvent>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QSpacerItem>
#include <QHeaderView>
#include <QLabel>
#include <QMessageBox>
#include <QPixmap>
#include <QCheckBox>
#include <QToolButton>
#include <QPushButton>
#include <QSpacerItem>
#include <QSpinBox>
#include <QLabel>
#include <QColorDialog>
#include <QToolTip>
#include <QHeaderView>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QMessageBox>
#include <QToolButton>
#include <QToolTip>
#include <QVBoxLayout>
 
#include "sccombobox.h"
#include "scribus.h"
479,6 → 480,14
connect(blendMode, SIGNAL(activated(int)), this, SLOT(changeBlendMode(int)));
}
 
void LayerPalette::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void LayerPalette::languageChange()
{
setWindowTitle( tr( "Layers" ) );
/trunk/Scribus/scribus/smcstylewidget.h
8,6 → 8,8
#ifndef SMCSTYLEWIDGET_H
#define SMCSTYLEWIDGET_H
 
class QEvent;
 
#include "ui_smcstylewidget.h"
#include "styles/charstyle.h"
// #include "styles/styleset.h"
19,6 → 21,8
public:
SMCStyleWidget(QWidget *parent = 0);
~SMCStyleWidget();
virtual void changeEvent(QEvent *e);
 
void show(CharStyle *cstyle, QList<CharStyle> &cstyles, const QString &defLang, int unitIndex);
void show(QList<CharStyle*> &cstyles, QList<CharStyle> &cstylesAll, const QString &defLang, int unitIndex);
/trunk/Scribus/scribus/werktoolb.h
28,8 → 28,10
#include "sctoolbar.h"
#include <QAction>
#include <QMenu>
#include <QMenu>
#include <QWidgetAction>
 
class QEvent;
 
class QToolButton;
class AutoformButtonGroup;
class ScribusMainWindow;
50,6 → 52,8
int SubMode;
int ValCount;
double *ShapeVals;
virtual void changeEvent(QEvent *e);
 
public slots:
void GetPolyProps();
/trunk/Scribus/scribus/styleselect.h
7,15 → 7,18
#ifndef STYLESELECT_H
#define STYLESELECT_H
 
#include <QToolTip>
#include <QFrame>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QMenu>
#include <QLabel>
#include <QPixmap>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QToolButton>
#include <QFrame>
#include <QToolTip>
#include <QWidgetAction>
 
class QEvent;
 
#include "scrspinbox.h"
#include "scribusapi.h"
 
26,6 → 29,7
public:
StrikeValues( QWidget* parent );
~StrikeValues() {};
ScrSpinBox* LPos;
ScrSpinBox* LWidth;
QLabel* LPosTxt;
45,6 → 49,7
public:
UnderlineValues( QWidget* parent );
~UnderlineValues() {};
ScrSpinBox* LPos;
ScrSpinBox* LWidth;
QLabel* LPosTxt;
64,6 → 69,7
public:
OutlineValues( QWidget* parent );
~OutlineValues() {};
ScrSpinBox* LWidth;
QLabel* LWidthTxt;
 
81,6 → 87,7
public:
ShadowValues( QWidget* parent );
~ShadowValues() {};
ScrSpinBox* Xoffset;
ScrSpinBox* Yoffset;
QLabel* XoffsetTxt;
101,6 → 108,9
public:
StyleSelect(QWidget* parent);
~StyleSelect() {};
virtual void changeEvent(QEvent *e);
void setStyle(int s);
int getStyle();
ShadowValues* ShadowVal;
/trunk/Scribus/scribus/smlinestylewidget.cpp
4,6 → 4,8
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
#include <QToolTip>
 
#include "smlinestylewidget.h"
42,6 → 44,14
languageChange();
}
 
void SMLineStyleWidget::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void SMLineStyleWidget::languageChange()
{
/***********************************/
/trunk/Scribus/scribus/pageselector.h
9,6 → 9,7
 
#include <QWidget>
 
class QEvent;
class QHBoxLayout;
class QLineEdit;
class QPushButton;
27,6 → 28,9
public:
PageSelector( QWidget* parent, int maxPg );
~PageSelector() {};
virtual void changeEvent(QEvent *e);
bool hasFocus();
void focusPolicy(Qt::FocusPolicy policy);
 
/trunk/Scribus/scribus/scribusview.cpp
26,31 → 26,31
#include "scconfig.h"
 
#include <QColor>
#include <QDrag>
#include <QDragEnterEvent>
#include <QDragLeaveEvent>
#include <QDragMoveEvent>
#include <QDropEvent>
#include <QEvent>
#include <QFile>
#include <QFileInfo>
#include <QFont>
#include <QFontMetrics>
#include <QImage>
#include <QImageReader>
#include <QLabel>
#include <QList>
#include <QMenu>
#include <QMimeData>
#include <QMouseEvent>
#include <QPaintEvent>
#include <QPixmap>
#include <QPolygon>
#include <QStack>
#include <QStringList>
#include <QImage>
#include <QFileInfo>
#include <QFile>
#include <QStack>
//Added by qt3to4:
#include <QWheelEvent>
#include <QPaintEvent>
#include <QDrag>
#include <QDragMoveEvent>
#include <QDragLeaveEvent>
#include <QMimeData>
#include <QLabel>
#include <QDropEvent>
#include <QMenu>
#include <QMenu>
#include <QDragEnterEvent>
#include <QList>
#include <QMouseEvent>
#include <QImageReader>
#include <QWidgetAction>
 
#include <cmath>
#include <cstdio>
#include <cstdlib>
317,6 → 317,14
dragTimerFired = false;
}
 
void ScribusView::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void ScribusView::languageChange()
{
cmsToolbarButton->setToolTip("");
/trunk/Scribus/scribus/bookpalette.h
25,6 → 25,9
#define BOOKPALETTE_H
 
#include <QVBoxLayout>
 
class QEvent;
 
#include "scribusapi.h"
#include "scrpalettebase.h"
#include "bookmwin.h"
48,6 → 51,9
*/
BookPalette(QWidget* parent);
~BookPalette() {};
virtual void changeEvent(QEvent *e);
BookMView *BView;
public slots:
/trunk/Scribus/scribus/fontcombo.cpp
21,11 → 21,12
* *
***************************************************************************/
 
#include <QAbstractItemView>
#include <QEvent>
#include <QFont>
#include <QGridLayout>
#include <QLabel>
#include <QPixmap>
#include <QLabel>
#include <QAbstractItemView>
#include <QFont>
#include <QStringList>
 
#include "sccombobox.h"
130,6 → 131,14
languageChange();
}
 
void FontComboH::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void FontComboH::languageChange()
{
if(showLabels)
/trunk/Scribus/scribus/prefsdialogbase.cpp
6,18 → 6,19
*/
#include "prefsdialogbase.h"
 
#include <QEvent>
#include <QFileDialog>
#include <QFont>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QSpacerItem>
#include <QLabel>
#include <QListWidget>
#include <QListWidgetItem>
#include <QLabel>
#include <QPushButton>
#include <QToolTip>
#include <QFont>
#include <QFileDialog>
#include <QScrollBar>
#include <QSpacerItem>
#include <QStackedWidget>
#include <QToolTip>
#include <QVBoxLayout>
 
#include "commonstrings.h"
#include "prefsmanager.h"
172,10 → 173,15
tabNameLabel->setText(ic->text());
}
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
 
void PrefsDialogBase::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void PrefsDialogBase::languageChange()
{
buttonOk->setText( CommonStrings::tr_OK );
/trunk/Scribus/scribus/scribus.cpp
1871,6 → 1871,14
}
}
 
void ScribusMainWindow::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void ScribusMainWindow::closeEvent(QCloseEvent *ce)
{
QWidgetList windows = wsp->windowList();
8958,6 → 8966,7
 
void ScribusMainWindow::languageChange()
{
qDebug() << "void ScribusMainWindow::languageChange()";
if (ScCore->initialized())
{
CommonStrings::languageChange();
/trunk/Scribus/scribus/curvewidget.cpp
8,17 → 8,20
 
#include <cmath>
 
#include <QApplication>
#include <QCursor>
#include <QEvent>
#include <QHBoxLayout>
#include <QMessageBox>
#include <QPainter>
#include <QPixmap>
#include <QPainter>
#include <QVBoxLayout>
#include <QPushButton>
#include <QSpacerItem>
#include <QPushButton>
#include <QCursor>
#include <QMessageBox>
#include <QTextStream>
#include <QToolTip>
#include <QApplication>
#include <QTextStream>
#include <QVBoxLayout>
 
 
#include "commonstrings.h"
#include "customfdialog.h"
#include "prefsfile.h"
482,10 → 485,14
}
}
 
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void CurveWidget::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void CurveWidget::languageChange()
{
invertButton->setText( QString::null );
/trunk/Scribus/scribus/layers.h
14,16 → 14,17
#include "scribusstructs.h"
#include "sclayer.h"
 
class CheckBox;
class QEvent;
class QHBoxLayout;
class QVBoxLayout;
class QSpinBox;
class QHeaderView;
class QLabel;
class CheckBox;
class QToolButton;
class QPushButton;
class QSpinBox;
class QTableWidget;
class QTableWidgetItem;
class QHeaderView;
class QToolButton;
class QVBoxLayout;
class ScComboBox;
class ScribusDoc;
 
34,6 → 35,9
public:
LayerPalette(QWidget* parent);
~LayerPalette() {};
virtual void changeEvent(QEvent *e);
 
void setDoc(ScribusDoc* doc);
void rebuildList();
/trunk/Scribus/scribus/scrap.h
12,6 → 12,8
#include <QDragEnterEvent>
#include <QListWidget>
 
class QEvent;
 
#include "scribusapi.h"
#include "scrpalettebase.h"
#include "scribusstructs.h"
65,6 → 67,9
public:
Biblio( QWidget* parent);
~Biblio() {};
virtual void changeEvent(QEvent *e);
void ObjFromCopyAction(QString text);
void adjustReferences(QString nam);
void CleanUpTemp();
/trunk/Scribus/scribus/smlinestyle.h
8,6 → 8,8
#ifndef SMLINESTYLE_H
#define SMLINESTYLE_H
 
class QEvent;
 
#include "scribusstructs.h"
#include "styleitem.h"
 
21,6 → 23,9
public:
SMLineStyle();
~SMLineStyle();
virtual void changeEvent(QEvent *e);
QTabWidget* widget();
QString typeNamePlural();
QString typeNameSingular();
/trunk/Scribus/scribus/checkDocument.h
9,12 → 9,13
 
#include <QMap>
 
class QVBoxLayout;
class QEvent;
class QHBoxLayout;
class QLabel;
class QPushButton;
class QTreeWidget;
class QTreeWidgetItem;
class QLabel;
class QPushButton;
class QVBoxLayout;
 
#include "scribusapi.h"
#include "scrpalettebase.h"
34,6 → 35,8
public:
CheckDocument( QWidget* parent, bool modal );
~CheckDocument() {};
virtual void changeEvent(QEvent *e);
 
/*! \brief State of the P.V. */
enum CheckMode { checkNULL, checkPDF, checkEPS, checkPrint, checkPrintPreview };
/trunk/Scribus/scribus/actionmanager.h
33,6 → 33,8
#include <QPixmap>
#include <QActionGroup>
 
class QEvent;
 
#include "scribusapi.h"
#include "scraction.h"
 
52,6 → 54,9
public:
ActionManager ( QObject * parent );
~ActionManager();
virtual void changeEvent(QEvent *e);
void init(ScribusMainWindow *);
static void createDefaultShortcuts();
static QMap<QString, QKeySequence>* defaultShortcuts() {return &defKeys;};
/trunk/Scribus/scribus/stylemanager.h
9,6 → 9,9
#define STYLEMANAGER_H
 
#include <QPointer>
 
class QEvent;
 
#include "scrpalettebase.h"
#include "ui_stylemanager.h"
 
24,6 → 27,8
public:
StyleManager(QWidget *parent = 0, const char *name = "StyleManager");
~StyleManager();
virtual void changeEvent(QEvent *e);
 
void addStyle(StyleItem *item);
void updateColorList();
/trunk/Scribus/scribus/helpbrowser.h
42,6 → 42,8
#include <QVariant>
#include <QWidget>
 
class QEvent;
 
#include "ui_helpbrowser.h"
#include "scribusapi.h"
#include "util.h"
65,6 → 67,9
HelpBrowser(QWidget* parent);
HelpBrowser(QWidget* parent, const QString& caption, const QString& guiLangage="en", const QString& jumpToSection="", const QString& jumpToFile="");
~HelpBrowser();
virtual void changeEvent(QEvent *e);
 
/*! \brief History menu. It's public because of history reader - separate class */
QMenu* histMenu;
/trunk/Scribus/scribus/smcstylewidget.cpp
4,6 → 4,9
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
 
#include "smcstylewidget.h"
#include "util_icon.h"
#include "util.h"
56,6 → 59,14
connect(effects_, SIGNAL(State(int)), this, SLOT(slotColorChange()));
}
 
void SMCStyleWidget::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void SMCStyleWidget::languageChange()
{
/***********************************/
/trunk/Scribus/scribus/mpalette.cpp
4314,6 → 4314,14
}
}
 
void Mpalette::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void Mpalette::languageChange()
{
setWindowTitle( tr("Properties"));
/trunk/Scribus/scribus/unicodesearch.h
12,6 → 12,8
#include <QPushButton>
#include <QHideEvent>
 
class QEvent;
 
#include "ui_unicodesearch.h"
#include "scribusapi.h"
#include "fonts/scface.h"
35,6 → 37,7
\param modal is modal flag */
UnicodeSearch(QWidget* parent = 0);
~UnicodeSearch(){};
/*! \brief Check if is the m_unicodeMap filled and perform data read if it's empty.
It's in separate method to keep the constructor lightweight. This method is
called first time user requests the dialog. */
94,6 → 97,9
*/
UnicodeChooseButton(QWidget * parent);
~UnicodeChooseButton(){};
virtual void changeEvent(QEvent *e);
//! \brief Set currently used font. Passed in the m_searchDialog here only.
void setFont(ScFace f) { m_searchDialog->setFont(f); };
 
/trunk/Scribus/scribus/smpstylewidget.h
8,6 → 8,8
#ifndef SMPSTYLEWIDGET_H
#define SMPSTYLEWIDGET_H
 
class QEvent;
 
#include "ui_smpstylewidget.h"
 
// #include "styles/styleset.h"
19,6 → 21,8
public:
SMPStyleWidget();
~SMPStyleWidget();
virtual void changeEvent(QEvent *e);
 
void show(ParagraphStyle *pstyle, QList<ParagraphStyle> &pstyles, QList<CharStyle> &cstyles, int unitIndex, const QString &defLang);
void show(QList<ParagraphStyle*> &pstyles, QList<ParagraphStyle> &pstylesAll, QList<CharStyle> &cstyles, int unitIndex, const QString &defLang);
/trunk/Scribus/scribus/seiten.h
16,7 → 16,6
#include <QDragLeaveEvent>
#include <QDragMoveEvent>
#include <QDropEvent>
#include <QEvent>
#include <QHBoxLayout>
#include <QImage>
#include <QLabel>
28,7 → 27,9
#include <QToolTip>
#include <QVBoxLayout>
 
class QEvent;
 
 
#include "scribusapi.h"
#include "scrpalettebase.h"
 
154,6 → 155,8
PagePalette(QWidget* parent);
~PagePalette() {};
virtual void changeEvent(QEvent *e);
//CB FIXME Put these in for now and hide the rest. What are these indicating?
const bool getNamen();
const bool getThumb();
/trunk/Scribus/scribus/loremipsum.cpp
14,22 → 14,24
***************************************************************************/
#include "loremipsum.h"
 
#include <QDir>
#include <QDomDocument>
#include <QEvent>
#include <QFile>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QHeaderView>
#include <QLabel>
#include <QPushButton>
#include <QSpacerItem>
#include <QPushButton>
#include <QLabel>
#include <QSpinBox>
#include <QDomDocument>
#include <QFile>
#include <QDir>
#include <QString>
#include <QStringList>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QHeaderView>
#include <QVBoxLayout>
 
 
#include "langmgr.h"
#include "pageitem.h"
#include "scribus.h"
206,6 → 208,14
delete langmgr;
}
 
void LoremManager::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void LoremManager::languageChange()
{
setWindowTitle( tr( "Lorem Ipsum" ) );
/trunk/Scribus/scribus/pluginmanager.h
11,6 → 11,8
#include <QString>
#include <QMap>
 
class QEvent;
 
#include "scribusapi.h"
 
class ScribusDoc;
122,6 → 124,8
*/
QStringList pluginNames(bool includeDisabled = false,
const char* inherits = 0) const;
virtual void changeEvent(QEvent *e);
 
public slots:
 
/trunk/Scribus/scribus/aligndistribute.h
30,6 → 30,8
#include <QLabel>
#include <QList>
 
class QEvent;
 
#include "scribusapi.h"
#include "scribusview.h"
#include "scrpalettebase.h"
57,6 → 59,8
virtual void setDoc( ScribusDoc* newDoc );
void unitChange();
virtual void changeEvent(QEvent *e);
public slots:
void setGuide(int, double);
 
/trunk/Scribus/scribus/werktoolb.cpp
22,6 → 22,7
***************************************************************************/
 
#include <QToolTip>
#include <QEvent>
#include <QMenu>
#include <QPixmap>
 
105,6 → 106,14
m_ScMW->scrActions["toolsInsertShape"]->setChecked(true);
}
 
void ModeToolBar::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void ModeToolBar::languageChange()
{
idInsertPolygonButtonMenu->setText( tr("Properties..."));
/trunk/Scribus/scribus/undogui.cpp
23,7 → 23,8
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <QtDebug>
#include <QDebug>
#include <QEvent>
#include <QPushButton>
#include <QCheckBox>
#include <QVBoxLayout>
291,6 → 292,14
qDebug() << "UndoPalette::updateFromPrefs end";
}
 
void UndoPalette::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void UndoPalette::languageChange()
{
setWindowTitle( tr("Action History"));
/trunk/Scribus/scribus/alignselect.h
11,6 → 11,8
#include <QToolButton>
#include <QButtonGroup>
 
class QEvent;
 
#include "scribusapi.h"
 
class SCRIBUS_API AlignSelect : public QWidget
24,6 → 26,8
void setStyle(int s);
int getStyle();
int selectedId();
virtual void changeEvent(QEvent *e);
 
QButtonGroup* buttonGroup;
int selected;
/trunk/Scribus/scribus/scinputdialog.h
10,13 → 10,15
 
#include <QDialog>
 
class QEvent;
class QHBoxLayout;
class QVBoxLayout;
class ScrSpinBox;
class QLabel;
class QPushButton;
class QVBoxLayout;
 
class ScrSpinBox;
 
 
/*! \brief A QInputDialog clone with ScrSpinBox widget.
\author Petr Vanek <petr@scribus.info>
*/
27,6 → 29,8
public:
ScInputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
~ScInputDialog(){};
virtual void changeEvent(QEvent *e);
 
QLabel* entryLabel;
ScrSpinBox* entrySpin;
/trunk/Scribus/scribus/smpstylewidget.cpp
5,6 → 5,8
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
 
#include "smpstylewidget.h"
#include "units.h"
#include "util.h"
45,6 → 47,14
lineSpacing_->setEnabled(i == 0);
}
 
void SMPStyleWidget::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void SMPStyleWidget::languageChange()
{
/***********************************/
/trunk/Scribus/scribus/frameedit.cpp
4,6 → 4,9
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
 
#include "frameedit.h"
#include "page.h"
#include "pageitem.h"
834,6 → 837,14
emit Schliessen();
}
 
void NodePalette::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void NodePalette::languageChange()
{
setWindowTitle( tr( "Nodes" ) );
/trunk/Scribus/scribus/applytemplatedialog.cpp
14,17 → 14,18
***************************************************************************/
#include "applytemplatedialog.h"
 
#include <QVBoxLayout>
#include <QCheckBox>
#include <QComboBox>
#include <QEvent>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QSpacerItem>
#include <QLabel>
#include <QComboBox>
#include <QGroupBox>
#include <QPushButton>
#include <QRadioButton>
#include <QCheckBox>
#include <QSpacerItem>
#include <QSpinBox>
#include <QPushButton>
#include <QToolTip>
#include <QVBoxLayout>
 
#include "commonstrings.h"
#include "scribusdoc.h"
251,10 → 252,14
return -1;
}
 
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void ApplyMasterPageDialog::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void ApplyMasterPageDialog::languageChange()
{
setWindowTitle( tr( "Apply Master Page" ) );
/trunk/Scribus/scribus/smlinestylewidget.h
8,6 → 8,8
#ifndef SMLINESTYLEWIDGET_H
#define SMLINESTYLEWIDGET_H
 
class QEvent;
 
#include "scribusstructs.h"
#include "styleitem.h"
#include "ui_smlinestylewidget.h"
22,8 → 24,10
public:
SMLineStyleWidget();
~SMLineStyleWidget();
virtual void changeEvent(QEvent *e);
void showStyle(const multiLine &lineStyle, ColorList &colorList, int subLine = 0);
 
void languageChange();
 
private:
/trunk/Scribus/scribus/bookpalette.cpp
21,6 → 21,8
* *
***************************************************************************/
 
#include <QEvent>
 
#include "bookpalette.h"
 
BookPalette::BookPalette(QWidget* parent) : ScrPaletteBase( parent, "Books", false, 0 )
34,6 → 36,14
languageChange();
}
 
void BookPalette::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void BookPalette::languageChange()
{
setWindowTitle( tr( "Bookmarks" ) );
/trunk/Scribus/scribus/docsections.cpp
33,6 → 33,7
 
#include <QCheckBox>
#include <QComboBox>
#include <QEvent>
#include <QMessageBox>
#include <QPushButton>
#include <QTableWidget>
56,6 → 57,14
{
}
 
void DocSections::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void DocSections::languageChange()
{
addButton->setToolTip( "<qt>"+ tr("Add a page numbering section to the document. The new section will be added after the currently selected section.") + "</qt>");
/trunk/Scribus/scribus/shortcutwidget.cpp
4,6 → 4,8
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
#include <QToolTip>
#include <QKeyEvent>
 
28,6 → 30,14
connect(setKeyButton, SIGNAL(clicked()), this, SLOT(setKeyText()));
}
 
void ShortcutWidget::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void ShortcutWidget::languageChange()
{
noKey->setToolTip( tr("No shortcut for the style")); // set no shortcut for this style
/trunk/Scribus/scribus/tabgeneral.cpp
4,22 → 4,21
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#include <QCheckBox>
#include <QComboBox>
#include <QStringList>
#include <QFileDialog>
#include <QGroupBox>
#include <QLineEdit>
#include <QPushButton>
#include <QGroupBox>
#include <QCheckBox>
#include <QSpinBox>
#include <QLineEdit>
#include <QStringList>
#include <QStyleFactory>
#include <QToolTip>
#include <QFileDialog>
 
#include "tabgeneral.h"
 
#include "prefsmanager.h"
#include "scribusapp.h"
#include "scribuscore.h"
#include "tabgeneral.h"
#include "util.h"
 
extern ScribusQApp* ScQApp;
/trunk/Scribus/scribus/scinputdialog.cpp
6,11 → 6,14
*/
#include "scinputdialog.h"
 
#include <QEvent>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QSpacerItem>
#include <QLabel>
#include <QPushButton>
#include <QSpacerItem>
#include <QVBoxLayout>
 
 
#include "scrspinbox.h"
#include "util.h"
#include "util_icon.h"
62,6 → 65,14
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
}
 
void ScInputDialog::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void ScInputDialog::languageChange()
{
setWindowTitle( tr( "Input Dialog" ) );
/trunk/Scribus/scribus/applytemplatedialog.h
21,16 → 21,17
#include "scribusdoc.h"
#include "page.h"
 
class QVBoxLayout;
class QCheckBox;
class QComboBox;
class QEvent;
class QGroupBox;
class QHBoxLayout;
class QSpacerItem;
class QLabel;
class QComboBox;
class QGroupBox;
class QPushButton;
class QRadioButton;
class QCheckBox;
class QSpacerItem;
class QSpinBox;
class QPushButton;
class QVBoxLayout;
 
class SCRIBUS_API ApplyMasterPageDialog : public QDialog
{
39,6 → 40,8
public:
ApplyMasterPageDialog( QWidget* parent = 0 );
~ApplyMasterPageDialog();
virtual void changeEvent(QEvent *e);
 
QLabel* masterPageLabel;
QComboBox* masterPageComboBox;
/trunk/Scribus/scribus/story.cpp
907,6 → 907,15
languageChange();
}
 
void SToolBColorF::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
 
void SToolBColorF::languageChange()
{
TxFill->setToolTip("");
970,6 → 979,14
languageChange();
}
 
void SToolBColorS::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void SToolBColorS::languageChange()
{
TxStroke->setToolTip("");
1036,6 → 1053,14
languageChange();
}
 
void SToolBStyle::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void SToolBStyle::languageChange()
{
Extra->setToolTip("");
1141,6 → 1166,14
languageChange();
}
 
void SToolBAlign::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void SToolBAlign::languageChange()
{
paraStyleCombo->setToolTip("");
1202,6 → 1235,14
connect(Size, SIGNAL(valueChanged(double)), this, SIGNAL(NewSize(double)));
}
 
void SToolBFont::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void SToolBFont::languageChange()
{
Fonts->setToolTip("");
1687,6 → 1728,14
languageChange();
}
 
void StoryEditor::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void StoryEditor::languageChange()
{
setWindowTitle( tr( "Story Editor" ) );
/trunk/Scribus/scribus/commonstrings.cpp
19,8 → 19,9
* *
***************************************************************************/
 
#include <QEvent>
 
#include "commonstrings.h"
//#include "commonstrings.moc"
 
QString CommonStrings::_Apply = "";
QString CommonStrings::tr_Apply = "";
180,6 → 181,14
return trString;
}
 
void CommonStrings::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void CommonStrings::languageChange()
{
CommonStrings::_Apply = "&Apply";
/trunk/Scribus/scribus/scrap.cpp
11,6 → 11,8
**
****************************************************************************/
#include "scrap.h"
 
#include <QEvent>
#include <QDataStream>
#include <QApplication>
#include <QHBoxLayout>
1306,6 → 1308,14
}
}
 
void Biblio::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void Biblio::languageChange()
{
setWindowTitle( tr( "Scrapbook" ) );
/trunk/Scribus/scribus/smlinestyle.cpp
5,6 → 5,8
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
 
#include "smlinestyle.h"
#include "smlinestylewidget.h"
#include "scribus.h"
326,6 → 328,14
deleted_.append(RemoveItem(oldName, newName));
}
 
void SMLineStyle::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void SMLineStyle::languageChange()
{
/trunk/Scribus/scribus/measurements.h
7,6 → 7,8
#ifndef MEASUREMENTS_H
#define MEASUREMENTS_H
 
class QEvent;
 
#include "scribusapi.h"
#include "scrpalettebase.h"
 
20,6 → 22,8
public:
Measurements( QWidget* parent );
~Measurements() {};
virtual void changeEvent(QEvent *e);
 
public slots:
void setValues(double x1, double y1, double x2, double y2, double angle, double length, int unitIndex);
/trunk/Scribus/scribus/util_formats.h
54,7 → 54,35
SVG = 2048, // WMF files
AI = 4096, // Adobe Illustrator files
};
 
/*
enum ScDocumentFormatType
{
ALLDOCUMENTS = 1|2,
TEXT = 2|4,
SPREADSHEETS = 2|4,
DTP = 0,
WEB = 0,
PRESENTATION = 0,
FORMULAS = 0,
SCRIBUSDOCS = 1,
TEXT = 2,
CSV = 4,
HTML = 8,
XML = 16,
CSV = 32,
CSV = 64,
CSV = 128,
CSV = 256,
CSV = 512,
= 1024,
OORG_WRITER = 2048,
MS_WORD = 4096,
ADOBE_INDESIGN = 8192,
ADOBE_PAGEMAKER = 16384,
QUARK_XPRESS = 32768,
};
*/
FormatsManager();
~FormatsManager();
 
/trunk/Scribus/scribus/seiten.cpp
9,6 → 9,7
//QPixmap doesnt seem to include this for its mask() code
#include <QBitmap>
#include <QCursor>
#include <QEvent>
#include <QList>
#include <QLabel>
#include <QMenu>
848,6 → 849,14
return ret;
}
 
void PagePalette::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void PagePalette::languageChange()
{
setWindowTitle( tr( "Arrange Pages" ) );
/trunk/Scribus/scribus/frameedit.h
17,6 → 17,8
#include <QVBoxLayout>
#include <QCloseEvent>
 
class QEvent;
 
#include "scribusapi.h"
#include "scrpalettebase.h"
#include "scrspinbox.h"
31,6 → 33,8
public:
NodePalette( QWidget* parent);
~NodePalette() {};
virtual void changeEvent(QEvent *e);
 
QToolButton* MoveNode;
QToolButton* MoveControl;
/trunk/Scribus/scribus/commonstrings.h
24,6 → 24,9
 
#include <QObject>
#include <QString>
 
class QEvent;
 
#include "scribusapi.h"
 
/*! \brief A simple common strings class to reduce the string count and ease
47,6 → 50,8
Q_OBJECT
public:
CommonStrings();
virtual void changeEvent(QEvent *e);
 
/**
* \brief Return the translated Page Set string if given the "untranslated" one
/trunk/Scribus/scribus/actionmanager.cpp
1200,6 → 1200,14
connect( (*scrActions)["itemPDFIsBookmark"], SIGNAL(triggered()), currView, SLOT(ToggleBookmark()) );
}
 
void ActionManager::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void ActionManager::languageChange()
{
//File Menu
/trunk/Scribus/scribus/tocindexprefs.cpp
21,17 → 21,20
 
#include "tocindexprefs.h"
 
#include <QVariant>
#include <QPushButton>
#include <QTabWidget>
#include <QListWidget>
#include <QListWidgetItem>
#include <QLineEdit>
#include <QCheckBox>
#include <QComboBox>
#include <QEvent>
#include <QLabel>
#include <QCheckBox>
#include <QLayout>
#include <QLineEdit>
#include <QListWidget>
#include <QListWidgetItem>
#include <QPushButton>
#include <QTabWidget>
#include <QToolTip>
#include <QVariant>
 
 
#include "page.h"
#include "scribusdoc.h"
#include "commonstrings.h"
74,10 → 77,14
// no need to delete child widgets, Qt does it all for us
}
 
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void TOCIndexPrefs::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void TOCIndexPrefs::languageChange()
{
setWindowTitle( tr( "Table of Contents and Indexes" ) );
/trunk/Scribus/scribus/prefsdialogbase.h
10,12 → 10,14
#include <QDialog>
#include <QListWidget>
#include <QMap>
class QVBoxLayout;
 
class QEvent;
class QHBoxLayout;
class QLabel;
class QListWidgetItem;
class QPushButton;
class QStackedWidget;
class QListWidgetItem;
class QVBoxLayout;
 
#include "scribusapi.h"
 
37,6 → 39,9
public:
PrefsDialogBase( QWidget* parent = 0 );
~PrefsDialogBase() {};
virtual void changeEvent(QEvent *e);
int addItem(QString name, QPixmap icon, QWidget *tab);
// void arrangeIcons();
QStackedWidget* prefsWidgets;
/trunk/Scribus/scribus/scribus.h
140,6 → 140,7
ScribusDoc *doFileNew(double width, double height, double topMargin, double leftMargin, double rightMargin, double bottomMargin, double columnDistance, double columnCount, bool autoTextFrames, int pageArrangement, int unitIndex, int firstPageLocation, int orientation, int firstPageNumber, const QString& defaultPageSize, bool requiresGUI, int pageCount=1, bool showView=true);
ScribusDoc *newDoc(double width, double height, double topMargin, double leftMargin, double rightMargin, double bottomMargin, double columnDistance, double columnCount, bool autoTextFrames, int pageArrangement, int unitIndex, int firstPageLocation, int orientation, int firstPageNumber, const QString& defaultPageSize, bool requiresGUI, int pageCount=1, bool showView=true);
bool DoFileSave(QString fn);
void changeEvent(QEvent *e);
void closeEvent(QCloseEvent *ce);
void keyPressEvent(QKeyEvent *k);
void keyReleaseEvent(QKeyEvent *k);
/trunk/Scribus/scribus/tree.cpp
5,6 → 5,7
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
#include <QHeaderView>
#include <QHelpEvent>
#include <QImage>
1151,6 → 1152,15
}
}
 
void Tree::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
 
void Tree::languageChange()
{
setWindowTitle( tr("Outline"));
/trunk/Scribus/scribus/story.h
54,6 → 54,7
#include <QVariant>
#include <QWidgetAction>
 
class QEvent;
class QGridLayout;
class QHBoxLayout;
class QFrame;
202,6 → 203,9
public:
SToolBColorF(QMainWindow* parent, ScribusDoc *doc);
~SToolBColorF() {};
virtual void changeEvent(QEvent *e);
void setCurrentDocument(ScribusDoc *doc);
QLabel* FillIcon;
ColorCombo* TxFill;
227,6 → 231,9
public:
SToolBColorS(QMainWindow* parent, ScribusDoc *doc);
~SToolBColorS() {};
virtual void changeEvent(QEvent *e);
void setCurrentDocument(ScribusDoc *doc);
QLabel* StrokeIcon;
ColorCombo* TxStroke;
253,6 → 260,9
public:
SToolBStyle(QMainWindow* parent);
~SToolBStyle() {};
virtual void changeEvent(QEvent *e);
StyleSelect* SeStyle;
QLabel* trackingLabel;
ScrSpinBox* Extra;
290,6 → 300,9
public:
SToolBAlign(QMainWindow* parent);
~SToolBAlign() {};
virtual void changeEvent(QEvent *e);
AlignSelect* GroupAlign;
ParaStyleComboBox *paraStyleCombo;
QAction* groupAlignAction;
312,6 → 325,9
public:
SToolBFont(QMainWindow* parent);
~SToolBFont() {};
virtual void changeEvent(QEvent *e);
FontCombo* Fonts;
ScrSpinBox* ChScale;
ScrSpinBox* ChScaleV;
353,6 → 369,8
StoryEditor( QWidget* parent );
// StoryEditor( QWidget* parent, ScribusDoc *docc, PageItem* ite );
~StoryEditor();
virtual void changeEvent(QEvent *e);
 
void setCurrentDocumentAndItem(ScribusDoc *doc=NULL, PageItem *item=NULL);
 
/trunk/Scribus/scribus/pluginmanager.cpp
9,6 → 9,7
#include "loadsaveplugin.h"
 
#include <QDir>
#include <QEvent>
 
#include "scconfig.h"
 
476,6 → 477,14
#endif
}
 
void PluginManager::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void PluginManager::languageChange()
{
ScPlugin* plugin = 0;
/trunk/Scribus/scribus/loremipsum.h
21,16 → 21,17
 
#include "scribusapi.h"
 
class QVBoxLayout;
class QEvent;
class QGridLayout;
class QHBoxLayout;
class QGridLayout;
class QLabel;
class QPushButton;
class QSpacerItem;
class QTreeWidget;
class QLabel;
class QSpinBox;
class QPushButton;
class QString;
class QStringList;
class QTreeWidget;
class QVBoxLayout;
 
class ScribusDoc;
class LanguageManager;
86,6 → 87,9
/*! Reads all XML files in cfg directory. */
LoremManager(ScribusDoc* doc, QWidget* parent = 0);
~LoremManager();
virtual void changeEvent(QEvent *e);
 
//! all lorems with Public Name -> filename structure
QMap<QString,QString> availableLorems;
/trunk/Scribus/scribus/gradienteditor.h
32,8 → 32,9
#include <QMouseEvent>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QEvent>
 
class QEvent;
 
#include "scribusapi.h"
#include "vgradient.h"
 
75,6 → 76,9
public:
GradientEditor(QWidget *pa);
~GradientEditor() {};
virtual void changeEvent(QEvent *e);
GradientPreview *Preview;
QLabel *Desc;
QSpinBox *Position;
/trunk/Scribus/scribus/pageselector.cpp
6,6 → 6,7
*/
#include "pageselector.h"
 
#include <QEvent>
#include <QLineEdit>
#if OPTION_USE_QTOOLBUTTON
#include <QToolButton>
241,6 → 242,14
GotoPgE(APage-1);
}
 
void PageSelector::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void PageSelector::languageChange()
{
disconnect( PageCombo, SIGNAL( activated(int) ), this, SLOT( GotoPgE(int) ) );
/trunk/Scribus/scribus/shortcutwidget.h
9,6 → 9,9
#define SHORTCUTWIDGET_H
 
#include <QWidget>
 
class QEvent;
 
#include "ui_shortcutwidget.h"
 
// class Keys;
22,6 → 25,9
public:
ShortcutWidget(QWidget *parent = 0);
~ShortcutWidget();
virtual void changeEvent(QEvent *e);
 
bool event( QEvent* ev );
void keyPressEvent(QKeyEvent *k);
/trunk/Scribus/scribus/smtextstyles.cpp
5,6 → 5,8
for which a new license (GPL+exception) is in place.
*/
 
#include <QEvent>
 
#include "smtextstyles.h"
#include "smpstylewidget.h"
#include "smcstylewidget.h"
/trunk/Scribus/scribus/aligndistribute.cpp
22,6 → 22,7
#include "aligndistribute.h"
 
#include <QComboBox>
#include <QEvent>
#include <QImage>
#include <QLabel>
#include <QLayout>
74,6 → 75,14
{
}
 
void AlignDistributePalette::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange)
{
languageChange();
}
}
 
void AlignDistributePalette::languageChange()
{
setWindowTitle( tr( "Align and Distribute" ) );