1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8                           bookpalette.cpp  -  description
9                              -------------------
10     begin                : Son Jan 19 2003
11     copyright            : (C) 2003 by Franz Schmid
12     email                : Franz.Schmid@altmuehlnet.de
13  ***************************************************************************/
14 
15 /***************************************************************************
16  *                                                                         *
17  *   This program is free software; you can redistribute it and/or modify  *
18  *   it under the terms of the GNU General Public License as published by  *
19  *   the Free Software Foundation; either version 2 of the License, or     *
20  *   (at your option) any later version.                                   *
21  *                                                                         *
22  ***************************************************************************/
23 
24 #include <QEvent>
25 
26 #include "bookmarkpalette.h"
27 
BookPalette(QWidget * parent)28 BookPalette::BookPalette(QWidget* parent) : ScDockPalette( parent, "Books" )
29 {;
30 	setObjectName(QString::fromLocal8Bit("Books"));
31 	setContentsMargins(3, 3, 3, 3);
32 	setMinimumSize( QSize(220, 240) );
33 	setSizePolicy( QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum));
34 	BView = new BookmarkView(this);
35 	setWidget( BView );
36 	languageChange();
37 }
38 
changeEvent(QEvent * e)39 void BookPalette::changeEvent(QEvent *e)
40 {
41 	if (e->type() == QEvent::LanguageChange)
42 		languageChange();
43 	else
44 		ScDockPalette::changeEvent(e);
45 }
46 
languageChange()47 void BookPalette::languageChange()
48 {
49 	setWindowTitle( tr( "Bookmarks" ) );
50 }
51